]> git.proxmox.com Git - wasi-libc.git/blame - expected/wasm32-wasi-threads/predefined-macros.txt
threads: change `wasm32-wasi-pthread` to `wasm32-wasi-threads` (#381)
[wasi-libc.git] / expected / wasm32-wasi-threads / predefined-macros.txt
CommitLineData
320054e8
DG
1#define ABDAY_1 0x20000
2#define ABDAY_2 0x20001
3#define ABDAY_3 0x20002
4#define ABDAY_4 0x20003
5#define ABDAY_5 0x20004
6#define ABDAY_6 0x20005
7#define ABDAY_7 0x20006
8#define ABMON_1 0x2000E
9#define ABMON_10 0x20017
10#define ABMON_11 0x20018
11#define ABMON_12 0x20019
12#define ABMON_2 0x2000F
13#define ABMON_3 0x20010
14#define ABMON_4 0x20011
15#define ABMON_5 0x20012
16#define ABMON_6 0x20013
17#define ABMON_7 0x20014
18#define ABMON_8 0x20015
19#define ABMON_9 0x20016
20#define ABORT 238
21#define ACK 04
22#define ADD ns_uop_add
23#define ADJ_ESTERROR 0x0008
24#define ADJ_FREQUENCY 0x0002
25#define ADJ_MAXERROR 0x0004
26#define ADJ_MICRO 0x1000
27#define ADJ_NANO 0x2000
28#define ADJ_OFFSET 0x0001
29#define ADJ_OFFSET_SINGLESHOT 0x8001
30#define ADJ_OFFSET_SS_READ 0xa001
31#define ADJ_SETOFFSET 0x0100
32#define ADJ_STATUS 0x0010
33#define ADJ_TAI 0x0080
34#define ADJ_TICK 0x4000
35#define ADJ_TIMECONST 0x0020
36#define AF_INET 1
37#define AF_INET6 2
38#define AF_UNIX 3
39#define AF_UNSPEC 0
320054e8
DG
40#define ALT_DIGITS 0x2002F
41#define AM_STR 0x20026
42#define ANYMARK 0x01
43#define AO 245
44#define AREGTYPE '\0'
45#define ARFMAG "`\n"
46#define ARG_MAX 131072
47#define ARMAG "!<arch>\n"
320054e8 48#define AT_EACCESS (0x0)
f2e779e5 49#define AT_FDCWD (-2)
320054e8
DG
50#define AT_REMOVEDIR (0x4)
51#define AT_SYMLINK_FOLLOW (0x2)
52#define AT_SYMLINK_NOFOLLOW (0x1)
53#define AUTHTYPE_CNT 5
54#define AUTHTYPE_KERBEROS_V4 1
55#define AUTHTYPE_KERBEROS_V5 2
56#define AUTHTYPE_MINK 4
57#define AUTHTYPE_NAME(x) authtype_names[x]
58#define AUTHTYPE_NAME_OK(x) ((unsigned int)(x) < AUTHTYPE_CNT)
59#define AUTHTYPE_NULL 0
60#define AUTHTYPE_SPX 3
61#define AUTHTYPE_TEST 99
62#define AUTH_HOW_MASK 2
63#define AUTH_HOW_MUTUAL 2
64#define AUTH_HOW_ONE_WAY 0
65#define AUTH_WHO_CLIENT 0
66#define AUTH_WHO_MASK 1
67#define AUTH_WHO_SERVER 1
68#define AYT 246
320054e8
DG
69#define BIG_ENDIAN __BIG_ENDIAN
70#define BITSPERBYTE CHAR_BIT
71#define BLKTYPE '4'
72#define BLK_BYTECOUNT 2
73#define BLK_EOF 0x40
74#define BLK_EOR 0x80
75#define BLK_ERRORS 0x20
76#define BLK_RESTART 0x10
77#define BREAK 243
320054e8 78#define BUFSIZ 1024
320054e8
DG
79#define BYTE_ORDER __BYTE_ORDER
80#define CANBSIZ 255
320054e8
DG
81#define CBRK CEOL
82#define CDISCARD CTRL('o')
83#define CDSUSP CTRL('y')
84#define CEOF CTRL('d')
575e1579 85#define CEOL '\0'
320054e8
DG
86#define CEOT CEOF
87#define CERASE 0177
88#define CFLUSH CDISCARD
89#define CHARBITS (sizeof(char) * 8)
90#define CHARCLASS_NAME_MAX 14
91#define CHAR_BIT 8
92#define CHAR_MAX 127
93#define CHAR_MIN (-128)
94#define CHRTYPE '3'
320054e8
DG
95#define CINTR CTRL('c')
96#define CKILL CTRL('u')
320054e8 97#define CLNEXT CTRL('v')
1bdb356b 98#define CLOCKS_PER_SEC ((clock_t)1000000000)
320054e8 99#define CLOCK_MONOTONIC (&_CLOCK_MONOTONIC)
320054e8 100#define CLOCK_REALTIME (&_CLOCK_REALTIME)
320054e8
DG
101#define CMIN 1
102#define CMPLX(x,y) __CMPLX(x, y, double)
103#define CMPLXF(x,y) __CMPLX(x, y, float)
104#define CMPLXL(x,y) __CMPLX(x, y, long double)
320054e8
DG
105#define CODESET 14
106#define COLL_WEIGHTS_MAX 2
107#define COMPLETE 2
108#define CONTINUE 3
109#define CONTTYPE '7'
110#define CQUIT 034
320054e8
DG
111#define CREPRINT CTRL('r')
112#define CRNCYSTR 0x4000F
113#define CRPRNT CREPRINT
320054e8 114#define CSTART CTRL('q')
575e1579 115#define CSTATUS '\0'
320054e8 116#define CSTOP CTRL('s')
320054e8
DG
117#define CSUSP CTRL('z')
118#define CTIME 0
575e1579 119#define CTRL(x) ((x)&037)
320054e8
DG
120#define CWERASE CTRL('w')
121#define C_ANY ns_c_any
122#define C_CHAOS ns_c_chaos
123#define C_HS ns_c_hs
124#define C_IN ns_c_in
125#define C_IRGRP 000040
126#define C_IROTH 000004
127#define C_IRUSR 000400
128#define C_ISBLK 060000
129#define C_ISCHR 020000
130#define C_ISCTG 0110000
131#define C_ISDIR 040000
132#define C_ISFIFO 010000
133#define C_ISGID 002000
134#define C_ISLNK 0120000
135#define C_ISREG 0100000
136#define C_ISSOCK 0140000
137#define C_ISUID 004000
138#define C_ISVTX 001000
139#define C_IWGRP 000020
140#define C_IWOTH 000002
141#define C_IWUSR 000200
142#define C_IXGRP 000010
143#define C_IXOTH 000001
144#define C_IXUSR 000100
145#define C_NONE ns_c_none
146#define DATA 03
147#define DAY_1 0x20007
148#define DAY_2 0x20008
149#define DAY_3 0x20009
150#define DAY_4 0x2000A
151#define DAY_5 0x2000B
152#define DAY_6 0x2000C
153#define DAY_7 0x2000D
154#define DBL_DECIMAL_DIG 17
155#define DBL_DIG 15
156#define DBL_EPSILON 2.22044604925031308085e-16
157#define DBL_HAS_SUBNORM 1
158#define DBL_MANT_DIG 53
159#define DBL_MAX 1.79769313486231570815e+308
160#define DBL_MAX_10_EXP 308
161#define DBL_MAX_EXP 1024
162#define DBL_MIN 2.22507385850720138309e-308
163#define DBL_MIN_10_EXP (-307)
164#define DBL_MIN_EXP (-1021)
165#define DBL_TRUE_MIN 4.94065645841246544177e-324
166#define DECIMAL_DIG 36
167#define DELAYTIMER_MAX 0x7fffffff
168#define DELETE ns_uop_delete
169#define DEV_BSIZE 512
170#define DIRTYPE '5'
171#define DM 242
172#define DMAXEXP DBL_MAX_EXP
173#define DMINEXP DBL_MIN_EXP
174#define DO 253
175#define DONT 254
176#define DOUBLEBITS (sizeof(double) * 8)
9c58e6c2 177#define DTTOIF(x) (__wasilibc_dttoif(x))
320054e8
DG
178#define DT_BLK __WASI_FILETYPE_BLOCK_DEVICE
179#define DT_CHR __WASI_FILETYPE_CHARACTER_DEVICE
180#define DT_DIR __WASI_FILETYPE_DIRECTORY
181#define DT_FIFO __WASI_FILETYPE_SOCKET_STREAM
182#define DT_LNK __WASI_FILETYPE_SYMBOLIC_LINK
183#define DT_REG __WASI_FILETYPE_REGULAR_FILE
184#define DT_UNKNOWN __WASI_FILETYPE_UNKNOWN
185#define D_FMT 0x20029
186#define D_T_FMT 0x20028
446cb3f1
DG
187#define E2BIG __WASI_ERRNO_2BIG
188#define EACCES __WASI_ERRNO_ACCES
320054e8 189#define EACCESS 2
446cb3f1
DG
190#define EADDRINUSE __WASI_ERRNO_ADDRINUSE
191#define EADDRNOTAVAIL __WASI_ERRNO_ADDRNOTAVAIL
192#define EAFNOSUPPORT __WASI_ERRNO_AFNOSUPPORT
193#define EAGAIN __WASI_ERRNO_AGAIN
194#define EALREADY __WASI_ERRNO_ALREADY
195#define EBADF __WASI_ERRNO_BADF
320054e8 196#define EBADID 5
446cb3f1 197#define EBADMSG __WASI_ERRNO_BADMSG
320054e8 198#define EBADOP 4
446cb3f1 199#define EBUSY __WASI_ERRNO_BUSY
320054e8 200#define EC 247
446cb3f1
DG
201#define ECANCELED __WASI_ERRNO_CANCELED
202#define ECHILD __WASI_ERRNO_CHILD
203#define ECONNABORTED __WASI_ERRNO_CONNABORTED
204#define ECONNREFUSED __WASI_ERRNO_CONNREFUSED
205#define ECONNRESET __WASI_ERRNO_CONNRESET
206#define EDEADLK __WASI_ERRNO_DEADLK
207#define EDESTADDRREQ __WASI_ERRNO_DESTADDRREQ
208#define EDOM __WASI_ERRNO_DOM
209#define EDQUOT __WASI_ERRNO_DQUOT
210#define EEXIST __WASI_ERRNO_EXIST
320054e8 211#define EEXISTS 6
446cb3f1
DG
212#define EFAULT __WASI_ERRNO_FAULT
213#define EFBIG __WASI_ERRNO_FBIG
320054e8
DG
214#define EFD_CLOEXEC O_CLOEXEC
215#define EFD_NONBLOCK O_NONBLOCK
216#define EFD_SEMAPHORE 1
446cb3f1
DG
217#define EHOSTUNREACH __WASI_ERRNO_HOSTUNREACH
218#define EIDRM __WASI_ERRNO_IDRM
219#define EILSEQ __WASI_ERRNO_ILSEQ
220#define EINPROGRESS __WASI_ERRNO_INPROGRESS
221#define EINTR __WASI_ERRNO_INTR
222#define EINVAL __WASI_ERRNO_INVAL
223#define EIO __WASI_ERRNO_IO
224#define EISCONN __WASI_ERRNO_ISCONN
225#define EISDIR __WASI_ERRNO_ISDIR
320054e8 226#define EL 248
446cb3f1
DG
227#define ELOOP __WASI_ERRNO_LOOP
228#define EMFILE __WASI_ERRNO_MFILE
229#define EMLINK __WASI_ERRNO_MLINK
230#define EMSGSIZE __WASI_ERRNO_MSGSIZE
231#define EMULTIHOP __WASI_ERRNO_MULTIHOP
232#define ENAMETOOLONG __WASI_ERRNO_NAMETOOLONG
320054e8
DG
233#define ENCRYPT_CNT 9
234#define ENCRYPT_DEC_KEYID 8
235#define ENCRYPT_ENC_KEYID 7
236#define ENCRYPT_END 4
237#define ENCRYPT_IS 0
238#define ENCRYPT_NAME(x) encrypt_names[x]
239#define ENCRYPT_NAME_OK(x) ((unsigned int)(x) < ENCRYPT_CNT)
240#define ENCRYPT_REPLY 2
241#define ENCRYPT_REQEND 6
242#define ENCRYPT_REQSTART 5
243#define ENCRYPT_START 3
244#define ENCRYPT_SUPPORT 1
245#define ENCTYPE_ANY 0
246#define ENCTYPE_CNT 3
247#define ENCTYPE_DES_CFB64 1
248#define ENCTYPE_DES_OFB64 2
249#define ENCTYPE_NAME(x) enctype_names[x]
250#define ENCTYPE_NAME_OK(x) ((unsigned int)(x) < ENCTYPE_CNT)
446cb3f1
DG
251#define ENETDOWN __WASI_ERRNO_NETDOWN
252#define ENETRESET __WASI_ERRNO_NETRESET
253#define ENETUNREACH __WASI_ERRNO_NETUNREACH
254#define ENFILE __WASI_ERRNO_NFILE
255#define ENOBUFS __WASI_ERRNO_NOBUFS
256#define ENODEV __WASI_ERRNO_NODEV
257#define ENOENT __WASI_ERRNO_NOENT
258#define ENOEXEC __WASI_ERRNO_NOEXEC
259#define ENOLCK __WASI_ERRNO_NOLCK
260#define ENOLINK __WASI_ERRNO_NOLINK
261#define ENOMEM __WASI_ERRNO_NOMEM
262#define ENOMSG __WASI_ERRNO_NOMSG
263#define ENOPROTOOPT __WASI_ERRNO_NOPROTOOPT
320054e8 264#define ENOSPACE 3
446cb3f1
DG
265#define ENOSPC __WASI_ERRNO_NOSPC
266#define ENOSYS __WASI_ERRNO_NOSYS
267#define ENOTCAPABLE __WASI_ERRNO_NOTCAPABLE
268#define ENOTCONN __WASI_ERRNO_NOTCONN
269#define ENOTDIR __WASI_ERRNO_NOTDIR
270#define ENOTEMPTY __WASI_ERRNO_NOTEMPTY
320054e8 271#define ENOTFOUND 1
446cb3f1
DG
272#define ENOTRECOVERABLE __WASI_ERRNO_NOTRECOVERABLE
273#define ENOTSOCK __WASI_ERRNO_NOTSOCK
274#define ENOTSUP __WASI_ERRNO_NOTSUP
275#define ENOTTY __WASI_ERRNO_NOTTY
320054e8
DG
276#define ENOUSER 7
277#define ENV_ESC 2
278#define ENV_USERVAR 3
446cb3f1 279#define ENXIO __WASI_ERRNO_NXIO
320054e8
DG
280#define EOF (-1)
281#define EOPNOTSUPP ENOTSUP
282#define EOR 239
446cb3f1
DG
283#define EOVERFLOW __WASI_ERRNO_OVERFLOW
284#define EOWNERDEAD __WASI_ERRNO_OWNERDEAD
285#define EPERM __WASI_ERRNO_PERM
286#define EPIPE __WASI_ERRNO_PIPE
287#define EPROTO __WASI_ERRNO_PROTO
288#define EPROTONOSUPPORT __WASI_ERRNO_PROTONOSUPPORT
289#define EPROTOTYPE __WASI_ERRNO_PROTOTYPE
320054e8 290#define ERA 0x2002C
446cb3f1 291#define ERANGE __WASI_ERRNO_RANGE
320054e8
DG
292#define ERA_D_FMT 0x2002E
293#define ERA_D_T_FMT 0x20030
294#define ERA_T_FMT 0x20031
446cb3f1 295#define EROFS __WASI_ERRNO_ROFS
320054e8 296#define ERROR 05
446cb3f1
DG
297#define ESPIPE __WASI_ERRNO_SPIPE
298#define ESRCH __WASI_ERRNO_SRCH
299#define ESTALE __WASI_ERRNO_STALE
300#define ETIMEDOUT __WASI_ERRNO_TIMEDOUT
301#define ETXTBSY __WASI_ERRNO_TXTBSY
320054e8
DG
302#define EUNDEF 0
303#define EWOULDBLOCK EAGAIN
446cb3f1 304#define EXDEV __WASI_ERRNO_XDEV
320054e8
DG
305#define EXIT_FAILURE 1
306#define EXIT_SUCCESS 0
320054e8
DG
307#define EX_CANTCREAT 73
308#define EX_CONFIG 78
309#define EX_DATAERR 65
310#define EX_IOERR 74
311#define EX_NOHOST 68
312#define EX_NOINPUT 66
313#define EX_NOPERM 77
314#define EX_NOUSER 67
315#define EX_OK 0
316#define EX_OSERR 71
317#define EX_OSFILE 72
318#define EX_PROTOCOL 76
319#define EX_SOFTWARE 70
320#define EX_TEMPFAIL 75
321#define EX_UNAVAILABLE 69
322#define EX_USAGE 64
323#define EX__BASE 64
324#define EX__MAX 78
325#define FD_CLOEXEC (1)
1cbedc6d
DG
326#define FD_CLR(fd,set) (FD_CLR((fd), (set)))
327#define FD_COPY(from,to) (FD_COPY((from), (to)))
328#define FD_ISSET(fd,set) (FD_ISSET((fd), (set)))
329#define FD_SET(fd,set) (FD_SET((fd), (set)))
320054e8 330#define FD_SETSIZE 1024
1cbedc6d 331#define FD_ZERO(set) (FD_ZERO((set)))
320054e8
DG
332#define FE_ALL_EXCEPT 0
333#define FE_DFL_ENV ((const fenv_t *) -1)
334#define FE_TONEAREST 0
320054e8
DG
335#define FIFOTYPE '6'
336#define FILENAME_MAX 4096
337#define FILESIZEBITS 64
338#define FIONBIO 2
339#define FIONREAD 1
340#define FLOATBITS (sizeof(float) * 8)
341#define FLT_DECIMAL_DIG 9
342#define FLT_DIG 6
343#define FLT_EPSILON 1.1920928955078125e-07F
344#define FLT_EVAL_METHOD 0
345#define FLT_HAS_SUBNORM 1
346#define FLT_MANT_DIG 24
347#define FLT_MAX 3.40282346638528859812e+38F
348#define FLT_MAX_10_EXP 38
349#define FLT_MAX_EXP 128
350#define FLT_MIN 1.17549435082228750797e-38F
351#define FLT_MIN_10_EXP (-37)
352#define FLT_MIN_EXP (-125)
353#define FLT_RADIX 2
354#define FLT_ROUNDS (__builtin_flt_rounds())
355#define FLT_TRUE_MIN 1.40129846432481707092e-45F
356#define FLUSHBAND 0x04
320054e8
DG
357#define FLUSHR 0x01
358#define FLUSHRW 0x03
359#define FLUSHW 0x02
360#define FMAXEXP FLT_MAX_EXP
361#define FMINEXP FLT_MIN_EXP
362#define FMNAMESZ 8
363#define FNM_CASEFOLD 0x10
364#define FNM_FILE_NAME FNM_PATHNAME
365#define FNM_LEADING_DIR 0x8
366#define FNM_NOESCAPE 0x2
367#define FNM_NOMATCH 1
368#define FNM_NOSYS (-1)
369#define FNM_PATHNAME 0x1
370#define FNM_PERIOD 0x4
371#define FOPEN_MAX 1000
372#define FORMERR ns_r_formerr
373#define FORM_C 3
374#define FORM_N 1
375#define FORM_T 2
320054e8
DG
376#define FP_ILOGB0 FP_ILOGBNAN
377#define FP_ILOGBNAN (-1-0x7fffffff)
378#define FP_INFINITE 1
379#define FP_NAN 0
380#define FP_NORMAL 4
381#define FP_SUBNORMAL 3
382#define FP_ZERO 2
383#define FSETLOCKING_BYCALLER 2
384#define FSETLOCKING_INTERNAL 1
385#define FSETLOCKING_QUERY 0
386#define FTW_CHDIR 4
387#define FTW_D 2
388#define FTW_DEPTH 8
389#define FTW_DNR 3
390#define FTW_DP 6
391#define FTW_F 1
392#define FTW_MOUNT 2
393#define FTW_NS 4
394#define FTW_PHYS 1
395#define FTW_SL 5
396#define FTW_SLN 7
397#define F_GETFD (1)
398#define F_GETFL (3)
399#define F_LOCK 1
215adc8a 400#define F_OK (0)
320054e8
DG
401#define F_SETFD (2)
402#define F_SETFL (4)
403#define F_TEST 3
404#define F_TLOCK 2
405#define F_ULOCK 0
406#define GA 249
407#define GETLONG NS_GET32
408#define GETSHORT NS_GET16
409#define GLOB_ABORTED 2
410#define GLOB_APPEND 0x20
411#define GLOB_DOOFFS 0x08
412#define GLOB_ERR 0x01
413#define GLOB_MARK 0x02
414#define GLOB_NOCHECK 0x10
415#define GLOB_NOESCAPE 0x40
416#define GLOB_NOMATCH 3
417#define GLOB_NOSORT 0x04
418#define GLOB_NOSPACE 1
419#define GLOB_NOSYS 4
420#define GLOB_PERIOD 0x80
320054e8
DG
421#define GROUP_FILTER_SIZE(numsrc) (sizeof(struct group_filter) - sizeof(struct sockaddr_storage) + (numsrc) * sizeof(struct sockaddr_storage))
422#define HFIXEDSZ NS_HFIXEDSZ
423#define HIBITL MINLONG
424#define HIBITS MINSHORT
425#define HOST_NAME_MAX 255
426#define HUGE 3.40282346638528859812e+38F
427#define HUGE_VAL ((double)INFINITY)
428#define HUGE_VALF INFINITY
429#define HUGE_VALL ((long double)INFINITY)
320054e8
DG
430#define I _Complex_I
431#define IAC 255
320054e8
DG
432#define ICMP6_DST_UNREACH 1
433#define ICMP6_DST_UNREACH_ADDR 3
434#define ICMP6_DST_UNREACH_ADMIN 1
435#define ICMP6_DST_UNREACH_BEYONDSCOPE 2
436#define ICMP6_DST_UNREACH_NOPORT 4
437#define ICMP6_DST_UNREACH_NOROUTE 0
438#define ICMP6_ECHO_REPLY 129
439#define ICMP6_ECHO_REQUEST 128
440#define ICMP6_FILTER 1
441#define ICMP6_FILTER_BLOCK 1
442#define ICMP6_FILTER_BLOCKOTHERS 3
443#define ICMP6_FILTER_PASS 2
444#define ICMP6_FILTER_PASSONLY 4
445#define ICMP6_FILTER_SETBLOCK(type,filterp) ((((filterp)->icmp6_filt[(type) >> 5]) |= (1 << ((type) & 31))))
446#define ICMP6_FILTER_SETBLOCKALL(filterp) memset (filterp, 0xFF, sizeof (struct icmp6_filter));
447#define ICMP6_FILTER_SETPASS(type,filterp) ((((filterp)->icmp6_filt[(type) >> 5]) &= ~(1 << ((type) & 31))))
448#define ICMP6_FILTER_SETPASSALL(filterp) memset (filterp, 0, sizeof (struct icmp6_filter));
449#define ICMP6_FILTER_WILLBLOCK(type,filterp) ((((filterp)->icmp6_filt[(type) >> 5]) & (1 << ((type) & 31))) != 0)
450#define ICMP6_FILTER_WILLPASS(type,filterp) ((((filterp)->icmp6_filt[(type) >> 5]) & (1 << ((type) & 31))) == 0)
451#define ICMP6_INFOMSG_MASK 0x80
452#define ICMP6_PACKET_TOO_BIG 2
453#define ICMP6_PARAMPROB_HEADER 0
454#define ICMP6_PARAMPROB_NEXTHEADER 1
455#define ICMP6_PARAMPROB_OPTION 2
456#define ICMP6_PARAM_PROB 4
457#define ICMP6_ROUTER_RENUMBERING 138
458#define ICMP6_RR_FLAGS_FORCEAPPLY 0x20
459#define ICMP6_RR_FLAGS_PREVDONE 0x08
460#define ICMP6_RR_FLAGS_REQRESULT 0x40
461#define ICMP6_RR_FLAGS_SPECSITE 0x10
462#define ICMP6_RR_FLAGS_TEST 0x80
463#define ICMP6_RR_PCOUSE_FLAGS_DECRPLTIME 0x40
464#define ICMP6_RR_PCOUSE_FLAGS_DECRVLTIME 0x80
465#define ICMP6_RR_PCOUSE_RAFLAGS_AUTO 0x10
466#define ICMP6_RR_PCOUSE_RAFLAGS_ONLINK 0x20
467#define ICMP6_RR_RESULT_FLAGS_FORBIDDEN 0x0100
468#define ICMP6_RR_RESULT_FLAGS_OOB 0x0200
469#define ICMP6_TIME_EXCEEDED 3
470#define ICMP6_TIME_EXCEED_REASSEMBLY 1
471#define ICMP6_TIME_EXCEED_TRANSIT 0
472#define ICMP_ADDRESS 17
473#define ICMP_ADDRESSREPLY 18
474#define ICMP_ADVLEN(p) (8 + ((p)->icmp_ip.ip_hl << 2) + 8)
475#define ICMP_ADVLENMIN (8 + sizeof (struct ip) + 8)
476#define ICMP_DEST_UNREACH 3
477#define ICMP_ECHO 8
478#define ICMP_ECHOREPLY 0
479#define ICMP_EXC_FRAGTIME 1
480#define ICMP_EXC_TTL 0
481#define ICMP_FRAG_NEEDED 4
482#define ICMP_HOST_ANO 10
483#define ICMP_HOST_ISOLATED 8
484#define ICMP_HOST_UNKNOWN 7
485#define ICMP_HOST_UNREACH 1
486#define ICMP_HOST_UNR_TOS 12
487#define ICMP_INFOTYPE(type) ((type) == ICMP_ECHOREPLY || (type) == ICMP_ECHO || (type) == ICMP_ROUTERADVERT || (type) == ICMP_ROUTERSOLICIT || (type) == ICMP_TSTAMP || (type) == ICMP_TSTAMPREPLY || (type) == ICMP_IREQ || (type) == ICMP_IREQREPLY || (type) == ICMP_MASKREQ || (type) == ICMP_MASKREPLY)
488#define ICMP_INFO_REPLY 16
489#define ICMP_INFO_REQUEST 15
490#define ICMP_IREQ 15
491#define ICMP_IREQREPLY 16
492#define ICMP_MASKLEN 12
493#define ICMP_MASKREPLY 18
494#define ICMP_MASKREQ 17
495#define ICMP_MAXTYPE 18
496#define ICMP_MINLEN 8
497#define ICMP_NET_ANO 9
498#define ICMP_NET_UNKNOWN 6
499#define ICMP_NET_UNREACH 0
500#define ICMP_NET_UNR_TOS 11
501#define ICMP_PARAMETERPROB 12
502#define ICMP_PARAMPROB 12
503#define ICMP_PARAMPROB_OPTABSENT 1
504#define ICMP_PKT_FILTERED 13
505#define ICMP_PORT_UNREACH 3
506#define ICMP_PREC_CUTOFF 15
507#define ICMP_PREC_VIOLATION 14
508#define ICMP_PROT_UNREACH 2
509#define ICMP_REDIRECT 5
510#define ICMP_REDIRECT_HOST 1
511#define ICMP_REDIRECT_NET 0
512#define ICMP_REDIRECT_TOSHOST 3
513#define ICMP_REDIRECT_TOSNET 2
514#define ICMP_REDIR_HOST 1
515#define ICMP_REDIR_HOSTTOS 3
516#define ICMP_REDIR_NET 0
517#define ICMP_REDIR_NETTOS 2
518#define ICMP_ROUTERADVERT 9
519#define ICMP_ROUTERSOLICIT 10
520#define ICMP_SOURCEQUENCH 4
521#define ICMP_SOURCE_QUENCH 4
522#define ICMP_SR_FAILED 5
523#define ICMP_TIMESTAMP 13
524#define ICMP_TIMESTAMPREPLY 14
525#define ICMP_TIME_EXCEEDED 11
526#define ICMP_TIMXCEED 11
527#define ICMP_TIMXCEED_INTRANS 0
528#define ICMP_TIMXCEED_REASS 1
529#define ICMP_TSLEN (8 + 3 * sizeof (n_time))
530#define ICMP_TSTAMP 13
531#define ICMP_TSTAMPREPLY 14
532#define ICMP_UNREACH 3
533#define ICMP_UNREACH_FILTER_PROHIB 13
534#define ICMP_UNREACH_HOST 1
535#define ICMP_UNREACH_HOST_PRECEDENCE 14
536#define ICMP_UNREACH_HOST_PROHIB 10
537#define ICMP_UNREACH_HOST_UNKNOWN 7
538#define ICMP_UNREACH_ISOLATED 8
539#define ICMP_UNREACH_NEEDFRAG 4
540#define ICMP_UNREACH_NET 0
541#define ICMP_UNREACH_NET_PROHIB 9
542#define ICMP_UNREACH_NET_UNKNOWN 6
543#define ICMP_UNREACH_PORT 3
544#define ICMP_UNREACH_PRECEDENCE_CUTOFF 15
545#define ICMP_UNREACH_PROTOCOL 2
546#define ICMP_UNREACH_SRCFAIL 5
547#define ICMP_UNREACH_TOSHOST 12
548#define ICMP_UNREACH_TOSNET 11
9c58e6c2 549#define IFTODT(x) (__wasilibc_iftodt(x))
320054e8
DG
550#define IGMP_AWAKENING_MEMBER 5
551#define IGMP_DELAYING_MEMBER 1
552#define IGMP_DVMRP 0x13
553#define IGMP_HOST_LEAVE_MESSAGE IGMP_V2_LEAVE_GROUP
554#define IGMP_HOST_MEMBERSHIP_QUERY IGMP_MEMBERSHIP_QUERY
555#define IGMP_HOST_MEMBERSHIP_REPORT IGMP_V1_MEMBERSHIP_REPORT
556#define IGMP_HOST_NEW_MEMBERSHIP_REPORT IGMP_V2_MEMBERSHIP_REPORT
557#define IGMP_IDLE_MEMBER 2
558#define IGMP_LAZY_MEMBER 3
559#define IGMP_MAX_HOST_REPORT_DELAY 10
560#define IGMP_MEMBERSHIP_QUERY 0x11
561#define IGMP_MINLEN 8
562#define IGMP_MTRACE 0x1f
563#define IGMP_MTRACE_RESP 0x1e
564#define IGMP_PIM 0x14
565#define IGMP_SLEEPING_MEMBER 4
566#define IGMP_TIMER_SCALE 10
567#define IGMP_TRACE 0x15
568#define IGMP_V1_MEMBERSHIP_REPORT 0x12
569#define IGMP_V2_LEAVE_GROUP 0x17
570#define IGMP_V2_MEMBERSHIP_REPORT 0x16
571#define IGMP_v1_ROUTER 1
572#define IGMP_v2_ROUTER 2
320054e8 573#define IN6ADDRSZ NS_IN6ADDRSZ
79a9b408
DG
574#define IN6ADDR_ANY_INIT { { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } }
575#define IN6ADDR_LOOPBACK_INIT { { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01 } }
320054e8
DG
576#define IN6_ARE_ADDR_EQUAL(a,b) __ARE_4_EQUAL((const uint32_t *)(a), (const uint32_t *)(b))
577#define IN6_IS_ADDR_LINKLOCAL(a) ((((uint8_t *) (a))[0]) == 0xfe && (((uint8_t *) (a))[1] & 0xc0) == 0x80)
578#define IN6_IS_ADDR_LOOPBACK(a) (((uint32_t *) (a))[0] == 0 && ((uint32_t *) (a))[1] == 0 && ((uint32_t *) (a))[2] == 0 && ((uint8_t *) (a))[12] == 0 && ((uint8_t *) (a))[13] == 0 && ((uint8_t *) (a))[14] == 0 && ((uint8_t *) (a))[15] == 1 )
579#define IN6_IS_ADDR_MC_GLOBAL(a) (IN6_IS_ADDR_MULTICAST(a) && ((((uint8_t *) (a))[1] & 0xf) == 0xe))
580#define IN6_IS_ADDR_MC_LINKLOCAL(a) (IN6_IS_ADDR_MULTICAST(a) && ((((uint8_t *) (a))[1] & 0xf) == 0x2))
581#define IN6_IS_ADDR_MC_NODELOCAL(a) (IN6_IS_ADDR_MULTICAST(a) && ((((uint8_t *) (a))[1] & 0xf) == 0x1))
582#define IN6_IS_ADDR_MC_ORGLOCAL(a) (IN6_IS_ADDR_MULTICAST(a) && ((((uint8_t *) (a))[1] & 0xf) == 0x8))
583#define IN6_IS_ADDR_MC_SITELOCAL(a) (IN6_IS_ADDR_MULTICAST(a) && ((((uint8_t *) (a))[1] & 0xf) == 0x5))
584#define IN6_IS_ADDR_MULTICAST(a) (((uint8_t *) (a))[0] == 0xff)
585#define IN6_IS_ADDR_SITELOCAL(a) ((((uint8_t *) (a))[0]) == 0xfe && (((uint8_t *) (a))[1] & 0xc0) == 0xc0)
586#define IN6_IS_ADDR_UNSPECIFIED(a) (((uint32_t *) (a))[0] == 0 && ((uint32_t *) (a))[1] == 0 && ((uint32_t *) (a))[2] == 0 && ((uint32_t *) (a))[3] == 0)
587#define IN6_IS_ADDR_V4COMPAT(a) (((uint32_t *) (a))[0] == 0 && ((uint32_t *) (a))[1] == 0 && ((uint32_t *) (a))[2] == 0 && ((uint8_t *) (a))[15] > 1)
588#define IN6_IS_ADDR_V4MAPPED(a) (((uint32_t *) (a))[0] == 0 && ((uint32_t *) (a))[1] == 0 && ((uint8_t *) (a))[8] == 0 && ((uint8_t *) (a))[9] == 0 && ((uint8_t *) (a))[10] == 0xff && ((uint8_t *) (a))[11] == 0xff)
589#define INADDRSZ NS_INADDRSZ
590#define INADDR_ALLHOSTS_GROUP ((in_addr_t) 0xe0000001)
591#define INADDR_ALLRTRS_GROUP ((in_addr_t) 0xe0000002)
d4db3fa2 592#define INADDR_ALLSNOOPERS_GROUP ((in_addr_t) 0xe000006a)
320054e8
DG
593#define INADDR_ANY ((in_addr_t) 0x00000000)
594#define INADDR_BROADCAST ((in_addr_t) 0xffffffff)
5d8a1409 595#define INADDR_DUMMY ((in_addr_t) 0xc0000008)
320054e8
DG
596#define INADDR_LOOPBACK ((in_addr_t) 0x7f000001)
597#define INADDR_MAX_LOCAL_GROUP ((in_addr_t) 0xe00000ff)
598#define INADDR_NONE ((in_addr_t) 0xffffffff)
599#define INADDR_UNSPEC_GROUP ((in_addr_t) 0xe0000000)
600#define INDIR_MASK NS_CMPRSFLGS
601#define INET6_ADDRSTRLEN 46
602#define INET_ADDRSTRLEN 16
603#define INFINITY 1e5000f
320054e8
DG
604#define INT16SZ NS_INT16SZ
605#define INT16_C(c) c
606#define INT16_MAX (0x7fff)
607#define INT16_MIN (-1-0x7fff)
608#define INT32SZ NS_INT32SZ
609#define INT32_C(c) c
610#define INT32_MAX (0x7fffffff)
611#define INT32_MIN (-1-0x7fffffff)
612#define INT64_C(c) c ## LL
613#define INT64_MAX (0x7fffffffffffffff)
614#define INT64_MIN (-1-0x7fffffffffffffff)
615#define INT8SZ NS_INT8SZ
616#define INT8_C(c) c
617#define INT8_MAX (0x7f)
618#define INT8_MIN (-1-0x7f)
619#define INTBITS (sizeof(int) * 8)
620#define INTMAX_C(c) c ## LL
621#define INTMAX_MAX INT64_MAX
622#define INTMAX_MIN INT64_MIN
623#define INTPTR_MAX INT32_MAX
624#define INTPTR_MIN INT32_MIN
625#define INT_FAST16_MAX INT16_MAX
626#define INT_FAST16_MIN INT16_MIN
627#define INT_FAST32_MAX INT32_MAX
628#define INT_FAST32_MIN INT32_MIN
629#define INT_FAST64_MAX INT64_MAX
630#define INT_FAST64_MIN INT64_MIN
631#define INT_FAST8_MAX INT8_MAX
632#define INT_FAST8_MIN INT8_MIN
633#define INT_LEAST16_MAX INT16_MAX
634#define INT_LEAST16_MIN INT16_MIN
635#define INT_LEAST32_MAX INT32_MAX
636#define INT_LEAST32_MIN INT32_MIN
637#define INT_LEAST64_MAX INT64_MAX
638#define INT_LEAST64_MIN INT64_MIN
639#define INT_LEAST8_MAX INT8_MAX
640#define INT_LEAST8_MIN INT8_MIN
641#define INT_MAX 0x7fffffff
642#define INT_MIN (-1-0x7fffffff)
643#define IN_BADCLASS(a) ((((in_addr_t)(a)) & 0xf0000000) == 0xf0000000)
644#define IN_CLASSA(a) ((((in_addr_t)(a)) & 0x80000000) == 0)
645#define IN_CLASSA_HOST (0xffffffff & ~IN_CLASSA_NET)
646#define IN_CLASSA_MAX 128
647#define IN_CLASSA_NET 0xff000000
648#define IN_CLASSA_NSHIFT 24
649#define IN_CLASSB(a) ((((in_addr_t)(a)) & 0xc0000000) == 0x80000000)
650#define IN_CLASSB_HOST (0xffffffff & ~IN_CLASSB_NET)
651#define IN_CLASSB_MAX 65536
652#define IN_CLASSB_NET 0xffff0000
653#define IN_CLASSB_NSHIFT 16
654#define IN_CLASSC(a) ((((in_addr_t)(a)) & 0xe0000000) == 0xc0000000)
655#define IN_CLASSC_HOST (0xffffffff & ~IN_CLASSC_NET)
656#define IN_CLASSC_NET 0xffffff00
657#define IN_CLASSC_NSHIFT 8
658#define IN_CLASSD(a) ((((in_addr_t)(a)) & 0xf0000000) == 0xe0000000)
659#define IN_EXPERIMENTAL(a) ((((in_addr_t)(a)) & 0xe0000000) == 0xe0000000)
660#define IN_LOOPBACKNET 127
661#define IN_MULTICAST(a) IN_CLASSD(a)
662#define IOV_MAX 1024
663#define IP 244
664#define IP6F_MORE_FRAG 0x0100
665#define IP6F_OFF_MASK 0xf8ff
666#define IP6F_RESERVED_MASK 0x0600
667#define IP6OPT_JUMBO 0xc2
668#define IP6OPT_JUMBO_LEN 6
669#define IP6OPT_NSAP_ADDR 0xc3
670#define IP6OPT_PAD1 0
671#define IP6OPT_PADN 1
672#define IP6OPT_ROUTER_ALERT 0x05
673#define IP6OPT_TUNNEL_LIMIT 0x04
674#define IP6OPT_TYPE(o) ((o) & 0xc0)
675#define IP6OPT_TYPE_DISCARD 0x40
676#define IP6OPT_TYPE_FORCEICMP 0x80
677#define IP6OPT_TYPE_ICMP 0xc0
678#define IP6OPT_TYPE_MUTABLE 0x20
679#define IP6OPT_TYPE_SKIP 0x00
680#define IP6_ALERT_AN 0x0200
681#define IP6_ALERT_MLD 0x0000
682#define IP6_ALERT_RSVP 0x0100
683#define IPDEFTTL 64
684#define IPFRAGTTL 60
685#define IPOPT_CLASS(o) ((o) & IPOPT_CLASS_MASK)
686#define IPOPT_CLASS_MASK 0x60
687#define IPOPT_CONTROL 0x00
688#define IPOPT_COPIED(o) ((o) & IPOPT_COPY)
689#define IPOPT_COPY 0x80
690#define IPOPT_DEBMEAS 0x40
691#define IPOPT_END IPOPT_EOL
692#define IPOPT_EOL 0
693#define IPOPT_LSRR 131
694#define IPOPT_MEASUREMENT IPOPT_DEBMEAS
695#define IPOPT_MINOFF 4
696#define IPOPT_NOOP IPOPT_NOP
697#define IPOPT_NOP 1
698#define IPOPT_NUMBER(o) ((o) & IPOPT_NUMBER_MASK)
699#define IPOPT_NUMBER_MASK 0x1f
700#define IPOPT_OFFSET 2
701#define IPOPT_OLEN 1
702#define IPOPT_OPTVAL 0
703#define IPOPT_RA 148
704#define IPOPT_RESERVED1 0x20
705#define IPOPT_RESERVED2 0x60
706#define IPOPT_RR 7
707#define IPOPT_SATID 136
708#define IPOPT_SEC IPOPT_SECURITY
709#define IPOPT_SECURITY 130
710#define IPOPT_SECUR_CONFID 0xf135
711#define IPOPT_SECUR_EFTO 0x789a
712#define IPOPT_SECUR_MMMM 0xbc4d
713#define IPOPT_SECUR_RESTR 0xaf13
714#define IPOPT_SECUR_SECRET 0xd788
715#define IPOPT_SECUR_TOPSECRET 0x6bc5
716#define IPOPT_SECUR_UNCLASS 0x0000
717#define IPOPT_SID IPOPT_SATID
718#define IPOPT_SSRR 137
719#define IPOPT_TIMESTAMP IPOPT_TS
720#define IPOPT_TS 68
721#define IPOPT_TS_PRESPEC 3
722#define IPOPT_TS_TSANDADDR 1
723#define IPOPT_TS_TSONLY 0
724#define IPPORT_RESERVED 1024
725#define IPPROTO_ICMP 1
726#define IPPROTO_IP 0
727#define IPPROTO_IPV6 41
728#define IPPROTO_RAW 255
729#define IPPROTO_TCP 6
730#define IPPROTO_UDP 17
731#define IPTOS_CLASS(x) ((x) & IPTOS_CLASS_MASK)
732#define IPTOS_CLASS_CS0 0x00
733#define IPTOS_CLASS_CS1 0x20
734#define IPTOS_CLASS_CS2 0x40
735#define IPTOS_CLASS_CS3 0x60
736#define IPTOS_CLASS_CS4 0x80
737#define IPTOS_CLASS_CS5 0xa0
738#define IPTOS_CLASS_CS6 0xc0
739#define IPTOS_CLASS_CS7 0xe0
740#define IPTOS_CLASS_DEFAULT IPTOS_CLASS_CS0
741#define IPTOS_CLASS_MASK 0xe0
742#define IPTOS_DSCP(x) ((x) & IPTOS_DSCP_MASK)
743#define IPTOS_DSCP_AF11 0x28
744#define IPTOS_DSCP_AF12 0x30
745#define IPTOS_DSCP_AF13 0x38
746#define IPTOS_DSCP_AF21 0x48
747#define IPTOS_DSCP_AF22 0x50
748#define IPTOS_DSCP_AF23 0x58
749#define IPTOS_DSCP_AF31 0x68
750#define IPTOS_DSCP_AF32 0x70
751#define IPTOS_DSCP_AF33 0x78
752#define IPTOS_DSCP_AF41 0x88
753#define IPTOS_DSCP_AF42 0x90
754#define IPTOS_DSCP_AF43 0x98
755#define IPTOS_DSCP_EF 0xb8
756#define IPTOS_DSCP_MASK 0xfc
757#define IPTOS_ECN(x) ((x) & IPTOS_ECN_MASK)
758#define IPTOS_ECN_CE 0x03
759#define IPTOS_ECN_ECT0 0x02
760#define IPTOS_ECN_ECT1 0x01
761#define IPTOS_ECN_MASK 0x03
762#define IPTOS_ECN_NOT_ECT 0x00
763#define IPTOS_LOWCOST 0x02
764#define IPTOS_LOWDELAY 0x10
765#define IPTOS_MINCOST IPTOS_LOWCOST
766#define IPTOS_PREC(tos) ((tos) & IPTOS_PREC_MASK)
767#define IPTOS_PREC_CRITIC_ECP 0xa0
768#define IPTOS_PREC_FLASH 0x60
769#define IPTOS_PREC_FLASHOVERRIDE 0x80
770#define IPTOS_PREC_IMMEDIATE 0x40
771#define IPTOS_PREC_INTERNETCONTROL 0xc0
772#define IPTOS_PREC_MASK 0xe0
773#define IPTOS_PREC_NETCONTROL 0xe0
774#define IPTOS_PREC_PRIORITY 0x20
775#define IPTOS_PREC_ROUTINE 0x00
776#define IPTOS_RELIABILITY 0x04
777#define IPTOS_THROUGHPUT 0x08
778#define IPTOS_TOS(tos) ((tos) & IPTOS_TOS_MASK)
779#define IPTOS_TOS_MASK 0x1E
780#define IPTTLDEC 1
781#define IPV6_2292DSTOPTS 4
782#define IPV6_2292HOPLIMIT 8
783#define IPV6_2292HOPOPTS 3
784#define IPV6_2292PKTINFO 2
785#define IPV6_2292PKTOPTIONS 6
786#define IPV6_2292RTHDR 5
787#define IPV6_ADDRFORM 1
788#define IPV6_ADDR_PREFERENCES 72
789#define IPV6_ADD_MEMBERSHIP IPV6_JOIN_GROUP
790#define IPV6_AUTHHDR 10
791#define IPV6_AUTOFLOWLABEL 70
792#define IPV6_CHECKSUM 7
793#define IPV6_DONTFRAG 62
794#define IPV6_DROP_MEMBERSHIP IPV6_LEAVE_GROUP
795#define IPV6_DSTOPTS 59
796#define IPV6_FREEBIND 78
797#define IPV6_HDRINCL 36
798#define IPV6_HOPLIMIT 52
799#define IPV6_HOPOPTS 54
800#define IPV6_IPSEC_POLICY 34
801#define IPV6_JOIN_ANYCAST 27
802#define IPV6_JOIN_GROUP 20
803#define IPV6_LEAVE_ANYCAST 28
804#define IPV6_LEAVE_GROUP 21
805#define IPV6_MINHOPCOUNT 73
806#define IPV6_MTU 24
807#define IPV6_MTU_DISCOVER 23
f41256b6 808#define IPV6_MULTICAST_ALL 29
320054e8
DG
809#define IPV6_MULTICAST_HOPS 18
810#define IPV6_MULTICAST_IF 17
811#define IPV6_MULTICAST_LOOP 19
812#define IPV6_NEXTHOP 9
813#define IPV6_ORIGDSTADDR 74
814#define IPV6_PATHMTU 61
815#define IPV6_PKTINFO 50
816#define IPV6_PMTUDISC_DO 2
817#define IPV6_PMTUDISC_DONT 0
818#define IPV6_PMTUDISC_INTERFACE 4
819#define IPV6_PMTUDISC_OMIT 5
820#define IPV6_PMTUDISC_PROBE 3
821#define IPV6_PMTUDISC_WANT 1
822#define IPV6_PREFER_SRC_CGA 0x0008
823#define IPV6_PREFER_SRC_COA 0x0004
824#define IPV6_PREFER_SRC_HOME 0x0400
825#define IPV6_PREFER_SRC_NONCGA 0x0800
826#define IPV6_PREFER_SRC_PUBLIC 0x0002
827#define IPV6_PREFER_SRC_PUBTMP_DEFAULT 0x0100
828#define IPV6_PREFER_SRC_TMP 0x0001
829#define IPV6_RECVDSTOPTS 58
830#define IPV6_RECVERR 25
831#define IPV6_RECVFRAGSIZE 77
832#define IPV6_RECVHOPLIMIT 51
833#define IPV6_RECVHOPOPTS 53
834#define IPV6_RECVORIGDSTADDR IPV6_ORIGDSTADDR
835#define IPV6_RECVPATHMTU 60
836#define IPV6_RECVPKTINFO 49
837#define IPV6_RECVRTHDR 56
838#define IPV6_RECVTCLASS 66
839#define IPV6_ROUTER_ALERT 22
d4db3fa2 840#define IPV6_ROUTER_ALERT_ISOLATE 30
320054e8
DG
841#define IPV6_RTHDR 57
842#define IPV6_RTHDRDSTOPTS 55
843#define IPV6_RTHDR_LOOSE 0
844#define IPV6_RTHDR_STRICT 1
845#define IPV6_RTHDR_TYPE_0 0
846#define IPV6_RXDSTOPTS IPV6_DSTOPTS
847#define IPV6_RXHOPOPTS IPV6_HOPOPTS
848#define IPV6_TCLASS 67
849#define IPV6_TRANSPARENT 75
850#define IPV6_UNICAST_HOPS 16
851#define IPV6_UNICAST_IF 76
852#define IPV6_V6ONLY 26
853#define IPV6_XFRM_POLICY 35
854#define IPVERSION 4
855#define IP_ADD_MEMBERSHIP 35
856#define IP_ADD_SOURCE_MEMBERSHIP 39
857#define IP_BIND_ADDRESS_NO_PORT 24
858#define IP_BLOCK_SOURCE 38
859#define IP_CHECKSUM 23
860#define IP_DEFAULT_MULTICAST_LOOP 1
861#define IP_DEFAULT_MULTICAST_TTL 1
862#define IP_DF 0x4000
863#define IP_DROP_MEMBERSHIP 36
864#define IP_DROP_SOURCE_MEMBERSHIP 40
865#define IP_FREEBIND 15
866#define IP_HDRINCL 3
867#define IP_IPSEC_POLICY 16
868#define IP_MAXPACKET 65535
869#define IP_MAX_MEMBERSHIPS 20
870#define IP_MF 0x2000
871#define IP_MINTTL 21
872#define IP_MSFILTER 41
873#define IP_MSFILTER_SIZE(numsrc) (sizeof(struct ip_msfilter) - sizeof(struct in_addr) + (numsrc) * sizeof(struct in_addr))
874#define IP_MSS 576
875#define IP_MTU 14
876#define IP_MTU_DISCOVER 10
877#define IP_MULTICAST_ALL 49
878#define IP_MULTICAST_IF 32
879#define IP_MULTICAST_LOOP 34
880#define IP_MULTICAST_TTL 33
881#define IP_NODEFRAG 22
882#define IP_OFFMASK 0x1fff
883#define IP_OPTIONS 4
884#define IP_ORIGDSTADDR 20
885#define IP_PASSSEC 18
886#define IP_PKTINFO 8
887#define IP_PKTOPTIONS 9
888#define IP_PMTUDISC 10
889#define IP_PMTUDISC_DO 2
890#define IP_PMTUDISC_DONT 0
891#define IP_PMTUDISC_INTERFACE 4
892#define IP_PMTUDISC_OMIT 5
893#define IP_PMTUDISC_PROBE 3
894#define IP_PMTUDISC_WANT 1
895#define IP_RECVERR 11
322bd4ff 896#define IP_RECVERR_RFC4884 26
320054e8
DG
897#define IP_RECVFRAGSIZE 25
898#define IP_RECVOPTS 6
899#define IP_RECVORIGDSTADDR IP_ORIGDSTADDR
900#define IP_RECVRETOPTS IP_RETOPTS
901#define IP_RECVTOS 13
902#define IP_RECVTTL 12
903#define IP_RETOPTS 7
904#define IP_RF 0x8000
905#define IP_ROUTER_ALERT 5
906#define IP_TOS 1
907#define IP_TRANSPARENT 19
908#define IP_TTL 2
909#define IP_UNBLOCK_SOURCE 37
910#define IP_UNICAST_IF 50
911#define IP_XFRM_POLICY 17
912#define IQUERY ns_o_iquery
320054e8
DG
913#define I_ATMARK (__SID |31)
914#define I_CANPUT (__SID |34)
915#define I_CKBAND (__SID |29)
916#define I_FDINSERT (__SID |16)
917#define I_FIND (__SID |11)
918#define I_FLUSH (__SID | 5)
919#define I_FLUSHBAND (__SID |28)
920#define I_GETBAND (__SID |30)
921#define I_GETCLTIME (__SID |33)
922#define I_GETSIG (__SID |10)
923#define I_GRDOPT (__SID | 7)
924#define I_GWROPT (__SID |20)
925#define I_LINK (__SID |12)
926#define I_LIST (__SID |21)
927#define I_LOOK (__SID | 4)
928#define I_NREAD (__SID | 1)
929#define I_PEEK (__SID |15)
930#define I_PLINK (__SID |22)
931#define I_POP (__SID | 3)
932#define I_PUNLINK (__SID |23)
933#define I_PUSH (__SID | 2)
934#define I_RECVFD (__SID |14)
935#define I_SENDFD (__SID |17)
936#define I_SETCLTIME (__SID |32)
937#define I_SETSIG (__SID | 9)
938#define I_SRDOPT (__SID | 6)
939#define I_STR (__SID | 8)
940#define I_SWROPT (__SID |19)
941#define I_UNLINK (__SID |13)
942#define LASTMARK 0x02
943#define LC_ALL 6
944#define LC_ALL_MASK 0x7fffffff
945#define LC_COLLATE 3
946#define LC_COLLATE_MASK (1<<LC_COLLATE)
947#define LC_CTYPE 0
948#define LC_CTYPE_MASK (1<<LC_CTYPE)
949#define LC_GLOBAL_LOCALE ((locale_t)-1)
950#define LC_MESSAGES 5
951#define LC_MESSAGES_MASK (1<<LC_MESSAGES)
952#define LC_MONETARY 4
953#define LC_MONETARY_MASK (1<<LC_MONETARY)
954#define LC_NUMERIC 1
955#define LC_NUMERIC_MASK (1<<LC_NUMERIC)
956#define LC_TIME 2
957#define LC_TIME_MASK (1<<LC_TIME)
958#define LDBL_DECIMAL_DIG DECIMAL_DIG
959#define LDBL_DIG 33
960#define LDBL_EPSILON 1.92592994438723585305597794258492732e-34L
961#define LDBL_HAS_SUBNORM 1
962#define LDBL_MANT_DIG 113
963#define LDBL_MAX 1.18973149535723176508575932662800702e+4932L
964#define LDBL_MAX_10_EXP 4932
965#define LDBL_MAX_EXP 16384
966#define LDBL_MIN 3.36210314311209350626267781732175260e-4932L
967#define LDBL_MIN_10_EXP (-4931)
968#define LDBL_MIN_EXP (-16381)
969#define LDBL_TRUE_MIN 6.47517511943802511092443895822764655e-4966L
970#define LFLOW_OFF 0
971#define LFLOW_ON 1
972#define LFLOW_RESTART_ANY 2
973#define LFLOW_RESTART_XON 3
320054e8 974#define LITTLE_ENDIAN __LITTLE_ENDIAN
575e1579 975#define LLONG_MAX 0x7fffffffffffffffLL
320054e8
DG
976#define LLONG_MIN (-LLONG_MAX-1)
977#define LM_FORWARDMASK 2
978#define LM_MODE 1
979#define LM_SLC 3
980#define LNKTYPE '1'
981#define LOCK_EX 2
982#define LOCK_NB 4
983#define LOCK_SH 1
984#define LOCK_UN 8
320054e8 985#define LONGBITS (sizeof(long) * 8)
575e1579
DG
986#define LONG_BIT 32
987#define LONG_MAX __LONG_MAX
320054e8
DG
988#define LONG_MIN (-LONG_MAX-1)
989#define L_INCR 1
990#define L_SET 0
991#define L_XTND 2
992#define L_ctermid 20
993#define L_cuserid 20
994#define MAGIC "070707"
995#define MATH_ERREXCEPT 2
996#define MATH_ERRNO 1
997#define MAX(a,b) (((a)>(b))?(a):(b))
998#define MAXCDNAME NS_MAXCDNAME
999#define MAXDNAME NS_MAXDNAME
1000#define MAXDOUBLE DBL_MAX
1001#define MAXFLOAT FLT_MAX
1002#define MAXHOSTNAMELEN 64
1003#define MAXINT INT_MAX
1004#define MAXLABEL NS_MAXLABEL
1005#define MAXLONG LONG_MAX
1006#define MAXNAMLEN 255
1007#define MAXPATHLEN 4096
1008#define MAXSHORT SHRT_MAX
1009#define MAXSYMLINKS 20
1010#define MAXTC 6
1011#define MAXTTL 255
320054e8
DG
1012#define MAX_IPOPTLEN 40
1013#define MB_CUR_MAX (__ctype_get_mb_cur_max())
1014#define MB_LEN_MAX 4
1015#define MCAST_BLOCK_SOURCE 43
1016#define MCAST_EXCLUDE 0
1017#define MCAST_INCLUDE 1
1018#define MCAST_JOIN_GROUP 42
1019#define MCAST_JOIN_SOURCE_GROUP 46
1020#define MCAST_LEAVE_GROUP 45
1021#define MCAST_LEAVE_SOURCE_GROUP 47
1022#define MCAST_MSFILTER 48
1023#define MCAST_UNBLOCK_SOURCE 44
1024#define MIN(a,b) (((a)<(b))?(a):(b))
1025#define MINDOUBLE DBL_MIN
1026#define MINFLOAT FLT_MIN
1027#define MININT INT_MIN
1028#define MINLONG LONG_MIN
1029#define MINSHORT SHRT_MIN
1030#define MLD_LISTENER_QUERY 130
1031#define MLD_LISTENER_REDUCTION 132
1032#define MLD_LISTENER_REPORT 131
1033#define MM_APPL 8
1034#define MM_CONSOLE 512
1035#define MM_ERROR 2
1036#define MM_FIRM 4
1037#define MM_HALT 1
1038#define MM_HARD 1
1039#define MM_INFO 4
1040#define MM_NOCON 4
1041#define MM_NOMSG 1
1042#define MM_NOSEV 0
1043#define MM_NOTOK (-1)
1044#define MM_NRECOV 128
1045#define MM_NULLACT ((char*)0)
1046#define MM_NULLLBL ((char*)0)
1047#define MM_NULLMC 0L
1048#define MM_NULLSEV 0
1049#define MM_NULLTAG ((char*)0)
1050#define MM_NULLTXT ((char*)0)
1051#define MM_OK 0
1052#define MM_OPSYS 32
1053#define MM_PRINT 256
1054#define MM_RECOVER 64
1055#define MM_SOFT 2
1056#define MM_UTIL 16
1057#define MM_WARNING 3
1058#define MODE_ACK 0x04
1059#define MODE_B 2
1060#define MODE_C 3
1061#define MODE_ECHO 0x0200
1062#define MODE_EDIT 0x01
1063#define MODE_FLOW 0x0100
1064#define MODE_FORCE 0x1000
1065#define MODE_INBIN 0x0400
1066#define MODE_LIT_ECHO 0x10
1067#define MODE_MASK 0x1f
1068#define MODE_OUTBIN 0x0800
1069#define MODE_S 1
1070#define MODE_SOFT_TAB 0x08
1071#define MODE_TRAPSIG 0x02
1072#define MOD_CLKA ADJ_OFFSET_SINGLESHOT
1073#define MOD_CLKB ADJ_TICK
1074#define MOD_ESTERROR ADJ_ESTERROR
1075#define MOD_FREQUENCY ADJ_FREQUENCY
1076#define MOD_MAXERROR ADJ_MAXERROR
1077#define MOD_MICRO ADJ_MICRO
1078#define MOD_NANO ADJ_NANO
1079#define MOD_OFFSET ADJ_OFFSET
1080#define MOD_STATUS ADJ_STATUS
1081#define MOD_TAI ADJ_TAI
1082#define MOD_TIMECONST ADJ_TIMECONST
1083#define MON_1 0x2001A
1084#define MON_10 0x20023
1085#define MON_11 0x20024
1086#define MON_12 0x20025
1087#define MON_2 0x2001B
1088#define MON_3 0x2001C
1089#define MON_4 0x2001D
1090#define MON_5 0x2001E
1091#define MON_6 0x2001F
1092#define MON_7 0x20020
1093#define MON_8 0x20021
1094#define MON_9 0x20022
1095#define MORECTL 1
1096#define MOREDATA 2
1097#define MSG_ANY 0x02
1098#define MSG_BAND 0x04
1099#define MSG_HIPRI 0x01
446cb3f1
DG
1100#define MSG_PEEK __WASI_RIFLAGS_RECV_PEEK
1101#define MSG_TRUNC __WASI_RIFLAGS_RECV_DATA_TRUNCATED
1102#define MSG_WAITALL __WASI_RIFLAGS_RECV_WAITALL
320054e8
DG
1103#define MUXID_ALL (-1)
1104#define M_1_PI 0.31830988618379067154
1105#define M_2_PI 0.63661977236758134308
1106#define M_2_SQRTPI 1.12837916709551257390
1107#define M_E 2.7182818284590452354
1108#define M_LN10 2.30258509299404568402
1109#define M_LN2 0.69314718055994530942
1110#define M_LOG10E 0.43429448190325182765
1111#define M_LOG2E 1.4426950408889634074
1112#define M_PI 3.14159265358979323846
1113#define M_PI_2 1.57079632679489661923
1114#define M_PI_4 0.78539816339744830962
1115#define M_SQRT1_2 0.70710678118654752440
1116#define M_SQRT2 1.41421356237309504880
1117#define NAMESERVER_PORT NS_DEFAULTPORT
1118#define NAME_MAX 255
1119#define NAN (0.0f/0.0f)
1120#define NBBY 8
1121#define NCARGS 131072
7fcc4f29 1122#define NDEBUG 1
320054e8
DG
1123#define ND_NA_FLAG_OVERRIDE 0x00000020
1124#define ND_NA_FLAG_ROUTER 0x00000080
1125#define ND_NA_FLAG_SOLICITED 0x00000040
1126#define ND_NEIGHBOR_ADVERT 136
1127#define ND_NEIGHBOR_SOLICIT 135
1128#define ND_OPT_HOME_AGENT_INFO 8
1129#define ND_OPT_MTU 5
1130#define ND_OPT_PI_FLAG_AUTO 0x40
1131#define ND_OPT_PI_FLAG_ONLINK 0x80
1132#define ND_OPT_PI_FLAG_RADDR 0x20
1133#define ND_OPT_PREFIX_INFORMATION 3
1134#define ND_OPT_REDIRECTED_HEADER 4
1135#define ND_OPT_RTR_ADV_INTERVAL 7
1136#define ND_OPT_SOURCE_LINKADDR 1
1137#define ND_OPT_TARGET_LINKADDR 2
1138#define ND_RA_FLAG_HOME_AGENT 0x20
1139#define ND_RA_FLAG_MANAGED 0x80
1140#define ND_RA_FLAG_OTHER 0x40
1141#define ND_REDIRECT 137
1142#define ND_ROUTER_ADVERT 134
1143#define ND_ROUTER_SOLICIT 133
1144#define NEW_ENV_VALUE 1
1145#define NEW_ENV_VAR 0
320054e8
DG
1146#define NGROUPS 32
1147#define NGROUPS_MAX 32
320054e8
DG
1148#define NL_ARGMAX 9
1149#define NL_CAT_LOCALE 1
1150#define NL_LANGMAX 32
9f0d8e85 1151#define NL_LOCALE_NAME(cat) _NL_LOCALE_NAME(cat)
320054e8
DG
1152#define NL_MSGMAX 32767
1153#define NL_NMAX 16
1154#define NL_SETD 1
1155#define NL_SETMAX 255
1156#define NL_TEXTMAX 2048
1157#define NOERROR ns_r_noerror
1158#define NOEXPR 0x50001
1159#define NOFILE 256
320054e8
DG
1160#define NOGROUP (-1)
1161#define NOP 241
1162#define NOSTR 0x50003
1163#define NOTAUTH ns_r_notauth
1164#define NOTIMP ns_r_notimpl
1165#define NOTZONE ns_r_notzone
1166#define NR_ICMP_TYPES 18
1167#define NR_ICMP_UNREACH 15
1168#define NSLC 18
1169#define NS_ALG_DH 2
1170#define NS_ALG_DSA 3
1171#define NS_ALG_DSS NS_ALG_DSA
1172#define NS_ALG_EXPIRE_ONLY 253
1173#define NS_ALG_MD5RSA 1
1174#define NS_ALG_PRIVATE_OID 254
1175#define NS_CMPRSFLGS 0xc0
1176#define NS_DEFAULTPORT 53
1177#define NS_DSA_MAX_BYTES 405
1178#define NS_DSA_MIN_SIZE 213
1179#define NS_DSA_SIG_SIZE 41
1180#define NS_GET16(s,cp) (void)((s) = ns_get16(((cp)+=2)-2))
1181#define NS_GET32(l,cp) (void)((l) = ns_get32(((cp)+=4)-4))
1182#define NS_HFIXEDSZ 12
1183#define NS_IN6ADDRSZ 16
1184#define NS_INADDRSZ 4
1185#define NS_INT16SZ 2
1186#define NS_INT32SZ 4
1187#define NS_INT8SZ 1
1188#define NS_KEY_EXTENDED_FLAGS 0x1000
1189#define NS_KEY_NAME_ENTITY 0x0200
1190#define NS_KEY_NAME_RESERVED 0x0300
1191#define NS_KEY_NAME_TYPE 0x0300
1192#define NS_KEY_NAME_USER 0x0000
1193#define NS_KEY_NAME_ZONE 0x0100
1194#define NS_KEY_NO_AUTH 0x8000
1195#define NS_KEY_NO_CONF 0x4000
1196#define NS_KEY_PROT_ANY 255
1197#define NS_KEY_PROT_DNSSEC 3
1198#define NS_KEY_PROT_EMAIL 2
1199#define NS_KEY_PROT_IPSEC 4
1200#define NS_KEY_PROT_TLS 1
1201#define NS_KEY_RESERVED10 0x0020
1202#define NS_KEY_RESERVED11 0x0010
1203#define NS_KEY_RESERVED2 0x2000
1204#define NS_KEY_RESERVED4 0x0800
1205#define NS_KEY_RESERVED5 0x0400
1206#define NS_KEY_RESERVED8 0x0080
1207#define NS_KEY_RESERVED9 0x0040
1208#define NS_KEY_RESERVED_BITMASK ( NS_KEY_RESERVED2 | NS_KEY_RESERVED4 | NS_KEY_RESERVED5 | NS_KEY_RESERVED8 | NS_KEY_RESERVED9 | NS_KEY_RESERVED10 | NS_KEY_RESERVED11 )
1209#define NS_KEY_RESERVED_BITMASK2 0xFFFF
1210#define NS_KEY_SIGNATORYMASK 0x000F
1211#define NS_KEY_TYPEMASK 0xC000
1212#define NS_KEY_TYPE_AUTH_CONF 0x0000
1213#define NS_KEY_TYPE_AUTH_ONLY 0x4000
1214#define NS_KEY_TYPE_CONF_ONLY 0x8000
1215#define NS_KEY_TYPE_NO_KEY 0xC000
1216#define NS_MAXCDNAME 255
1217#define NS_MAXDNAME 1025
1218#define NS_MAXLABEL 63
1219#define NS_MAXMSG 65535
1220#define NS_MD5RSA_MAX_BASE64 (((NS_MD5RSA_MAX_BYTES+2)/3)*4)
1221#define NS_MD5RSA_MAX_BITS 4096
1222#define NS_MD5RSA_MAX_BYTES ((NS_MD5RSA_MAX_BITS+7/8)*2+3)
1223#define NS_MD5RSA_MAX_SIZE ((NS_MD5RSA_MAX_BITS+7)/8)
1224#define NS_MD5RSA_MIN_BITS 512
1225#define NS_MD5RSA_MIN_SIZE ((NS_MD5RSA_MIN_BITS+7)/8)
1226#define NS_NOTIFY_OP ns_o_notify
1227#define NS_NXT_BITS 8
1228#define NS_NXT_BIT_CLEAR(n,p) (p[(n)/NS_NXT_BITS] &= ~(0x80>>((n)%NS_NXT_BITS)))
1229#define NS_NXT_BIT_ISSET(n,p) (p[(n)/NS_NXT_BITS] & (0x80>>((n)%NS_NXT_BITS)))
1230#define NS_NXT_BIT_SET(n,p) (p[(n)/NS_NXT_BITS] |= (0x80>>((n)%NS_NXT_BITS)))
1231#define NS_NXT_MAX 127
1232#define NS_OPT_DNSSEC_OK 0x8000U
1233#define NS_OPT_NSID 3
1234#define NS_PACKETSZ 512
1235#define NS_PUT16(s,cp) ns_put16((s), ((cp)+=2)-2)
1236#define NS_PUT32(l,cp) ns_put32((l), ((cp)+=4)-4)
1237#define NS_QFIXEDSZ 4
1238#define NS_RRFIXEDSZ 10
1239#define NS_SIG_ALG 2
1240#define NS_SIG_EXPIR 8
1241#define NS_SIG_FOOT 16
1242#define NS_SIG_LABELS 3
1243#define NS_SIG_OTTL 4
1244#define NS_SIG_SIGNED 12
1245#define NS_SIG_SIGNER 18
1246#define NS_SIG_TYPE 0
1247#define NS_TSIG_ALG_HMAC_MD5 "HMAC-MD5.SIG-ALG.REG.INT"
1248#define NS_TSIG_ERROR_FORMERR -12
1249#define NS_TSIG_ERROR_NO_SPACE -11
1250#define NS_TSIG_ERROR_NO_TSIG -10
1251#define NS_TSIG_FUDGE 300
1252#define NS_TSIG_TCP_COUNT 100
1253#define NS_UPDATE_OP ns_o_update
1254#define NTELOPTS (1+TELOPT_NEW_ENVIRON)
1255#define NULL ((void*)0)
1256#define NXDOMAIN ns_r_nxdomain
1257#define NXRRSET ns_r_nxrrset
1258#define NZERO 20
320054e8
DG
1259#define OLD_ENV_VALUE 0
1260#define OLD_ENV_VAR 1
1261#define ONCE_FLAG_INIT 0
320054e8 1262#define O_ACCMODE (O_EXEC | O_RDWR | O_SEARCH)
446cb3f1 1263#define O_APPEND __WASI_FDFLAGS_APPEND
320054e8 1264#define O_CLOEXEC (0)
446cb3f1
DG
1265#define O_CREAT (__WASI_OFLAGS_CREAT << 12)
1266#define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
1267#define O_DSYNC __WASI_FDFLAGS_DSYNC
1268#define O_EXCL (__WASI_OFLAGS_EXCL << 12)
320054e8
DG
1269#define O_EXEC (0x02000000)
1270#define O_NOCTTY (0)
1271#define O_NOFOLLOW (0x01000000)
446cb3f1 1272#define O_NONBLOCK __WASI_FDFLAGS_NONBLOCK
320054e8
DG
1273#define O_RDONLY (0x04000000)
1274#define O_RDWR (O_RDONLY | O_WRONLY)
446cb3f1 1275#define O_RSYNC __WASI_FDFLAGS_RSYNC
320054e8 1276#define O_SEARCH (0x08000000)
446cb3f1
DG
1277#define O_SYNC __WASI_FDFLAGS_SYNC
1278#define O_TRUNC (__WASI_OFLAGS_TRUNC << 12)
861f0d2e 1279#define O_TTY_INIT (0)
320054e8
DG
1280#define O_WRONLY (0x10000000)
1281#define PACKETSZ NS_PACKETSZ
1282#define PACKET_ADD_MEMBERSHIP 1
1283#define PACKET_AUXDATA 8
1284#define PACKET_BROADCAST 1
1285#define PACKET_COPY_THRESH 7
1286#define PACKET_DROP_MEMBERSHIP 2
1287#define PACKET_FANOUT 18
1288#define PACKET_FANOUT_DATA 22
1289#define PACKET_FASTROUTE 6
1290#define PACKET_HDRLEN 11
1291#define PACKET_HOST 0
f41256b6 1292#define PACKET_IGNORE_OUTGOING 23
320054e8
DG
1293#define PACKET_LOOPBACK 5
1294#define PACKET_LOSS 14
1295#define PACKET_MR_ALLMULTI 2
1296#define PACKET_MR_MULTICAST 0
1297#define PACKET_MR_PROMISC 1
1298#define PACKET_MR_UNICAST 3
1299#define PACKET_MULTICAST 2
1300#define PACKET_ORIGDEV 9
1301#define PACKET_OTHERHOST 3
1302#define PACKET_OUTGOING 4
1303#define PACKET_QDISC_BYPASS 20
1304#define PACKET_RECV_OUTPUT 3
1305#define PACKET_RESERVE 12
1306#define PACKET_ROLLOVER_STATS 21
1307#define PACKET_RX_RING 5
1308#define PACKET_STATISTICS 6
1309#define PACKET_TIMESTAMP 17
1310#define PACKET_TX_HAS_OFF 19
1311#define PACKET_TX_RING 13
1312#define PACKET_TX_TIMESTAMP 16
1313#define PACKET_VERSION 10
1314#define PACKET_VNET_HDR 15
1315#define PAGESIZE (0x10000)
1316#define PAGE_SIZE PAGESIZE
320054e8
DG
1317#define PATH_MAX 4096
1318#define PDP_ENDIAN __PDP_ENDIAN
320054e8
DG
1319#define PM_STR 0x20027
1320#define POLLERR 0x1000
1321#define POLLHUP 0x2000
1322#define POLLIN POLLRDNORM
1323#define POLLNVAL 0x4000
1324#define POLLOUT POLLWRNORM
1325#define POLLRDNORM 0x1
1326#define POLLWRNORM 0x2
1327#define POSIX_CLOSE_RESTART 0
1328#define POSIX_FADV_DONTNEED __WASI_ADVICE_DONTNEED
1329#define POSIX_FADV_NOREUSE __WASI_ADVICE_NOREUSE
1330#define POSIX_FADV_NORMAL __WASI_ADVICE_NORMAL
1331#define POSIX_FADV_RANDOM __WASI_ADVICE_RANDOM
1332#define POSIX_FADV_SEQUENTIAL __WASI_ADVICE_SEQUENTIAL
1333#define POSIX_FADV_WILLNEED __WASI_ADVICE_WILLNEED
1334#define PRELIM 1
ad22a590
DG
1335#define PRIX16 __UINT16_FMTX__
1336#define PRIX32 __UINT32_FMTX__
1337#define PRIX64 __UINT64_FMTX__
1338#define PRIX8 __UINT8_FMTX__
1339#define PRIXFAST16 __UINT_FAST16_FMTX__
1340#define PRIXFAST32 __UINT_FAST32_FMTX__
1341#define PRIXFAST64 __UINT_FAST64_FMTX__
1342#define PRIXFAST8 __UINT_FAST8_FMTX__
1343#define PRIXLEAST16 __UINT_LEAST16_FMTX__
1344#define PRIXLEAST32 __UINT_LEAST32_FMTX__
1345#define PRIXLEAST64 __UINT_LEAST64_FMTX__
1346#define PRIXLEAST8 __UINT_LEAST8_FMTX__
1347#define PRIXMAX __UINTMAX_FMTX__
1348#define PRIXPTR __UINTPTR_FMTX__
1349#define PRId16 __INT16_FMTd__
1350#define PRId32 __INT32_FMTd__
1351#define PRId64 __INT64_FMTd__
1352#define PRId8 __INT8_FMTd__
1353#define PRIdFAST16 __INT_FAST16_FMTd__
1354#define PRIdFAST32 __INT_FAST32_FMTd__
1355#define PRIdFAST64 __INT_FAST64_FMTd__
1356#define PRIdFAST8 __INT_FAST8_FMTd__
1357#define PRIdLEAST16 __INT_LEAST16_FMTd__
1358#define PRIdLEAST32 __INT_LEAST32_FMTd__
1359#define PRIdLEAST64 __INT_LEAST64_FMTd__
1360#define PRIdLEAST8 __INT_LEAST8_FMTd__
1361#define PRIdMAX __INTMAX_FMTd__
1362#define PRIdPTR __INTPTR_FMTd__
1363#define PRIi16 __INT16_FMTi__
1364#define PRIi32 __INT32_FMTi__
1365#define PRIi64 __INT64_FMTi__
1366#define PRIi8 __INT8_FMTi__
1367#define PRIiFAST16 __INT_FAST16_FMTi__
1368#define PRIiFAST32 __INT_FAST32_FMTi__
1369#define PRIiFAST64 __INT_FAST64_FMTi__
1370#define PRIiFAST8 __INT_FAST8_FMTi__
1371#define PRIiLEAST16 __INT_LEAST16_FMTi__
1372#define PRIiLEAST32 __INT_LEAST32_FMTi__
1373#define PRIiLEAST64 __INT_LEAST64_FMTi__
1374#define PRIiLEAST8 __INT_LEAST8_FMTi__
1375#define PRIiMAX __INTMAX_FMTi__
1376#define PRIiPTR __INTPTR_FMTi__
1377#define PRIo16 __UINT16_FMTo__
1378#define PRIo32 __UINT32_FMTo__
1379#define PRIo64 __UINT64_FMTo__
1380#define PRIo8 __UINT8_FMTo__
1381#define PRIoFAST16 __UINT_FAST16_FMTo__
1382#define PRIoFAST32 __UINT_FAST32_FMTo__
1383#define PRIoFAST64 __UINT_FAST64_FMTo__
1384#define PRIoFAST8 __UINT_FAST8_FMTo__
1385#define PRIoLEAST16 __UINT_LEAST16_FMTo__
1386#define PRIoLEAST32 __UINT_LEAST32_FMTo__
1387#define PRIoLEAST64 __UINT_LEAST64_FMTo__
1388#define PRIoLEAST8 __UINT_LEAST8_FMTo__
1389#define PRIoMAX __UINTMAX_FMTo__
1390#define PRIoPTR __UINTPTR_FMTo__
1391#define PRIu16 __UINT16_FMTu__
1392#define PRIu32 __UINT32_FMTu__
1393#define PRIu64 __UINT64_FMTu__
1394#define PRIu8 __UINT8_FMTu__
1395#define PRIuFAST16 __UINT_FAST16_FMTu__
1396#define PRIuFAST32 __UINT_FAST32_FMTu__
1397#define PRIuFAST64 __UINT_FAST64_FMTu__
1398#define PRIuFAST8 __UINT_FAST8_FMTu__
1399#define PRIuLEAST16 __UINT_LEAST16_FMTu__
1400#define PRIuLEAST32 __UINT_LEAST32_FMTu__
1401#define PRIuLEAST64 __UINT_LEAST64_FMTu__
1402#define PRIuLEAST8 __UINT_LEAST8_FMTu__
1403#define PRIuMAX __UINTMAX_FMTu__
1404#define PRIuPTR __UINTPTR_FMTu__
1405#define PRIx16 __UINT16_FMTx__
1406#define PRIx32 __UINT32_FMTx__
1407#define PRIx64 __UINT64_FMTx__
1408#define PRIx8 __UINT8_FMTx__
1409#define PRIxFAST16 __UINT_FAST16_FMTx__
1410#define PRIxFAST32 __UINT_FAST32_FMTx__
1411#define PRIxFAST64 __UINT_FAST64_FMTx__
1412#define PRIxFAST8 __UINT_FAST8_FMTx__
1413#define PRIxLEAST16 __UINT_LEAST16_FMTx__
1414#define PRIxLEAST32 __UINT_LEAST32_FMTx__
1415#define PRIxLEAST64 __UINT_LEAST64_FMTx__
1416#define PRIxLEAST8 __UINT_LEAST8_FMTx__
1417#define PRIxMAX __UINTMAX_FMTx__
1418#define PRIxPTR __UINTPTR_FMTx__
dcd28cf8
AB
1419#define PTHREAD_BARRIER_SERIAL_THREAD (-1)
1420#define PTHREAD_CANCELED ((void *)-1)
1421#define PTHREAD_CANCEL_ASYNCHRONOUS 1
1422#define PTHREAD_CANCEL_DEFERRED 0
1423#define PTHREAD_CANCEL_DISABLE 1
1424#define PTHREAD_CANCEL_ENABLE 0
1425#define PTHREAD_CANCEL_MASKED 2
1426#define PTHREAD_COND_INITIALIZER {{{0}}}
1427#define PTHREAD_CREATE_DETACHED 1
1428#define PTHREAD_CREATE_JOINABLE 0
1429#define PTHREAD_DESTRUCTOR_ITERATIONS 4
1430#define PTHREAD_EXPLICIT_SCHED 1
1431#define PTHREAD_INHERIT_SCHED 0
1432#define PTHREAD_KEYS_MAX 128
1433#define PTHREAD_MUTEX_DEFAULT 0
1434#define PTHREAD_MUTEX_ERRORCHECK 2
1435#define PTHREAD_MUTEX_INITIALIZER {{{0}}}
1436#define PTHREAD_MUTEX_NORMAL 0
1437#define PTHREAD_MUTEX_RECURSIVE 1
1438#define PTHREAD_MUTEX_ROBUST 1
1439#define PTHREAD_MUTEX_STALLED 0
1440#define PTHREAD_NULL ((pthread_t)0)
1441#define PTHREAD_ONCE_INIT 0
1442#define PTHREAD_PRIO_INHERIT 1
1443#define PTHREAD_PRIO_NONE 0
1444#define PTHREAD_PRIO_PROTECT 2
1445#define PTHREAD_PROCESS_PRIVATE 0
1446#define PTHREAD_PROCESS_SHARED 1
1447#define PTHREAD_RWLOCK_INITIALIZER {{{0}}}
1448#define PTHREAD_SCOPE_PROCESS 1
1449#define PTHREAD_SCOPE_SYSTEM 0
1450#define PTHREAD_STACK_MIN 2048
320054e8
DG
1451#define PTRBITS (sizeof(char *) * 8)
1452#define PTRDIFF_MAX INT32_MAX
1453#define PTRDIFF_MIN INT32_MIN
1454#define PUTLONG NS_PUT32
1455#define PUTSHORT NS_PUT16
1456#define QFIXEDSZ NS_QFIXEDSZ
1457#define QUERY ns_o_query
1458#define RADIXCHAR 0x10000
1459#define RAND_MAX (0x7fffffff)
1460#define REC_EOF '\002'
1461#define REC_EOR '\001'
1462#define REC_ESC '\377'
1463#define REFUSED ns_r_refused
1464#define REGTYPE '0'
1465#define REG_BADBR 10
1466#define REG_BADPAT 2
1467#define REG_BADRPT 13
1468#define REG_EBRACE 9
1469#define REG_EBRACK 7
1470#define REG_ECOLLATE 3
1471#define REG_ECTYPE 4
1472#define REG_EESCAPE 5
1473#define REG_ENOSYS -1
1474#define REG_EPAREN 8
1475#define REG_ERANGE 11
1476#define REG_ESPACE 12
1477#define REG_ESUBREG 6
1478#define REG_EXTENDED 1
1479#define REG_ICASE 2
1480#define REG_NEWLINE 4
1481#define REG_NOMATCH 1
1482#define REG_NOSUB 8
1483#define REG_NOTBOL 1
1484#define REG_NOTEOL 2
1485#define REG_OK 0
1486#define RE_DUP_MAX 255
1487#define RMSGD 0x0001
1488#define RMSGN 0x0002
1489#define RNORM 0x0000
1490#define RPM_PCO_ADD 1
1491#define RPM_PCO_CHANGE 2
1492#define RPM_PCO_SETGLOBAL 3
1493#define RPROTDAT 0x0004
1494#define RPROTDIS 0x0008
1495#define RPROTMASK 0x001C
1496#define RPROTNORM 0x0010
1497#define RRFIXEDSZ NS_RRFIXEDSZ
1498#define RRQ 01
1499#define RS_HIPRI 0x01
320054e8
DG
1500#define RUSAGE_CHILDREN 2
1501#define RUSAGE_SELF 1
215adc8a 1502#define R_OK (4)
320054e8
DG
1503#define SARMAG 8
1504#define SB 250
1505#define SCHAR_MAX 127
1506#define SCHAR_MIN (-128)
ad22a590
DG
1507#define SCNd16 __INT16_FMTd__
1508#define SCNd32 __INT32_FMTd__
1509#define SCNd64 __INT64_FMTd__
1510#define SCNd8 __INT8_FMTd__
1511#define SCNdFAST16 __INT_FAST16_FMTd__
1512#define SCNdFAST32 __INT_FAST32_FMTd__
1513#define SCNdFAST64 __INT_FAST64_FMTd__
1514#define SCNdFAST8 __INT_FAST8_FMTd__
1515#define SCNdLEAST16 __INT_LEAST16_FMTd__
1516#define SCNdLEAST32 __INT_LEAST32_FMTd__
1517#define SCNdLEAST64 __INT_LEAST64_FMTd__
1518#define SCNdLEAST8 __INT_LEAST8_FMTd__
1519#define SCNdMAX __INTMAX_FMTd__
1520#define SCNdPTR __INTPTR_FMTd__
1521#define SCNi16 __INT16_FMTi__
1522#define SCNi32 __INT32_FMTi__
1523#define SCNi64 __INT64_FMTi__
1524#define SCNi8 __INT8_FMTi__
1525#define SCNiFAST16 __INT_FAST16_FMTi__
1526#define SCNiFAST32 __INT_FAST32_FMTi__
1527#define SCNiFAST64 __INT_FAST64_FMTi__
1528#define SCNiFAST8 __INT_FAST8_FMTi__
1529#define SCNiLEAST16 __INT_LEAST16_FMTi__
1530#define SCNiLEAST32 __INT_LEAST32_FMTi__
1531#define SCNiLEAST64 __INT_LEAST64_FMTi__
1532#define SCNiLEAST8 __INT_LEAST8_FMTi__
1533#define SCNiMAX __INTMAX_FMTi__
1534#define SCNiPTR __INTPTR_FMTi__
1535#define SCNo16 __UINT16_FMTo__
1536#define SCNo32 __UINT32_FMTo__
1537#define SCNo64 __UINT64_FMTo__
1538#define SCNo8 __UINT8_FMTo__
1539#define SCNoFAST16 __UINT_FAST16_FMTo__
1540#define SCNoFAST32 __UINT_FAST32_FMTo__
1541#define SCNoFAST64 __UINT_FAST64_FMTo__
1542#define SCNoFAST8 __UINT_FAST8_FMTo__
1543#define SCNoLEAST16 __UINT_LEAST16_FMTo__
1544#define SCNoLEAST32 __UINT_LEAST32_FMTo__
1545#define SCNoLEAST64 __UINT_LEAST64_FMTo__
1546#define SCNoLEAST8 __UINT_LEAST8_FMTo__
1547#define SCNoMAX __UINTMAX_FMTo__
1548#define SCNoPTR __UINTPTR_FMTo__
1549#define SCNu16 __UINT16_FMTu__
1550#define SCNu32 __UINT32_FMTu__
1551#define SCNu64 __UINT64_FMTu__
1552#define SCNu8 __UINT8_FMTu__
1553#define SCNuFAST16 __UINT_FAST16_FMTu__
1554#define SCNuFAST32 __UINT_FAST32_FMTu__
1555#define SCNuFAST64 __UINT_FAST64_FMTu__
1556#define SCNuFAST8 __UINT_FAST8_FMTu__
1557#define SCNuLEAST16 __UINT_LEAST16_FMTu__
1558#define SCNuLEAST32 __UINT_LEAST32_FMTu__
1559#define SCNuLEAST64 __UINT_LEAST64_FMTu__
1560#define SCNuLEAST8 __UINT_LEAST8_FMTu__
1561#define SCNuMAX __UINTMAX_FMTu__
1562#define SCNuPTR __UINTPTR_FMTu__
1563#define SCNx16 __UINT16_FMTx__
1564#define SCNx32 __UINT32_FMTx__
1565#define SCNx64 __UINT64_FMTx__
1566#define SCNx8 __UINT8_FMTx__
1567#define SCNxFAST16 __UINT_FAST16_FMTx__
1568#define SCNxFAST32 __UINT_FAST32_FMTx__
1569#define SCNxFAST64 __UINT_FAST64_FMTx__
1570#define SCNxFAST8 __UINT_FAST8_FMTx__
1571#define SCNxLEAST16 __UINT_LEAST16_FMTx__
1572#define SCNxLEAST32 __UINT_LEAST32_FMTx__
1573#define SCNxLEAST64 __UINT_LEAST64_FMTx__
1574#define SCNxLEAST8 __UINT_LEAST8_FMTx__
1575#define SCNxMAX __UINTMAX_FMTx__
1576#define SCNxPTR __UINTPTR_FMTx__
320054e8
DG
1577#define SE 240
1578#define SEEK_CUR __WASI_WHENCE_CUR
1579#define SEEK_END __WASI_WHENCE_END
1580#define SEEK_SET __WASI_WHENCE_SET
1581#define SEGSIZE 512
320054e8 1582#define SEM_FAILED ((sem_t *)0)
2057ce92
AB
1583#define SEM_NSEMS_MAX 256
1584#define SEM_VALUE_MAX 0x7fffffff
320054e8 1585#define SERVFAIL ns_r_servfail
320054e8
DG
1586#define SHORTBITS (sizeof(short) * 8)
1587#define SHRT_MAX 0x7fff
1588#define SHRT_MIN (-1-0x7fff)
446cb3f1 1589#define SHUT_RD __WASI_SDFLAGS_RD
320054e8 1590#define SHUT_RDWR (SHUT_RD | SHUT_WR)
446cb3f1 1591#define SHUT_WR __WASI_SDFLAGS_WR
320054e8
DG
1592#define SIG_ATOMIC_MAX INT32_MAX
1593#define SIG_ATOMIC_MIN INT32_MIN
320054e8 1594#define SIZE_MAX UINT32_MAX
320054e8 1595#define SI_LOAD_SHIFT 16
320054e8
DG
1596#define SLC_ABORT 7
1597#define SLC_ACK 0x80
1598#define SLC_AO 4
1599#define SLC_AYT 5
1600#define SLC_BRK 2
1601#define SLC_CANTCHANGE 1
1602#define SLC_DEFAULT 3
1603#define SLC_EC 10
1604#define SLC_EL 11
1605#define SLC_EOF 8
1606#define SLC_EOR 6
1607#define SLC_EW 12
1608#define SLC_FLAGS 1
1609#define SLC_FLUSHIN 0x40
1610#define SLC_FLUSHOUT 0x20
1611#define SLC_FORW1 17
1612#define SLC_FORW2 18
1613#define SLC_FUNC 0
1614#define SLC_IP 3
1615#define SLC_LEVELBITS 0x03
1616#define SLC_LNEXT 14
1617#define SLC_NAME(x) slc_names[x]
1618#define SLC_NAMELIST "0", "SYNCH", "BRK", "IP", "AO", "AYT", "EOR", "ABORT", "EOF", "SUSP", "EC", "EL", "EW", "RP", "LNEXT", "XON", "XOFF", "FORW1", "FORW2", 0,
1619#define SLC_NAMES SLC_NAMELIST
1620#define SLC_NAME_OK(x) ((unsigned int)(x) <= NSLC)
1621#define SLC_NOSUPPORT 0
1622#define SLC_RP 13
1623#define SLC_SUSP 9
1624#define SLC_SYNCH 1
1625#define SLC_VALUE 2
1626#define SLC_VARIABLE 2
1627#define SLC_XOFF 16
1628#define SLC_XON 15
1629#define SNDPIPE 0x002
1630#define SNDZERO 0x001
1631#define SOCK_CLOEXEC (0x00002000)
1632#define SOCK_DGRAM __WASI_FILETYPE_SOCKET_DGRAM
1633#define SOCK_NONBLOCK (0x00004000)
1634#define SOCK_STREAM __WASI_FILETYPE_SOCKET_STREAM
1635#define SOL_SOCKET 0x7fffffff
1636#define SOL_TCP 6
1637#define SOL_UDP 17
1638#define SO_TYPE 3
1639#define SSIZE_MAX LONG_MAX
1640#define STATUS ns_o_status
1641#define STA_CLK 0x8000
1642#define STA_CLOCKERR 0x1000
1643#define STA_DEL 0x0020
1644#define STA_FLL 0x0008
1645#define STA_FREQHOLD 0x0080
1646#define STA_INS 0x0010
1647#define STA_MODE 0x4000
1648#define STA_NANO 0x2000
1649#define STA_PLL 0x0001
1650#define STA_PPSERROR 0x0800
1651#define STA_PPSFREQ 0x0002
1652#define STA_PPSJITTER 0x0200
1653#define STA_PPSSIGNAL 0x0100
1654#define STA_PPSTIME 0x0004
1655#define STA_PPSWANDER 0x0400
1656#define STA_RONLY (STA_PPSSIGNAL | STA_PPSJITTER | STA_PPSWANDER | STA_PPSERROR | STA_CLOCKERR | STA_NANO | STA_MODE | STA_CLK)
1657#define STA_UNSYNC 0x0040
1658#define STDERR_FILENO 2
1659#define STDIN_FILENO 0
1660#define STDOUT_FILENO 1
1661#define STRU_F 1
1662#define STRU_P 3
1663#define STRU_R 2
1664#define SUN_LEN(s) (2+strlen((s)->sun_path))
1665#define SUSP 237
1666#define SYMLOOP_MAX 40
1667#define SYMTYPE '2'
1668#define SYNCH 242
1669#define S_ADDT ns_s_ar
1670#define S_BANDURG 0x0200
1671#define S_ERROR 0x0010
1672#define S_HANGUP 0x0020
1673#define S_HIPRI 0x0002
1674#define S_IEXEC S_IXUSR
1675#define S_IFBLK (0x6000)
1676#define S_IFCHR (0x2000)
1677#define S_IFDIR (0x4000)
1678#define S_IFIFO (0xc000)
1679#define S_IFLNK (0xa000)
1680#define S_IFMT (S_IFBLK | S_IFCHR | S_IFDIR | S_IFIFO | S_IFLNK | S_IFREG | S_IFSOCK)
1681#define S_IFREG (0x8000)
1682#define S_IFSOCK (0xc000)
1683#define S_INPUT 0x0001
1684#define S_IREAD S_IRUSR
1685#define S_IRGRP (0x20)
1686#define S_IROTH (0x4)
1687#define S_IRUSR (0x100)
1688#define S_IRWXG (S_IXGRP | S_IWGRP | S_IRGRP)
1689#define S_IRWXO (S_IXOTH | S_IWOTH | S_IROTH)
1690#define S_IRWXU (S_IXUSR | S_IWUSR | S_IRUSR)
1691#define S_ISBLK(m) (((m)&S_IFMT) == S_IFBLK)
1692#define S_ISCHR(m) (((m)&S_IFMT) == S_IFCHR)
1693#define S_ISDIR(m) (((m)&S_IFMT) == S_IFDIR)
1694#define S_ISFIFO(m) (((m)&S_IFMT) == S_IFIFO)
1695#define S_ISGID (0x400)
1696#define S_ISLNK(m) (((m)&S_IFMT) == S_IFLNK)
1697#define S_ISREG(m) (((m)&S_IFMT) == S_IFREG)
1698#define S_ISSOCK(m) (((m)&S_IFMT) == S_IFSOCK)
1699#define S_ISUID (0x800)
1700#define S_ISVTX (0x200)
1701#define S_IWGRP (0x10)
1702#define S_IWOTH (0x2)
1703#define S_IWRITE S_IWUSR
1704#define S_IWUSR (0x80)
1705#define S_IXGRP (0x8)
1706#define S_IXOTH (0x1)
1707#define S_IXUSR (0x40)
1708#define S_MSG 0x0008
1709#define S_OUTPUT 0x0004
1710#define S_PREREQ ns_s_pr
1711#define S_RDBAND 0x0080
1712#define S_RDNORM 0x0040
1713#define S_UPDATE ns_s_ud
1714#define S_WRBAND 0x0100
1715#define S_WRNORM S_OUTPUT
1716#define S_ZONE ns_s_zn
9f0d8e85
DG
1717#define TCPI_OPT_ECN 8
1718#define TCPI_OPT_SACK 2
1719#define TCPI_OPT_TIMESTAMPS 1
1720#define TCPI_OPT_WSCALE 4
320054e8
DG
1721#define TCPOLEN_MAXSEG 4
1722#define TCPOLEN_SACK_PERMITTED 2
1723#define TCPOLEN_TIMESTAMP 10
1724#define TCPOLEN_WINDOW 3
1725#define TCPOPT_EOL 0
1726#define TCPOPT_MAXSEG 2
1727#define TCPOPT_NOP 1
1728#define TCPOPT_SACK 5
1729#define TCPOPT_SACK_PERMITTED 4
1730#define TCPOPT_TIMESTAMP 8
1731#define TCPOPT_WINDOW 3
9f0d8e85
DG
1732#define TCP_CA_CWR 2
1733#define TCP_CA_Disorder 1
1734#define TCP_CA_Loss 4
1735#define TCP_CA_Open 0
1736#define TCP_CA_Recovery 3
320054e8
DG
1737#define TCP_CC_INFO 26
1738#define TCP_CLOSE 7
1739#define TCP_CLOSE_WAIT 8
1740#define TCP_CLOSING 11
1741#define TCP_CM_INQ TCP_INQ
1742#define TCP_CONGESTION 13
1743#define TCP_CORK 3
1744#define TCP_DEFER_ACCEPT 9
322bd4ff 1745#define TCP_ENCAP_ESPINTCP 7
320054e8
DG
1746#define TCP_ESTABLISHED 1
1747#define TCP_FASTOPEN 23
1748#define TCP_FASTOPEN_CONNECT 30
1749#define TCP_FASTOPEN_KEY 33
1750#define TCP_FASTOPEN_NO_COOKIE 34
1751#define TCP_FIN_WAIT1 4
1752#define TCP_FIN_WAIT2 5
1753#define TCP_INFO 11
1754#define TCP_INQ 36
1755#define TCP_KEEPCNT 6
1756#define TCP_KEEPIDLE 4
1757#define TCP_KEEPINTVL 5
1758#define TCP_LAST_ACK 9
1759#define TCP_LINGER2 8
1760#define TCP_LISTEN 10
1761#define TCP_MAXSEG 2
1762#define TCP_MD5SIG 14
1763#define TCP_MD5SIG_EXT 32
322bd4ff
DG
1764#define TCP_MD5SIG_FLAG_IFINDEX 0x2
1765#define TCP_MD5SIG_FLAG_PREFIX 0x1
9f0d8e85 1766#define TCP_MD5SIG_MAXKEYLEN 80
320054e8
DG
1767#define TCP_NODELAY 1
1768#define TCP_NOTSENT_LOWAT 25
1769#define TCP_QUEUE_SEQ 21
1770#define TCP_QUICKACK 12
5d8a1409 1771#define TCP_RECEIVE_ZEROCOPY_FLAG_TLB_CLEAN_HINT 0x1
320054e8 1772#define TCP_REPAIR 19
9f0d8e85
DG
1773#define TCP_REPAIR_OFF 0
1774#define TCP_REPAIR_OFF_NO_WP -1
1775#define TCP_REPAIR_ON 1
320054e8
DG
1776#define TCP_REPAIR_OPTIONS 22
1777#define TCP_REPAIR_QUEUE 20
1778#define TCP_REPAIR_WINDOW 29
1779#define TCP_SAVED_SYN 28
1780#define TCP_SAVE_SYN 27
1781#define TCP_SYNCNT 7
1782#define TCP_SYN_RECV 3
1783#define TCP_SYN_SENT 2
1784#define TCP_THIN_DUPACK 17
1785#define TCP_THIN_LINEAR_TIMEOUTS 16
1786#define TCP_TIMESTAMP 24
1787#define TCP_TIME_WAIT 6
575e1579 1788#define TCP_TX_DELAY 37
320054e8
DG
1789#define TCP_ULP 31
1790#define TCP_USER_TIMEOUT 18
1791#define TCP_WINDOW_CLAMP 10
1792#define TCP_ZEROCOPY_RECEIVE 35
320054e8
DG
1793#define TELCMD(x) telcmds[(x)-TELCMD_FIRST]
1794#define TELCMD_FIRST xEOF
1795#define TELCMD_LAST IAC
1796#define TELCMD_OK(x) ((unsigned int)(x) <= TELCMD_LAST && (unsigned int)(x) >= TELCMD_FIRST)
1797#define TELOPT_3270REGIME 29
1798#define TELOPT_AUTHENTICATION 37
1799#define TELOPT_BINARY 0
1800#define TELOPT_BM 19
1801#define TELOPT_DET 20
1802#define TELOPT_ECHO 1
1803#define TELOPT_ENCRYPT 38
1804#define TELOPT_EOR 25
1805#define TELOPT_EXOPL 255
1806#define TELOPT_LFLOW 33
1807#define TELOPT_LINEMODE 34
1808#define TELOPT_LOGOUT 18
1809#define TELOPT_NAMS 4
1810#define TELOPT_NAOCRD 10
1811#define TELOPT_NAOFFD 13
1812#define TELOPT_NAOHTD 12
1813#define TELOPT_NAOHTS 11
1814#define TELOPT_NAOL 8
1815#define TELOPT_NAOLFD 16
1816#define TELOPT_NAOP 9
1817#define TELOPT_NAOVTD 15
1818#define TELOPT_NAOVTS 14
1819#define TELOPT_NAWS 31
1820#define TELOPT_NEW_ENVIRON 39
1821#define TELOPT_OLD_ENVIRON 36
1822#define TELOPT_OUTMRK 27
1823#define TELOPT_RCP 2
1824#define TELOPT_RCTE 7
1825#define TELOPT_SGA 3
1826#define TELOPT_SNDLOC 23
1827#define TELOPT_STATUS 5
1828#define TELOPT_SUPDUP 21
1829#define TELOPT_SUPDUPOUTPUT 22
1830#define TELOPT_TM 6
1831#define TELOPT_TSPEED 32
1832#define TELOPT_TTYLOC 28
1833#define TELOPT_TTYPE 24
1834#define TELOPT_TUID 26
1835#define TELOPT_X3PAD 30
1836#define TELOPT_XASCII 17
1837#define TELOPT_XDISPLOC 35
1838#define TELQUAL_INFO 2
1839#define TELQUAL_IS 0
1840#define TELQUAL_NAME 3
1841#define TELQUAL_REPLY 2
1842#define TELQUAL_SEND 1
320054e8
DG
1843#define TGEXEC 00010
1844#define TGREAD 00040
1845#define TGWRITE 00020
1846#define THOUSEP 0x10001
1847#define TH_ACK 0x10
1848#define TH_FIN 0x01
1849#define TH_PUSH 0x08
1850#define TH_RST 0x04
1851#define TH_SYN 0x02
1852#define TH_URG 0x20
446cb3f1 1853#define TIMER_ABSTIME __WASI_SUBCLOCKFLAGS_SUBSCRIPTION_CLOCK_ABSTIME
9f0d8e85
DG
1854#define TIMESPEC_TO_TIMEVAL(tv,ts) ( (tv)->tv_sec = (ts)->tv_sec, (tv)->tv_usec = (ts)->tv_nsec / 1000, (void)0 )
1855#define TIMEVAL_TO_TIMESPEC(tv,ts) ( (ts)->tv_sec = (tv)->tv_sec, (ts)->tv_nsec = (tv)->tv_usec * 1000, (void)0 )
320054e8
DG
1856#define TIME_BAD TIME_ERROR
1857#define TIME_DEL 2
1858#define TIME_ERROR 5
1859#define TIME_INS 1
1860#define TIME_OK 0
1861#define TIME_OOP 3
51969495 1862#define TIME_UTC 1
320054e8
DG
1863#define TIME_WAIT 4
1864#define TMAGIC "ustar"
1865#define TMAGLEN 6
1866#define TOEXEC 00001
1867#define TOREAD 00004
320054e8
DG
1868#define TOWRITE 00002
1869#define TRANSIENT 4
1870#define TSGID 02000
1871#define TSS_DTOR_ITERATIONS 4
1872#define TSUID 04000
1873#define TSVTX 01000
1874#define TTYDEF_CFLAG (CREAD | CS7 | PARENB | HUPCL)
1875#define TTYDEF_IFLAG (BRKINT | ISTRIP | ICRNL | IMAXBEL | IXON | IXANY)
1876#define TTYDEF_LFLAG (ECHO | ICANON | ISIG | IEXTEN | ECHOE|ECHOKE|ECHOCTL)
1877#define TTYDEF_OFLAG (OPOST | ONLCR | XTABS)
1878#define TTYDEF_SPEED (B9600)
1879#define TTY_NAME_MAX 32
1880#define TUEXEC 00100
1881#define TUREAD 00400
1882#define TUWRITE 00200
1883#define TVERSION "00"
1884#define TVERSLEN 2
1885#define TYPE_A 1
1886#define TYPE_E 2
1887#define TYPE_I 3
1888#define TYPE_L 4
1889#define TZNAME_MAX 6
1890#define T_A ns_t_a
1891#define T_A6 ns_t_a6
1892#define T_AAAA ns_t_aaaa
1893#define T_AFSDB ns_t_afsdb
1894#define T_ANY ns_t_any
1895#define T_ATMA ns_t_atma
1896#define T_AXFR ns_t_axfr
1897#define T_CNAME ns_t_cname
1898#define T_DNAME ns_t_dname
1899#define T_EID ns_t_eid
1900#define T_FMT 0x2002A
1901#define T_FMT_AMPM 0x2002B
1902#define T_GPOS ns_t_gpos
1903#define T_HINFO ns_t_hinfo
1904#define T_ISDN ns_t_isdn
1905#define T_IXFR ns_t_ixfr
1906#define T_KEY ns_t_key
1907#define T_LOC ns_t_loc
1908#define T_MAILA ns_t_maila
1909#define T_MAILB ns_t_mailb
1910#define T_MB ns_t_mb
1911#define T_MD ns_t_md
1912#define T_MF ns_t_mf
1913#define T_MG ns_t_mg
1914#define T_MINFO ns_t_minfo
1915#define T_MR ns_t_mr
1916#define T_MX ns_t_mx
1917#define T_NAPTR ns_t_naptr
1918#define T_NIMLOC ns_t_nimloc
1919#define T_NS ns_t_ns
1920#define T_NSAP ns_t_nsap
1921#define T_NSAP_PTR ns_t_nsap_ptr
1922#define T_NULL ns_t_null
1923#define T_NXT ns_t_nxt
1924#define T_PTR ns_t_ptr
1925#define T_PX ns_t_px
1926#define T_RP ns_t_rp
1927#define T_RT ns_t_rt
1928#define T_SIG ns_t_sig
1929#define T_SOA ns_t_soa
1930#define T_SRV ns_t_srv
1931#define T_TSIG ns_t_tsig
1932#define T_TXT ns_t_txt
1933#define T_WKS ns_t_wks
1934#define T_X25 ns_t_x25
1935#define UCHAR_MAX 255
1936#define UDP_CORK 1
1937#define UDP_ENCAP 100
1938#define UDP_ENCAP_ESPINUDP 2
1939#define UDP_ENCAP_ESPINUDP_NON_IKE 1
1940#define UDP_ENCAP_GTP0 4
1941#define UDP_ENCAP_GTP1U 5
1942#define UDP_ENCAP_L2TPINUDP 3
f41256b6
DG
1943#define UDP_ENCAP_RXRPC 6
1944#define UDP_GRO 104
320054e8
DG
1945#define UDP_NO_CHECK6_RX 102
1946#define UDP_NO_CHECK6_TX 101
1947#define UDP_SEGMENT 103
1948#define UINT16_C(c) c
1949#define UINT16_MAX (0xffff)
1950#define UINT32_C(c) c ## U
1951#define UINT32_MAX (0xffffffffu)
1952#define UINT64_C(c) c ## ULL
1953#define UINT64_MAX (0xffffffffffffffffu)
1954#define UINT8_C(c) c
1955#define UINT8_MAX (0xff)
1956#define UINTMAX_C(c) c ## ULL
1957#define UINTMAX_MAX UINT64_MAX
1958#define UINTPTR_MAX UINT32_MAX
1959#define UINT_FAST16_MAX UINT16_MAX
1960#define UINT_FAST32_MAX UINT32_MAX
1961#define UINT_FAST64_MAX UINT64_MAX
1962#define UINT_FAST8_MAX UINT8_MAX
1963#define UINT_LEAST16_MAX UINT16_MAX
1964#define UINT_LEAST32_MAX UINT32_MAX
1965#define UINT_LEAST64_MAX UINT64_MAX
1966#define UINT_LEAST8_MAX UINT8_MAX
1967#define UINT_MAX 0xffffffffU
1968#define UIO_MAXIOV 1024
1969#define ULLONG_MAX (2ULL*LLONG_MAX+1)
1970#define ULONG_MAX (2UL*LONG_MAX+1)
1971#define USHRT_MAX 0xffff
1972#define UTIME_NOW (-1)
1973#define UTIME_OMIT (-2)
320054e8
DG
1974#define WCHAR_MAX (0x7fffffff+L'\0')
1975#define WCHAR_MIN (-1-0x7fffffff+L'\0')
320054e8 1976#define WEOF 0xffffffffU
320054e8
DG
1977#define WILL 251
1978#define WINT_MAX UINT32_MAX
1979#define WINT_MIN 0U
320054e8
DG
1980#define WONT 252
1981#define WORD_BIT 32
1982#define WRQ 02
215adc8a
DG
1983#define W_OK (2)
1984#define X_OK (1)
320054e8
DG
1985#define YESEXPR 0x50000
1986#define YESSTR 0x50002
1987#define YXDOMAIN ns_r_yxdomain
1988#define YXRRSET ns_r_yxrrset
320054e8 1989#define _ALLOCA_H
9f0d8e85 1990#define _ALL_SOURCE 1
320054e8
DG
1991#define _ARPA_FTP_H
1992#define _ARPA_INET_H
1993#define _ARPA_NAMESER_H
1994#define _ARPA_TELNET_H
1995#define _ARPA_TFTP_H
1996#define _AR_H
320054e8
DG
1997#define _BYTESWAP_H
1998#define _COMPLEX_H
1999#define _CPIO_H
2000#define _CRYPT_H
2001#define _CS_GNU_LIBC_VERSION 2
2002#define _CS_GNU_LIBPTHREAD_VERSION 3
2003#define _CS_PATH 0
2004#define _CS_POSIX_V5_WIDTH_RESTRICTED_ENVS 4
2005#define _CS_POSIX_V6_ILP32_OFF32_CFLAGS 1116
2006#define _CS_POSIX_V6_ILP32_OFF32_LDFLAGS 1117
2007#define _CS_POSIX_V6_ILP32_OFF32_LIBS 1118
2008#define _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS 1119
2009#define _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS 1120
2010#define _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS 1121
2011#define _CS_POSIX_V6_ILP32_OFFBIG_LIBS 1122
2012#define _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS 1123
2013#define _CS_POSIX_V6_LP64_OFF64_CFLAGS 1124
2014#define _CS_POSIX_V6_LP64_OFF64_LDFLAGS 1125
2015#define _CS_POSIX_V6_LP64_OFF64_LIBS 1126
2016#define _CS_POSIX_V6_LP64_OFF64_LINTFLAGS 1127
2017#define _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS 1128
2018#define _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS 1129
2019#define _CS_POSIX_V6_LPBIG_OFFBIG_LIBS 1130
2020#define _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS 1131
2021#define _CS_POSIX_V6_WIDTH_RESTRICTED_ENVS 1
2022#define _CS_POSIX_V7_ILP32_OFF32_CFLAGS 1132
2023#define _CS_POSIX_V7_ILP32_OFF32_LDFLAGS 1133
2024#define _CS_POSIX_V7_ILP32_OFF32_LIBS 1134
2025#define _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS 1135
2026#define _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS 1136
2027#define _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS 1137
2028#define _CS_POSIX_V7_ILP32_OFFBIG_LIBS 1138
2029#define _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS 1139
2030#define _CS_POSIX_V7_LP64_OFF64_CFLAGS 1140
2031#define _CS_POSIX_V7_LP64_OFF64_LDFLAGS 1141
2032#define _CS_POSIX_V7_LP64_OFF64_LIBS 1142
2033#define _CS_POSIX_V7_LP64_OFF64_LINTFLAGS 1143
2034#define _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS 1144
2035#define _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS 1145
2036#define _CS_POSIX_V7_LPBIG_OFFBIG_LIBS 1146
2037#define _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS 1147
2038#define _CS_POSIX_V7_WIDTH_RESTRICTED_ENVS 5
2039#define _CS_V6_ENV 1148
2040#define _CS_V7_ENV 1149
2041#define _CTYPE_H
2042#define _Complex_I (0.0f+1.0fi)
2043#define _DIRENT_H
320054e8
DG
2044#define _DIRENT_HAVE_D_TYPE
2045#define _ENDIAN_H
2046#define _ERRNO_H
2047#define _ERR_H
2048#define _FCNTL_H
2049#define _FEATURES_H
2050#define _FENV_H
2051#define _FLOAT_H
2052#define _FMTMSG_H
2053#define _FNMATCH_H
2054#define _FTW_H
2055#define _GETOPT_H
2056#define _GLOB_H
9f0d8e85 2057#define _GNU_SOURCE 1
320054e8
DG
2058#define _ICONV_H
2059#define _IFADDRS_H
2060#define _ILP32 1
2061#define _INTTYPES_H
2062#define _IOFBF 0
2063#define _IOLBF 1
2064#define _IONBF 2
320054e8
DG
2065#define _ISO646_H
2066#define _LANGINFO_H
2067#define _LIBGEN_H
320054e8
DG
2068#define _LIMITS_H
2069#define _LOCALE_H
2070#define _MALLOC_H
2071#define _MATH_H
2072#define _MONETARY_H
2073#define _MQUEUE_H
320054e8 2074#define _NETINET_ICMP6_H
320054e8
DG
2075#define _NETINET_IGMP_H
2076#define _NETINET_IN_H
2077#define _NETINET_IN_SYSTM_H
2078#define _NETINET_IP6_H
2079#define _NETINET_IP_H
2080#define _NETINET_IP_ICMP_H
2081#define _NETINET_TCP_H
2082#define _NETINET_UDP_H
2083#define _NETPACKET_PACKET_H
320054e8
DG
2084#define _NL_LOCALE_NAME(cat) (((cat)<<16) | 0xffff)
2085#define _NL_TYPES_H
2086#define _PC_2_SYMLINKS 20
2087#define _PC_ALLOC_SIZE_MIN 18
2088#define _PC_ASYNC_IO 10
2089#define _PC_CHOWN_RESTRICTED 6
2090#define _PC_FILESIZEBITS 13
2091#define _PC_LINK_MAX 0
2092#define _PC_MAX_CANON 1
2093#define _PC_MAX_INPUT 2
2094#define _PC_NAME_MAX 3
2095#define _PC_NO_TRUNC 7
2096#define _PC_PATH_MAX 4
2097#define _PC_PIPE_BUF 5
2098#define _PC_PRIO_IO 11
2099#define _PC_REC_INCR_XFER_SIZE 14
2100#define _PC_REC_MAX_XFER_SIZE 15
2101#define _PC_REC_MIN_XFER_SIZE 16
2102#define _PC_REC_XFER_ALIGN 17
2103#define _PC_SOCK_MAXBUF 12
2104#define _PC_SYMLINK_MAX 19
2105#define _PC_SYNC_IO 9
2106#define _PC_VDISABLE 8
2107#define _POLL_H
2108#define _POSIX2_BC_BASE_MAX 99
2109#define _POSIX2_BC_DIM_MAX 2048
2110#define _POSIX2_BC_SCALE_MAX 99
2111#define _POSIX2_BC_STRING_MAX 1000
2112#define _POSIX2_CHARCLASS_NAME_MAX 14
2113#define _POSIX2_COLL_WEIGHTS_MAX 2
2114#define _POSIX2_C_BIND _POSIX_VERSION
2115#define _POSIX2_EXPR_NEST_MAX 32
2116#define _POSIX2_LINE_MAX 2048
2117#define _POSIX2_RE_DUP_MAX 255
2118#define _POSIX2_VERSION _POSIX_VERSION
2119#define _POSIX_ADVISORY_INFO _POSIX_VERSION
2120#define _POSIX_AIO_LISTIO_MAX 2
2121#define _POSIX_AIO_MAX 1
2122#define _POSIX_ARG_MAX 4096
2123#define _POSIX_BARRIERS _POSIX_VERSION
2124#define _POSIX_CHILD_MAX 25
2125#define _POSIX_CHOWN_RESTRICTED 1
2126#define _POSIX_CLOCKRES_MIN 20000000
2127#define _POSIX_CLOCK_SELECTION _POSIX_VERSION
2128#define _POSIX_CPUTIME _POSIX_VERSION
2129#define _POSIX_DELAYTIMER_MAX 32
2130#define _POSIX_FSYNC _POSIX_VERSION
2131#define _POSIX_HOST_NAME_MAX 255
2132#define _POSIX_IPV6 _POSIX_VERSION
2133#define _POSIX_LINK_MAX 8
2134#define _POSIX_LOGIN_NAME_MAX 9
2135#define _POSIX_MAX_CANON 255
2136#define _POSIX_MAX_INPUT 255
2137#define _POSIX_MONOTONIC_CLOCK _POSIX_VERSION
9f0d8e85
DG
2138#define _POSIX_MQ_OPEN_MAX 8
2139#define _POSIX_MQ_PRIO_MAX 32
320054e8
DG
2140#define _POSIX_NAME_MAX 14
2141#define _POSIX_NGROUPS_MAX 8
2142#define _POSIX_NO_TRUNC 1
2143#define _POSIX_OPEN_MAX 20
2144#define _POSIX_PATH_MAX 256
2145#define _POSIX_PIPE_BUF 512
2146#define _POSIX_READER_WRITER_LOCKS _POSIX_VERSION
2147#define _POSIX_REALTIME_SIGNALS _POSIX_VERSION
2148#define _POSIX_REGEXP 1
2149#define _POSIX_RE_DUP_MAX 255
2150#define _POSIX_RTSIG_MAX 8
2151#define _POSIX_SEM_NSEMS_MAX 256
2152#define _POSIX_SEM_VALUE_MAX 32767
2153#define _POSIX_SIGQUEUE_MAX 32
2154#define _POSIX_SPIN_LOCKS _POSIX_VERSION
2155#define _POSIX_SSIZE_MAX 32767
2156#define _POSIX_SS_REPL_MAX 4
2157#define _POSIX_STREAM_MAX 8
2158#define _POSIX_SYMLINK_MAX 255
2159#define _POSIX_SYMLOOP_MAX 8
2160#define _POSIX_THREADS _POSIX_VERSION
2161#define _POSIX_THREAD_ATTR_STACKADDR _POSIX_VERSION
2162#define _POSIX_THREAD_ATTR_STACKSIZE _POSIX_VERSION
2163#define _POSIX_THREAD_CPUTIME _POSIX_VERSION
2164#define _POSIX_THREAD_DESTRUCTOR_ITERATIONS 4
2165#define _POSIX_THREAD_KEYS_MAX 128
2166#define _POSIX_THREAD_PRIORITY_SCHEDULING _POSIX_VERSION
2167#define _POSIX_THREAD_PROCESS_SHARED _POSIX_VERSION
2168#define _POSIX_THREAD_SAFE_FUNCTIONS _POSIX_VERSION
2169#define _POSIX_THREAD_THREADS_MAX 64
2170#define _POSIX_TIMEOUTS _POSIX_VERSION
2171#define _POSIX_TIMERS _POSIX_VERSION
2172#define _POSIX_TIMER_MAX 32
2173#define _POSIX_TRACE_EVENT_NAME_MAX 30
2174#define _POSIX_TRACE_NAME_MAX 8
2175#define _POSIX_TRACE_SYS_MAX 8
2176#define _POSIX_TRACE_USER_EVENT_MAX 32
2177#define _POSIX_TTY_NAME_MAX 9
2178#define _POSIX_TZNAME_MAX 6
2179#define _POSIX_V6_ILP32_OFFBIG (1)
2180#define _POSIX_V7_ILP32_OFFBIG (1)
2181#define _POSIX_VDISABLE 0
2182#define _POSIX_VERSION 200809L
dcd28cf8 2183#define _PTHREAD_H
320054e8 2184#define _PTRDIFF_T
dcd28cf8 2185#define _REENTRANT 1
320054e8
DG
2186#define _REGEX_H
2187#define _SCHED_H
2188#define _SC_2_CHAR_TERM 95
2189#define _SC_2_C_BIND 47
2190#define _SC_2_C_DEV 48
2191#define _SC_2_FORT_DEV 49
2192#define _SC_2_FORT_RUN 50
2193#define _SC_2_LOCALEDEF 52
2194#define _SC_2_PBS 168
2195#define _SC_2_PBS_ACCOUNTING 169
2196#define _SC_2_PBS_CHECKPOINT 175
2197#define _SC_2_PBS_LOCATE 170
2198#define _SC_2_PBS_MESSAGE 171
2199#define _SC_2_PBS_TRACK 172
2200#define _SC_2_SW_DEV 51
2201#define _SC_2_UPE 97
2202#define _SC_2_VERSION 46
2203#define _SC_ADVISORY_INFO 132
2204#define _SC_AIO_LISTIO_MAX 23
2205#define _SC_AIO_MAX 24
2206#define _SC_AIO_PRIO_DELTA_MAX 25
2207#define _SC_ARG_MAX 0
2208#define _SC_ASYNCHRONOUS_IO 12
2209#define _SC_ATEXIT_MAX 87
2210#define _SC_AVPHYS_PAGES 86
2211#define _SC_BARRIERS 133
2212#define _SC_BC_BASE_MAX 36
2213#define _SC_BC_DIM_MAX 37
2214#define _SC_BC_SCALE_MAX 38
2215#define _SC_BC_STRING_MAX 39
2216#define _SC_CHILD_MAX 1
2217#define _SC_CLK_TCK 2
2218#define _SC_CLOCK_SELECTION 137
2219#define _SC_COLL_WEIGHTS_MAX 40
2220#define _SC_CPUTIME 138
2221#define _SC_DELAYTIMER_MAX 26
2222#define _SC_EXPR_NEST_MAX 42
2223#define _SC_FSYNC 15
2224#define _SC_GETGR_R_SIZE_MAX 69
2225#define _SC_GETPW_R_SIZE_MAX 70
2226#define _SC_HOST_NAME_MAX 180
2227#define _SC_IOV_MAX 60
2228#define _SC_IPV6 235
2229#define _SC_JOB_CONTROL 7
2230#define _SC_LINE_MAX 43
2231#define _SC_LOGIN_NAME_MAX 71
2232#define _SC_MAPPED_FILES 16
2233#define _SC_MEMLOCK 17
2234#define _SC_MEMLOCK_RANGE 18
2235#define _SC_MEMORY_PROTECTION 19
2236#define _SC_MESSAGE_PASSING 20
2237#define _SC_MONOTONIC_CLOCK 149
2238#define _SC_MQ_OPEN_MAX 27
2239#define _SC_MQ_PRIO_MAX 28
2240#define _SC_NGROUPS_MAX 3
2241#define _SC_NPROCESSORS_CONF 83
2242#define _SC_NPROCESSORS_ONLN 84
2243#define _SC_NZERO 109
2244#define _SC_OPEN_MAX 4
2245#define _SC_PAGESIZE 30
2246#define _SC_PAGE_SIZE 30
2247#define _SC_PASS_MAX 88
2248#define _SC_PHYS_PAGES 85
2249#define _SC_PRIORITIZED_IO 13
2250#define _SC_PRIORITY_SCHEDULING 10
2251#define _SC_RAW_SOCKETS 236
2252#define _SC_READER_WRITER_LOCKS 153
2253#define _SC_REALTIME_SIGNALS 9
2254#define _SC_REGEXP 155
2255#define _SC_RE_DUP_MAX 44
2256#define _SC_RTSIG_MAX 31
2257#define _SC_SAVED_IDS 8
2258#define _SC_SEMAPHORES 21
2259#define _SC_SEM_NSEMS_MAX 32
2260#define _SC_SEM_VALUE_MAX 33
2261#define _SC_SHARED_MEMORY_OBJECTS 22
2262#define _SC_SHELL 157
2263#define _SC_SIGQUEUE_MAX 34
2264#define _SC_SPAWN 159
2265#define _SC_SPIN_LOCKS 154
2266#define _SC_SPORADIC_SERVER 160
2267#define _SC_SS_REPL_MAX 241
2268#define _SC_STREAMS 174
2269#define _SC_STREAM_MAX 5
2270#define _SC_SYMLOOP_MAX 173
2271#define _SC_SYNCHRONIZED_IO 14
2272#define _SC_THREADS 67
2273#define _SC_THREAD_ATTR_STACKADDR 77
2274#define _SC_THREAD_ATTR_STACKSIZE 78
2275#define _SC_THREAD_CPUTIME 139
2276#define _SC_THREAD_DESTRUCTOR_ITERATIONS 73
2277#define _SC_THREAD_KEYS_MAX 74
2278#define _SC_THREAD_PRIORITY_SCHEDULING 79
2279#define _SC_THREAD_PRIO_INHERIT 80
2280#define _SC_THREAD_PRIO_PROTECT 81
2281#define _SC_THREAD_PROCESS_SHARED 82
2282#define _SC_THREAD_ROBUST_PRIO_INHERIT 247
2283#define _SC_THREAD_ROBUST_PRIO_PROTECT 248
2284#define _SC_THREAD_SAFE_FUNCTIONS 68
2285#define _SC_THREAD_SPORADIC_SERVER 161
2286#define _SC_THREAD_STACK_MIN 75
2287#define _SC_THREAD_THREADS_MAX 76
2288#define _SC_TIMEOUTS 164
2289#define _SC_TIMERS 11
2290#define _SC_TIMER_MAX 35
2291#define _SC_TRACE 181
2292#define _SC_TRACE_EVENT_FILTER 182
2293#define _SC_TRACE_EVENT_NAME_MAX 242
2294#define _SC_TRACE_INHERIT 183
2295#define _SC_TRACE_LOG 184
2296#define _SC_TRACE_NAME_MAX 243
2297#define _SC_TRACE_SYS_MAX 244
2298#define _SC_TRACE_USER_EVENT_MAX 245
2299#define _SC_TTY_NAME_MAX 72
2300#define _SC_TYPED_MEMORY_OBJECTS 165
2301#define _SC_TZNAME_MAX 6
2302#define _SC_UIO_MAXIOV 60
2303#define _SC_V6_ILP32_OFF32 176
2304#define _SC_V6_ILP32_OFFBIG 177
2305#define _SC_V6_LP64_OFF64 178
2306#define _SC_V6_LPBIG_OFFBIG 179
2307#define _SC_V7_ILP32_OFF32 237
2308#define _SC_V7_ILP32_OFFBIG 238
2309#define _SC_V7_LP64_OFF64 239
2310#define _SC_V7_LPBIG_OFFBIG 240
2311#define _SC_VERSION 29
2312#define _SC_XBS5_ILP32_OFF32 125
2313#define _SC_XBS5_ILP32_OFFBIG 126
2314#define _SC_XBS5_LP64_OFF64 127
2315#define _SC_XBS5_LPBIG_OFFBIG 128
2316#define _SC_XOPEN_CRYPT 92
2317#define _SC_XOPEN_ENH_I18N 93
2318#define _SC_XOPEN_LEGACY 129
2319#define _SC_XOPEN_REALTIME 130
2320#define _SC_XOPEN_REALTIME_THREADS 131
2321#define _SC_XOPEN_SHM 94
2322#define _SC_XOPEN_STREAMS 246
2323#define _SC_XOPEN_UNIX 91
2324#define _SC_XOPEN_VERSION 89
2325#define _SC_XOPEN_XCU_VERSION 90
2326#define _SC_XOPEN_XPG2 98
2327#define _SC_XOPEN_XPG3 99
2328#define _SC_XOPEN_XPG4 100
2329#define _SEARCH_H
2330#define _SEMAPHORE_H
320054e8
DG
2331#define _SIZE_T
2332#define _STDALIGN_H
320054e8
DG
2333#define _STDBOOL_H
2334#define _STDC_PREDEF_H
320054e8
DG
2335#define _STDINT_H
2336#define _STDIO_EXT_H
2337#define _STDIO_H
2338#define _STDLIB_H
2339#define _STDNORETURN_H
2340#define _STRINGS_H
2341#define _STRING_H
2342#define _STROPTS_H
2343#define _SYSEXITS_H
2344#define _SYS_EVENTFD_H
2345#define _SYS_FILE_H
2346#define _SYS_IOCTL_H
2347#define _SYS_PARAM_H
2348#define _SYS_RANDOM_H
2349#define _SYS_REG_H
320054e8 2350#define _SYS_SELECT_H
320054e8
DG
2351#define _SYS_SOCKET_H
2352#define _SYS_STAT_H
2353#define _SYS_SYSCALL_H
2354#define _SYS_SYSINFO_H
320054e8 2355#define _SYS_TIMEB_H
320054e8
DG
2356#define _SYS_TIMEX_H
2357#define _SYS_TIME_H
2358#define _SYS_TTYDEFAULTS_H
2359#define _SYS_TYPES_H
2360#define _SYS_UIO_H
2361#define _SYS_UN_H
2362#define _SYS_UTSNAME_H
320054e8 2363#define _TAR_H
320054e8
DG
2364#define _TGMATH_H
2365#define _THREADS_H
2366#define _TIME_H
2367#define _UCHAR_H
320054e8 2368#define _UNISTD_H
7b92f334 2369#define _UTIME_H
320054e8
DG
2370#define _VALUES_H
2371#define _VA_LIST
2372#define _WCHAR_H
2373#define _WCHAR_T
2374#define _WCTYPE_H
2375#define _WINT_T
2376#define _XOPEN_ENH_I18N 1
2377#define _XOPEN_IOV_MAX 16
2378#define _XOPEN_NAME_MAX 255
2379#define _XOPEN_PATH_MAX 1024
320054e8
DG
2380#define _XOPEN_UNIX 1
2381#define _XOPEN_VERSION 700
2382#define __ARE_4_EQUAL(a,b) (!( (0[a]-0[b]) | (1[a]-1[b]) | (2[a]-2[b]) | (3[a]-3[b]) ))
2383#define __ATOMIC_ACQUIRE 2
2384#define __ATOMIC_ACQ_REL 4
2385#define __ATOMIC_CONSUME 1
2386#define __ATOMIC_RELAXED 0
2387#define __ATOMIC_RELEASE 3
2388#define __ATOMIC_SEQ_CST 5
2389#define __BIGGEST_ALIGNMENT__ 16
2390#define __BIG_ENDIAN 4321
2391#define __BIND 19950621
575e1579 2392#define __BYTE_ORDER __BYTE_ORDER__
320054e8
DG
2393#define __BYTE_ORDER__ __ORDER_LITTLE_ENDIAN__
2394#define __CHAR16_TYPE__ unsigned short
2395#define __CHAR32_TYPE__ unsigned int
2396#define __CHAR_BIT__ 8
320054e8
DG
2397#define __compiler_ATOMIC_BOOL_LOCK_FREE 2
2398#define __compiler_ATOMIC_CHAR16_T_LOCK_FREE 2
2399#define __compiler_ATOMIC_CHAR32_T_LOCK_FREE 2
2400#define __compiler_ATOMIC_CHAR_LOCK_FREE 2
2401#define __compiler_ATOMIC_INT_LOCK_FREE 2
2402#define __compiler_ATOMIC_LLONG_LOCK_FREE 2
2403#define __compiler_ATOMIC_LONG_LOCK_FREE 2
2404#define __compiler_ATOMIC_POINTER_LOCK_FREE 2
2405#define __compiler_ATOMIC_SHORT_LOCK_FREE 2
2406#define __compiler_ATOMIC_WCHAR_T_LOCK_FREE 2
2407#define __CLANG_MAX_ALIGN_T_DEFINED
2408#define __CMPLX(x,y,t) (__builtin_complex((t)(x), (t)(y)))
2409#define __CONSTANT_CFSTRINGS__ 1
2410#define __DBLCX(x) (__IS_CX(x) && sizeof(x) == sizeof(double complex))
2411#define __DBL_DECIMAL_DIG__ 17
2412#define __DBL_DENORM_MIN__ 4.9406564584124654e-324
2413#define __DBL_DIG__ 15
2414#define __DBL_EPSILON__ 2.2204460492503131e-16
2415#define __DBL_HAS_DENORM__ 1
2416#define __DBL_HAS_INFINITY__ 1
2417#define __DBL_HAS_QUIET_NAN__ 1
2418#define __DBL_MANT_DIG__ 53
2419#define __DBL_MAX_10_EXP__ 308
2420#define __DBL_MAX_EXP__ 1024
2421#define __DBL_MAX__ 1.7976931348623157e+308
2422#define __DBL_MIN_10_EXP__ (-307)
2423#define __DBL_MIN_EXP__ (-1021)
2424#define __DBL_MIN__ 2.2250738585072014e-308
2425#define __DECIMAL_DIG__ __LDBL_DECIMAL_DIG__
2426#define __DEFINED_FILE
2427#define __DEFINED___isoc_va_list
2428#define __DEFINED_blkcnt_t
2429#define __DEFINED_blksize_t
2430#define __DEFINED_clock_t
2431#define __DEFINED_clockid_t
2432#define __DEFINED_cnd_t
2433#define __DEFINED_dev_t
2434#define __DEFINED_double_t
2435#define __DEFINED_float_t
2436#define __DEFINED_fsblkcnt_t
2437#define __DEFINED_fsfilcnt_t
2438#define __DEFINED_gid_t
2439#define __DEFINED_id_t
2440#define __DEFINED_ino_t
2441#define __DEFINED_int16_t
2442#define __DEFINED_int32_t
2443#define __DEFINED_int64_t
2444#define __DEFINED_int8_t
2445#define __DEFINED_intmax_t
2446#define __DEFINED_intptr_t
2447#define __DEFINED_key_t
2448#define __DEFINED_locale_t
2449#define __DEFINED_mbstate_t
2450#define __DEFINED_mode_t
2451#define __DEFINED_mtx_t
2452#define __DEFINED_nlink_t
2453#define __DEFINED_off_t
2454#define __DEFINED_pid_t
2455#define __DEFINED_pthread_attr_t
2456#define __DEFINED_pthread_barrier_t
2457#define __DEFINED_pthread_barrierattr_t
2458#define __DEFINED_pthread_cond_t
2459#define __DEFINED_pthread_condattr_t
2460#define __DEFINED_pthread_key_t
2461#define __DEFINED_pthread_mutex_t
2462#define __DEFINED_pthread_mutexattr_t
2463#define __DEFINED_pthread_once_t
2464#define __DEFINED_pthread_rwlock_t
2465#define __DEFINED_pthread_rwlockattr_t
2466#define __DEFINED_pthread_spinlock_t
2467#define __DEFINED_pthread_t
2468#define __DEFINED_register_t
2469#define __DEFINED_regoff_t
2470#define __DEFINED_sa_family_t
2471#define __DEFINED_sigset_t
2472#define __DEFINED_size_t
2473#define __DEFINED_socklen_t
2474#define __DEFINED_ssize_t
2475#define __DEFINED_suseconds_t
2476#define __DEFINED_time_t
2477#define __DEFINED_timer_t
2478#define __DEFINED_u_int64_t
2479#define __DEFINED_uid_t
2480#define __DEFINED_uint16_t
2481#define __DEFINED_uint32_t
2482#define __DEFINED_uint64_t
2483#define __DEFINED_uint8_t
2484#define __DEFINED_uintmax_t
2485#define __DEFINED_uintptr_t
2486#define __DEFINED_useconds_t
2487#define __DEFINED_va_list
2488#define __DEFINED_wchar_t
2489#define __DEFINED_wctype_t
2490#define __DEFINED_wint_t
2491#define __FINITE_MATH_ONLY__ 0
4f6310fe 2492#define __FLOAT128__ 1
320054e8 2493#define __FLT(x) (__IS_REAL(x) && sizeof(x) == sizeof(float))
320054e8
DG
2494#define __FLTCX(x) (__IS_CX(x) && sizeof(x) == sizeof(float complex))
2495#define __FLT_DECIMAL_DIG__ 9
2496#define __FLT_DENORM_MIN__ 1.40129846e-45F
2497#define __FLT_DIG__ 6
2498#define __FLT_EPSILON__ 1.19209290e-7F
320054e8
DG
2499#define __FLT_HAS_DENORM__ 1
2500#define __FLT_HAS_INFINITY__ 1
2501#define __FLT_HAS_QUIET_NAN__ 1
2502#define __FLT_MANT_DIG__ 24
2503#define __FLT_MAX_10_EXP__ 38
2504#define __FLT_MAX_EXP__ 128
2505#define __FLT_MAX__ 3.40282347e+38F
2506#define __FLT_MIN_10_EXP__ (-37)
2507#define __FLT_MIN_EXP__ (-125)
2508#define __FLT_MIN__ 1.17549435e-38F
2509#define __FLT_RADIX__ 2
2510#define __compiler_ATOMIC_BOOL_LOCK_FREE 2
2511#define __compiler_ATOMIC_CHAR16_T_LOCK_FREE 2
2512#define __compiler_ATOMIC_CHAR32_T_LOCK_FREE 2
2513#define __compiler_ATOMIC_CHAR_LOCK_FREE 2
2514#define __compiler_ATOMIC_INT_LOCK_FREE 2
2515#define __compiler_ATOMIC_LLONG_LOCK_FREE 2
2516#define __compiler_ATOMIC_LONG_LOCK_FREE 2
2517#define __compiler_ATOMIC_POINTER_LOCK_FREE 2
2518#define __compiler_ATOMIC_SHORT_LOCK_FREE 2
2519#define __GCC_ATOMIC_TEST_AND_SET_TRUEVAL 1
2520#define __compiler_ATOMIC_WCHAR_T_LOCK_FREE 2
2521#define __GNUC_STDC_INLINE__ 1
2522#define __GNUC_VA_LIST 1
320054e8
DG
2523#define __GXX_ABI_VERSION 1002
2524#define __ILP32__ 1
2525#define __INT16_C_SUFFIX__
2526#define __INT16_FMTd__ "hd"
2527#define __INT16_FMTi__ "hi"
2528#define __INT16_MAX__ 32767
2529#define __INT16_TYPE__ short
2530#define __INT32_C_SUFFIX__
2531#define __INT32_FMTd__ "d"
2532#define __INT32_FMTi__ "i"
2533#define __INT32_MAX__ 2147483647
2534#define __INT32_TYPE__ int
2535#define __INT64_C_SUFFIX__ LL
2536#define __INT64_FMTd__ "lld"
2537#define __INT64_FMTi__ "lli"
2538#define __INT64_MAX__ 9223372036854775807LL
2539#define __INT64_TYPE__ long long int
2540#define __INT8_C_SUFFIX__
2541#define __INT8_FMTd__ "hhd"
2542#define __INT8_FMTi__ "hhi"
2543#define __INT8_MAX__ 127
2544#define __INT8_TYPE__ signed char
2545#define __INTMAX_C_SUFFIX__ LL
2546#define __INTMAX_FMTd__ "lld"
2547#define __INTMAX_FMTi__ "lli"
2548#define __INTMAX_MAX__ 9223372036854775807LL
2549#define __INTMAX_TYPE__ long long int
2550#define __INTMAX_WIDTH__ 64
2551#define __INTPTR_FMTd__ "ld"
2552#define __INTPTR_FMTi__ "li"
2553#define __INTPTR_MAX__ 2147483647L
2554#define __INTPTR_TYPE__ long int
2555#define __INTPTR_WIDTH__ 32
2556#define __INT_FAST16_FMTd__ "hd"
2557#define __INT_FAST16_FMTi__ "hi"
2558#define __INT_FAST16_MAX__ 32767
2559#define __INT_FAST16_TYPE__ short
2560#define __INT_FAST32_FMTd__ "d"
2561#define __INT_FAST32_FMTi__ "i"
2562#define __INT_FAST32_MAX__ 2147483647
2563#define __INT_FAST32_TYPE__ int
2564#define __INT_FAST64_FMTd__ "lld"
2565#define __INT_FAST64_FMTi__ "lli"
2566#define __INT_FAST64_MAX__ 9223372036854775807LL
2567#define __INT_FAST64_TYPE__ long long int
2568#define __INT_FAST8_FMTd__ "hhd"
2569#define __INT_FAST8_FMTi__ "hhi"
2570#define __INT_FAST8_MAX__ 127
2571#define __INT_FAST8_TYPE__ signed char
2572#define __INT_LEAST16_FMTd__ "hd"
2573#define __INT_LEAST16_FMTi__ "hi"
2574#define __INT_LEAST16_MAX__ 32767
2575#define __INT_LEAST16_TYPE__ short
2576#define __INT_LEAST32_FMTd__ "d"
2577#define __INT_LEAST32_FMTi__ "i"
2578#define __INT_LEAST32_MAX__ 2147483647
2579#define __INT_LEAST32_TYPE__ int
2580#define __INT_LEAST64_FMTd__ "lld"
2581#define __INT_LEAST64_FMTi__ "lli"
2582#define __INT_LEAST64_MAX__ 9223372036854775807LL
2583#define __INT_LEAST64_TYPE__ long long int
2584#define __INT_LEAST8_FMTd__ "hhd"
2585#define __INT_LEAST8_FMTi__ "hhi"
2586#define __INT_LEAST8_MAX__ 127
2587#define __INT_LEAST8_TYPE__ signed char
2588#define __INT_MAX__ 2147483647
320054e8
DG
2589#define __IS_CX(x) (__IS_FP(x) && sizeof(x) == sizeof((x)+I))
2590#define __IS_FP(x) (sizeof((x)+1ULL) == sizeof((x)+1.0f))
2591#define __IS_REAL(x) (__IS_FP(x) && 2*sizeof(x) == sizeof((x)+I))
2592#define __LDBL(x) (__IS_REAL(x) && sizeof(x) == sizeof(long double) && sizeof(long double) != sizeof(double))
2593#define __LDBLCX(x) (__IS_CX(x) && sizeof(x) == sizeof(long double complex) && sizeof(long double) != sizeof(double))
2594#define __LDBL_DECIMAL_DIG__ 36
2595#define __LDBL_DENORM_MIN__ 6.47517511943802511092443895822764655e-4966L
2596#define __LDBL_DIG__ 33
2597#define __LDBL_EPSILON__ 1.92592994438723585305597794258492732e-34L
2598#define __LDBL_HAS_DENORM__ 1
2599#define __LDBL_HAS_INFINITY__ 1
2600#define __LDBL_HAS_QUIET_NAN__ 1
2601#define __LDBL_MANT_DIG__ 113
2602#define __LDBL_MAX_10_EXP__ 4932
2603#define __LDBL_MAX_EXP__ 16384
2604#define __LDBL_MAX__ 1.18973149535723176508575932662800702e+4932L
2605#define __LDBL_MIN_10_EXP__ (-4931)
2606#define __LDBL_MIN_EXP__ (-16381)
2607#define __LDBL_MIN__ 3.36210314311209350626267781732175260e-4932L
2608#define __LITTLE_ENDIAN 1234
2609#define __LITTLE_ENDIAN__ 1
2610#define __LONG_LONG_MAX__ 9223372036854775807LL
575e1579 2611#define __LONG_MAX __LONG_MAX__
320054e8
DG
2612#define __LONG_MAX__ 2147483647L
2613#define __NAMESER 19991006
2614#define __NEED_FILE
2615#define __NEED___isoc_va_list
2616#define __NEED_blkcnt_t
2617#define __NEED_blksize_t
2618#define __NEED_clock_t
2619#define __NEED_clockid_t
2620#define __NEED_cnd_t
2621#define __NEED_dev_t
2622#define __NEED_double_t
2623#define __NEED_float_t
2624#define __NEED_fsblkcnt_t
2625#define __NEED_fsfilcnt_t
2626#define __NEED_gid_t
2627#define __NEED_id_t
2628#define __NEED_ino_t
2629#define __NEED_int16_t
2630#define __NEED_int32_t
2631#define __NEED_int64_t
2632#define __NEED_int8_t
2633#define __NEED_intmax_t
2634#define __NEED_intptr_t
2635#define __NEED_key_t
2636#define __NEED_locale_t
2637#define __NEED_mbstate_t
2638#define __NEED_mode_t
2639#define __NEED_mtx_t
2640#define __NEED_nlink_t
2641#define __NEED_off_t
2642#define __NEED_pid_t
2643#define __NEED_pthread_attr_t
2644#define __NEED_pthread_barrier_t
2645#define __NEED_pthread_barrierattr_t
2646#define __NEED_pthread_cond_t
2647#define __NEED_pthread_condattr_t
2648#define __NEED_pthread_key_t
2649#define __NEED_pthread_mutex_t
2650#define __NEED_pthread_mutexattr_t
2651#define __NEED_pthread_once_t
2652#define __NEED_pthread_rwlock_t
2653#define __NEED_pthread_rwlockattr_t
2654#define __NEED_pthread_spinlock_t
2655#define __NEED_pthread_t
2656#define __NEED_register_t
2657#define __NEED_regoff_t
2658#define __NEED_sa_family_t
2659#define __NEED_sigset_t
2660#define __NEED_size_t
2661#define __NEED_socklen_t
2662#define __NEED_ssize_t
2663#define __NEED_struct_iovec
2664#define __NEED_struct_timespec
2665#define __NEED_struct_timeval
2666#define __NEED_suseconds_t
2667#define __NEED_time_t
2668#define __NEED_timer_t
2669#define __NEED_u_int64_t
2670#define __NEED_uid_t
2671#define __NEED_uint16_t
2672#define __NEED_uint32_t
2673#define __NEED_uint64_t
2674#define __NEED_uint8_t
2675#define __NEED_uintmax_t
2676#define __NEED_uintptr_t
2677#define __NEED_useconds_t
2678#define __NEED_va_list
2679#define __NEED_wchar_t
2680#define __NEED_wctype_t
2681#define __NEED_wint_t
2682#define __OBJC_BOOL_IS_BOOL 0
2683#define __OPENCL_MEMORY_SCOPE_ALL_SVM_DEVICES 3
2684#define __OPENCL_MEMORY_SCOPE_DEVICE 2
2685#define __OPENCL_MEMORY_SCOPE_SUB_GROUP 4
2686#define __OPENCL_MEMORY_SCOPE_WORK_GROUP 1
2687#define __OPENCL_MEMORY_SCOPE_WORK_ITEM 0
2688#define __OPTIMIZE__ 1
2689#define __ORDER_BIG_ENDIAN__ 4321
2690#define __ORDER_LITTLE_ENDIAN__ 1234
2691#define __ORDER_PDP_ENDIAN__ 3412
2692#define __PDP_ENDIAN 3412
2693#define __POINTER_WIDTH__ 32
2694#define __PRAGMA_REDEFINE_EXTNAME 1
320054e8
DG
2695#define __PTRDIFF_FMTd__ "ld"
2696#define __PTRDIFF_FMTi__ "li"
2697#define __PTRDIFF_MAX__ 2147483647L
2698#define __PTRDIFF_TYPE__ long int
2699#define __PTRDIFF_WIDTH__ 32
575e1579 2700#define __REDIR(x,y) __typeof__(x) x __asm__(#y)
320054e8
DG
2701#define __RETCAST(x)
2702#define __RETCAST_2(x,y)
2703#define __RETCAST_3(x,y,z)
2704#define __RETCAST_CX(x)
2705#define __RETCAST_REAL(x)
2706#define __SCHAR_MAX__ 127
2707#define __SHRT_MAX__ 32767
2708#define __SID ('S' << 8)
2709#define __SIG_ATOMIC_MAX__ 2147483647L
2710#define __SIG_ATOMIC_WIDTH__ 32
2711#define __SIZEOF_DOUBLE__ 8
2712#define __SIZEOF_FLOAT__ 4
2713#define __SIZEOF_INT128__ 16
2714#define __SIZEOF_INT__ 4
2715#define __SIZEOF_LONG_DOUBLE__ 16
2716#define __SIZEOF_LONG_LONG__ 8
2717#define __SIZEOF_LONG__ 4
2718#define __SIZEOF_POINTER__ 4
2719#define __SIZEOF_PTRDIFF_T__ 4
2720#define __SIZEOF_SHORT__ 2
2721#define __SIZEOF_SIZE_T__ 4
2722#define __SIZEOF_WCHAR_T__ 4
2723#define __SIZEOF_WINT_T__ 4
2724#define __SIZE_FMTX__ "lX"
2725#define __SIZE_FMTo__ "lo"
2726#define __SIZE_FMTu__ "lu"
2727#define __SIZE_FMTx__ "lx"
2728#define __SIZE_MAX__ 4294967295UL
2729#define __SIZE_TYPE__ long unsigned int
2730#define __SIZE_WIDTH__ 32
2731#define __STDARG_H
2732#define __STDC_HOSTED__ 1
2733#define __STDC_IEC_559__ 1
2734#define __STDC_ISO_10646__ 201206L
2735#define __STDC_UTF_16__ 1
2736#define __STDC_UTF_32__ 1
38b930a2 2737#define __STDC_VERSION__ 201710L
320054e8
DG
2738#define __STDC__ 1
2739#define __STDDEF_H
320054e8
DG
2740#define __UAPI_DEF_IN6_ADDR 0
2741#define __UAPI_DEF_IN6_ADDR_ALT 0
2742#define __UAPI_DEF_IN6_PKTINFO 0
2743#define __UAPI_DEF_IN_ADDR 0
2744#define __UAPI_DEF_IN_CLASS 0
2745#define __UAPI_DEF_IN_IPPROTO 0
2746#define __UAPI_DEF_IN_PKTINFO 0
2747#define __UAPI_DEF_IP6_MTUINFO 0
575e1579 2748#define __UAPI_DEF_IPHDR 0
320054e8
DG
2749#define __UAPI_DEF_IPPROTO_V6 0
2750#define __UAPI_DEF_IPV6_MREQ 0
2751#define __UAPI_DEF_IPV6_OPTIONS 0
2752#define __UAPI_DEF_IP_MREQ 0
2753#define __UAPI_DEF_SOCKADDR_IN 0
2754#define __UAPI_DEF_SOCKADDR_IN6 0
320054e8
DG
2755#define __UINT16_C_SUFFIX__
2756#define __UINT16_FMTX__ "hX"
2757#define __UINT16_FMTo__ "ho"
2758#define __UINT16_FMTu__ "hu"
2759#define __UINT16_FMTx__ "hx"
2760#define __UINT16_MAX__ 65535
2761#define __UINT16_TYPE__ unsigned short
2762#define __UINT32_C_SUFFIX__ U
2763#define __UINT32_FMTX__ "X"
2764#define __UINT32_FMTo__ "o"
2765#define __UINT32_FMTu__ "u"
2766#define __UINT32_FMTx__ "x"
2767#define __UINT32_MAX__ 4294967295U
2768#define __UINT32_TYPE__ unsigned int
2769#define __UINT64_C_SUFFIX__ ULL
2770#define __UINT64_FMTX__ "llX"
2771#define __UINT64_FMTo__ "llo"
2772#define __UINT64_FMTu__ "llu"
2773#define __UINT64_FMTx__ "llx"
2774#define __UINT64_MAX__ 18446744073709551615ULL
2775#define __UINT64_TYPE__ long long unsigned int
2776#define __UINT8_C_SUFFIX__
2777#define __UINT8_FMTX__ "hhX"
2778#define __UINT8_FMTo__ "hho"
2779#define __UINT8_FMTu__ "hhu"
2780#define __UINT8_FMTx__ "hhx"
2781#define __UINT8_MAX__ 255
2782#define __UINT8_TYPE__ unsigned char
2783#define __UINTMAX_C_SUFFIX__ ULL
2784#define __UINTMAX_FMTX__ "llX"
2785#define __UINTMAX_FMTo__ "llo"
2786#define __UINTMAX_FMTu__ "llu"
2787#define __UINTMAX_FMTx__ "llx"
2788#define __UINTMAX_MAX__ 18446744073709551615ULL
2789#define __UINTMAX_TYPE__ long long unsigned int
2790#define __UINTMAX_WIDTH__ 64
2791#define __UINTPTR_FMTX__ "lX"
2792#define __UINTPTR_FMTo__ "lo"
2793#define __UINTPTR_FMTu__ "lu"
2794#define __UINTPTR_FMTx__ "lx"
2795#define __UINTPTR_MAX__ 4294967295UL
2796#define __UINTPTR_TYPE__ long unsigned int
2797#define __UINTPTR_WIDTH__ 32
2798#define __UINT_FAST16_FMTX__ "hX"
2799#define __UINT_FAST16_FMTo__ "ho"
2800#define __UINT_FAST16_FMTu__ "hu"
2801#define __UINT_FAST16_FMTx__ "hx"
2802#define __UINT_FAST16_MAX__ 65535
2803#define __UINT_FAST16_TYPE__ unsigned short
2804#define __UINT_FAST32_FMTX__ "X"
2805#define __UINT_FAST32_FMTo__ "o"
2806#define __UINT_FAST32_FMTu__ "u"
2807#define __UINT_FAST32_FMTx__ "x"
2808#define __UINT_FAST32_MAX__ 4294967295U
2809#define __UINT_FAST32_TYPE__ unsigned int
2810#define __UINT_FAST64_FMTX__ "llX"
2811#define __UINT_FAST64_FMTo__ "llo"
2812#define __UINT_FAST64_FMTu__ "llu"
2813#define __UINT_FAST64_FMTx__ "llx"
2814#define __UINT_FAST64_MAX__ 18446744073709551615ULL
2815#define __UINT_FAST64_TYPE__ long long unsigned int
2816#define __UINT_FAST8_FMTX__ "hhX"
2817#define __UINT_FAST8_FMTo__ "hho"
2818#define __UINT_FAST8_FMTu__ "hhu"
2819#define __UINT_FAST8_FMTx__ "hhx"
2820#define __UINT_FAST8_MAX__ 255
2821#define __UINT_FAST8_TYPE__ unsigned char
2822#define __UINT_LEAST16_FMTX__ "hX"
2823#define __UINT_LEAST16_FMTo__ "ho"
2824#define __UINT_LEAST16_FMTu__ "hu"
2825#define __UINT_LEAST16_FMTx__ "hx"
2826#define __UINT_LEAST16_MAX__ 65535
2827#define __UINT_LEAST16_TYPE__ unsigned short
2828#define __UINT_LEAST32_FMTX__ "X"
2829#define __UINT_LEAST32_FMTo__ "o"
2830#define __UINT_LEAST32_FMTu__ "u"
2831#define __UINT_LEAST32_FMTx__ "x"
2832#define __UINT_LEAST32_MAX__ 4294967295U
2833#define __UINT_LEAST32_TYPE__ unsigned int
2834#define __UINT_LEAST64_FMTX__ "llX"
2835#define __UINT_LEAST64_FMTo__ "llo"
2836#define __UINT_LEAST64_FMTu__ "llu"
2837#define __UINT_LEAST64_FMTx__ "llx"
2838#define __UINT_LEAST64_MAX__ 18446744073709551615ULL
2839#define __UINT_LEAST64_TYPE__ long long unsigned int
2840#define __UINT_LEAST8_FMTX__ "hhX"
2841#define __UINT_LEAST8_FMTo__ "hho"
2842#define __UINT_LEAST8_FMTu__ "hhu"
2843#define __UINT_LEAST8_FMTx__ "hhx"
2844#define __UINT_LEAST8_MAX__ 255
2845#define __UINT_LEAST8_TYPE__ unsigned char
2846#define __USER_LABEL_PREFIX__
575e1579 2847#define __USE_TIME_BITS64 1
dd010bee
DG
2848#define __WASI_ADVICE_DONTNEED (UINT8_C(4))
2849#define __WASI_ADVICE_NOREUSE (UINT8_C(5))
2850#define __WASI_ADVICE_NORMAL (UINT8_C(0))
2851#define __WASI_ADVICE_RANDOM (UINT8_C(2))
2852#define __WASI_ADVICE_SEQUENTIAL (UINT8_C(1))
2853#define __WASI_ADVICE_WILLNEED (UINT8_C(3))
2854#define __WASI_CLOCKID_MONOTONIC (UINT32_C(1))
2855#define __WASI_CLOCKID_PROCESS_CPUTIME_ID (UINT32_C(2))
2856#define __WASI_CLOCKID_REALTIME (UINT32_C(0))
2857#define __WASI_CLOCKID_THREAD_CPUTIME_ID (UINT32_C(3))
320054e8 2858#define __WASI_DIRCOOKIE_START (UINT64_C(0))
dd010bee
DG
2859#define __WASI_ERRNO_2BIG (UINT16_C(1))
2860#define __WASI_ERRNO_ACCES (UINT16_C(2))
2861#define __WASI_ERRNO_ADDRINUSE (UINT16_C(3))
2862#define __WASI_ERRNO_ADDRNOTAVAIL (UINT16_C(4))
2863#define __WASI_ERRNO_AFNOSUPPORT (UINT16_C(5))
2864#define __WASI_ERRNO_AGAIN (UINT16_C(6))
2865#define __WASI_ERRNO_ALREADY (UINT16_C(7))
2866#define __WASI_ERRNO_BADF (UINT16_C(8))
2867#define __WASI_ERRNO_BADMSG (UINT16_C(9))
2868#define __WASI_ERRNO_BUSY (UINT16_C(10))
2869#define __WASI_ERRNO_CANCELED (UINT16_C(11))
2870#define __WASI_ERRNO_CHILD (UINT16_C(12))
2871#define __WASI_ERRNO_CONNABORTED (UINT16_C(13))
2872#define __WASI_ERRNO_CONNREFUSED (UINT16_C(14))
2873#define __WASI_ERRNO_CONNRESET (UINT16_C(15))
2874#define __WASI_ERRNO_DEADLK (UINT16_C(16))
2875#define __WASI_ERRNO_DESTADDRREQ (UINT16_C(17))
2876#define __WASI_ERRNO_DOM (UINT16_C(18))
2877#define __WASI_ERRNO_DQUOT (UINT16_C(19))
2878#define __WASI_ERRNO_EXIST (UINT16_C(20))
2879#define __WASI_ERRNO_FAULT (UINT16_C(21))
2880#define __WASI_ERRNO_FBIG (UINT16_C(22))
2881#define __WASI_ERRNO_HOSTUNREACH (UINT16_C(23))
2882#define __WASI_ERRNO_IDRM (UINT16_C(24))
2883#define __WASI_ERRNO_ILSEQ (UINT16_C(25))
2884#define __WASI_ERRNO_INPROGRESS (UINT16_C(26))
2885#define __WASI_ERRNO_INTR (UINT16_C(27))
2886#define __WASI_ERRNO_INVAL (UINT16_C(28))
2887#define __WASI_ERRNO_IO (UINT16_C(29))
2888#define __WASI_ERRNO_ISCONN (UINT16_C(30))
2889#define __WASI_ERRNO_ISDIR (UINT16_C(31))
2890#define __WASI_ERRNO_LOOP (UINT16_C(32))
2891#define __WASI_ERRNO_MFILE (UINT16_C(33))
2892#define __WASI_ERRNO_MLINK (UINT16_C(34))
2893#define __WASI_ERRNO_MSGSIZE (UINT16_C(35))
2894#define __WASI_ERRNO_MULTIHOP (UINT16_C(36))
2895#define __WASI_ERRNO_NAMETOOLONG (UINT16_C(37))
2896#define __WASI_ERRNO_NETDOWN (UINT16_C(38))
2897#define __WASI_ERRNO_NETRESET (UINT16_C(39))
2898#define __WASI_ERRNO_NETUNREACH (UINT16_C(40))
2899#define __WASI_ERRNO_NFILE (UINT16_C(41))
2900#define __WASI_ERRNO_NOBUFS (UINT16_C(42))
2901#define __WASI_ERRNO_NODEV (UINT16_C(43))
2902#define __WASI_ERRNO_NOENT (UINT16_C(44))
2903#define __WASI_ERRNO_NOEXEC (UINT16_C(45))
2904#define __WASI_ERRNO_NOLCK (UINT16_C(46))
2905#define __WASI_ERRNO_NOLINK (UINT16_C(47))
2906#define __WASI_ERRNO_NOMEM (UINT16_C(48))
2907#define __WASI_ERRNO_NOMSG (UINT16_C(49))
2908#define __WASI_ERRNO_NOPROTOOPT (UINT16_C(50))
2909#define __WASI_ERRNO_NOSPC (UINT16_C(51))
2910#define __WASI_ERRNO_NOSYS (UINT16_C(52))
2911#define __WASI_ERRNO_NOTCAPABLE (UINT16_C(76))
2912#define __WASI_ERRNO_NOTCONN (UINT16_C(53))
2913#define __WASI_ERRNO_NOTDIR (UINT16_C(54))
2914#define __WASI_ERRNO_NOTEMPTY (UINT16_C(55))
2915#define __WASI_ERRNO_NOTRECOVERABLE (UINT16_C(56))
2916#define __WASI_ERRNO_NOTSOCK (UINT16_C(57))
2917#define __WASI_ERRNO_NOTSUP (UINT16_C(58))
2918#define __WASI_ERRNO_NOTTY (UINT16_C(59))
2919#define __WASI_ERRNO_NXIO (UINT16_C(60))
2920#define __WASI_ERRNO_OVERFLOW (UINT16_C(61))
2921#define __WASI_ERRNO_OWNERDEAD (UINT16_C(62))
2922#define __WASI_ERRNO_PERM (UINT16_C(63))
2923#define __WASI_ERRNO_PIPE (UINT16_C(64))
2924#define __WASI_ERRNO_PROTO (UINT16_C(65))
2925#define __WASI_ERRNO_PROTONOSUPPORT (UINT16_C(66))
2926#define __WASI_ERRNO_PROTOTYPE (UINT16_C(67))
2927#define __WASI_ERRNO_RANGE (UINT16_C(68))
2928#define __WASI_ERRNO_ROFS (UINT16_C(69))
2929#define __WASI_ERRNO_SPIPE (UINT16_C(70))
2930#define __WASI_ERRNO_SRCH (UINT16_C(71))
2931#define __WASI_ERRNO_STALE (UINT16_C(72))
2932#define __WASI_ERRNO_SUCCESS (UINT16_C(0))
2933#define __WASI_ERRNO_TIMEDOUT (UINT16_C(73))
2934#define __WASI_ERRNO_TXTBSY (UINT16_C(74))
2935#define __WASI_ERRNO_XDEV (UINT16_C(75))
2b7e73ae 2936#define __WASI_EVENTRWFLAGS_FD_READWRITE_HANGUP ((__wasi_eventrwflags_t)(1 << 0))
dd010bee
DG
2937#define __WASI_EVENTTYPE_CLOCK (UINT8_C(0))
2938#define __WASI_EVENTTYPE_FD_READ (UINT8_C(1))
2939#define __WASI_EVENTTYPE_FD_WRITE (UINT8_C(2))
2b7e73ae
AC
2940#define __WASI_FDFLAGS_APPEND ((__wasi_fdflags_t)(1 << 0))
2941#define __WASI_FDFLAGS_DSYNC ((__wasi_fdflags_t)(1 << 1))
2942#define __WASI_FDFLAGS_NONBLOCK ((__wasi_fdflags_t)(1 << 2))
2943#define __WASI_FDFLAGS_RSYNC ((__wasi_fdflags_t)(1 << 3))
2944#define __WASI_FDFLAGS_SYNC ((__wasi_fdflags_t)(1 << 4))
dd010bee
DG
2945#define __WASI_FILETYPE_BLOCK_DEVICE (UINT8_C(1))
2946#define __WASI_FILETYPE_CHARACTER_DEVICE (UINT8_C(2))
2947#define __WASI_FILETYPE_DIRECTORY (UINT8_C(3))
2948#define __WASI_FILETYPE_REGULAR_FILE (UINT8_C(4))
2949#define __WASI_FILETYPE_SOCKET_DGRAM (UINT8_C(5))
2950#define __WASI_FILETYPE_SOCKET_STREAM (UINT8_C(6))
2951#define __WASI_FILETYPE_SYMBOLIC_LINK (UINT8_C(7))
2952#define __WASI_FILETYPE_UNKNOWN (UINT8_C(0))
2b7e73ae
AC
2953#define __WASI_FSTFLAGS_ATIM ((__wasi_fstflags_t)(1 << 0))
2954#define __WASI_FSTFLAGS_ATIM_NOW ((__wasi_fstflags_t)(1 << 1))
2955#define __WASI_FSTFLAGS_MTIM ((__wasi_fstflags_t)(1 << 2))
2956#define __WASI_FSTFLAGS_MTIM_NOW ((__wasi_fstflags_t)(1 << 3))
2957#define __WASI_LOOKUPFLAGS_SYMLINK_FOLLOW ((__wasi_lookupflags_t)(1 << 0))
2958#define __WASI_OFLAGS_CREAT ((__wasi_oflags_t)(1 << 0))
2959#define __WASI_OFLAGS_DIRECTORY ((__wasi_oflags_t)(1 << 1))
2960#define __WASI_OFLAGS_EXCL ((__wasi_oflags_t)(1 << 2))
2961#define __WASI_OFLAGS_TRUNC ((__wasi_oflags_t)(1 << 3))
dd010bee 2962#define __WASI_PREOPENTYPE_DIR (UINT8_C(0))
2b7e73ae
AC
2963#define __WASI_RIFLAGS_RECV_PEEK ((__wasi_riflags_t)(1 << 0))
2964#define __WASI_RIFLAGS_RECV_WAITALL ((__wasi_riflags_t)(1 << 1))
2965#define __WASI_RIGHTS_FD_ADVISE ((__wasi_rights_t)(1 << 7))
2966#define __WASI_RIGHTS_FD_ALLOCATE ((__wasi_rights_t)(1 << 8))
2967#define __WASI_RIGHTS_FD_DATASYNC ((__wasi_rights_t)(1 << 0))
2968#define __WASI_RIGHTS_FD_FDSTAT_SET_FLAGS ((__wasi_rights_t)(1 << 3))
2969#define __WASI_RIGHTS_FD_FILESTAT_GET ((__wasi_rights_t)(1 << 21))
2970#define __WASI_RIGHTS_FD_FILESTAT_SET_SIZE ((__wasi_rights_t)(1 << 22))
2971#define __WASI_RIGHTS_FD_FILESTAT_SET_TIMES ((__wasi_rights_t)(1 << 23))
2972#define __WASI_RIGHTS_FD_READ ((__wasi_rights_t)(1 << 1))
2973#define __WASI_RIGHTS_FD_READDIR ((__wasi_rights_t)(1 << 14))
2974#define __WASI_RIGHTS_FD_SEEK ((__wasi_rights_t)(1 << 2))
2975#define __WASI_RIGHTS_FD_SYNC ((__wasi_rights_t)(1 << 4))
2976#define __WASI_RIGHTS_FD_TELL ((__wasi_rights_t)(1 << 5))
2977#define __WASI_RIGHTS_FD_WRITE ((__wasi_rights_t)(1 << 6))
2978#define __WASI_RIGHTS_PATH_CREATE_DIRECTORY ((__wasi_rights_t)(1 << 9))
2979#define __WASI_RIGHTS_PATH_CREATE_FILE ((__wasi_rights_t)(1 << 10))
2980#define __WASI_RIGHTS_PATH_FILESTAT_GET ((__wasi_rights_t)(1 << 18))
2981#define __WASI_RIGHTS_PATH_FILESTAT_SET_SIZE ((__wasi_rights_t)(1 << 19))
2982#define __WASI_RIGHTS_PATH_FILESTAT_SET_TIMES ((__wasi_rights_t)(1 << 20))
2983#define __WASI_RIGHTS_PATH_LINK_SOURCE ((__wasi_rights_t)(1 << 11))
2984#define __WASI_RIGHTS_PATH_LINK_TARGET ((__wasi_rights_t)(1 << 12))
2985#define __WASI_RIGHTS_PATH_OPEN ((__wasi_rights_t)(1 << 13))
2986#define __WASI_RIGHTS_PATH_READLINK ((__wasi_rights_t)(1 << 15))
2987#define __WASI_RIGHTS_PATH_REMOVE_DIRECTORY ((__wasi_rights_t)(1 << 25))
2988#define __WASI_RIGHTS_PATH_RENAME_SOURCE ((__wasi_rights_t)(1 << 16))
2989#define __WASI_RIGHTS_PATH_RENAME_TARGET ((__wasi_rights_t)(1 << 17))
2990#define __WASI_RIGHTS_PATH_SYMLINK ((__wasi_rights_t)(1 << 24))
2991#define __WASI_RIGHTS_PATH_UNLINK_FILE ((__wasi_rights_t)(1 << 26))
2992#define __WASI_RIGHTS_POLL_FD_READWRITE ((__wasi_rights_t)(1 << 27))
7302f33f 2993#define __WASI_RIGHTS_SOCK_ACCEPT ((__wasi_rights_t)(1 << 29))
2b7e73ae
AC
2994#define __WASI_RIGHTS_SOCK_SHUTDOWN ((__wasi_rights_t)(1 << 28))
2995#define __WASI_ROFLAGS_RECV_DATA_TRUNCATED ((__wasi_roflags_t)(1 << 0))
2996#define __WASI_SDFLAGS_RD ((__wasi_sdflags_t)(1 << 0))
2997#define __WASI_SDFLAGS_WR ((__wasi_sdflags_t)(1 << 1))
2b7e73ae 2998#define __WASI_SUBCLOCKFLAGS_SUBSCRIPTION_CLOCK_ABSTIME ((__wasi_subclockflags_t)(1 << 0))
dd010bee
DG
2999#define __WASI_WHENCE_CUR (UINT8_C(1))
3000#define __WASI_WHENCE_END (UINT8_C(2))
3001#define __WASI_WHENCE_SET (UINT8_C(0))
320054e8
DG
3002#define __WCHAR_MAX__ 2147483647
3003#define __WCHAR_TYPE__ int
3004#define __WCHAR_WIDTH__ 32
3005#define __WINT_MAX__ 2147483647
3006#define __WINT_TYPE__ int
3007#define __WINT_WIDTH__ 32
3008#define __WORDSIZE 64
3009#define __alignas_is_defined 1
3010#define __alignof_is_defined 1
3011#define __bitop(x,i,o) ((x)[(i)/8] o (1<<(i)%8))
3012#define __bool_true_false_are_defined 1
3013#define __inline inline
3014#define __restrict restrict
3015#define __tg_complex(fun,x) (__RETCAST_CX(x)( __FLTCX((x)+I) && __IS_FP(x) ? fun ## f (x) : __LDBLCX((x)+I) ? fun ## l (x) : fun(x) ))
3016#define __tg_complex_retreal(fun,x) (__RETCAST_REAL(x)( __FLTCX((x)+I) && __IS_FP(x) ? fun ## f (x) : __LDBLCX((x)+I) ? fun ## l (x) : fun(x) ))
320054e8
DG
3017#define __tg_real(fun,x) (__RETCAST(x)__tg_real_nocast(fun, x))
3018#define __tg_real_2(fun,x,y) (__RETCAST_2(x, y)( __FLT(x) && __FLT(y) ? fun ## f (x, y) : __LDBL((x)+(y)) ? fun ## l (x, y) : fun(x, y) ))
3019#define __tg_real_2_1(fun,x,y) (__RETCAST(x)( __FLT(x) ? fun ## f (x, y) : __LDBL(x) ? fun ## l (x, y) : fun(x, y) ))
3020#define __tg_real_complex(fun,x) (__RETCAST(x)( __FLTCX(x) ? c ## fun ## f (x) : __DBLCX(x) ? c ## fun (x) : __LDBLCX(x) ? c ## fun ## l (x) : __FLT(x) ? fun ## f (x) : __LDBL(x) ? fun ## l (x) : fun(x) ))
3021#define __tg_real_complex_fabs(x) (__RETCAST_REAL(x)( __FLTCX(x) ? cabsf(x) : __DBLCX(x) ? cabs(x) : __LDBLCX(x) ? cabsl(x) : __FLT(x) ? fabsf(x) : __LDBL(x) ? fabsl(x) : fabs(x) ))
3022#define __tg_real_complex_pow(x,y) (__RETCAST_2(x, y)( __FLTCX((x)+(y)) && __IS_FP(x) && __IS_FP(y) ? cpowf(x, y) : __FLTCX((x)+(y)) ? cpow(x, y) : __DBLCX((x)+(y)) ? cpow(x, y) : __LDBLCX((x)+(y)) ? cpowl(x, y) : __FLT(x) && __FLT(y) ? powf(x, y) : __LDBL((x)+(y)) ? powl(x, y) : pow(x, y) ))
3023#define __tg_real_fma(x,y,z) (__RETCAST_3(x, y, z)( __FLT(x) && __FLT(y) && __FLT(z) ? fmaf(x, y, z) : __LDBL((x)+(y)+(z)) ? fmal(x, y, z) : fma(x, y, z) ))
3024#define __tg_real_nocast(fun,x) ( __FLT(x) ? fun ## f (x) : __LDBL(x) ? fun ## l (x) : fun(x) )
3025#define __tg_real_remquo(x,y,z) (__RETCAST_2(x, y)( __FLT(x) && __FLT(y) ? remquof(x, y, z) : __LDBL((x)+(y)) ? remquol(x, y, z) : remquo(x, y, z) ))
3026#define __tm_gmtoff tm_gmtoff
3027#define __tm_zone tm_zone
3028#define __va_copy(d,s) __builtin_va_copy(d,s)
3029#define __wasi__ 1
446cb3f1 3030#define __wasi_api_h
9efc2f42 3031#define __wasi_libc_environ_h
685d0144 3032#define __wasi_libc_find_relpath_h
320054e8 3033#define __wasi_libc_h
f2e779e5 3034#define __wasi_libc_nocwd_h
753cc434 3035#define __wasilibc___errno_h
320054e8
DG
3036#define __wasilibc___errno_values_h
3037#define __wasilibc___fd_set_h
3038#define __wasilibc___function___isatty_h
753cc434
DG
3039#define __wasilibc___functions_malloc_h
3040#define __wasilibc___functions_memcpy_h
320054e8
DG
3041#define __wasilibc___header_dirent_h
3042#define __wasilibc___header_fcntl_h
3043#define __wasilibc___header_netinet_in_h
3044#define __wasilibc___header_poll_h
b59b83cb
DG
3045#define __wasilibc___header_stdlib_h
3046#define __wasilibc___header_string_h
320054e8
DG
3047#define __wasilibc___header_sys_ioctl_h
3048#define __wasilibc___header_sys_resource_h
3049#define __wasilibc___header_sys_socket_h
3050#define __wasilibc___header_sys_stat_h
3051#define __wasilibc___header_time_h
3052#define __wasilibc___header_unistd_h
753cc434 3053#define __wasilibc___include_inttypes_h
320054e8 3054#define __wasilibc___macro_FD_SETSIZE_h
753cc434 3055#define __wasilibc___macro_PAGESIZE_h
256081f6 3056#define __wasilibc___mode_t_h
60cba39d 3057#define __wasilibc___seek_h
320054e8
DG
3058#define __wasilibc___struct_dirent_h
3059#define __wasilibc___struct_in6_addr_h
3060#define __wasilibc___struct_in_addr_h
3061#define __wasilibc___struct_iovec_h
3062#define __wasilibc___struct_msghdr_h
3063#define __wasilibc___struct_pollfd_h
3064#define __wasilibc___struct_rusage_h
3065#define __wasilibc___struct_sockaddr_h
3066#define __wasilibc___struct_sockaddr_in6_h
3067#define __wasilibc___struct_sockaddr_in_h
3068#define __wasilibc___struct_sockaddr_storage_h
3069#define __wasilibc___struct_sockaddr_un_h
753cc434
DG
3070#define __wasilibc___struct_stat_h
3071#define __wasilibc___struct_timespec_h
320054e8
DG
3072#define __wasilibc___struct_timeval_h
3073#define __wasilibc___struct_tm_h
3074#define __wasilibc___struct_tms_h
3075#define __wasilibc___typedef_DIR_h
753cc434
DG
3076#define __wasilibc___typedef_blkcnt_t_h
3077#define __wasilibc___typedef_blksize_t_h
3078#define __wasilibc___typedef_clock_t_h
320054e8 3079#define __wasilibc___typedef_clockid_t_h
753cc434 3080#define __wasilibc___typedef_dev_t_h
320054e8 3081#define __wasilibc___typedef_fd_set_h
753cc434 3082#define __wasilibc___typedef_gid_t_h
320054e8
DG
3083#define __wasilibc___typedef_in_addr_t_h
3084#define __wasilibc___typedef_in_port_t_h
753cc434
DG
3085#define __wasilibc___typedef_ino_t_h
3086#define __wasilibc___typedef_mode_t_h
320054e8 3087#define __wasilibc___typedef_nfds_t_h
753cc434
DG
3088#define __wasilibc___typedef_nlink_t_h
3089#define __wasilibc___typedef_off_t_h
320054e8
DG
3090#define __wasilibc___typedef_sa_family_t_h
3091#define __wasilibc___typedef_sigset_t_h
3092#define __wasilibc___typedef_socklen_t_h
753cc434
DG
3093#define __wasilibc___typedef_ssize_t_h
3094#define __wasilibc___typedef_suseconds_t_h
3095#define __wasilibc___typedef_time_t_h
3096#define __wasilibc___typedef_uid_t_h
320054e8
DG
3097#define __wasm 1
3098#define __wasm32 1
3099#define __wasm32__ 1
3100#define __wasm__ 1
dcd28cf8
AB
3101#define __wasm_atomics__ 1
3102#define __wasm_bulk_memory__ 1
320054e8
DG
3103#define _tolower(a) ((a)|0x20)
3104#define _toupper(a) ((a)&0x5f)
3105#define acos(x) __tg_real_complex(acos, (x))
3106#define acosh(x) __tg_real_complex(acosh, (x))
3107#define alignas _Alignas
3108#define alignof _Alignof
575e1579 3109#define alloca __builtin_alloca
9f0d8e85 3110#define alphasort64 alphasort
320054e8
DG
3111#define and &&
3112#define and_eq &=
320054e8
DG
3113#define asin(x) __tg_real_complex(asin, (x))
3114#define asinh(x) __tg_real_complex(asinh, (x))
7fcc4f29 3115#define assert(x) (void)0
320054e8
DG
3116#define atan(x) __tg_real_complex(atan, (x))
3117#define atan2(x,y) __tg_real_2(atan2, (x), (y))
3118#define atanh(x) __tg_real_complex(atanh, (x))
3119#define be16toh(x) __bswap16(x)
3120#define be32toh(x) __bswap32(x)
3121#define be64toh(x) __bswap64(x)
3122#define betoh16(x) __bswap16(x)
3123#define betoh32(x) __bswap32(x)
3124#define betoh64(x) __bswap64(x)
3125#define bitand &
3126#define bitor |
9f0d8e85 3127#define blkcnt64_t blkcnt_t
320054e8
DG
3128#define bool _Bool
3129#define bswap_16(x) __bswap_16(x)
3130#define bswap_32(x) __bswap_32(x)
3131#define bswap_64(x) __bswap_64(x)
3132#define carg(x) __tg_complex_retreal(carg, (x))
3133#define cbrt(x) __tg_real(cbrt, (x))
3134#define ceil(x) __tg_real(ceil, (x))
3135#define cimag(x) __tg_complex_retreal(cimag, (x))
5ccebd31
DG
3136#define cimagf(x) (__builtin_cimagf(x))
3137#define cimagl(x) (__builtin_cimagl(x))
320054e8
DG
3138#define clrbit(x,i) __bitop(x,i,&=~)
3139#define compl ~
3140#define complex _Complex
3141#define conj(x) __tg_complex(conj, (x))
3142#define copysign(x,y) __tg_real_2(copysign, (x), (y))
3143#define cos(x) __tg_real_complex(cos, (x))
3144#define cosh(x) __tg_real_complex(cosh, (x))
3145#define cproj(x) __tg_complex(cproj, (x))
3146#define creal(x) __tg_complex_retreal(creal, (x))
5ccebd31
DG
3147#define crealf(x) (__builtin_crealf(x))
3148#define creall(x) (__builtin_creall(x))
9f0d8e85 3149#define creat64 creat
320054e8
DG
3150#define d_fileno d_ino
3151#define direct dirent
9f0d8e85 3152#define dirent64 dirent
320054e8
DG
3153#define erf(x) __tg_real(erf, (x))
3154#define erfc(x) __tg_real(erfc, (x))
3155#define errno errno
3156#define exp(x) __tg_real_complex(exp, (x))
3157#define exp2(x) __tg_real(exp2, (x))
3158#define expm1(x) __tg_real(expm1, (x))
3159#define fabs(x) __tg_real_complex_fabs(x)
3160#define false 0
3161#define fdim(x,y) __tg_real_2(fdim, (x), (y))
9f0d8e85 3162#define fgetpos64 fgetpos
320054e8
DG
3163#define floor(x) __tg_real(floor, (x))
3164#define fma(x,y,z) __tg_real_fma((x), (y), (z))
3165#define fmax(x,y) __tg_real_2(fmax, (x), (y))
3166#define fmin(x,y) __tg_real_2(fmin, (x), (y))
3167#define fmod(x,y) __tg_real_2(fmod, (x), (y))
9f0d8e85 3168#define fopen64 fopen
1dd59d85 3169#define fpclassify(x) (__builtin_fpclassify(FP_NAN, FP_INFINITE, FP_NORMAL, FP_SUBNORMAL, FP_ZERO, x))
9f0d8e85
DG
3170#define fpos64_t fpos_t
3171#define freopen64 freopen
320054e8 3172#define frexp(x,y) __tg_real_2_1(frexp, (x), (y))
9f0d8e85
DG
3173#define fsblkcnt64_t fsblkcnt_t
3174#define fseeko64 fseeko
3175#define fsetpos64 fsetpos
3176#define fsfilcnt64_t fsfilcnt_t
3177#define fstat64 fstat
3178#define fstatat64 fstatat
3179#define ftello64 ftello
3180#define ftruncate64 ftruncate
3181#define getdents64 getdents
3182#define glob64 glob
3183#define glob64_t glob_t
3184#define globfree64 globfree
320054e8
DG
3185#define howmany(n,d) (((n)+((d)-1))/(d))
3186#define htobe16(x) __bswap16(x)
3187#define htobe32(x) __bswap32(x)
3188#define htobe64(x) __bswap64(x)
3189#define htole16(x) (uint16_t)(x)
3190#define htole32(x) (uint32_t)(x)
3191#define htole64(x) (uint64_t)(x)
3192#define hypot(x,y) __tg_real_2(hypot, (x), (y))
3193#define icmp6_data16 icmp6_dataun.icmp6_un_data16
3194#define icmp6_data32 icmp6_dataun.icmp6_un_data32
3195#define icmp6_data8 icmp6_dataun.icmp6_un_data8
3196#define icmp6_id icmp6_data16[0]
3197#define icmp6_maxdelay icmp6_data16[0]
3198#define icmp6_mtu icmp6_data32[0]
3199#define icmp6_pptr icmp6_data32[0]
3200#define icmp6_seq icmp6_data16[1]
3201#define icmp_data icmp_dun.id_data
3202#define icmp_gwaddr icmp_hun.ih_gwaddr
3203#define icmp_id icmp_hun.ih_idseq.icd_id
3204#define icmp_ip icmp_dun.id_ip.idi_ip
3205#define icmp_lifetime icmp_hun.ih_rtradv.irt_lifetime
3206#define icmp_mask icmp_dun.id_mask
3207#define icmp_nextmtu icmp_hun.ih_pmtu.ipm_nextmtu
3208#define icmp_num_addrs icmp_hun.ih_rtradv.irt_num_addrs
3209#define icmp_otime icmp_dun.id_ts.its_otime
3210#define icmp_pmvoid icmp_hun.ih_pmtu.ipm_void
3211#define icmp_pptr icmp_hun.ih_pptr
3212#define icmp_radv icmp_dun.id_radv
3213#define icmp_rtime icmp_dun.id_ts.its_rtime
3214#define icmp_seq icmp_hun.ih_idseq.icd_seq
3215#define icmp_ttime icmp_dun.id_ts.its_ttime
3216#define icmp_void icmp_hun.ih_void
3217#define icmp_wpa icmp_hun.ih_rtradv.irt_wpa
3218#define ifa_broadaddr ifa_ifu.ifu_broadaddr
3219#define ifa_dstaddr ifa_ifu.ifu_dstaddr
320054e8 3220#define ilogb(x) __tg_real_nocast(ilogb, (x))
9f0d8e85 3221#define ino64_t ino_t
320054e8
DG
3222#define ip6_flow ip6_ctlun.ip6_un1.ip6_un1_flow
3223#define ip6_hlim ip6_ctlun.ip6_un1.ip6_un1_hlim
3224#define ip6_hops ip6_ctlun.ip6_un1.ip6_un1_hlim
3225#define ip6_nxt ip6_ctlun.ip6_un1.ip6_un1_nxt
3226#define ip6_plen ip6_ctlun.ip6_un1.ip6_un1_plen
3227#define ip6_vfc ip6_ctlun.ip6_un2_vfc
3228#define isalpha(a) (0 ? isalpha(a) : (((unsigned)(a)|32)-'a') < 26)
3229#define isascii(a) (0 ? isascii(a) : (unsigned)(a) < 128)
3230#define isclr(x,i) !isset(x,i)
3231#define isdigit(a) (0 ? isdigit(a) : ((unsigned)(a)-'0') < 10)
1dd59d85 3232#define isfinite(x) (__builtin_isfinite(x))
320054e8 3233#define isgraph(a) (0 ? isgraph(a) : ((unsigned)(a)-0x21) < 0x5e)
1dd59d85
DG
3234#define isgreater(x,y) (__builtin_isgreater(x, y))
3235#define isgreaterequal(x,y) (__builtin_isgreaterequal(x, y))
3236#define isinf(x) (__builtin_isinf(x))
3237#define isless(x,y) (__builtin_isless(x, y))
3238#define islessequal(x,y) (__builtin_islessequal(x, y))
3239#define islessgreater(x,y) (__builtin_islessgreater(x, y))
320054e8 3240#define islower(a) (0 ? islower(a) : ((unsigned)(a)-'a') < 26)
1dd59d85
DG
3241#define isnan(x) (__builtin_isnan(x))
3242#define isnormal(x) (__builtin_isnormal(x))
320054e8
DG
3243#define isprint(a) (0 ? isprint(a) : ((unsigned)(a)-0x20) < 0x5f)
3244#define isset(x,i) __bitop(x,i,&)
3245#define isspace(a) __isspace(a)
1dd59d85 3246#define isunordered(x,y) (__builtin_isunordered(x, y))
320054e8
DG
3247#define isupper(a) (0 ? isupper(a) : ((unsigned)(a)-'A') < 26)
3248#define iswdigit(a) (0 ? iswdigit(a) : ((unsigned)(a)-'0') < 10)
3249#define ldexp(x,y) __tg_real_2_1(ldexp, (x), (y))
3250#define le16toh(x) (uint16_t)(x)
3251#define le32toh(x) (uint32_t)(x)
3252#define le64toh(x) (uint64_t)(x)
3253#define letoh16(x) (uint16_t)(x)
3254#define letoh32(x) (uint32_t)(x)
3255#define letoh64(x) (uint64_t)(x)
3256#define lgamma(x) __tg_real(lgamma, (x))
3257#define llrint(x) __tg_real_nocast(llrint, (x))
3258#define llround(x) __tg_real_nocast(llround, (x))
9f0d8e85 3259#define loff_t off_t
320054e8
DG
3260#define log(x) __tg_real_complex(log, (x))
3261#define log10(x) __tg_real(log10, (x))
3262#define log1p(x) __tg_real(log1p, (x))
3263#define log2(x) __tg_real(log2, (x))
3264#define logb(x) __tg_real(logb, (x))
3265#define lrint(x) __tg_real_nocast(lrint, (x))
3266#define lround(x) __tg_real_nocast(lround, (x))
cf366c06 3267#define lseek(fd,offset,whence) ({ off_t __f = (fd); off_t __o = (offset); off_t __w = (whence); __builtin_constant_p((offset)) && __builtin_constant_p((whence)) && __o == 0 && __w == SEEK_CUR ? __wasilibc_tell(__f) : lseek(__f, __o, __w); })
9f0d8e85
DG
3268#define lseek64 lseek
3269#define lstat64 lstat
320054e8 3270#define math_errhandling 2
320054e8
DG
3271#define mld_cksum mld_icmp6_hdr.icmp6_cksum
3272#define mld_code mld_icmp6_hdr.icmp6_code
3273#define mld_maxdelay mld_icmp6_hdr.icmp6_data16[0]
3274#define mld_reserved mld_icmp6_hdr.icmp6_data16[1]
3275#define mld_type mld_icmp6_hdr.icmp6_type
3276#define nd_na_cksum nd_na_hdr.icmp6_cksum
3277#define nd_na_code nd_na_hdr.icmp6_code
3278#define nd_na_flags_reserved nd_na_hdr.icmp6_data32[0]
3279#define nd_na_type nd_na_hdr.icmp6_type
3280#define nd_ns_cksum nd_ns_hdr.icmp6_cksum
3281#define nd_ns_code nd_ns_hdr.icmp6_code
3282#define nd_ns_reserved nd_ns_hdr.icmp6_data32[0]
3283#define nd_ns_type nd_ns_hdr.icmp6_type
3284#define nd_ra_cksum nd_ra_hdr.icmp6_cksum
3285#define nd_ra_code nd_ra_hdr.icmp6_code
3286#define nd_ra_curhoplimit nd_ra_hdr.icmp6_data8[0]
3287#define nd_ra_flags_reserved nd_ra_hdr.icmp6_data8[1]
3288#define nd_ra_router_lifetime nd_ra_hdr.icmp6_data16[1]
3289#define nd_ra_type nd_ra_hdr.icmp6_type
3290#define nd_rd_cksum nd_rd_hdr.icmp6_cksum
3291#define nd_rd_code nd_rd_hdr.icmp6_code
3292#define nd_rd_reserved nd_rd_hdr.icmp6_data32[0]
3293#define nd_rd_type nd_rd_hdr.icmp6_type
3294#define nd_rs_cksum nd_rs_hdr.icmp6_cksum
3295#define nd_rs_code nd_rs_hdr.icmp6_code
3296#define nd_rs_reserved nd_rs_hdr.icmp6_data32[0]
3297#define nd_rs_type nd_rs_hdr.icmp6_type
3298#define nearbyint(x) __tg_real(nearbyint, (x))
3299#define nextafter(x,y) __tg_real_2(nextafter, (x), (y))
3300#define nexttoward(x,y) __tg_real_2(nexttoward, (x), (y))
9f0d8e85 3301#define nftw64 nftw
320054e8
DG
3302#define no_argument 0
3303#define noreturn _Noreturn
3304#define not !
3305#define not_eq !=
3306#define ns_msg_base(handle) ((handle)._msg + 0)
3307#define ns_msg_count(handle,section) ((handle)._counts[section] + 0)
3308#define ns_msg_end(handle) ((handle)._eom + 0)
3309#define ns_msg_getflag(handle,flag) (((handle)._flags & _ns_flagdata[flag].mask) >> _ns_flagdata[flag].shift)
3310#define ns_msg_id(handle) ((handle)._id + 0)
3311#define ns_msg_size(handle) ((handle)._eom - (handle)._msg)
3312#define ns_rr_class(rr) ((ns_class)((rr).rr_class + 0))
3313#define ns_rr_name(rr) (((rr).name[0] != '\0') ? (rr).name : ".")
3314#define ns_rr_rdata(rr) ((rr).rdata + 0)
3315#define ns_rr_rdlen(rr) ((rr).rdlength + 0)
3316#define ns_rr_ttl(rr) ((rr).ttl + 0)
3317#define ns_rr_type(rr) ((ns_type)((rr).type + 0))
3318#define ns_t_mrr_p(t) ((t) == ns_t_tsig || (t) == ns_t_opt)
3319#define ns_t_qt_p(t) (ns_t_xfr_p(t) || (t) == ns_t_any || (t) == ns_t_mailb || (t) == ns_t_maila)
3320#define ns_t_rr_p(t) (!ns_t_qt_p(t) && !ns_t_mrr_p(t))
3321#define ns_t_udp_p(t) ((t) != ns_t_axfr && (t) != ns_t_zxfr)
3322#define ns_t_xfr_p(t) ((t) == ns_t_axfr || (t) == ns_t_ixfr || (t) == ns_t_zxfr)
9f0d8e85 3323#define off64_t off_t
320054e8 3324#define offsetof(t,d) __builtin_offsetof(t, d)
9f0d8e85
DG
3325#define open64 open
3326#define openat64 openat
320054e8
DG
3327#define optional_argument 2
3328#define or ||
3329#define or_eq |=
9f0d8e85
DG
3330#define posix_fadvise64 posix_fadvise
3331#define posix_fallocate64 posix_fallocate
320054e8
DG
3332#define pow(x,y) __tg_real_complex_pow((x), (y))
3333#define powerof2(n) !(((n)-1) & (n))
9f0d8e85
DG
3334#define pread64 pread
3335#define preadv64 preadv
dcd28cf8
AB
3336#define pthread_cleanup_pop(r) _pthread_cleanup_pop(&__cb, (r)); } while(0)
3337#define pthread_cleanup_push(f,x) do { struct __ptcb __cb; _pthread_cleanup_push(&__cb, f, x);
3338#define pthread_equal(x,y) ((x)==(y))
9f0d8e85
DG
3339#define pwrite64 pwrite
3340#define pwritev64 pwritev
3341#define readdir64 readdir
320054e8
DG
3342#define remainder(x,y) __tg_real_2(remainder, (x), (y))
3343#define remquo(x,y,z) __tg_real_remquo((x), (y), (z))
3344#define required_argument 1
3345#define rint(x) __tg_real(rint, (x))
3346#define round(x) __tg_real(round, (x))
3347#define roundup(n,d) (howmany(n,d)*(d))
3348#define rr_cksum rr_hdr.icmp6_cksum
3349#define rr_code rr_hdr.icmp6_code
3350#define rr_seqnum rr_hdr.icmp6_data32[0]
3351#define rr_type rr_hdr.icmp6_type
320054e8
DG
3352#define scalbln(x,y) __tg_real_2_1(scalbln, (x), (y))
3353#define scalbn(x,y) __tg_real_2_1(scalbn, (x), (y))
9f0d8e85 3354#define scandir64 scandir
320054e8 3355#define setbit(x,i) __bitop(x,i,|=)
1dd59d85 3356#define signbit(x) (__builtin_signbit(x))
320054e8
DG
3357#define sin(x) __tg_real_complex(sin, (x))
3358#define sinh(x) __tg_real_complex(sinh, (x))
3359#define sqrt(x) __tg_real_complex(sqrt, (x))
3360#define st_atime st_atim.tv_sec
3361#define st_ctime st_ctim.tv_sec
3362#define st_mtime st_mtim.tv_sec
9f0d8e85 3363#define stat64 stat
320054e8
DG
3364#define static_assert _Static_assert
3365#define stderr (stderr)
3366#define stdin (stdin)
3367#define stdout (stdout)
9f0d8e85 3368#define strdupa(x) strcpy(alloca(strlen(x)+1),x)
320054e8
DG
3369#define tan(x) __tg_real_complex(tan, (x))
3370#define tanh(x) __tg_real_complex(tanh, (x))
3371#define telcmds ((char [][6]){ "EOF", "SUSP", "ABORT", "EOR", "SE", "NOP", "DMARK", "BRK", "IP", "AO", "AYT", "EC", "EL", "GA", "SB", "WILL", "WONT", "DO", "DONT", "IAC", 0 })
3372#define tgamma(x) __tg_real(tgamma, (x))
3373#define th_block th_u.tu_block
3374#define th_code th_u.tu_code
3375#define th_msg th_data
3376#define th_stuff th_u.tu_stuff
3377#define thrd_equal(A,B) ((A) == (B))
3378#define thread_local _Thread_local
3379#define timeradd(s,t,a) (void) ( (a)->tv_sec = (s)->tv_sec + (t)->tv_sec, ((a)->tv_usec = (s)->tv_usec + (t)->tv_usec) >= 1000000 && ((a)->tv_usec -= 1000000, (a)->tv_sec++) )
3380#define timerclear(t) ((t)->tv_sec = (t)->tv_usec = 0)
3381#define timercmp(s,t,op) ((s)->tv_sec == (t)->tv_sec ? (s)->tv_usec op (t)->tv_usec : (s)->tv_sec op (t)->tv_sec)
3382#define timerisset(t) ((t)->tv_sec || (t)->tv_usec)
3383#define timersub(s,t,a) (void) ( (a)->tv_sec = (s)->tv_sec - (t)->tv_sec, ((a)->tv_usec = (s)->tv_usec - (t)->tv_usec) < 0 && ((a)->tv_usec += 1000000, (a)->tv_sec--) )
3384#define true 1
3385#define trunc(x) __tg_real(trunc, (x))
9f0d8e85
DG
3386#define uh_dport dest
3387#define uh_sport source
3388#define uh_sum check
3389#define uh_ulen len
320054e8
DG
3390#define va_arg(ap,type) __builtin_va_arg(ap, type)
3391#define va_copy(dest,src) __builtin_va_copy(dest, src)
3392#define va_end(ap) __builtin_va_end(ap)
3393#define va_start(ap,param) __builtin_va_start(ap, param)
9f0d8e85 3394#define versionsort64 versionsort
320054e8
DG
3395#define xEOF 236
3396#define xor ^
3397#define xor_eq ^=