Debian Codegraph @

runtime/platform/hpux.h

raw symbols SCIP
1 #ifndef _XOPEN_SOURCE_EXTENDED
2 #define _XOPEN_SOURCE_EXTENDED
3 #endif
4
5 #include <fenv.h>
6 #include <inttypes.h>
7
8 #include <unistd.h>
9
10 #include <dirent.h>
11 #include <fcntl.h>
12 #include <grp.h>
13 #include <math.h>
14 #include <netdb.h>
15 #include <netinet/in.h>
16 #include <netinet/tcp.h>
17 #include <poll.h>
18 #include <signal.h>
19 #include <sys/poll.h>
20 #include <sys/privgrp.h>
21 #include <sys/ptrace.h>
22 #include <sys/resource.h>
23 #include <sys/socket.h>
24 #include <sys/stat.h>
25 #include <sys/time.h>
26 #include <sys/times.h>
27 #include <sys/un.h>
28 #include <sys/utsname.h>
29 #include <syslog.h>
30 #include <termios.h>
31 #include <utime.h>
32
33 #include "platform/setenv.h"
34
35 #if defined(SO_TOE)
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
41 #else
42 #error "HP-UX 11.00 is the oldest supported version."
43 #endif
44
45 #undef UINTPTR_MAX
46 #define UINTPTR_MAX ULONG_MAX
47
48 #ifndef SIZE_MAX
49 #define SIZE_MAX ((size_t)SSIZE_MAX * 2 + 1)
50 #endif
51
52 #define HAS_FEROUND TRUE
53 #define HAS_MSG_DONTWAIT FALSE
54 #define HAS_REMAP FALSE
55 #define HAS_SHRINK_HEAP TRUE
56 #define HAS_SIGALTSTACK TRUE
57 #define NEEDS_SIGALTSTACK_EXEC FALSE
58 #define HAS_SPAWN FALSE
59 #define HAS_TIME_PROFILING TRUE
60
61 #define MLton_Platform_OS_host "hpux"
62
63 #define LOG_PERROR 0
64 #ifndef LOG_AUTHPRIV
65 #define LOG_AUTHPRIV LOG_AUTH
66 #endif
67
68 /* This should not conflict with existing flags. */
69 #define MSG_DONTWAIT 0x1000000
70
71 /* fesetround() doesn't seem to be returning 0 as expected. */
72 static int MLton_fesetround (int mode)
73 {
74 fesetround (mode);
75 return 0;
76 }
77 #define fesetround MLton_fesetround
78
79 typedef long suseconds_t; // type of timeval.tv_usec in sys/time.h
80
81 #ifdef __hppa__
82 /* These do not exist on HPPA, so we implement our own. */
83 float modff(float x, float *iptr);
84 float rintf(float x);
85 float frexpf(float x, int *exp);
86 float ldexpf(float x, int exp);
87 #endif /* __hppa__ */
88
89 #define PRIxPTR "lx"
90
91 /* These are incorrectly defined in the system headers. */
92 #undef PRIu32
93 #define PRIu32 "u"
94 #undef PRIx32
95 #define PRIx32 "x"
96 #undef PRId32
97 #define PRId32 "d"