diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 00:47:26 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 00:47:26 +0000 |
commit | 96b619cc129afed52411b9fad3407037a1cb7207 (patch) | |
tree | e453a74cc9ae39fbfcb3ac55a347e880413e4a06 /OS/unsupported/os.h-SunOS4 | |
parent | Initial commit. (diff) | |
download | exim4-96b619cc129afed52411b9fad3407037a1cb7207.tar.xz exim4-96b619cc129afed52411b9fad3407037a1cb7207.zip |
Adding upstream version 4.92.upstream/4.92upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'OS/unsupported/os.h-SunOS4')
-rw-r--r-- | OS/unsupported/os.h-SunOS4 | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/OS/unsupported/os.h-SunOS4 b/OS/unsupported/os.h-SunOS4 new file mode 100644 index 0000000..6555620 --- /dev/null +++ b/OS/unsupported/os.h-SunOS4 @@ -0,0 +1,39 @@ +/* Exim: OS-specific C header file for SunOS4 */ + +#define LOAD_AVG_NEEDS_ROOT +#define HAVE_DEV_KMEM +#define LOAD_AVG_TYPE long +#define LOAD_AVG_SYMBOL "_avenrun" +#define KERNEL_PATH "/vmunix" + +#define HAVE_MMAP +#define HAVE_SYS_VFS_H + +#define F_FREESP O_TRUNC +#define EXIT_FAILURE 1 +#define EXIT_SUCCESS 0 +typedef struct flock flock_t; + +#define STRERROR_FROM_ERRLIST +#define memmove(a, b, c) bcopy(b, a, c) +#define strtoul(str, ptr, base) ((unsigned int)strtol((str),(ptr),(base))) + +extern char *strerror(int); +extern int sys_nerr; +extern char *sys_errlist[]; + +/* In ANSI C strtod() is defined in stdlib.h, but in SunOS4 it is defined in +floatingpoint.h which is called from math.h, which Exim doesn't include. */ + +extern double strtod(const char *, char **); + +/* SunOS4 seems to define getc, ungetc, feof and ferror as macros only, not +as functions. We need to have them as assignable functions. Setting this +flag causes this to get done in exim.h. */ + +#define FUDGE_GETC_AND_FRIENDS + +/* default is non-const */ +#define ICONV_ARG2_TYPE const char ** + +/* End */ |