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. */
53 #ifdef HAVE_SYS_TIMEB_H
54 # include <sys/timeb.h>
57 #ifdef TIME_WITH_SYS_TIME
58 # include <sys/time.h>
61 # ifdef HAVE_SYS_TIME_H
62 # include <sys/time.h>
68 #if !defined(HAVE_SYS_TIME_H) && !defined(NATIVE_WIN32)
70 long int tv_sec
; /* seconds */
71 long int tv_usec
; /* microseconds */
73 #endif /* !HAVE_SYS_TIME_H */
77 #elif defined(HAVE_SYS_UTIME_H)
78 # include <sys/utime.h>
81 #ifdef HAVE_SYS_WAIT_H
82 # include <sys/wait.h>
85 #ifdef HAVE_SYS_SELECT_H
86 # include <sys/select.h>
97 #if defined(__QNX__) && !defined(__QNXNTO__)
98 /* exec*() from <process.h> */
104 #if defined(HAVE_RX_H) && defined(HAVE_REGCOMP)
111 # define __attribute__(x)
121 # define geteuid() getuid()
124 # define getegid() getgid()
130 #include "textconf.h"
131 #include "../vfs/vfs.h"
133 extern char *home_dir
;
143 #define min(x, y) ((x) > (y) ? (y) : (x))
144 #define max(x, y) ((x) > (y) ? (x) : (y))
146 /* Just for keeping Your's brains from invention a proper size of the buffer :-) */
147 #define BUF_10K 10240L
152 #define BUF_LARGE BUF_1K
153 #define BUF_MEDIUM 512
154 #define BUF_SMALL 128
157 void refresh_screen (void *);
159 /* AIX compiler doesn't understand '\e' */
160 #define ESC_CHAR '\033'
161 #define ESC_STR "\033"
163 #endif /* !__MC_GLOBAL_H */