2 * This file should be included after all system includes and before
9 #include <stdlib.h> /* for free() and other usefull routins */
11 #if defined(STDC_HEADERS) || defined(HAVE_STRING_H)
13 /* An ANSI string.h and pre-ANSI memory.h might conflict */
14 # if !defined(STDC_HEADERS) && defined(HAVE_MEMORY_H)
16 # endif /* !STDC_HEADERS & HAVE_MEMORY_H */
18 #else /* !STDC_HEADERS & !HAVE_STRING_H */
20 /* memory and strings.h conflict on other systems */
21 #endif /* !STDC_HEADERS & !HAVE_STRING_H */
27 # include <direct.h> /* from mkdir() */
31 #ifdef HAVE_SYS_PARAM_H
32 # include <sys/param.h>
39 /* The O_BINARY definition was taken from gettext */
40 #if !defined O_BINARY && defined _O_BINARY
41 /* For MSC-compatible compilers. */
42 # define O_BINARY _O_BINARY
45 /* BeOS 5 has O_BINARY, but is has no effect. */
48 /* On reasonable systems, binary I/O is the default. */
54 /* Replacement for O_NONBLOCK */
56 #ifdef O_NDELAY /* SYSV */
57 #define O_NONBLOCK O_NDELAY
59 #define O_NONBLOCK FNDELAY
60 #endif /* !O_NDELAY */
61 #endif /* !O_NONBLOCK */
64 #ifdef HAVE_SYS_TIMEB_H
65 # include <sys/timeb.h>
68 #ifdef TIME_WITH_SYS_TIME
69 # include <sys/time.h>
72 # ifdef HAVE_SYS_TIME_H
73 # include <sys/time.h>
79 #if !defined(HAVE_SYS_TIME_H) && !defined(NATIVE_WIN32)
81 long int tv_sec
; /* seconds */
82 long int tv_usec
; /* microseconds */
84 #endif /* !HAVE_SYS_TIME_H */
88 #elif defined(HAVE_SYS_UTIME_H)
89 # include <sys/utime.h>
92 #ifdef HAVE_SYS_WAIT_H
93 # include <sys/wait.h>
96 #ifdef HAVE_SYS_SELECT_H
97 # include <sys/select.h>
108 #if defined(__QNX__) && !defined(__QNXNTO__)
109 /* exec*() from <process.h> */
115 #if defined(HAVE_RX_H) && defined(HAVE_REGCOMP)
122 # define __attribute__(x)
132 # define geteuid() getuid()
135 # define getegid() getgid()
141 #include "textconf.h"
142 #include "../vfs/vfs.h"
144 extern char *home_dir
;
154 #define min(x, y) ((x) > (y) ? (y) : (x))
155 #define max(x, y) ((x) > (y) ? (x) : (y))
157 /* Just for keeping Your's brains from invention a proper size of the buffer :-) */
158 #define BUF_10K 10240L
163 #define BUF_LARGE BUF_1K
164 #define BUF_MEDIUM 512
165 #define BUF_SMALL 128
168 void refresh_screen (void *);
170 /* AIX compiler doesn't understand '\e' */
171 #define ESC_CHAR '\033'
172 #define ESC_STR "\033"
174 #endif /* !__MC_GLOBAL_H */