aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.h
diff options
context:
space:
mode:
authorTom Tromey2013-08-19 21:53:07 -0600
committerTom Tromey2013-08-19 21:53:07 -0600
commit6d75555c5cc3d2a629646cee7629e67530fa7a36 (patch)
tree3852804dd234ad613ea8691332e10b92c027e87d /src/process.h
parentcc231cbe45d27a1906d268fb72d3b4105a2e9c65 (diff)
parent8c2f38aaab7a7a2f0605416fc2ee38701e41ab61 (diff)
downloademacs-6d75555c5cc3d2a629646cee7629e67530fa7a36.tar.gz
emacs-6d75555c5cc3d2a629646cee7629e67530fa7a36.zip
merge from trunk
Diffstat (limited to 'src/process.h')
-rw-r--r--src/process.h15
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
37enum { 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
214extern void block_child_signal (void); 222extern void block_child_signal (void);
215extern void unblock_child_signal (void); 223extern void unblock_child_signal (void);
216extern void record_kill_process (struct Lisp_Process *); 224extern void record_kill_process (struct Lisp_Process *, Lisp_Object);
217 225
218/* Defined in process.c. */ 226/* Defined in sysdep.c. */
219 227
220extern Lisp_Object list_system_processes (void); 228extern Lisp_Object list_system_processes (void);
221extern Lisp_Object system_process_attributes (Lisp_Object); 229extern Lisp_Object system_process_attributes (Lisp_Object);
222 230
231/* Defined in process.c. */
232
233extern void record_deleted_pid (pid_t, Lisp_Object);
223extern void hold_keyboard_input (void); 234extern void hold_keyboard_input (void);
224extern void unhold_keyboard_input (void); 235extern void unhold_keyboard_input (void);
225extern bool kbd_on_hold_p (void); 236extern bool kbd_on_hold_p (void);