1 /* Exim: OS-specific C header file for SunOS4 */
3 #define LOAD_AVG_NEEDS_ROOT
5 #define LOAD_AVG_TYPE long
6 #define LOAD_AVG_SYMBOL "_avenrun"
7 #define KERNEL_PATH "/vmunix"
10 #define HAVE_SYS_VFS_H
12 #define F_FREESP O_TRUNC
13 #define EXIT_FAILURE 1
14 #define EXIT_SUCCESS 0
15 typedef struct flock flock_t;
17 #define STRERROR_FROM_ERRLIST
18 #define memmove(a, b, c) bcopy(b, a, c)
19 #define strtoul(str, ptr, base) ((unsigned int)strtol((str),(ptr),(base)))
21 extern char *strerror(int);
23 extern char *sys_errlist[];
25 /* In ANSI C strtod() is defined in stdlib.h, but in SunOS4 it is defined in
26 floatingpoint.h which is called from math.h, which Exim doesn't include. */
28 extern double strtod(const char *, char **);
30 /* SunOS4 seems to define getc, ungetc, feof and ferror as macros only, not
31 as functions. We need to have them as assignable functions. Setting this
32 flag causes this to get done in exim.h. */
34 #define FUDGE_GETC_AND_FRIENDS
36 /* default is non-const */
37 #define ICONV_ARG2_TYPE const char **