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