1 #ifndef _XOPEN_SOURCE_EXTENDED
2 #define _XOPEN_SOURCE_EXTENDED
15 #include <netinet/in.h>
16 #include <netinet/tcp.h>
20 #include <sys/privgrp.h>
21 #include <sys/ptrace.h>
22 #include <sys/resource.h>
23 #include <sys/socket.h>
26 #include <sys/times.h>
28 #include <sys/utsname.h>
36 #define HPUX_VERSION 1123
37 #elif defined(PRIV_PSET)
38 #define HPUX_VERSION 1111
39 #elif defined(PRIV_SPUCTL)
40 #define HPUX_VERSION 1100
42 #error "HP-UX 11.00 is the oldest supported version."
46 #define UINTPTR_MAX ULONG_MAX
49 #define SIZE_MAX ((size_t)SSIZE_MAX * 2 + 1)
52 #define HAS_FEROUND TRUE
53 #define HAS_MSG_DONTWAIT FALSE
54 #define HAS_REMAP FALSE
55 #define HAS_SIGALTSTACK TRUE
56 #define NEEDS_SIGALTSTACK_EXEC FALSE
57 #define HAS_SPAWN FALSE
58 #define HAS_TIME_PROFILING TRUE
60 #define MLton_Platform_OS_host "hpux"
63 #define LOG_AUTHPRIV LOG_AUTH
65 /* This should not conflict with existing flags. */
66 #define MSG_DONTWAIT 0x1000000
68 /* fesetround() doesn't seem to be returning 0 as expected. */
69 static int MLton_fesetround (int mode
)
74 #define fesetround MLton_fesetround
76 typedef long suseconds_t
; // type of timeval.tv_usec in sys/time.h
79 /* These do not exist on HPPA, so we implement our own. */
80 float modff(float x
, float *iptr
);
82 float frexpf(float x
, int *exp
);
83 float ldexpf(float x
, int exp
);
88 /* These are incorrectly defined in the system headers. */