diff options
author | Jim Blandy <jimb@redhat.com> | 1993-03-30 23:05:56 +0000 |
---|---|---|
committer | Jim Blandy <jimb@redhat.com> | 1993-03-30 23:05:56 +0000 |
commit | 5437e9f97e19ea0eba3288def1734e61a76ca3c7 (patch) | |
tree | 8be32212f7335e07c582f04c0d5ea016a328117e /src/process.h | |
parent | 9115e9389c75ae7f0da5743421aebb3977016e6d (diff) | |
download | emacs-5437e9f97e19ea0eba3288def1734e61a76ca3c7.tar.gz |
New macros NULL_DEVICE and EXEC_SUFFIXES, to give the name of the
equivalent of /dev/null, and the suffixes used by executable
files. This is simple, and helps people porting Emacs to other
operating systems.
* process.h (NULL_DEVICE): Give this a default value.
* process.c (Fstart_process): Pass EXEC_SUFFIXES to openp.
(Fprocess_send_eof): Use NULL_DEVICE instead of "/dev/null".
* callproc.c (Fcall_process): Pass EXEC_SUFFIXES to openp.
Use NULL_DEVICE instead of "/dev/null".
Diffstat (limited to 'src/process.h')
-rw-r--r-- | src/process.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/process.h b/src/process.h index 8f476f6894d..2ac7b59c6b7 100644 --- a/src/process.h +++ b/src/process.h @@ -91,3 +91,14 @@ extern char *synch_process_death; this is exit code of synchronous subprocess. */ extern int synch_process_retcode; +/* The name of the file open to get a null file, or a data sink. + VMS, MS-DOS, and OS/2 redefine this. */ +#ifndef NULL_DEVICE +#define NULL_DEVICE "/dev/null" +#endif + +/* A string listing the possible suffixes used for executable files, + separated by colons. VMS, MS-DOS, and OS/2 redefine this. */ +#ifndef EXEC_SUFFIXES +#define EXEC_SUFFIXES "" +#endif |