comparison src/process.h @ 88155:d7ddb3e565de

sync with trunk
author Henrik Enberg <henrik.enberg@telia.com>
date Mon, 16 Jan 2006 00:03:54 +0000
parents 9f435c19ea6f
children
comparison
equal deleted inserted replaced
88154:8ce476d3ba36 88155:d7ddb3e565de
1 /* Definitions for asynchronous process control in GNU Emacs. 1 /* Definitions for asynchronous process control in GNU Emacs.
2 Copyright (C) 1985, 1994 Free Software Foundation, Inc. 2 Copyright (C) 1985, 1994, 2002, 2003, 2004,
3 2005 Free Software Foundation, Inc.
3 4
4 This file is part of GNU Emacs. 5 This file is part of GNU Emacs.
5 6
6 GNU Emacs is free software; you can redistribute it and/or modify 7 GNU Emacs is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by 8 it under the terms of the GNU General Public License as published by
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details. 15 GNU General Public License for more details.
15 16
16 You should have received a copy of the GNU General Public License 17 You should have received a copy of the GNU General Public License
17 along with GNU Emacs; see the file COPYING. If not, write to 18 along with GNU Emacs; see the file COPYING. If not, write to
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 19 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 Boston, MA 02111-1307, USA. */ 20 Boston, MA 02110-1301, USA. */
20 21
21 22
22 /* This structure records information about a subprocess 23 /* This structure records information about a subprocess
23 or network connection. 24 or network connection.
24 25
31 struct Lisp_Vector *v_next; 32 struct Lisp_Vector *v_next;
32 /* Descriptor by which we read from this process */ 33 /* Descriptor by which we read from this process */
33 Lisp_Object infd; 34 Lisp_Object infd;
34 /* Descriptor by which we write to this process */ 35 /* Descriptor by which we write to this process */
35 Lisp_Object outfd; 36 Lisp_Object outfd;
36 /* Descriptor for the tty which this process is using.
37 nil if we didn't record it (on some systems, there's no need). */
38 Lisp_Object subtty;
39 /* Name of subprocess terminal. */ 37 /* Name of subprocess terminal. */
40 Lisp_Object tty_name; 38 Lisp_Object tty_name;
41 /* Name of this process */ 39 /* Name of this process */
42 Lisp_Object name; 40 Lisp_Object name;
43 /* List of command arguments that this process was run with. 41 /* List of command arguments that this process was run with.
53 Lisp_Object log; 51 Lisp_Object log;
54 /* Buffer that output is going to */ 52 /* Buffer that output is going to */
55 Lisp_Object buffer; 53 Lisp_Object buffer;
56 /* Number of this process */ 54 /* Number of this process */
57 Lisp_Object pid; 55 Lisp_Object pid;
58 /* Non-nil if this is really a command channel */
59 Lisp_Object command_channel_p;
60 /* t if this is a real child process. 56 /* t if this is a real child process.
61 For a net connection, it is a plist based on the arguments to make-network-process. */ 57 For a net connection, it is a plist based on the arguments to make-network-process. */
62 Lisp_Object childp; 58 Lisp_Object childp;
63 /* Plist for programs to keep per-process state information, parameters, etc. */ 59 /* Plist for programs to keep per-process state information, parameters, etc. */
64 Lisp_Object plist; 60 Lisp_Object plist;
102 filter (if any). It is initialized to the value of 98 filter (if any). It is initialized to the value of
103 `default-enable-multibyte-characters' when the process is 99 `default-enable-multibyte-characters' when the process is
104 generated, and can be changed by the function 100 generated, and can be changed by the function
105 `set-process-fileter-multibyte'. */ 101 `set-process-fileter-multibyte'. */
106 Lisp_Object filter_multibyte; 102 Lisp_Object filter_multibyte;
103 /* Should we delay reading output from this process.
104 Initialized from `Vprocess_adaptive_read_buffering'. */
105 Lisp_Object adaptive_read_buffering;
106 /* Hysteresis to try to read process output in larger blocks.
107 On some systems, e.g. GNU/Linux, Emacs is seen as
108 an interactive app also when reading process output, meaning
109 that process output can be read in as little as 1 byte at a
110 time. Value is micro-seconds to delay reading output from
111 this process. Range is 0 .. 50000. */
112 Lisp_Object read_output_delay;
113 /* Skip reading this process on next read. */
114 Lisp_Object read_output_skip;
107 }; 115 };
108 116
109 /* Every field in the preceding structure except for the first two 117 /* Every field in the preceding structure except for the first two
110 must be a Lisp_Object, for GC's sake. */ 118 must be a Lisp_Object, for GC's sake. */
111 119
125 to Fcall_process. */ 133 to Fcall_process. */
126 134
127 /* Nonzero => this is a string explaining death of synchronous subprocess. */ 135 /* Nonzero => this is a string explaining death of synchronous subprocess. */
128 extern char *synch_process_death; 136 extern char *synch_process_death;
129 137
138 /* Nonzero => this is the signal number that terminated the subprocess. */
139 extern int synch_process_termsig;
140
130 /* If synch_process_death is zero, 141 /* If synch_process_death is zero,
131 this is exit code of synchronous subprocess. */ 142 this is exit code of synchronous subprocess. */
132 extern int synch_process_retcode; 143 extern int synch_process_retcode;
133 144
134 /* The name of the file open to get a null file, or a data sink. 145 /* The name of the file open to get a null file, or a data sink.
135 VMS, MS-DOS, and OS/2 redefine this. */ 146 VMS, MS-DOS, and OS/2 redefine this. */
136 #ifndef NULL_DEVICE 147 #ifndef NULL_DEVICE
137 #define NULL_DEVICE "/dev/null" 148 #define NULL_DEVICE "/dev/null"
138 #endif 149 #endif
150
151 /* arch-tag: dffedfc4-d7bc-4b58-a26f-c16155449c72
152 (do not change this comment) */