9 #include <netinet/in.h>
10 #include <netinet/tcp.h>
11 #include <netinet/udp.h>
15 #include <sys/filio.h> /* For FIONBIO, FIONREAD. */
16 #include <sys/ioctl.h>
18 /* This is defined in <sys/mman.h>, bet we'll redefine it in export.h. */
20 #include <sys/param.h>
22 #include <sys/resource.h>
23 #include <sys/socket.h>
24 #include <sys/sockio.h> /* For SIOCATMARK. */
27 #include <sys/times.h>
29 #include <sys/utsname.h>
38 #include "float-math.h"
42 #define HAS_MSG_DONTWAIT TRUE
43 #define HAS_REMAP FALSE
44 #define HAS_SIGALTSTACK TRUE
45 #define NEEDS_SIGALTSTACK_EXEC FALSE
46 #define HAS_SPAWN FALSE
47 #define HAS_TIME_PROFILING TRUE
49 #define MLton_Platform_OS_host "solaris"
55 /* Solaris 8 and older do not define a value for UINTPTR_MAX, so
56 we redefine it with a value. */
59 #if defined(_LP64) || defined(_I32LPx)
60 #define UINTPTR_MAX UINT64_MAX
62 #define UINTPTR_MAX UINT32_MAX
67 /* ------------------------------------------------- */
69 /* ------------------------------------------------- */
71 extern char **environ
;
74 /* ------------------------------------------------- */
76 /* ------------------------------------------------- */
78 #define LOG_AUTHPRIV LOG_AUTH
82 /* ------------------------------------------------- */
84 /* ------------------------------------------------- */
89 #define fegetround MLton_fegetround
90 #define fesetround MLton_fesetround
92 int fesetround(int rounding_mode
);
95 #define FE_TONEAREST 0
98 #define FE_TOWARDZERO 3
100 #define HAS_FEROUND TRUE
102 /* These are not predefined on Solaris 8. */
104 #define NAN (__builtin_nanf (""))
108 #define INFINITY (__builtin_inff())