*** oldprocess.c Wed Nov 3 08:05:33 1993 --- process.c Sun Oct 24 14:30:34 1993 *************** *** 46,51 **** --- 46,55 ---- #include #endif /* HAVE_SOCKETS */ + #ifdef TERM /* TERM support */ + #include + #endif + #if defined(BSD) || defined(STRIDE) #include #if !defined (O_NDELAY) && defined (HAVE_PTYS) && !defined(USG5) *************** *** 1388,1393 **** --- 1392,1398 ---- port = svc_info->s_port; } + #ifndef TERM /* If not using term, use gethostbyname, etc */ host_info_ptr = gethostbyname (XSTRING (host)->data); if (host_info_ptr == 0) /* Attempt to interpret host as numeric inet address */ *************** *** 1432,1438 **** report_file_error ("connection failed", Fcons (host, Fcons (name, Qnil))); } ! inch = s; outch = dup (s); if (outch < 0) --- 1437,1449 ---- report_file_error ("connection failed", Fcons (host, Fcons (name, Qnil))); } ! #else /* Using TERM */ ! if ((s = connect_server(0)) < 0) { ! report_file_error ("error creating socket", Fcons (name, Qnil)); ! } ! send_command(s,C_PORT,0,"%s:%d",XSTRING (host)->data,ntohs(port)); ! send_command(s,C_DUMB,1,0); ! #endif /* TERM */ inch = s; outch = dup (s); if (outch < 0) *** oldlinux.h Wed Nov 3 08:14:26 1993 --- linux.h Sun Oct 24 14:07:22 1993 *************** *** 208,221 **** #endif /* Work around a bug in glibc with _longjmp. */ ! #define C_SWITCH_SYSTEM -D_BSD_SOURCE /* Let's try this out, just in case. Nah. Rik Faith says it doesn't work well. */ /* #define SIGNALS_VIA_CHARACTERS */ /* Rob Malouf says: SYSV IPC is standard a standard part of Linux since version 0.99pl10, and is a very common addition to previous versions. */ ! #define LIBS_MACHINE -lipc #define HAVE_SYSVIPC --- 208,233 ---- #endif /* Work around a bug in glibc with _longjmp. */ ! /* Moved within TERM defines... */ ! /* #define C_SWITCH_SYSTEM -D_BSD_SOURCE */ /* Let's try this out, just in case. Nah. Rik Faith says it doesn't work well. */ /* #define SIGNALS_VIA_CHARACTERS */ + /* William Perry's patches to use term for + emacs' open-network-stream primitive */ + #define TERM + /* Rob Malouf says: SYSV IPC is standard a standard part of Linux since version 0.99pl10, and is a very common addition to previous versions. */ ! ! #ifdef TERM ! #define LIBS_MACHINE -lclient ! #define C_SWITCH_SYSTEM -D_BSD_SOURCE -I/usr/src/term ! #else ! #define LIBS_MACHINE ! #define c_SWITCH_SYSTEM -D_BSD_SOURCE ! #endif #define HAVE_SYSVIPC