2 * This file should be included after all system includes and before
9 #include <stdlib.h> /* for free() and other usefull routins */
15 # include <direct.h> /* from mkdir() */
19 #ifdef HAVE_SYS_PARAM_H
20 # include <sys/param.h>
23 #ifdef HAVE_SYS_TIMEB_H
24 # include <sys/timeb.h>
27 #ifdef TIME_WITH_SYS_TIME
28 # include <sys/time.h>
31 # ifdef HAVE_SYS_TIME_H
32 # include <sys/time.h>
38 #if !defined(HAVE_SYS_TIME_H) && !defined(_OS_NT)
40 long int tv_sec
; /* seconds */
41 long int tv_usec
; /* microseconds */
43 #endif /* !HAVE_SYS_TIME_H */
47 #elif defined(HAVE_SYS_UTIME_H)
48 # include <sys/utime.h>
51 #ifdef HAVE_SYS_WAIT_H
52 # include <sys/wait.h>
55 #ifdef HAVE_SYS_SELECT_H
56 # include <sys/select.h>
67 #if defined(__QNX__) && !defined(__QNXNTO__)
68 /* exec*() from <process.h> */
75 # define __attribute__(x)
85 # define geteuid() getuid()
88 # define getegid() getgid()
98 extern char *home_dir
;
108 #define min(x, y) ((x) > (y) ? (y) : (x))
109 #define max(x, y) ((x) > (y) ? (x) : (y))
111 /* Just for keeping Your's brains from invention a proper size of the buffer :-) */
112 #define BUF_10K 10240L
117 #define BUF_LARGE BUF_1K
118 #define BUF_MEDIUM 512
119 #define BUF_SMALL 128
122 void refresh_screen (void *);
124 /* AIX compiler doesn't understand '\e' */
125 #define ESC_CHAR '\033'
126 #define ESC_STR "\033"
130 #endif /* !__MC_GLOBAL_H */