ReactOS 0.4.15-dev-8241-g63935f8
syshdrs.h
Go to the documentation of this file.
1/* syshdrs.h
2 *
3 * Copyright (c) 1996-2001 Mike Gleason, NCEMRSoft.
4 * All rights reserved.
5 *
6 */
7
8#if defined(HAVE_CONFIG_H)
9# include <config.h>
10#endif
11
12# include "wincfg.h"
13# include <winsock2.h> /* Includes <windows.h> */
14//# include <shlobj.h>
15# ifdef HAVE_UNISTD_H
16# include <unistd.h>
17# endif
18# include <errno.h>
19# include <stdio.h>
20# include <string.h>
21# ifdef HAVE_STRINGS_H
22# include <strings.h>
23# endif
24# include <stddef.h>
25# include <stdlib.h>
26# include <ctype.h>
27# include <stdarg.h>
28# include <time.h>
29# include <io.h>
30# include <sys/types.h>
31# include <sys/stat.h>
32# include <fcntl.h>
33# undef strcasecmp
34# define strcasecmp stricmp
35# undef strncasecmp
36# define strncasecmp strnicmp
37# define sleep WinSleep
38# ifndef S_ISREG
39# define S_ISREG(m) (((m) & _S_IFMT) == _S_IFREG)
40# define S_ISDIR(m) (((m) & _S_IFMT) == _S_IFDIR)
41# endif
42# ifndef open
43# define open _open
44# define write _write
45# define read _read
46# define close _close
47# define lseek _lseek
48# define stat _stat
49# define lstat _stat
50# define fstat _fstat
51# define dup _dup
52# endif
53# ifndef unlink
54# define unlink remove
55# endif
56# define NO_SIGNALS 1
57# define USE_SIO 1
58
59#if defined(HAVE_LONG_LONG) && defined(HAVE_OPEN64)
60# define Open open64
61#else
62# define Open open
63#endif
64
65#if defined(HAVE_LONG_LONG) && defined(HAVE_STAT64) && defined(HAVE_STRUCT_STAT64)
66# define Stat stat64
67# ifdef HAVE_FSTAT64
68# define Fstat fstat64
69# else
70# define Fstat fstat
71# endif
72# ifdef HAVE_LSTAT64
73# define Lstat lstat64
74# else
75# define Lstat lstat
76# endif
77#else
78# define Stat stat
79# define Fstat fstat
80# define Lstat lstat
81#endif
82
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)
86# if 1
87# if defined(LINUX) && (LINUX <= 23000)
88# define Lseek(a,b,c) lseek(a, (off_t) b, c)
89# else
90# define Lseek(a,b,c) llseek(a, (longest_int) b, c)
91# endif
92# else
93# define Lseek(a,b,c) lseek(a, (off_t) b, c)
94# endif
95#else
96# define Lseek(a,b,c) lseek(a, (off_t) b, c)
97#endif
98
99
100#ifndef IAC
101
102/*
103 * Definitions for the TELNET protocol.
104 */
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... */
125
126#define SYNCH 242 /* for telfunc calls */
127#endif
128
129#ifdef HAVE_UTIME_H
130# include <utime.h>
131#else
133#endif
134
135
136#ifdef HAVE_LIBSOCKS5
137# define SOCKS 5
138# include <socks.h>
139#endif
140
141#if 1 /* %config2% -- set by configure script -- do not modify */
142# ifndef USE_SIO
143# define USE_SIO 1
144# endif
145# ifndef NO_SIGNALS
146# define NO_SIGNALS 1
147# endif
148#else
149# ifndef USE_SIO
150# define USE_SIO 0
151# endif
152 /* #undef NO_SIGNALS */
153#endif
154
155#if USE_SIO
156# include "sio/sio.h" /* Library header. */
157#endif
158
159#include "Strn/Strn.h" /* Library header. */
160#include "ncftp.h" /* Library header. */
161
162#include "util.h"
163#include "ftp.h"
164
165/* eof */
void modtime(int argc, const char *argv[])
Definition: cmds.c:2232
__kernel_time_t time_t
Definition: linux.h:252
time_t actime
Definition: syshdrs.h:132