comparison lib-src/gnuserv.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 84b14dcb0985
children e7ef97881643
comparison
equal deleted inserted replaced
441:72a7cfa4a488 442:abe6d1db359e
34 static char header_rcsid [] = "!Header: gnuserv.h,v 2.4 95/02/16 11:58:11 arup alpha !"; 34 static char header_rcsid [] = "!Header: gnuserv.h,v 2.4 95/02/16 11:58:11 arup alpha !";
35 #endif 35 #endif
36 36
37 #define USE_TMPDIR 37 #define USE_TMPDIR
38 38
39 #define NO_SHORTNAMES
40
41 #define PATCHLEVEL 2 39 #define PATCHLEVEL 2
42 40
43 #define NO_SHORTNAMES 41 #define NO_SHORTNAMES
44 /* gnuserv should not be compiled using SOCKS */ 42 /* gnuserv should not be compiled using SOCKS */
45 #define DO_NOT_SOCKSIFY 43 #define DO_NOT_SOCKSIFY
44 #define DONT_ENCAPSULATE
46 #include <config.h> 45 #include <config.h>
47 #undef read
48 #undef write
49 #undef open
50 #undef close
51 #undef signal 46 #undef signal
52 47
53 /* Define the communication method between server and clients: 48 /* Define the communication method between server and clients:
54 * You can have either or both kinds of sockets, but you can't mix 49 * You can have either or both kinds of sockets, but you can't mix
55 * sockets with sysv ipc 50 * sockets with sysv ipc
172 * characters like ^D to pass through to emacs. This problem has only 167 * characters like ^D to pass through to emacs. This problem has only
173 * been observed under emacs18; fsf19 and lemacs are probably okay without it. 168 * been observed under emacs18; fsf19 and lemacs are probably okay without it.
174 */ 169 */
175 #ifndef DONT_USE_LITOUT 170 #ifndef DONT_USE_LITOUT
176 #if !defined(HAVE_TERMIO) && !defined(HAVE_TERMIOS) && !defined(VMS) 171 #if !defined(HAVE_TERMIO) && !defined(HAVE_TERMIOS) && !defined(VMS)
177 #if !defined(MSDOS) && !defined(BSD4_1) 172 #if !defined(BSD4_1)
178 #define USE_LITOUT 173 #define USE_LITOUT
179 #endif 174 #endif
180 #endif 175 #endif
181 #endif 176 #endif
182 177
214 int make_connection (char *hostarg, int portarg, int *s); 209 int make_connection (char *hostarg, int portarg, int *s);
215 #ifdef SYSV_IPC 210 #ifdef SYSV_IPC
216 void disconnect_from_ipc_server(); 211 void disconnect_from_ipc_server();
217 #endif 212 #endif
218 #if defined(INTERNET_DOMAIN_SOCKETS) || defined(UNIX_DOMAIN_SOCKETS) 213 #if defined(INTERNET_DOMAIN_SOCKETS) || defined(UNIX_DOMAIN_SOCKETS)
219 void send_string (int s, CONST char *msg); 214 void send_string (int s, const char *msg);
220 void disconnect_from_server (int s, int echo); 215 void disconnect_from_server (int s, int echo);
221 int read_line (int s, char *dest); 216 int read_line (int s, char *dest);
222 #endif 217 #endif
223 #ifdef INTERNET_DOMAIN_SOCKETS 218 #ifdef INTERNET_DOMAIN_SOCKETS
224 int internet_addr (char *host); 219 int internet_addr (char *host);