3 * Copyright (c) 1996-2001 Mike Gleason, NCEMRSoft.
8 #if defined(HAVE_CONFIG_H)
13 # include <winsock2.h> /* Includes <windows.h> */
14 //# include <shlobj.h>
21 # 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 WinSleep
39 # define S_ISREG(m) (((m) & _S_IFMT) == _S_IFREG)
40 # define S_ISDIR(m) (((m) & _S_IFMT) == _S_IFDIR)
54 # define unlink remove
59 #if defined(HAVE_LONG_LONG) && defined(HAVE_OPEN64)
65 #if defined(HAVE_LONG_LONG) && defined(HAVE_STAT64) && defined(HAVE_STRUCT_STAT64)
68 # define Fstat fstat64
73 # define Lstat lstat64
83 #if defined(HAVE_LONG_LONG) && defined(HAVE_LSEEK64)
84 # define Lseek(a,b,c) lseek64(a, (longest_int) b, c)
85 #elif defined(HAVE_LONG_LONG) && defined(HAVE_LLSEEK)
87 # if defined(LINUX) && (LINUX <= 23000)
88 # define Lseek(a,b,c) lseek(a, (off_t) b, c)
90 # define Lseek(a,b,c) llseek(a, (longest_int) b, c)
93 # define Lseek(a,b,c) lseek(a, (off_t) b, c)
96 # define Lseek(a,b,c) lseek(a, (off_t) b, c)
103 * Definitions for the TELNET protocol.
105 #define IAC 255 /* interpret as command: */
106 #define DONT 254 /* you are not to use option */
107 #define DO 253 /* please, you use option */
108 #define WONT 252 /* I won't use option */
109 #define WILL 251 /* I will use option */
110 #define SB 250 /* interpret as subnegotiation */
111 #define GA 249 /* you may reverse the line */
112 #define EL 248 /* erase the current line */
113 #define EC 247 /* erase the current character */
114 #define AYT 246 /* are you there */
115 #define AO 245 /* abort output--but let prog finish */
116 #define IP 244 /* interrupt process--permanently */
117 #define BREAK 243 /* break */
118 #define DM 242 /* data mark--for connect. cleaning */
119 #define NOP 241 /* nop */
120 #define SE 240 /* end sub negotiation */
121 #define EOR 239 /* end of record (transparent mode) */
122 #define ABORT 238 /* Abort process */
123 #define SUSP 237 /* Suspend process */
124 #define xEOF 236 /* End of file: EOF is already used... */
126 #define SYNCH 242 /* for telfunc calls */
132 struct utimbuf
{ time_t actime
, modtime
; };
136 #ifdef HAVE_LIBSOCKS5
141 #if 1 /* %config2% -- set by configure script -- do not modify */
146 # define NO_SIGNALS 1
152 /* #undef NO_SIGNALS */
156 # include "sio/sio.h" /* Library header. */
159 #include "Strn/Strn.h" /* Library header. */
160 #include "ncftp.h" /* Library header. */