comparison src/process.h @ 263:727739f917cb r20-5b30

Import from CVS: tag r20-5b30
author cvs
date Mon, 13 Aug 2007 10:24:41 +0200
parents 11cf20601dec
children c5d627a313b1
comparison
equal deleted inserted replaced
262:9d8607af9e13 263:727739f917cb
15 15
16 You should have received a copy of the GNU General Public License 16 You should have received a copy of the GNU General Public License
17 along with XEmacs; see the file COPYING. If not, write to 17 along with XEmacs; see the file COPYING. If not, write to
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA. */ 19 Boston, MA 02111-1307, USA. */
20
21 /* Synched up with: FSF 19.30. */
22 20
23 #ifndef _XEMACS_PROCESS_H_ 21 #ifndef _XEMACS_PROCESS_H_
24 #define _XEMACS_PROCESS_H_ 22 #define _XEMACS_PROCESS_H_
25 23
26 #if defined (NO_SUBPROCESSES) 24 #if defined (NO_SUBPROCESSES)
46 #define XPROCESS(x) XRECORD (x, process, struct Lisp_Process) 44 #define XPROCESS(x) XRECORD (x, process, struct Lisp_Process)
47 #define XSETPROCESS(x, p) XSETRECORD (x, p, process) 45 #define XSETPROCESS(x, p) XSETRECORD (x, p, process)
48 #define PROCESSP(x) RECORDP (x, process) 46 #define PROCESSP(x) RECORDP (x, process)
49 #define GC_PROCESSP(x) GC_RECORDP (x, process) 47 #define GC_PROCESSP(x) GC_RECORDP (x, process)
50 #define CHECK_PROCESS(x) CHECK_RECORD (x, process) 48 #define CHECK_PROCESS(x) CHECK_RECORD (x, process)
51 #define PROCESS_LIVE_P(x) (XPROCESS(x)->infd >= 0) 49 #define PROCESS_LIVE_P(x) (!NILP (XPROCESS(x)->pipe_instream))
52 50
53 #ifdef emacs 51 #ifdef emacs
54 52
55 Lisp_Object Fget_process (Lisp_Object name); 53 Lisp_Object Fget_process (Lisp_Object name);
56 Lisp_Object Fget_buffer_process (Lisp_Object name); 54 Lisp_Object Fget_buffer_process (Lisp_Object name);
60 Lisp_Object current_group); 58 Lisp_Object current_group);
61 Lisp_Object Fdelete_process (Lisp_Object process); 59 Lisp_Object Fdelete_process (Lisp_Object process);
62 Lisp_Object Fopen_network_stream_internal (Lisp_Object name, 60 Lisp_Object Fopen_network_stream_internal (Lisp_Object name,
63 Lisp_Object buffer, 61 Lisp_Object buffer,
64 Lisp_Object host, 62 Lisp_Object host,
65 Lisp_Object service); 63 Lisp_Object service,
64 Lisp_Object family);
66 Lisp_Object Fopen_multicast_group_internal (Lisp_Object name, 65 Lisp_Object Fopen_multicast_group_internal (Lisp_Object name,
67 Lisp_Object buffer, 66 Lisp_Object buffer,
68 Lisp_Object dest, 67 Lisp_Object dest,
69 Lisp_Object port, 68 Lisp_Object port,
70 Lisp_Object ttl); 69 Lisp_Object ttl);
95 94
96 void update_process_status (Lisp_Object p, 95 void update_process_status (Lisp_Object p,
97 Lisp_Object status_symbol, 96 Lisp_Object status_symbol,
98 int exit_code, int core_dumped); 97 int exit_code, int core_dumped);
99 98
100 void get_process_file_descriptors (struct Lisp_Process *p, 99 void get_process_streams (struct Lisp_Process *p,
101 int *infd, int *outfd); 100 Lisp_Object *instr, Lisp_Object *outstr);
102 int get_process_selected_p (struct Lisp_Process *p); 101 int get_process_selected_p (struct Lisp_Process *p);
103 void set_process_selected_p (struct Lisp_Process *p, int selected_p); 102 void set_process_selected_p (struct Lisp_Process *p, int selected_p);
104 103
105 struct Lisp_Process *get_process_from_input_descriptor (int infd); 104 struct Lisp_Process *get_process_from_usid (USID usid);
106 105
107 #ifdef HAVE_SOCKETS 106 #ifdef HAVE_SOCKETS
108 int network_connection_p (Lisp_Object process); 107 int network_connection_p (Lisp_Object process);
109 #else 108 #else
110 #define network_connection_p(x) 0 109 #define network_connection_p(x) 0