3 * Copyright (c) 1999 Mike Gleason, NCEMRSoft.
8 #if defined(HAVE_CONFIG_H)
12 /* Include "wincfg.h" in place of "config.h" */
14 # include <winsock2.h> /* includes <windows.h> */
22 # ifdef HAVE_STRINGS_H
30 # include <sys/types.h>
31 # include <sys/stat.h>
34 # define strcasecmp stricmp
36 # define strncasecmp strnicmp
37 # define sleep(a) Sleep(a * 1000)
39 # define S_ISREG(m) (((m) & _S_IFMT) == _S_IFREG)
40 # define S_ISDIR(m) (((m) & _S_IFMT) == _S_IFDIR)
53 # define unlink remove
56 # define NO_UNIX_DOMAIN_SOCKETS 1
58 #if defined(HAVE_LONG_LONG) && defined(HAVE_OPEN64)
64 #if defined(HAVE_LONG_LONG) && defined(HAVE_STAT64) && defined(HAVE_STRUCT_STAT64)
67 # define Fstat fstat64
72 # define Lstat lstat64
82 #if defined(HAVE_LONG_LONG) && defined(HAVE_LSEEK64)
83 # define Lseek(a,b,c) lseek64(a, (longest_int) b, c)
84 #elif defined(HAVE_LONG_LONG) && defined(HAVE_LLSEEK)
86 # if defined(LINUX) && (LINUX <= 23000)
87 # define Lseek(a,b,c) lseek(a, (off_t) b, c)
89 # define Lseek(a,b,c) llseek(a, (longest_int) b, c)
92 # define Lseek(a,b,c) lseek(a, (off_t) b, c)
95 # define Lseek(a,b,c) lseek(a, (off_t) b, c)
102 * Definitions for the TELNET protocol.
104 #define IAC 255 /* interpret as command: */
105 #define DONT 254 /* you are not to use option */
106 #define DO 253 /* please, you use option */
107 #define WONT 252 /* I won't use option */
108 #define WILL 251 /* I will use option */
109 #define SB 250 /* interpret as subnegotiation */
110 #define GA 249 /* you may reverse the line */
111 #define EL 248 /* erase the current line */
112 #define EC 247 /* erase the current character */
113 #define AYT 246 /* are you there */
114 #define AO 245 /* abort output--but let prog finish */
115 #define IP 244 /* interrupt process--permanently */
116 #define BREAK 243 /* break */
117 #define DM 242 /* data mark--for connect. cleaning */
118 #define NOP 241 /* nop */
119 #define SE 240 /* end sub negotiation */
120 #define EOR 239 /* end of record (transparent mode) */
121 #define ABORT 238 /* Abort process */
122 #define SUSP 237 /* Suspend process */
123 #define xEOF 236 /* End of file: EOF is already used... */
125 #define SYNCH 242 /* for telfunc calls */
128 #include "sio.h" /* Library header. */
129 #ifndef NO_UNIX_DOMAIN_SOCKETS