Mercurial > hg > xemacs-beta
diff src/process.c @ 410:de805c49cfc1 r21-2-35
Import from CVS: tag r21-2-35
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:19:21 +0200 |
parents | 501cfd01ee6d |
children | 697ef44129c6 |
line wrap: on
line diff
--- a/src/process.c Mon Aug 13 11:18:12 2007 +0200 +++ b/src/process.c Mon Aug 13 11:19:21 2007 +0200 @@ -107,6 +107,7 @@ Lisp_Object Vprocess_list; extern Lisp_Object Vlisp_EXEC_SUFFIXES; +Lisp_Object Vnull_device; @@ -2075,6 +2076,22 @@ delete_exited_processes = 1; + DEFVAR_CONST_LISP ("null-device", &Vnull_device /* +Name of the null device, which differs from system to system. +The null device is a filename that acts as a sink for arbitrary amounts of +data, which is discarded, or as a source for a zero-length file. +It is available on all the systems that we currently support, but with +different names (typically either `/dev/null' or `nul'). + +Note that there is also a /dev/zero on most modern Unix versions (including +Cygwin), which acts like /dev/null when used as a sink, but as a source +it sends a non-ending stream of zero bytes. It's used most often along +with memory-mapping. We don't provide a Lisp variable for this because +the operations needing this are lower level than what ELisp programs +typically do, and in any case no equivalent exists under native MS Windows. +*/ ); + Vnull_device = build_string (NULL_DEVICE); + DEFVAR_LISP ("process-connection-type", &Vprocess_connection_type /* Control type of device used to communicate with subprocesses. Values are nil to use a pipe, or t or `pty' to use a pty.