diff options
| author | Jim Blandy | 1993-03-30 23:05:56 +0000 |
|---|---|---|
| committer | Jim Blandy | 1993-03-30 23:05:56 +0000 |
| commit | 5437e9f97e19ea0eba3288def1734e61a76ca3c7 (patch) | |
| tree | 8be32212f7335e07c582f04c0d5ea016a328117e /src/process.h | |
| parent | 9115e9389c75ae7f0da5743421aebb3977016e6d (diff) | |
| download | emacs-5437e9f97e19ea0eba3288def1734e61a76ca3c7.tar.gz emacs-5437e9f97e19ea0eba3288def1734e61a76ca3c7.zip | |
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; | |||
| 91 | this is exit code of synchronous subprocess. */ | 91 | this is exit code of synchronous subprocess. */ |
| 92 | extern int synch_process_retcode; | 92 | extern int synch_process_retcode; |
| 93 | 93 | ||
| 94 | /* The name of the file open to get a null file, or a data sink. | ||
| 95 | VMS, MS-DOS, and OS/2 redefine this. */ | ||
| 96 | #ifndef NULL_DEVICE | ||
| 97 | #define NULL_DEVICE "/dev/null" | ||
| 98 | #endif | ||
| 99 | |||
| 100 | /* A string listing the possible suffixes used for executable files, | ||
| 101 | separated by colons. VMS, MS-DOS, and OS/2 redefine this. */ | ||
| 102 | #ifndef EXEC_SUFFIXES | ||
| 103 | #define EXEC_SUFFIXES "" | ||
| 104 | #endif | ||