From 8f342c75d7d8868e37fae7e350ff9400354b1716 Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Tue, 30 Mar 1993 23:05:56 +0000 Subject: 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". --- src/process.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/process.h') 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 -- cgit v1.2.1