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