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>
35 #ifdef HAVE_SYS_TIMEB_H
36 # include <sys/timeb.h>
39 #ifdef TIME_WITH_SYS_TIME
40 # include <sys/time.h>
43 # ifdef HAVE_SYS_TIME_H
44 # include <sys/time.h>
50 #if !defined(HAVE_SYS_TIME_H) && !defined(_OS_NT)
52 long int tv_sec
; /* seconds */
53 long int tv_usec
; /* microseconds */
55 #endif /* !HAVE_SYS_TIME_H */
59 #elif defined(HAVE_SYS_UTIME_H)
60 # include <sys/utime.h>
63 #ifdef HAVE_SYS_WAIT_H
64 # include <sys/wait.h>
67 #ifdef HAVE_SYS_SELECT_H
68 # include <sys/select.h>
79 #if defined(__QNX__) && !defined(__QNXNTO__)
80 /* exec*() from <process.h> */
86 #if defined(HAVE_RX_H) && defined(HAVE_REGCOMP)
93 # define __attribute__(x)
103 # define geteuid() getuid()
106 # define getegid() getgid()
112 #include "textconf.h"
113 #include "../vfs/vfs.h"
115 extern char *home_dir
;
125 #define min(x, y) ((x) > (y) ? (y) : (x))
126 #define max(x, y) ((x) > (y) ? (x) : (y))
128 /* Just for keeping Your's brains from invention a proper size of the buffer :-) */
129 #define BUF_10K 10240L
134 #define BUF_LARGE BUF_1K
135 #define BUF_MEDIUM 512
136 #define BUF_SMALL 128
139 void refresh_screen (void *);
141 /* AIX compiler doesn't understand '\e' */
142 #define ESC_CHAR '\033'
143 #define ESC_STR "\033"
147 #endif /* !__MC_GLOBAL_H */