diff options
| author | Joakim Verona | 2013-08-12 12:29:06 +0200 |
|---|---|---|
| committer | Joakim Verona | 2013-08-12 12:29:06 +0200 |
| commit | 5ff84f8a17c73bf63cc7532e14149380d9f83b3f (patch) | |
| tree | 501ac3b99a49aaa25adedc516bb4ea7a34c22a5c /src/process.h | |
| parent | c39e73975f7371a6458cd63967d39ba77a1e871a (diff) | |
| parent | 7a67e06b99a85ae700a7ccc75468397d53af59ed (diff) | |
| download | emacs-5ff84f8a17c73bf63cc7532e14149380d9f83b3f.tar.gz emacs-5ff84f8a17c73bf63cc7532e14149380d9f83b3f.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 8ae33aebf39..b312f7f2425 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 | ||
| @@ -115,6 +120,9 @@ struct Lisp_Process | |||
| 115 | int infd; | 120 | int infd; |
| 116 | /* Descriptor by which we write to this process */ | 121 | /* Descriptor by which we write to this process */ |
| 117 | int outfd; | 122 | int outfd; |
| 123 | /* Descriptors that were created for this process and that need | ||
| 124 | closing. Unused entries are negative. */ | ||
| 125 | int open_fd[PROCESS_OPEN_FDS]; | ||
| 118 | /* Event-count of last event in which this process changed status. */ | 126 | /* Event-count of last event in which this process changed status. */ |
| 119 | EMACS_INT tick; | 127 | EMACS_INT tick; |
| 120 | /* Event-count of last such event reported. */ | 128 | /* Event-count of last such event reported. */ |
| @@ -210,13 +218,16 @@ enum | |||
| 210 | 218 | ||
| 211 | extern void block_child_signal (void); | 219 | extern void block_child_signal (void); |
| 212 | extern void unblock_child_signal (void); | 220 | extern void unblock_child_signal (void); |
| 213 | extern void record_kill_process (struct Lisp_Process *); | 221 | extern void record_kill_process (struct Lisp_Process *, Lisp_Object); |
| 214 | 222 | ||
| 215 | /* Defined in process.c. */ | 223 | /* Defined in sysdep.c. */ |
| 216 | 224 | ||
| 217 | extern Lisp_Object list_system_processes (void); | 225 | extern Lisp_Object list_system_processes (void); |
| 218 | extern Lisp_Object system_process_attributes (Lisp_Object); | 226 | extern Lisp_Object system_process_attributes (Lisp_Object); |
| 219 | 227 | ||
| 228 | /* Defined in process.c. */ | ||
| 229 | |||
| 230 | extern void record_deleted_pid (pid_t, Lisp_Object); | ||
| 220 | extern void hold_keyboard_input (void); | 231 | extern void hold_keyboard_input (void); |
| 221 | extern void unhold_keyboard_input (void); | 232 | extern void unhold_keyboard_input (void); |
| 222 | extern bool kbd_on_hold_p (void); | 233 | extern bool kbd_on_hold_p (void); |