diff options
| author | Tom Tromey | 2013-08-19 21:53:07 -0600 |
|---|---|---|
| committer | Tom Tromey | 2013-08-19 21:53:07 -0600 |
| commit | 6d75555c5cc3d2a629646cee7629e67530fa7a36 (patch) | |
| tree | 3852804dd234ad613ea8691332e10b92c027e87d /src/process.h | |
| parent | cc231cbe45d27a1906d268fb72d3b4105a2e9c65 (diff) | |
| parent | 8c2f38aaab7a7a2f0605416fc2ee38701e41ab61 (diff) | |
| download | emacs-6d75555c5cc3d2a629646cee7629e67530fa7a36.tar.gz emacs-6d75555c5cc3d2a629646cee7629e67530fa7a36.zip | |
merge from trunk
Diffstat (limited to 'src/process.h')
| -rw-r--r-- | src/process.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/process.h b/src/process.h index 89c7e8b1259..95881d10f58 100644 --- a/src/process.h +++ b/src/process.h | |||
| @@ -31,6 +31,11 @@ INLINE_HEADER_BEGIN | |||
| 31 | # define PROCESS_INLINE INLINE | 31 | # define PROCESS_INLINE INLINE |
| 32 | #endif | 32 | #endif |
| 33 | 33 | ||
| 34 | /* Bound on number of file descriptors opened on behalf of a process, | ||
| 35 | that need to be closed. */ | ||
| 36 | |||
| 37 | enum { PROCESS_OPEN_FDS = 6 }; | ||
| 38 | |||
| 34 | /* This structure records information about a subprocess | 39 | /* This structure records information about a subprocess |
| 35 | or network connection. */ | 40 | or network connection. */ |
| 36 | 41 | ||
| @@ -118,6 +123,9 @@ struct Lisp_Process | |||
| 118 | int infd; | 123 | int infd; |
| 119 | /* Descriptor by which we write to this process */ | 124 | /* Descriptor by which we write to this process */ |
| 120 | int outfd; | 125 | int outfd; |
| 126 | /* Descriptors that were created for this process and that need | ||
| 127 | closing. Unused entries are negative. */ | ||
| 128 | int open_fd[PROCESS_OPEN_FDS]; | ||
| 121 | /* Event-count of last event in which this process changed status. */ | 129 | /* Event-count of last event in which this process changed status. */ |
| 122 | EMACS_INT tick; | 130 | EMACS_INT tick; |
| 123 | /* Event-count of last such event reported. */ | 131 | /* Event-count of last such event reported. */ |
| @@ -213,13 +221,16 @@ enum | |||
| 213 | 221 | ||
| 214 | extern void block_child_signal (void); | 222 | extern void block_child_signal (void); |
| 215 | extern void unblock_child_signal (void); | 223 | extern void unblock_child_signal (void); |
| 216 | extern void record_kill_process (struct Lisp_Process *); | 224 | extern void record_kill_process (struct Lisp_Process *, Lisp_Object); |
| 217 | 225 | ||
| 218 | /* Defined in process.c. */ | 226 | /* Defined in sysdep.c. */ |
| 219 | 227 | ||
| 220 | extern Lisp_Object list_system_processes (void); | 228 | extern Lisp_Object list_system_processes (void); |
| 221 | extern Lisp_Object system_process_attributes (Lisp_Object); | 229 | extern Lisp_Object system_process_attributes (Lisp_Object); |
| 222 | 230 | ||
| 231 | /* Defined in process.c. */ | ||
| 232 | |||
| 233 | extern void record_deleted_pid (pid_t, Lisp_Object); | ||
| 223 | extern void hold_keyboard_input (void); | 234 | extern void hold_keyboard_input (void); |
| 224 | extern void unhold_keyboard_input (void); | 235 | extern void unhold_keyboard_input (void); |
| 225 | extern bool kbd_on_hold_p (void); | 236 | extern bool kbd_on_hold_p (void); |