summaryrefslogtreecommitdiff
path: root/src/process.h
diff options
context:
space:
mode:
authorJim Blandy <jimb@redhat.com>1993-03-30 23:05:56 +0000
committerJim Blandy <jimb@redhat.com>1993-03-30 23:05:56 +0000
commit8f342c75d7d8868e37fae7e350ff9400354b1716 (patch)
tree4d9de5e7e045d3a019c06f9ebde75118ecd75818 /src/process.h
parentd50a196b7059e1af3808cb9d352a71eca255bde6 (diff)
downloademacs-8f342c75d7d8868e37fae7e350ff9400354b1716.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.h11
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