Mercurial > hg > xemacs-beta
comparison src/process.h @ 442:abe6d1db359e r21-2-36
Import from CVS: tag r21-2-36
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:35:02 +0200 |
parents | 8de8e3f6228a |
children | af57a77cbc92 |
comparison
equal
deleted
inserted
replaced
441:72a7cfa4a488 | 442:abe6d1db359e |
---|---|
35 #define init_xemacs_process() 0 | 35 #define init_xemacs_process() 0 |
36 void wait_without_blocking (void); | 36 void wait_without_blocking (void); |
37 | 37 |
38 #else /* not NO_SUBPROCESSES */ | 38 #else /* not NO_SUBPROCESSES */ |
39 | 39 |
40 /* Only process.c needs to know about the guts of this */ | 40 /* struct Lisp_Process is defined in procimpl.h; only process-*.c need |
41 to know about the guts of it. */ | |
41 | 42 |
42 DECLARE_LRECORD (process, Lisp_Process); | 43 DECLARE_LRECORD (process, Lisp_Process); |
43 #define XPROCESS(x) XRECORD (x, process, Lisp_Process) | 44 #define XPROCESS(x) XRECORD (x, process, Lisp_Process) |
44 #define XSETPROCESS(x, p) XSETRECORD (x, p, process) | 45 #define XSETPROCESS(x, p) XSETRECORD (x, p, process) |
45 #define PROCESSP(x) RECORDP (x, process) | 46 #define PROCESSP(x) RECORDP (x, process) |
71 /* True iff we are about to fork off a synchronous process or if we | 72 /* True iff we are about to fork off a synchronous process or if we |
72 are waiting for it. */ | 73 are waiting for it. */ |
73 extern volatile int synch_process_alive; | 74 extern volatile int synch_process_alive; |
74 | 75 |
75 /* Nonzero => this is a string explaining death of synchronous subprocess. */ | 76 /* Nonzero => this is a string explaining death of synchronous subprocess. */ |
76 extern CONST char *synch_process_death; | 77 extern const char *synch_process_death; |
77 | 78 |
78 /* If synch_process_death is zero, | 79 /* If synch_process_death is zero, |
79 this is exit code of synchronous subprocess. */ | 80 this is exit code of synchronous subprocess. */ |
80 extern int synch_process_retcode; | 81 extern int synch_process_retcode; |
81 | 82 |
106 void status_notify (void); | 107 void status_notify (void); |
107 void kick_status_notify (void); | 108 void kick_status_notify (void); |
108 | 109 |
109 void deactivate_process (Lisp_Object proc); | 110 void deactivate_process (Lisp_Object proc); |
110 | 111 |
111 #ifdef WINDOWSNT | 112 #ifdef WIN32_NATIVE |
112 int | 113 int |
113 #else | 114 #else |
114 void | 115 void |
115 #endif | 116 #endif |
116 child_setup (int in, int out, int err, | 117 child_setup (int in, int out, int err, |
117 char **new_argv, CONST char *current_dir); | 118 char **new_argv, const char *current_dir); |
118 | 119 |
119 Charcount read_process_output (Lisp_Object proc); | 120 Charcount read_process_output (Lisp_Object proc); |
120 | 121 |
121 CONST char *signal_name (int signum); | 122 const char *signal_name (int signum); |
122 | 123 |
123 Lisp_Object canonicalize_host_name (Lisp_Object host); | 124 Lisp_Object canonicalize_host_name (Lisp_Object host); |
124 | 125 |
125 #endif /* not NO_SUBPROCESSES */ | 126 #endif /* not NO_SUBPROCESSES */ |
126 | 127 |
136 #define EXEC_SUFFIXES "" | 137 #define EXEC_SUFFIXES "" |
137 #endif | 138 #endif |
138 | 139 |
139 #endif /* emacs */ | 140 #endif /* emacs */ |
140 | 141 |
141 #ifdef HAVE_GETPT | |
142 #define PTY_ITERATION | |
143 #define PTY_OPEN \ | |
144 if ((fd = getpt()) < 0 || grantpt (fd) < 0 || unlockpt (fd) < 0) \ | |
145 return -1; | |
146 #define PTY_NAME_SPRINTF | |
147 #define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ptsname (fd)); | |
148 #endif | |
149 | |
150 #endif /* INCLUDED_process_h_ */ | 142 #endif /* INCLUDED_process_h_ */ |