Mercurial > emacs
diff src/process.h @ 2432:17a84e60603b
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".
| author | Jim Blandy <jimb@redhat.com> |
|---|---|
| date | Tue, 30 Mar 1993 23:05:56 +0000 |
| parents | c10a468c6203 |
| children | 9c0cc4128da8 |
line wrap: on
line diff
--- a/src/process.h Tue Mar 30 22:21:03 1993 +0000 +++ b/src/process.h Tue Mar 30 23:05:56 1993 +0000 @@ -91,3 +91,14 @@ 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
