Import Debian changes 20180207-1
[hcoop/debian/mlton.git] / runtime / platform / openbsd.h
1 #include <inttypes.h>
2 #include <stdint.h>
3
4 #include <unistd.h>
5
6 #include <dirent.h>
7 #include <fcntl.h>
8 #include <grp.h>
9 #include <netdb.h>
10 #include <netinet/in.h>
11 #include <netinet/tcp.h>
12 #include <poll.h>
13 #include <pwd.h>
14 #include <sys/ioctl.h>
15 #include <sys/mman.h>
16 #include <sys/param.h>
17 #include <sys/socket.h>
18 #include <sys/stat.h>
19 #include <sys/sysctl.h>
20 #include <sys/time.h>
21 #include <sys/resource.h> /* <sys/resource.h> might not #include <sys/time.h> */
22 #include <sys/times.h>
23 #include <sys/un.h>
24 #include <sys/utsname.h>
25 #include <sys/wait.h>
26 #include <syslog.h>
27 #include <termios.h>
28 #include <utime.h>
29
30 #define HAS_FEROUND FALSE
31 #define HAS_MSG_DONTWAIT TRUE
32 #define HAS_REMAP FALSE
33 #define HAS_SIGALTSTACK TRUE
34 #define NEEDS_SIGALTSTACK_EXEC FALSE
35 #define HAS_SPAWN FALSE
36 #define HAS_TIME_PROFILING TRUE
37
38 #define MLton_Platform_OS_host "openbsd"
39
40 /* #ifndef PRIu8 */
41 /* #define PRIu8 "hhu" */
42 /* #endif */
43 /* #ifndef PRIu16 */
44 /* #define PRIu16 "hu" */
45 /* #endif */
46 /* #ifndef PRIx16 */
47 /* #define PRIx16 "hx" */
48 /* #endif */
49 /* #ifndef PRId32 */
50 /* #define PRId32 "d" */
51 /* #endif */
52 /* #ifndef PRIu32 */
53 /* #define PRIu32 "u" */
54 /* #endif */
55 /* #ifndef PRIx32 */
56 /* #define PRIx32 "x" */
57 /* #endif */
58 /* typedef long long int intmax_t; */
59 /* #ifndef INTMAX_MIN */
60 /* #define INTMAX_MIN LLONG_MIN */
61 /* #endif */
62 /* typedef unsigned long long int uintmax_t; */
63 /* #ifndef PRIuMAX */
64 /* #define PRIuMAX "llu" */
65 /* #endif */
66 /* #ifndef PRIxMAX */
67 /* #define PRIxMAX "llx" */
68 /* #endif */
69
70 /* #ifndef PRIxPTR */
71 /* #define PRIxPTR "lx" */
72 /* #endif */
73
74 extern char **environ; /* for Posix_ProcEnv_environ */