fix tls_cipher memory lifetime.
[exim.git] / src / OS / os.h-SunOS4
CommitLineData
61ec970d
PH
1/* Exim: OS-specific C header file for SunOS4 */
2
3#define LOAD_AVG_NEEDS_ROOT
4#define HAVE_DEV_KMEM
5#define LOAD_AVG_TYPE long
6#define LOAD_AVG_SYMBOL "_avenrun"
7#define KERNEL_PATH "/vmunix"
8
9#define HAVE_MMAP
10#define HAVE_SYS_VFS_H
11
12#define F_FREESP O_TRUNC
13#define EXIT_FAILURE 1
14#define EXIT_SUCCESS 0
15typedef struct flock flock_t;
16
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)))
20
21extern char *strerror(int);
22extern int sys_nerr;
23extern char *sys_errlist[];
24
25/* In ANSI C strtod() is defined in stdlib.h, but in SunOS4 it is defined in
26floatingpoint.h which is called from math.h, which Exim doesn't include. */
27
28extern double strtod(const char *, char **);
29
30/* SunOS4 seems to define getc, ungetc, feof and ferror as macros only, not
31as functions. We need to have them as assignable functions. Setting this
32flag causes this to get done in exim.h. */
33
34#define FUDGE_GETC_AND_FRIENDS
35
36/* End */