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