Mercurial > emacs
diff src/process.c @ 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 | 96b55f2f19cd |
| children | 100ac7394e71 |
line wrap: on
line diff
--- a/src/process.c Tue Mar 30 22:21:03 1993 +0000 +++ b/src/process.c Tue Mar 30 23:05:56 1993 +0000 @@ -1034,7 +1034,7 @@ if (new_argv[0][0] != '/') { tem = Qnil; - openp (Vexec_path, program, "", &tem, 1); + openp (Vexec_path, program, EXEC_SUFFIXES, &tem, 1); if (NILP (tem)) report_file_error ("Searching for program", Fcons (program, Qnil)); new_argv[0] = XSTRING (tem)->data; @@ -2597,7 +2597,7 @@ else { close (XPROCESS (proc)->outfd); - XFASTINT (XPROCESS (proc)->outfd) = open ("/dev/null", O_WRONLY); + XFASTINT (XPROCESS (proc)->outfd) = open (NULL_DEVICE, O_WRONLY); } #endif /* VMS */ #endif /* did not do TOICREMOTE */
