X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fprocess.h;h=59adf41caa7060c9ea80f0b3ad344d3f301b5a4f;hb=ea1ea793fe6e244ef5555ed983423a204101af13;hp=f2574d8116bef6890d52fe935ef7047bd2c5ade3;hpb=399b9f4466f37412410de8ec4a08e3dc5504ad10;p=chise%2Fxemacs-chise.git diff --git a/src/process.h b/src/process.h index f2574d8..59adf41 100644 --- a/src/process.h +++ b/src/process.h @@ -44,7 +44,6 @@ DECLARE_LRECORD (process, struct Lisp_Process); #define XPROCESS(x) XRECORD (x, process, struct Lisp_Process) #define XSETPROCESS(x, p) XSETRECORD (x, p, process) #define PROCESSP(x) RECORDP (x, process) -#define GC_PROCESSP(x) GC_RECORDP (x, process) #define CHECK_PROCESS(x) CHECK_RECORD (x, process) #define PROCESS_LIVE_P(x) (!NILP (XPROCESS(x)->pipe_instream)) @@ -93,7 +92,7 @@ int network_connection_p (Lisp_Object process); #define network_connection_p(x) 0 #endif -extern Lisp_Object Qclosed, Qmulticast, Qopen, Qrun, Qstop, Qtcpip; +extern Lisp_Object Qclosed, Qmulticast, Qopen, Qrun, Qstop, Qtcp, Qudp; extern Lisp_Object Vprocess_connection_type, Vprocess_list; /* Report all recent events of a change in process status @@ -134,4 +133,13 @@ Lisp_Object canonicalize_host_name (Lisp_Object host); #endif /* emacs */ +#ifdef HAVE_GETPT +#define PTY_ITERATION +#define PTY_OPEN \ + if ((fd = getpt()) < 0 || grantpt (fd) < 0 || unlockpt (fd) < 0) \ + return -1; +#define PTY_NAME_SPRINTF +#define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ptsname (fd)); +#endif + #endif /* _XEMACS_PROCESS_H_ */