Debian Codegraph @

netinet/in/in_linux_386.go

raw
1 // Code generated by 'ccgo netinet/in/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o netinet/in/in_linux_386.go -pkgname in', DO NOT EDIT.
2
3 package in
4
5 import (
6 "math"
7 "reflect"
8 "sync/atomic"
9 "unsafe"
10 )
11
12 var _ = math.Pi
13 var _ reflect.Kind
14 var _ atomic.Value
15 var _ unsafe.Pointer
16
17 const (
18 AF_ALG = 38
19 AF_APPLETALK = 5
20 AF_ASH = 18
21 AF_ATMPVC = 8
22 AF_ATMSVC = 20
23 AF_AX25 = 3
24 AF_BLUETOOTH = 31
25 AF_BRIDGE = 7
26 AF_CAIF = 37
27 AF_CAN = 29
28 AF_DECnet = 12
29 AF_ECONET = 19
30 AF_FILE = 1
31 AF_IB = 27
32 AF_IEEE802154 = 36
33 AF_INET = 2
34 AF_INET6 = 10
35 AF_IPX = 4
36 AF_IRDA = 23
37 AF_ISDN = 34
38 AF_IUCV = 32
39 AF_KCM = 41
40 AF_KEY = 15
41 AF_LLC = 26
42 AF_LOCAL = 1
43 AF_MAX = 45
44 AF_MPLS = 28
45 AF_NETBEUI = 13
46 AF_NETLINK = 16
47 AF_NETROM = 6
48 AF_NFC = 39
49 AF_PACKET = 17
50 AF_PHONET = 35
51 AF_PPPOX = 24
52 AF_QIPCRTR = 42
53 AF_RDS = 21
54 AF_ROSE = 11
55 AF_ROUTE = 16
56 AF_RXRPC = 33
57 AF_SECURITY = 14
58 AF_SMC = 43
59 AF_SNA = 22
60 AF_TIPC = 30
61 AF_UNIX = 1
62 AF_UNSPEC = 0
63 AF_VSOCK = 40
64 AF_WANPIPE = 25
65 AF_X25 = 9
66 AF_XDP = 44
67 BIG_ENDIAN = 4321
68 BYTE_ORDER = 1234
69 FD_SETSIZE = 1024
70 FIOGETOWN = 0x8903
71 FIOSETOWN = 0x8901
72 INET6_ADDRSTRLEN = 46
73 INET_ADDRSTRLEN = 16
74 IN_CLASSA_HOST = 16777215
75 IN_CLASSA_MAX = 128
76 IN_CLASSA_NET = 0xff000000
77 IN_CLASSA_NSHIFT = 24
78 IN_CLASSB_HOST = 65535
79 IN_CLASSB_MAX = 65536
80 IN_CLASSB_NET = 0xffff0000
81 IN_CLASSB_NSHIFT = 16
82 IN_CLASSC_HOST = 255
83 IN_CLASSC_NET = 0xffffff00
84 IN_CLASSC_NSHIFT = 8
85 IN_LOOPBACKNET = 127
86 IPV6_2292DSTOPTS = 4
87 IPV6_2292HOPLIMIT = 8
88 IPV6_2292HOPOPTS = 3
89 IPV6_2292PKTINFO = 2
90 IPV6_2292PKTOPTIONS = 6
91 IPV6_2292RTHDR = 5
92 IPV6_ADDRFORM = 1
93 IPV6_ADDR_PREFERENCES = 72
94 IPV6_ADD_MEMBERSHIP = 20
95 IPV6_AUTHHDR = 10
96 IPV6_AUTOFLOWLABEL = 70
97 IPV6_CHECKSUM = 7
98 IPV6_DONTFRAG = 62
99 IPV6_DROP_MEMBERSHIP = 21
100 IPV6_DSTOPTS = 59
101 IPV6_FREEBIND = 78
102 IPV6_HDRINCL = 36
103 IPV6_HOPLIMIT = 52
104 IPV6_HOPOPTS = 54
105 IPV6_IPSEC_POLICY = 34
106 IPV6_JOIN_ANYCAST = 27
107 IPV6_JOIN_GROUP = 20
108 IPV6_LEAVE_ANYCAST = 28
109 IPV6_LEAVE_GROUP = 21
110 IPV6_MINHOPCOUNT = 73
111 IPV6_MTU = 24
112 IPV6_MTU_DISCOVER = 23
113 IPV6_MULTICAST_ALL = 29
114 IPV6_MULTICAST_HOPS = 18
115 IPV6_MULTICAST_IF = 17
116 IPV6_MULTICAST_LOOP = 19
117 IPV6_NEXTHOP = 9
118 IPV6_ORIGDSTADDR = 74
119 IPV6_PATHMTU = 61
120 IPV6_PKTINFO = 50
121 IPV6_PMTUDISC_DO = 2
122 IPV6_PMTUDISC_DONT = 0
123 IPV6_PMTUDISC_INTERFACE = 4
124 IPV6_PMTUDISC_OMIT = 5
125 IPV6_PMTUDISC_PROBE = 3
126 IPV6_PMTUDISC_WANT = 1
127 IPV6_RECVDSTOPTS = 58
128 IPV6_RECVERR = 25
129 IPV6_RECVFRAGSIZE = 77
130 IPV6_RECVHOPLIMIT = 51
131 IPV6_RECVHOPOPTS = 53
132 IPV6_RECVORIGDSTADDR = 74
133 IPV6_RECVPATHMTU = 60
134 IPV6_RECVPKTINFO = 49
135 IPV6_RECVRTHDR = 56
136 IPV6_RECVTCLASS = 66
137 IPV6_ROUTER_ALERT = 22
138 IPV6_ROUTER_ALERT_ISOLATE = 30
139 IPV6_RTHDR = 57
140 IPV6_RTHDRDSTOPTS = 55
141 IPV6_RTHDR_LOOSE = 0
142 IPV6_RTHDR_STRICT = 1
143 IPV6_RTHDR_TYPE_0 = 0
144 IPV6_RXDSTOPTS = 59
145 IPV6_RXHOPOPTS = 54
146 IPV6_TCLASS = 67
147 IPV6_TRANSPARENT = 75
148 IPV6_UNICAST_HOPS = 16
149 IPV6_UNICAST_IF = 76
150 IPV6_V6ONLY = 26
151 IPV6_XFRM_POLICY = 35
152 IP_ADD_MEMBERSHIP = 35
153 IP_ADD_SOURCE_MEMBERSHIP = 39
154 IP_BIND_ADDRESS_NO_PORT = 24
155 IP_BLOCK_SOURCE = 38
156 IP_CHECKSUM = 23
157 IP_DEFAULT_MULTICAST_LOOP = 1
158 IP_DEFAULT_MULTICAST_TTL = 1
159 IP_DROP_MEMBERSHIP = 36
160 IP_DROP_SOURCE_MEMBERSHIP = 40
161 IP_FREEBIND = 15
162 IP_HDRINCL = 3
163 IP_IPSEC_POLICY = 16
164 IP_MAX_MEMBERSHIPS = 20
165 IP_MINTTL = 21
166 IP_MSFILTER = 41
167 IP_MTU = 14
168 IP_MTU_DISCOVER = 10
169 IP_MULTICAST_ALL = 49
170 IP_MULTICAST_IF = 32
171 IP_MULTICAST_LOOP = 34
172 IP_MULTICAST_TTL = 33
173 IP_NODEFRAG = 22
174 IP_OPTIONS = 4
175 IP_ORIGDSTADDR = 20
176 IP_PASSSEC = 18
177 IP_PKTINFO = 8
178 IP_PKTOPTIONS = 9
179 IP_PMTUDISC = 10
180 IP_PMTUDISC_DO = 2
181 IP_PMTUDISC_DONT = 0
182 IP_PMTUDISC_INTERFACE = 4
183 IP_PMTUDISC_OMIT = 5
184 IP_PMTUDISC_PROBE = 3
185 IP_PMTUDISC_WANT = 1
186 IP_RECVERR = 11
187 IP_RECVFRAGSIZE = 25
188 IP_RECVOPTS = 6
189 IP_RECVORIGDSTADDR = 20
190 IP_RECVRETOPTS = 7
191 IP_RECVTOS = 13
192 IP_RECVTTL = 12
193 IP_RETOPTS = 7
194 IP_ROUTER_ALERT = 5
195 IP_TOS = 1
196 IP_TRANSPARENT = 19
197 IP_TTL = 2
198 IP_UNBLOCK_SOURCE = 37
199 IP_UNICAST_IF = 50
200 IP_XFRM_POLICY = 17
201 LITTLE_ENDIAN = 1234
202 MCAST_BLOCK_SOURCE = 43
203 MCAST_EXCLUDE = 0
204 MCAST_INCLUDE = 1
205 MCAST_JOIN_GROUP = 42
206 MCAST_JOIN_SOURCE_GROUP = 46
207 MCAST_LEAVE_GROUP = 45
208 MCAST_LEAVE_SOURCE_GROUP = 47
209 MCAST_MSFILTER = 48
210 MCAST_UNBLOCK_SOURCE = 44
211 PDP_ENDIAN = 3412
212 PF_ALG = 38
213 PF_APPLETALK = 5
214 PF_ASH = 18
215 PF_ATMPVC = 8
216 PF_ATMSVC = 20
217 PF_AX25 = 3
218 PF_BLUETOOTH = 31
219 PF_BRIDGE = 7
220 PF_CAIF = 37
221 PF_CAN = 29
222 PF_DECnet = 12
223 PF_ECONET = 19
224 PF_FILE = 1
225 PF_IB = 27
226 PF_IEEE802154 = 36
227 PF_INET = 2
228 PF_INET6 = 10
229 PF_IPX = 4
230 PF_IRDA = 23
231 PF_ISDN = 34
232 PF_IUCV = 32
233 PF_KCM = 41
234 PF_KEY = 15
235 PF_LLC = 26
236 PF_LOCAL = 1
237 PF_MAX = 45
238 PF_MPLS = 28
239 PF_NETBEUI = 13
240 PF_NETLINK = 16
241 PF_NETROM = 6
242 PF_NFC = 39
243 PF_PACKET = 17
244 PF_PHONET = 35
245 PF_PPPOX = 24
246 PF_QIPCRTR = 42
247 PF_RDS = 21
248 PF_ROSE = 11
249 PF_ROUTE = 16
250 PF_RXRPC = 33
251 PF_SECURITY = 14
252 PF_SMC = 43
253 PF_SNA = 22
254 PF_TIPC = 30
255 PF_UNIX = 1
256 PF_UNSPEC = 0
257 PF_VSOCK = 40
258 PF_WANPIPE = 25
259 PF_X25 = 9
260 PF_XDP = 44
261 SCM_TIMESTAMPING_OPT_STATS = 54
262 SCM_TIMESTAMPING_PKTINFO = 58
263 SCM_TXTIME = 61
264 SCM_WIFI_STATUS = 41
265 SIOCATMARK = 0x8905
266 SIOCGPGRP = 0x8904
267 SIOCGSTAMP = 0x8906
268 SIOCGSTAMPNS = 0x8907
269 SIOCSPGRP = 0x8902
270 SOL_AAL = 265
271 SOL_ALG = 279
272 SOL_ATM = 264
273 SOL_BLUETOOTH = 274
274 SOL_CAIF = 278
275 SOL_DCCP = 269
276 SOL_DECNET = 261
277 SOL_ICMPV6 = 58
278 SOL_IP = 0
279 SOL_IPV6 = 41
280 SOL_IRDA = 266
281 SOL_IUCV = 277
282 SOL_KCM = 281
283 SOL_LLC = 268
284 SOL_NETBEUI = 267
285 SOL_NETLINK = 270
286 SOL_NFC = 280
287 SOL_PACKET = 263
288 SOL_PNPIPE = 275
289 SOL_PPPOL2TP = 273
290 SOL_RAW = 255
291 SOL_RDS = 276
292 SOL_RXRPC = 272
293 SOL_SOCKET = 1
294 SOL_TIPC = 271
295 SOL_TLS = 282
296 SOL_X25 = 262
297 SOL_XDP = 283
298 SOMAXCONN = 4096
299 SO_ACCEPTCONN = 30
300 SO_ATTACH_BPF = 50
301 SO_ATTACH_FILTER = 26
302 SO_ATTACH_REUSEPORT_CBPF = 51
303 SO_ATTACH_REUSEPORT_EBPF = 52
304 SO_BINDTODEVICE = 25
305 SO_BINDTOIFINDEX = 62
306 SO_BPF_EXTENSIONS = 48
307 SO_BROADCAST = 6
308 SO_BSDCOMPAT = 14
309 SO_BUSY_POLL = 46
310 SO_CNX_ADVICE = 53
311 SO_COOKIE = 57
312 SO_DEBUG = 1
313 SO_DETACH_BPF = 27
314 SO_DETACH_FILTER = 27
315 SO_DETACH_REUSEPORT_BPF = 68
316 SO_DOMAIN = 39
317 SO_DONTROUTE = 5
318 SO_ERROR = 4
319 SO_GET_FILTER = 26
320 SO_INCOMING_CPU = 49
321 SO_INCOMING_NAPI_ID = 56
322 SO_KEEPALIVE = 9
323 SO_LINGER = 13
324 SO_LOCK_FILTER = 44
325 SO_MARK = 36
326 SO_MAX_PACING_RATE = 47
327 SO_MEMINFO = 55
328 SO_NOFCS = 43
329 SO_NO_CHECK = 11
330 SO_OOBINLINE = 10
331 SO_PASSCRED = 16
332 SO_PASSSEC = 34
333 SO_PEEK_OFF = 42
334 SO_PEERCRED = 17
335 SO_PEERGROUPS = 59
336 SO_PEERNAME = 28
337 SO_PEERSEC = 31
338 SO_PRIORITY = 12
339 SO_PROTOCOL = 38
340 SO_RCVBUF = 8
341 SO_RCVBUFFORCE = 33
342 SO_RCVLOWAT = 18
343 SO_RCVTIMEO_NEW = 66
344 SO_RCVTIMEO_OLD = 20
345 SO_REUSEADDR = 2
346 SO_REUSEPORT = 15
347 SO_RXQ_OVFL = 40
348 SO_SECURITY_AUTHENTICATION = 22
349 SO_SECURITY_ENCRYPTION_NETWORK = 24
350 SO_SECURITY_ENCRYPTION_TRANSPORT = 23
351 SO_SELECT_ERR_QUEUE = 45
352 SO_SNDBUF = 7
353 SO_SNDBUFFORCE = 32
354 SO_SNDLOWAT = 19
355 SO_SNDTIMEO_NEW = 67
356 SO_SNDTIMEO_OLD = 21
357 SO_TIMESTAMPING_NEW = 65
358 SO_TIMESTAMPING_OLD = 37
359 SO_TIMESTAMPNS_NEW = 64
360 SO_TIMESTAMPNS_OLD = 35
361 SO_TIMESTAMP_NEW = 63
362 SO_TIMESTAMP_OLD = 29
363 SO_TXTIME = 61
364 SO_TYPE = 3
365 SO_WIFI_STATUS = 41
366 SO_ZEROCOPY = 60
367 X_ASM_X86_POSIX_TYPES_32_H = 0
368 X_ATFILE_SOURCE = 1
369 X_BITS_BYTESWAP_H = 1
370 X_BITS_ENDIANNESS_H = 1
371 X_BITS_ENDIAN_H = 1
372 X_BITS_PTHREADTYPES_ARCH_H = 1
373 X_BITS_PTHREADTYPES_COMMON_H = 1
374 X_BITS_SOCKADDR_H = 1
375 X_BITS_STDINT_INTN_H = 1
376 X_BITS_STDINT_UINTN_H = 1
377 X_BITS_TIME64_H = 1
378 X_BITS_TYPESIZES_H = 1
379 X_BITS_TYPES_H = 1
380 X_BITS_UINTN_IDENTITY_H = 1
381 X_BSD_SIZE_T_ = 0
382 X_BSD_SIZE_T_DEFINED_ = 0
383 X_DEFAULT_SOURCE = 1
384 X_ENDIAN_H = 1
385 X_FEATURES_H = 1
386 X_FILE_OFFSET_BITS = 64
387 X_GCC_SIZE_T = 0
388 X_ILP32 = 1
389 X_LINUX_POSIX_TYPES_H = 0
390 X_NETINET_IN_H = 1
391 X_POSIX_C_SOURCE = 200809
392 X_POSIX_SOURCE = 1
393 X_RWLOCK_INTERNAL_H = 0
394 X_SIZET_ = 0
395 X_SIZE_T = 0
396 X_SIZE_T_ = 0
397 X_SIZE_T_DECLARED = 0
398 X_SIZE_T_DEFINED = 0
399 X_SIZE_T_DEFINED_ = 0
400 X_SS_SIZE = 128
401 X_STDC_PREDEF_H = 1
402 X_STRUCT_TIMESPEC = 1
403 X_SYS_CDEFS_H = 1
404 X_SYS_SELECT_H = 1
405 X_SYS_SIZE_T_H = 0
406 X_SYS_SOCKET_H = 1
407 X_SYS_TYPES_H = 1
408 X_THREAD_MUTEX_INTERNAL_H = 1
409 X_THREAD_SHARED_TYPES_H = 1
410 X_T_SIZE = 0
411 X_T_SIZE_ = 0
412 I386 = 1
413 Linux = 1
414 Unix = 1
415 )
416
417 // Bits in the FLAGS argument to `send', `recv', et al.
418 const ( /* socket.h:200:1: */
419 MSG_OOB = 1 // Process out-of-band data.
420 MSG_PEEK = 2 // Peek at incoming messages.
421 MSG_DONTROUTE = 4 // Don't use local routing.
422 MSG_CTRUNC = 8 // Control data lost before delivery.
423 MSG_PROXY = 16 // Supply or ask second address.
424 MSG_TRUNC = 32
425 MSG_DONTWAIT = 64 // Nonblocking IO.
426 MSG_EOR = 128 // End of record.
427 MSG_WAITALL = 256 // Wait for a full request.
428 MSG_FIN = 512
429 MSG_SYN = 1024
430 MSG_CONFIRM = 2048 // Confirm path validity.
431 MSG_RST = 4096
432 MSG_ERRQUEUE = 8192 // Fetch message from error queue.
433 MSG_NOSIGNAL = 16384 // Do not generate SIGPIPE.
434 MSG_MORE = 32768 // Sender will send more.
435 MSG_WAITFORONE = 65536 // Wait for at least one packet to return.
436 MSG_BATCH = 262144 // sendmmsg: more messages coming.
437 MSG_ZEROCOPY = 67108864 // Use user data in kernel path.
438 MSG_FASTOPEN = 536870912 // Send data in TCP SYN.
439
440 MSG_CMSG_CLOEXEC = 1073741824
441 )
442
443 // Socket level message types. This must match the definitions in
444 //
445 // <linux/socket.h>.
446 const ( /* socket.h:332:1: */
447 SCM_RIGHTS = 1
448 )
449
450 // Get the architecture-dependent definition of enum __socket_type.
451 // Define enum __socket_type for generic Linux.
452 // Copyright (C) 1991-2020 Free Software Foundation, Inc.
453 // This file is part of the GNU C Library.
454 //
455 // The GNU C Library is free software; you can redistribute it and/or
456 // modify it under the terms of the GNU Lesser General Public
457 // License as published by the Free Software Foundation; either
458 // version 2.1 of the License, or (at your option) any later version.
459 //
460 // The GNU C Library is distributed in the hope that it will be useful,
461 // but WITHOUT ANY WARRANTY; without even the implied warranty of
462 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
463 // Lesser General Public License for more details.
464 //
465 // You should have received a copy of the GNU Lesser General Public
466 // License along with the GNU C Library; if not, see
467 // <https://www.gnu.org/licenses/>.
468
469 // Types of sockets.
470 const ( /* socket_type.h:24:1: */
471 SOCK_STREAM = 1 // Sequenced, reliable, connection-based
472 // byte streams.
473 SOCK_DGRAM = 2 // Connectionless, unreliable datagrams
474 // of fixed maximum length.
475 SOCK_RAW = 3 // Raw protocol interface.
476 SOCK_RDM = 4 // Reliably-delivered messages.
477 SOCK_SEQPACKET = 5 // Sequenced, reliable, connection-based,
478 // datagrams of fixed maximum length.
479 SOCK_DCCP = 6 // Datagram Congestion Control Protocol.
480 SOCK_PACKET = 10 // Linux specific way of getting packets
481 // at the dev level. For writing rarp and
482 // other similar things on the user level.
483
484 // Flags to be ORed into the type parameter of socket and socketpair and
485 // used for the flags parameter of paccept.
486
487 SOCK_CLOEXEC = 524288 // Atomically set close-on-exec flag for the
488 // new descriptor(s).
489 SOCK_NONBLOCK = 2048
490 )
491
492 // Standard well-known ports.
493 const ( /* in.h:122:1: */
494 IPPORT_ECHO = 7 // Echo service.
495 IPPORT_DISCARD = 9 // Discard transmissions service.
496 IPPORT_SYSTAT = 11 // System status service.
497 IPPORT_DAYTIME = 13 // Time of day service.
498 IPPORT_NETSTAT = 15 // Network status service.
499 IPPORT_FTP = 21 // File Transfer Protocol.
500 IPPORT_TELNET = 23 // Telnet protocol.
501 IPPORT_SMTP = 25 // Simple Mail Transfer Protocol.
502 IPPORT_TIMESERVER = 37 // Timeserver service.
503 IPPORT_NAMESERVER = 42 // Domain Name Service.
504 IPPORT_WHOIS = 43 // Internet Whois service.
505 IPPORT_MTP = 57
506
507 IPPORT_TFTP = 69 // Trivial File Transfer Protocol.
508 IPPORT_RJE = 77
509 IPPORT_FINGER = 79 // Finger service.
510 IPPORT_TTYLINK = 87
511 IPPORT_SUPDUP = 95 // SUPDUP protocol.
512
513 IPPORT_EXECSERVER = 512 // execd service.
514 IPPORT_LOGINSERVER = 513 // rlogind service.
515 IPPORT_CMDSERVER = 514
516 IPPORT_EFSSERVER = 520
517
518 // UDP ports.
519 IPPORT_BIFFUDP = 512
520 IPPORT_WHOSERVER = 513
521 IPPORT_ROUTESERVER = 520
522
523 // Ports less than this value are reserved for privileged processes.
524 IPPORT_RESERVED = 1024
525
526 // Ports greater this value are reserved for (non-privileged) servers.
527 IPPORT_USERRESERVED = 5000
528 )
529
530 // Options for use with `getsockopt' and `setsockopt' at the IPv6 level.
531 // The first word in the comment at the right is the data type used;
532 // "bool" means a boolean value stored in an `int'.
533
534 // Advanced API (RFC3542) (1).
535
536 // Advanced API (RFC3542) (2).
537
538 // RFC5014.
539
540 // RFC5082.
541
542 // Obsolete synonyms for the above.
543
544 // IPV6_MTU_DISCOVER values.
545
546 // Socket level values for IPv6.
547
548 // Routing header options for IPv6.
549
550 // Standard well-defined IP protocols.
551 const ( /* in.h:40:1: */
552 IPPROTO_IP = 0 // Dummy protocol for TCP.
553 IPPROTO_ICMP = 1 // Internet Control Message Protocol.
554 IPPROTO_IGMP = 2 // Internet Group Management Protocol.
555 IPPROTO_IPIP = 4 // IPIP tunnels (older KA9Q tunnels use 94).
556 IPPROTO_TCP = 6 // Transmission Control Protocol.
557 IPPROTO_EGP = 8 // Exterior Gateway Protocol.
558 IPPROTO_PUP = 12 // PUP protocol.
559 IPPROTO_UDP = 17 // User Datagram Protocol.
560 IPPROTO_IDP = 22 // XNS IDP protocol.
561 IPPROTO_TP = 29 // SO Transport Protocol Class 4.
562 IPPROTO_DCCP = 33 // Datagram Congestion Control Protocol.
563 IPPROTO_IPV6 = 41 // IPv6 header.
564 IPPROTO_RSVP = 46 // Reservation Protocol.
565 IPPROTO_GRE = 47 // General Routing Encapsulation.
566 IPPROTO_ESP = 50 // encapsulating security payload.
567 IPPROTO_AH = 51 // authentication header.
568 IPPROTO_MTP = 92 // Multicast Transport Protocol.
569 IPPROTO_BEETPH = 94 // IP option pseudo header for BEET.
570 IPPROTO_ENCAP = 98 // Encapsulation Header.
571 IPPROTO_PIM = 103 // Protocol Independent Multicast.
572 IPPROTO_COMP = 108 // Compression Header Protocol.
573 IPPROTO_SCTP = 132 // Stream Control Transmission Protocol.
574 IPPROTO_UDPLITE = 136 // UDP-Lite protocol.
575 IPPROTO_MPLS = 137 // MPLS in IP.
576 IPPROTO_RAW = 255 // Raw IP packets.
577 IPPROTO_MAX = 256
578 )
579
580 // If __USE_KERNEL_IPV6_DEFS is 1 then the user has included the kernel
581 //
582 // network headers first and we should use those ABI-identical definitions
583 // instead of our own, otherwise 0.
584 const ( /* in.h:99:1: */
585 IPPROTO_HOPOPTS = 0 // IPv6 Hop-by-Hop options.
586 IPPROTO_ROUTING = 43 // IPv6 routing header.
587 IPPROTO_FRAGMENT = 44 // IPv6 fragmentation header.
588 IPPROTO_ICMPV6 = 58 // ICMPv6.
589 IPPROTO_NONE = 59 // IPv6 no next header.
590 IPPROTO_DSTOPTS = 60 // IPv6 destination options.
591 IPPROTO_MH = 135
592 )
593
594 // The following constants should be used for the second parameter of
595 //
596 // `shutdown'.
597 const ( /* socket.h:41:1: */
598 SHUT_RD = 0 // No more receptions.
599 SHUT_WR = 1 // No more transmissions.
600 SHUT_RDWR = 2
601 )
602
603 type Ptrdiff_t = int32 /* <builtin>:3:26 */
604
605 type Size_t = uint32 /* <builtin>:9:23 */
606
607 type Wchar_t = int32 /* <builtin>:15:24 */
608
609 type X__builtin_va_list = uintptr /* <builtin>:46:14 */
610 type X__float128 = float64 /* <builtin>:47:21 */
611
612 // Copyright (C) 1991-2020 Free Software Foundation, Inc.
613 // This file is part of the GNU C Library.
614 //
615 // The GNU C Library is free software; you can redistribute it and/or
616 // modify it under the terms of the GNU Lesser General Public
617 // License as published by the Free Software Foundation; either
618 // version 2.1 of the License, or (at your option) any later version.
619 //
620 // The GNU C Library is distributed in the hope that it will be useful,
621 // but WITHOUT ANY WARRANTY; without even the implied warranty of
622 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
623 // Lesser General Public License for more details.
624 //
625 // You should have received a copy of the GNU Lesser General Public
626 // License along with the GNU C Library; if not, see
627 // <https://www.gnu.org/licenses/>.
628
629 // Copyright (C) 1991-2020 Free Software Foundation, Inc.
630 // This file is part of the GNU C Library.
631 //
632 // The GNU C Library is free software; you can redistribute it and/or
633 // modify it under the terms of the GNU Lesser General Public
634 // License as published by the Free Software Foundation; either
635 // version 2.1 of the License, or (at your option) any later version.
636 //
637 // The GNU C Library is distributed in the hope that it will be useful,
638 // but WITHOUT ANY WARRANTY; without even the implied warranty of
639 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
640 // Lesser General Public License for more details.
641 //
642 // You should have received a copy of the GNU Lesser General Public
643 // License along with the GNU C Library; if not, see
644 // <https://www.gnu.org/licenses/>.
645
646 // These are defined by the user (or the compiler)
647 // to specify the desired environment:
648 //
649 // __STRICT_ANSI__ ISO Standard C.
650 // _ISOC99_SOURCE Extensions to ISO C89 from ISO C99.
651 // _ISOC11_SOURCE Extensions to ISO C99 from ISO C11.
652 // _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X.
653 // __STDC_WANT_LIB_EXT2__
654 // Extensions to ISO C99 from TR 27431-2:2010.
655 // __STDC_WANT_IEC_60559_BFP_EXT__
656 // Extensions to ISO C11 from TS 18661-1:2014.
657 // __STDC_WANT_IEC_60559_FUNCS_EXT__
658 // Extensions to ISO C11 from TS 18661-4:2015.
659 // __STDC_WANT_IEC_60559_TYPES_EXT__
660 // Extensions to ISO C11 from TS 18661-3:2015.
661 //
662 // _POSIX_SOURCE IEEE Std 1003.1.
663 // _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2;
664 // if >=199309L, add IEEE Std 1003.1b-1993;
665 // if >=199506L, add IEEE Std 1003.1c-1995;
666 // if >=200112L, all of IEEE 1003.1-2004
667 // if >=200809L, all of IEEE 1003.1-2008
668 // _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if
669 // Single Unix conformance is wanted, to 600 for the
670 // sixth revision, to 700 for the seventh revision.
671 // _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions.
672 // _LARGEFILE_SOURCE Some more functions for correct standard I/O.
673 // _LARGEFILE64_SOURCE Additional functionality from LFS for large files.
674 // _FILE_OFFSET_BITS=N Select default filesystem interface.
675 // _ATFILE_SOURCE Additional *at interfaces.
676 // _GNU_SOURCE All of the above, plus GNU extensions.
677 // _DEFAULT_SOURCE The default set of features (taking precedence over
678 // __STRICT_ANSI__).
679 //
680 // _FORTIFY_SOURCE Add security hardening to many library functions.
681 // Set to 1 or 2; 2 performs stricter checks than 1.
682 //
683 // _REENTRANT, _THREAD_SAFE
684 // Obsolete; equivalent to _POSIX_C_SOURCE=199506L.
685 //
686 // The `-ansi' switch to the GNU C compiler, and standards conformance
687 // options such as `-std=c99', define __STRICT_ANSI__. If none of
688 // these are defined, or if _DEFAULT_SOURCE is defined, the default is
689 // to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to
690 // 200809L, as well as enabling miscellaneous functions from BSD and
691 // SVID. If more than one of these are defined, they accumulate. For
692 // example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together
693 // give you ISO C, 1003.1, and 1003.2, but nothing else.
694 //
695 // These are defined by this file and are used by the
696 // header files to decide what to declare or define:
697 //
698 // __GLIBC_USE (F) Define things from feature set F. This is defined
699 // to 1 or 0; the subsequent macros are either defined
700 // or undefined, and those tests should be moved to
701 // __GLIBC_USE.
702 // __USE_ISOC11 Define ISO C11 things.
703 // __USE_ISOC99 Define ISO C99 things.
704 // __USE_ISOC95 Define ISO C90 AMD1 (C95) things.
705 // __USE_ISOCXX11 Define ISO C++11 things.
706 // __USE_POSIX Define IEEE Std 1003.1 things.
707 // __USE_POSIX2 Define IEEE Std 1003.2 things.
708 // __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things.
709 // __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things.
710 // __USE_XOPEN Define XPG things.
711 // __USE_XOPEN_EXTENDED Define X/Open Unix things.
712 // __USE_UNIX98 Define Single Unix V2 things.
713 // __USE_XOPEN2K Define XPG6 things.
714 // __USE_XOPEN2KXSI Define XPG6 XSI things.
715 // __USE_XOPEN2K8 Define XPG7 things.
716 // __USE_XOPEN2K8XSI Define XPG7 XSI things.
717 // __USE_LARGEFILE Define correct standard I/O things.
718 // __USE_LARGEFILE64 Define LFS things with separate names.
719 // __USE_FILE_OFFSET64 Define 64bit interface as default.
720 // __USE_MISC Define things from 4.3BSD or System V Unix.
721 // __USE_ATFILE Define *at interfaces and AT_* constants for them.
722 // __USE_GNU Define GNU extensions.
723 // __USE_FORTIFY_LEVEL Additional security measures used, according to level.
724 //
725 // The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are
726 // defined by this file unconditionally. `__GNU_LIBRARY__' is provided
727 // only for compatibility. All new code should use the other symbols
728 // to test for features.
729 //
730 // All macros listed above as possibly being defined by this file are
731 // explicitly undefined if they are not explicitly defined.
732 // Feature-test macros that are not defined by the user or compiler
733 // but are implied by the other feature-test macros defined (or by the
734 // lack of any definitions) are defined by the file.
735 //
736 // ISO C feature test macros depend on the definition of the macro
737 // when an affected header is included, not when the first system
738 // header is included, and so they are handled in
739 // <bits/libc-header-start.h>, which does not have a multiple include
740 // guard. Feature test macros that can be handled from the first
741 // system header included are handled here.
742
743 // Undefine everything, so we get a clean slate.
744
745 // Suppress kernel-name space pollution unless user expressedly asks
746 // for it.
747
748 // Convenience macro to test the version of gcc.
749 // Use like this:
750 // #if __GNUC_PREREQ (2,8)
751 // ... code requiring gcc 2.8 or later ...
752 // #endif
753 // Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was
754 // added in 2.0.
755
756 // Similarly for clang. Features added to GCC after version 4.2 may
757 // or may not also be available in clang, and clang's definitions of
758 // __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such
759 // features can be queried via __has_extension/__has_feature.
760
761 // Whether to use feature set F.
762
763 // _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for
764 // _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not
765 // issue a warning; the expectation is that the source is being
766 // transitioned to use the new macro.
767
768 // If _GNU_SOURCE was defined by the user, turn on all the other features.
769
770 // If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined,
771 // define _DEFAULT_SOURCE.
772
773 // This is to enable the ISO C2X extension.
774
775 // This is to enable the ISO C11 extension.
776
777 // This is to enable the ISO C99 extension.
778
779 // This is to enable the ISO C90 Amendment 1:1995 extension.
780
781 // If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE
782 // is defined, use POSIX.1-2008 (or another version depending on
783 // _XOPEN_SOURCE).
784
785 // Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be
786 // defined in all multithreaded code. GNU libc has not required this
787 // for many years. We now treat them as compatibility synonyms for
788 // _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with
789 // comprehensive support for multithreaded code. Using them never
790 // lowers the selected level of POSIX conformance, only raises it.
791
792 // The function 'gets' existed in C89, but is impossible to use
793 // safely. It has been removed from ISO C11 and ISO C++14. Note: for
794 // compatibility with various implementations of <cstdio>, this test
795 // must consider only the value of __cplusplus when compiling C++.
796
797 // GNU formerly extended the scanf functions with modified format
798 // specifiers %as, %aS, and %a[...] that allocate a buffer for the
799 // input using malloc. This extension conflicts with ISO C99, which
800 // defines %a as a standalone format specifier that reads a floating-
801 // point number; moreover, POSIX.1-2008 provides the same feature
802 // using the modifier letter 'm' instead (%ms, %mS, %m[...]).
803 //
804 // We now follow C99 unless GNU extensions are active and the compiler
805 // is specifically in C89 or C++98 mode (strict or not). For
806 // instance, with GCC, -std=gnu11 will have C99-compliant scanf with
807 // or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the
808 // old extension.
809
810 // Get definitions of __STDC_* predefined macros, if the compiler has
811 // not preincluded this header automatically.
812 // Copyright (C) 1991-2020 Free Software Foundation, Inc.
813 // This file is part of the GNU C Library.
814 //
815 // The GNU C Library is free software; you can redistribute it and/or
816 // modify it under the terms of the GNU Lesser General Public
817 // License as published by the Free Software Foundation; either
818 // version 2.1 of the License, or (at your option) any later version.
819 //
820 // The GNU C Library is distributed in the hope that it will be useful,
821 // but WITHOUT ANY WARRANTY; without even the implied warranty of
822 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
823 // Lesser General Public License for more details.
824 //
825 // You should have received a copy of the GNU Lesser General Public
826 // License along with the GNU C Library; if not, see
827 // <https://www.gnu.org/licenses/>.
828
829 // This macro indicates that the installed library is the GNU C Library.
830 // For historic reasons the value now is 6 and this will stay from now
831 // on. The use of this variable is deprecated. Use __GLIBC__ and
832 // __GLIBC_MINOR__ now (see below) when you want to test for a specific
833 // GNU C library version and use the values in <gnu/lib-names.h> to get
834 // the sonames of the shared libraries.
835
836 // Major and minor version number of the GNU C library package. Use
837 // these macros to test for features in specific releases.
838
839 // This is here only because every header file already includes this one.
840 // Copyright (C) 1992-2020 Free Software Foundation, Inc.
841 // This file is part of the GNU C Library.
842 //
843 // The GNU C Library is free software; you can redistribute it and/or
844 // modify it under the terms of the GNU Lesser General Public
845 // License as published by the Free Software Foundation; either
846 // version 2.1 of the License, or (at your option) any later version.
847 //
848 // The GNU C Library is distributed in the hope that it will be useful,
849 // but WITHOUT ANY WARRANTY; without even the implied warranty of
850 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
851 // Lesser General Public License for more details.
852 //
853 // You should have received a copy of the GNU Lesser General Public
854 // License along with the GNU C Library; if not, see
855 // <https://www.gnu.org/licenses/>.
856
857 // We are almost always included from features.h.
858
859 // The GNU libc does not support any K&R compilers or the traditional mode
860 // of ISO C compilers anymore. Check for some of the combinations not
861 // anymore supported.
862
863 // Some user header file might have defined this before.
864
865 // All functions, except those with callbacks or those that
866 // synchronize memory, are leaf functions.
867
868 // GCC can always grok prototypes. For C++ programs we add throw()
869 // to help it optimize the function calls. But this works only with
870 // gcc 2.8.x and egcs. For gcc 3.2 and up we even mark C functions
871 // as non-throwing using a function attribute since programs can use
872 // the -fexceptions options for C code as well.
873
874 // Compilers that are not clang may object to
875 // #if defined __clang__ && __has_extension(...)
876 // even though they do not need to evaluate the right-hand side of the &&.
877
878 // These two macros are not used in glibc anymore. They are kept here
879 // only because some other projects expect the macros to be defined.
880
881 // For these things, GCC behaves the ANSI way normally,
882 // and the non-ANSI way under -traditional.
883
884 // This is not a typedef so `const __ptr_t' does the right thing.
885
886 // C++ needs to know that types and declarations are C, not C++.
887
888 // Fortify support.
889
890 // Support for flexible arrays.
891 // Headers that should use flexible arrays only if they're "real"
892 // (e.g. only if they won't affect sizeof()) should test
893 // #if __glibc_c99_flexarr_available.
894
895 // __asm__ ("xyz") is used throughout the headers to rename functions
896 // at the assembly language level. This is wrapped by the __REDIRECT
897 // macro, in order to support compilers that can do this some other
898 // way. When compilers don't support asm-names at all, we have to do
899 // preprocessor tricks instead (which don't have exactly the right
900 // semantics, but it's the best we can do).
901 //
902 // Example:
903 // int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid);
904
905 //
906 // #elif __SOME_OTHER_COMPILER__
907 //
908 // # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias)
909
910 // GCC has various useful declarations that can be made with the
911 // `__attribute__' syntax. All of the ways we use this do fine if
912 // they are omitted for compilers that don't understand it.
913
914 // At some point during the gcc 2.96 development the `malloc' attribute
915 // for functions was introduced. We don't want to use it unconditionally
916 // (although this would be possible) since it generates warnings.
917
918 // Tell the compiler which arguments to an allocation function
919 // indicate the size of the allocation.
920
921 // At some point during the gcc 2.96 development the `pure' attribute
922 // for functions was introduced. We don't want to use it unconditionally
923 // (although this would be possible) since it generates warnings.
924
925 // This declaration tells the compiler that the value is constant.
926
927 // At some point during the gcc 3.1 development the `used' attribute
928 // for functions was introduced. We don't want to use it unconditionally
929 // (although this would be possible) since it generates warnings.
930
931 // Since version 3.2, gcc allows marking deprecated functions.
932
933 // Since version 4.5, gcc also allows one to specify the message printed
934 // when a deprecated function is used. clang claims to be gcc 4.2, but
935 // may also support this feature.
936
937 // At some point during the gcc 2.8 development the `format_arg' attribute
938 // for functions was introduced. We don't want to use it unconditionally
939 // (although this would be possible) since it generates warnings.
940 // If several `format_arg' attributes are given for the same function, in
941 // gcc-3.0 and older, all but the last one are ignored. In newer gccs,
942 // all designated arguments are considered.
943
944 // At some point during the gcc 2.97 development the `strfmon' format
945 // attribute for functions was introduced. We don't want to use it
946 // unconditionally (although this would be possible) since it
947 // generates warnings.
948
949 // The nonull function attribute allows to mark pointer parameters which
950 // must not be NULL.
951
952 // If fortification mode, we warn about unused results of certain
953 // function calls which can lead to problems.
954
955 // Forces a function to be always inlined.
956 // The Linux kernel defines __always_inline in stddef.h (283d7573), and
957 // it conflicts with this definition. Therefore undefine it first to
958 // allow either header to be included first.
959
960 // Associate error messages with the source location of the call site rather
961 // than with the source location inside the function.
962
963 // GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99
964 // inline semantics, unless -fgnu89-inline is used. Using __GNUC_STDC_INLINE__
965 // or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions
966 // older than 4.3 may define these macros and still not guarantee GNU inlining
967 // semantics.
968 //
969 // clang++ identifies itself as gcc-4.2, but has support for GNU inlining
970 // semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and
971 // __GNUC_GNU_INLINE__ macro definitions.
972
973 // GCC 4.3 and above allow passing all anonymous arguments of an
974 // __extern_always_inline function to some other vararg function.
975
976 // It is possible to compile containing GCC extensions even if GCC is
977 // run in pedantic mode if the uses are carefully marked using the
978 // `__extension__' keyword. But this is not generally available before
979 // version 2.8.
980
981 // __restrict is known in EGCS 1.2 and above.
982
983 // ISO C99 also allows to declare arrays as non-overlapping. The syntax is
984 // array_name[restrict]
985 // GCC 3.1 supports this.
986
987 // Describes a char array whose address can safely be passed as the first
988 // argument to strncpy and strncat, as the char array is not necessarily
989 // a NUL-terminated string.
990
991 // Undefine (also defined in libc-symbols.h).
992 // Copies attributes from the declaration or type referenced by
993 // the argument.
994
995 // Determine the wordsize from the preprocessor defines.
996
997 // Properties of long double type. ldbl-96 version.
998 // Copyright (C) 2016-2020 Free Software Foundation, Inc.
999 // This file is part of the GNU C Library.
1000 //
1001 // The GNU C Library is free software; you can redistribute it and/or
1002 // modify it under the terms of the GNU Lesser General Public
1003 // License published by the Free Software Foundation; either
1004 // version 2.1 of the License, or (at your option) any later version.
1005 //
1006 // The GNU C Library is distributed in the hope that it will be useful,
1007 // but WITHOUT ANY WARRANTY; without even the implied warranty of
1008 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1009 // Lesser General Public License for more details.
1010 //
1011 // You should have received a copy of the GNU Lesser General Public
1012 // License along with the GNU C Library; if not, see
1013 // <https://www.gnu.org/licenses/>.
1014
1015 // long double is distinct from double, so there is nothing to
1016 // define here.
1017
1018 // __glibc_macro_warning (MESSAGE) issues warning MESSAGE. This is
1019 // intended for use in preprocessor macros.
1020 //
1021 // Note: MESSAGE must be a _single_ string; concatenation of string
1022 // literals is not supported.
1023
1024 // Generic selection (ISO C11) is a C-only feature, available in GCC
1025 // since version 4.9. Previous versions do not provide generic
1026 // selection, even though they might set __STDC_VERSION__ to 201112L,
1027 // when in -std=c11 mode. Thus, we must check for !defined __GNUC__
1028 // when testing __STDC_VERSION__ for generic selection support.
1029 // On the other hand, Clang also defines __GNUC__, so a clang-specific
1030 // check is required to enable the use of generic selection.
1031
1032 // If we don't have __REDIRECT, prototypes will be missing if
1033 // __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64].
1034
1035 // Decide whether we can define 'extern inline' functions in headers.
1036
1037 // This is here only because every header file already includes this one.
1038 // Get the definitions of all the appropriate `__stub_FUNCTION' symbols.
1039 // <gnu/stubs.h> contains `#define __stub_FUNCTION' when FUNCTION is a stub
1040 // that will always return failure (and set errno to ENOSYS).
1041 // This file is automatically generated.
1042 // This file selects the right generated file of `__stub_FUNCTION' macros
1043 // based on the architecture being compiled for.
1044
1045 // This file is automatically generated.
1046 // It defines a symbol `__stub_FUNCTION' for each function
1047 // in the C library which is a stub, meaning it will fail
1048 // every time called, usually setting errno to ENOSYS.
1049
1050 // Define uintN_t types.
1051 // Copyright (C) 2017-2020 Free Software Foundation, Inc.
1052 // This file is part of the GNU C Library.
1053 //
1054 // The GNU C Library is free software; you can redistribute it and/or
1055 // modify it under the terms of the GNU Lesser General Public
1056 // License as published by the Free Software Foundation; either
1057 // version 2.1 of the License, or (at your option) any later version.
1058 //
1059 // The GNU C Library is distributed in the hope that it will be useful,
1060 // but WITHOUT ANY WARRANTY; without even the implied warranty of
1061 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1062 // Lesser General Public License for more details.
1063 //
1064 // You should have received a copy of the GNU Lesser General Public
1065 // License along with the GNU C Library; if not, see
1066 // <https://www.gnu.org/licenses/>.
1067
1068 // bits/types.h -- definitions of __*_t types underlying *_t types.
1069 // Copyright (C) 2002-2020 Free Software Foundation, Inc.
1070 // This file is part of the GNU C Library.
1071 //
1072 // The GNU C Library is free software; you can redistribute it and/or
1073 // modify it under the terms of the GNU Lesser General Public
1074 // License as published by the Free Software Foundation; either
1075 // version 2.1 of the License, or (at your option) any later version.
1076 //
1077 // The GNU C Library is distributed in the hope that it will be useful,
1078 // but WITHOUT ANY WARRANTY; without even the implied warranty of
1079 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1080 // Lesser General Public License for more details.
1081 //
1082 // You should have received a copy of the GNU Lesser General Public
1083 // License along with the GNU C Library; if not, see
1084 // <https://www.gnu.org/licenses/>.
1085
1086 // Never include this file directly; use <sys/types.h> instead.
1087
1088 // Copyright (C) 1991-2020 Free Software Foundation, Inc.
1089 // This file is part of the GNU C Library.
1090 //
1091 // The GNU C Library is free software; you can redistribute it and/or
1092 // modify it under the terms of the GNU Lesser General Public
1093 // License as published by the Free Software Foundation; either
1094 // version 2.1 of the License, or (at your option) any later version.
1095 //
1096 // The GNU C Library is distributed in the hope that it will be useful,
1097 // but WITHOUT ANY WARRANTY; without even the implied warranty of
1098 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1099 // Lesser General Public License for more details.
1100 //
1101 // You should have received a copy of the GNU Lesser General Public
1102 // License along with the GNU C Library; if not, see
1103 // <https://www.gnu.org/licenses/>.
1104
1105 // Determine the wordsize from the preprocessor defines.
1106
1107 // Bit size of the time_t type at glibc build time, x86-64 and x32 case.
1108 // Copyright (C) 2018-2020 Free Software Foundation, Inc.
1109 // This file is part of the GNU C Library.
1110 //
1111 // The GNU C Library is free software; you can redistribute it and/or
1112 // modify it under the terms of the GNU Lesser General Public
1113 // License as published by the Free Software Foundation; either
1114 // version 2.1 of the License, or (at your option) any later version.
1115 //
1116 // The GNU C Library is distributed in the hope that it will be useful,
1117 // but WITHOUT ANY WARRANTY; without even the implied warranty of
1118 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1119 // Lesser General Public License for more details.
1120 //
1121 // You should have received a copy of the GNU Lesser General Public
1122 // License along with the GNU C Library; if not, see
1123 // <https://www.gnu.org/licenses/>.
1124
1125 // For others, time size is word size.
1126
1127 // Convenience types.
1128 type X__u_char = uint8 /* types.h:31:23 */
1129 type X__u_short = uint16 /* types.h:32:28 */
1130 type X__u_int = uint32 /* types.h:33:22 */
1131 type X__u_long = uint32 /* types.h:34:27 */
1132
1133 // Fixed-size types, underlying types depend on word size and compiler.
1134 type X__int8_t = int8 /* types.h:37:21 */
1135 type X__uint8_t = uint8 /* types.h:38:23 */
1136 type X__int16_t = int16 /* types.h:39:26 */
1137 type X__uint16_t = uint16 /* types.h:40:28 */
1138 type X__int32_t = int32 /* types.h:41:20 */
1139 type X__uint32_t = uint32 /* types.h:42:22 */
1140 type X__int64_t = int64 /* types.h:47:44 */
1141 type X__uint64_t = uint64 /* types.h:48:46 */
1142
1143 // Smallest types with at least a given width.
1144 type X__int_least8_t = X__int8_t /* types.h:52:18 */
1145 type X__uint_least8_t = X__uint8_t /* types.h:53:19 */
1146 type X__int_least16_t = X__int16_t /* types.h:54:19 */
1147 type X__uint_least16_t = X__uint16_t /* types.h:55:20 */
1148 type X__int_least32_t = X__int32_t /* types.h:56:19 */
1149 type X__uint_least32_t = X__uint32_t /* types.h:57:20 */
1150 type X__int_least64_t = X__int64_t /* types.h:58:19 */
1151 type X__uint_least64_t = X__uint64_t /* types.h:59:20 */
1152
1153 // quad_t is also 64 bits.
1154 type X__quad_t = int64 /* types.h:66:37 */
1155 type X__u_quad_t = uint64 /* types.h:67:46 */
1156
1157 // Largest integral types.
1158 type X__intmax_t = int64 /* types.h:75:37 */
1159 type X__uintmax_t = uint64 /* types.h:76:46 */
1160
1161 // The machine-dependent file <bits/typesizes.h> defines __*_T_TYPE
1162 // macros for each of the OS types we define below. The definitions
1163 // of those macros must use the following macros for underlying types.
1164 // We define __S<SIZE>_TYPE and __U<SIZE>_TYPE for the signed and unsigned
1165 // variants of each of the following integer types on this machine.
1166 //
1167 // 16 -- "natural" 16-bit type (always short)
1168 // 32 -- "natural" 32-bit type (always int)
1169 // 64 -- "natural" 64-bit type (long or long long)
1170 // LONG32 -- 32-bit type, traditionally long
1171 // QUAD -- 64-bit type, traditionally long long
1172 // WORD -- natural type of __WORDSIZE bits (int or long)
1173 // LONGWORD -- type of __WORDSIZE bits, traditionally long
1174 //
1175 // We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the
1176 // conventional uses of `long' or `long long' type modifiers match the
1177 // types we define, even when a less-adorned type would be the same size.
1178 // This matters for (somewhat) portably writing printf/scanf formats for
1179 // these types, where using the appropriate l or ll format modifiers can
1180 // make the typedefs and the formats match up across all GNU platforms. If
1181 // we used `long' when it's 64 bits where `long long' is expected, then the
1182 // compiler would warn about the formats not matching the argument types,
1183 // and the programmer changing them to shut up the compiler would break the
1184 // program's portability.
1185 //
1186 // Here we assume what is presently the case in all the GCC configurations
1187 // we support: long long is always 64 bits, long is always word/address size,
1188 // and int is always 32 bits.
1189
1190 // We want __extension__ before typedef's that use nonstandard base types
1191 // such as `long long' in C89 mode.
1192 // bits/typesizes.h -- underlying types for *_t. Linux/x86-64 version.
1193 // Copyright (C) 2012-2020 Free Software Foundation, Inc.
1194 // This file is part of the GNU C Library.
1195 //
1196 // The GNU C Library is free software; you can redistribute it and/or
1197 // modify it under the terms of the GNU Lesser General Public
1198 // License as published by the Free Software Foundation; either
1199 // version 2.1 of the License, or (at your option) any later version.
1200 //
1201 // The GNU C Library is distributed in the hope that it will be useful,
1202 // but WITHOUT ANY WARRANTY; without even the implied warranty of
1203 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1204 // Lesser General Public License for more details.
1205 //
1206 // You should have received a copy of the GNU Lesser General Public
1207 // License along with the GNU C Library; if not, see
1208 // <https://www.gnu.org/licenses/>.
1209
1210 // See <bits/types.h> for the meaning of these macros. This file exists so
1211 // that <bits/types.h> need not vary across different GNU platforms.
1212
1213 // X32 kernel interface is 64-bit.
1214
1215 // Number of descriptors that can fit in an `fd_set'.
1216
1217 // bits/time64.h -- underlying types for __time64_t. Generic version.
1218 // Copyright (C) 2018-2020 Free Software Foundation, Inc.
1219 // This file is part of the GNU C Library.
1220 //
1221 // The GNU C Library is free software; you can redistribute it and/or
1222 // modify it under the terms of the GNU Lesser General Public
1223 // License as published by the Free Software Foundation; either
1224 // version 2.1 of the License, or (at your option) any later version.
1225 //
1226 // The GNU C Library is distributed in the hope that it will be useful,
1227 // but WITHOUT ANY WARRANTY; without even the implied warranty of
1228 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1229 // Lesser General Public License for more details.
1230 //
1231 // You should have received a copy of the GNU Lesser General Public
1232 // License along with the GNU C Library; if not, see
1233 // <https://www.gnu.org/licenses/>.
1234
1235 // Define __TIME64_T_TYPE so that it is always a 64-bit type.
1236
1237 // Define a 64-bit time type alongsize the 32-bit one.
1238
1239 type X__dev_t = X__uint64_t /* types.h:145:25 */ // Type of device numbers.
1240 type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications.
1241 type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications.
1242 type X__ino_t = uint32 /* types.h:148:25 */ // Type of file serial numbers.
1243 type X__ino64_t = X__uint64_t /* types.h:149:27 */ // Type of file serial numbers (LFS).
1244 type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks.
1245 type X__nlink_t = uint32 /* types.h:151:27 */ // Type of file link counts.
1246 type X__off_t = int32 /* types.h:152:25 */ // Type of file sizes and offsets.
1247 type X__off64_t = X__int64_t /* types.h:153:27 */ // Type of file sizes and offsets (LFS).
1248 type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications.
1249 type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs.
1250 type X__clock_t = int32 /* types.h:156:27 */ // Type of CPU usage counts.
1251 type X__rlim_t = uint32 /* types.h:157:26 */ // Type for resource measurement.
1252 type X__rlim64_t = X__uint64_t /* types.h:158:28 */ // Type for resource measurement (LFS).
1253 type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs.
1254 type X__time_t = int32 /* types.h:160:26 */ // Seconds since the Epoch.
1255 type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds.
1256 type X__suseconds_t = int32 /* types.h:162:31 */ // Signed count of microseconds.
1257
1258 type X__daddr_t = int32 /* types.h:164:27 */ // The type of a disk address.
1259 type X__key_t = int32 /* types.h:165:25 */ // Type of an IPC key.
1260
1261 // Clock ID used in clock and timer functions.
1262 type X__clockid_t = int32 /* types.h:168:29 */
1263
1264 // Timer ID returned by `timer_create'.
1265 type X__timer_t = uintptr /* types.h:171:12 */
1266
1267 // Type to represent block size.
1268 type X__blksize_t = int32 /* types.h:174:29 */
1269
1270 // Types from the Large File Support interface.
1271
1272 // Type to count number of disk blocks.
1273 type X__blkcnt_t = int32 /* types.h:179:28 */
1274 type X__blkcnt64_t = X__int64_t /* types.h:180:30 */
1275
1276 // Type to count file system blocks.
1277 type X__fsblkcnt_t = uint32 /* types.h:183:30 */
1278 type X__fsblkcnt64_t = X__uint64_t /* types.h:184:32 */
1279
1280 // Type to count file system nodes.
1281 type X__fsfilcnt_t = uint32 /* types.h:187:30 */
1282 type X__fsfilcnt64_t = X__uint64_t /* types.h:188:32 */
1283
1284 // Type of miscellaneous file system fields.
1285 type X__fsword_t = int32 /* types.h:191:28 */
1286
1287 type X__ssize_t = int32 /* types.h:193:27 */ // Type of a byte count, or error.
1288
1289 // Signed long type used in system calls.
1290 type X__syscall_slong_t = int32 /* types.h:196:33 */
1291 // Unsigned long type used in system calls.
1292 type X__syscall_ulong_t = uint32 /* types.h:198:33 */
1293
1294 // These few don't really vary by system, they always correspond
1295 //
1296 // to one of the other defined types.
1297 type X__loff_t = X__off64_t /* types.h:202:19 */ // Type of file sizes and offsets (LFS).
1298 type X__caddr_t = uintptr /* types.h:203:14 */
1299
1300 // Duplicates info from stdint.h but this is used in unistd.h.
1301 type X__intptr_t = int32 /* types.h:206:25 */
1302
1303 // Duplicate info from sys/socket.h.
1304 type X__socklen_t = uint32 /* types.h:209:23 */
1305
1306 // C99: An integer type that can be accessed as an atomic entity,
1307 //
1308 // even in the presence of asynchronous interrupts.
1309 // It is not currently necessary for this to be machine-specific.
1310 type X__sig_atomic_t = int32 /* types.h:214:13 */
1311
1312 // Seconds since the Epoch, visible to user code when time_t is too
1313 //
1314 // narrow only for consistency with the old way of widening too-narrow
1315 // types. User code should never use __time64_t.
1316 type X__time64_t = X__int64_t /* types.h:222:28 */
1317
1318 type Uint8_t = X__uint8_t /* stdint-uintn.h:24:19 */
1319 type Uint16_t = X__uint16_t /* stdint-uintn.h:25:20 */
1320 type Uint32_t = X__uint32_t /* stdint-uintn.h:26:20 */
1321 type Uint64_t = X__uint64_t /* stdint-uintn.h:27:20 */
1322
1323 // Wide character type.
1324 // Locale-writers should change this as necessary to
1325 // be big enough to hold unique values not between 0 and 127,
1326 // and not (wchar_t) -1, for each defined multibyte character.
1327
1328 // Define this type if we are doing the whole job,
1329 // or if we want this type in particular.
1330
1331 // A null pointer constant.
1332
1333 // Structure for scatter/gather I/O.
1334 type Iovec = struct {
1335 Fiov_base uintptr
1336 Fiov_len Size_t
1337 } /* struct_iovec.h:26:1 */
1338
1339 // Copyright (C) 1989-2020 Free Software Foundation, Inc.
1340 //
1341 // This file is part of GCC.
1342 //
1343 // GCC is free software; you can redistribute it and/or modify
1344 // it under the terms of the GNU General Public License as published by
1345 // the Free Software Foundation; either version 3, or (at your option)
1346 // any later version.
1347 //
1348 // GCC is distributed in the hope that it will be useful,
1349 // but WITHOUT ANY WARRANTY; without even the implied warranty of
1350 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1351 // GNU General Public License for more details.
1352 //
1353 // Under Section 7 of GPL version 3, you are granted additional
1354 // permissions described in the GCC Runtime Library Exception, version
1355 // 3.1, as published by the Free Software Foundation.
1356 //
1357 // You should have received a copy of the GNU General Public License and
1358 // a copy of the GCC Runtime Library Exception along with this program;
1359 // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
1360 // <http://www.gnu.org/licenses/>.
1361
1362 // ISO C Standard: 7.17 Common definitions <stddef.h>
1363
1364 // Any one of these symbols __need_* means that GNU libc
1365 // wants us just to define one data type. So don't define
1366 // the symbols that indicate this file's entire job has been done.
1367
1368 // This avoids lossage on SunOS but only if stdtypes.h comes first.
1369 // There's no way to win with the other order! Sun lossage.
1370
1371 // Sequent's header files use _PTRDIFF_T_ in some conflicting way.
1372 // Just ignore it.
1373
1374 // On VxWorks, <type/vxTypesBase.h> may have defined macros like
1375 // _TYPE_size_t which will typedef size_t. fixincludes patched the
1376 // vxTypesBase.h so that this macro is only defined if _GCC_SIZE_T is
1377 // not defined, and so that defining this macro defines _GCC_SIZE_T.
1378 // If we find that the macros are still defined at this point, we must
1379 // invoke them so that the type is defined as expected.
1380
1381 // In case nobody has defined these types, but we aren't running under
1382 // GCC 2.00, make sure that __PTRDIFF_TYPE__, __SIZE_TYPE__, and
1383 // __WCHAR_TYPE__ have reasonable values. This can happen if the
1384 // parts of GCC is compiled by an older compiler, that actually
1385 // include gstddef.h, such as collect2.
1386
1387 // Signed type of difference of two pointers.
1388
1389 // Define this type if we are doing the whole job,
1390 // or if we want this type in particular.
1391
1392 // Unsigned type of `sizeof' something.
1393
1394 // Define this type if we are doing the whole job,
1395 // or if we want this type in particular.
1396
1397 // Wide character type.
1398 // Locale-writers should change this as necessary to
1399 // be big enough to hold unique values not between 0 and 127,
1400 // and not (wchar_t) -1, for each defined multibyte character.
1401
1402 // Define this type if we are doing the whole job,
1403 // or if we want this type in particular.
1404
1405 // A null pointer constant.
1406
1407 // This operating system-specific header file defines the SOCK_*, PF_*,
1408 // AF_*, MSG_*, SOL_*, and SO_* constants, and the `struct sockaddr',
1409 // `struct msghdr', and `struct linger' types.
1410 // System-specific socket constants and types. Linux version.
1411 // Copyright (C) 1991-2020 Free Software Foundation, Inc.
1412 // This file is part of the GNU C Library.
1413 //
1414 // The GNU C Library is free software; you can redistribute it and/or
1415 // modify it under the terms of the GNU Lesser General Public
1416 // License as published by the Free Software Foundation; either
1417 // version 2.1 of the License, or (at your option) any later version.
1418 //
1419 // The GNU C Library is distributed in the hope that it will be useful,
1420 // but WITHOUT ANY WARRANTY; without even the implied warranty of
1421 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1422 // Lesser General Public License for more details.
1423 //
1424 // You should have received a copy of the GNU Lesser General Public
1425 // License along with the GNU C Library; if not, see
1426 // <https://www.gnu.org/licenses/>.
1427
1428 // Copyright (C) 1989-2020 Free Software Foundation, Inc.
1429 //
1430 // This file is part of GCC.
1431 //
1432 // GCC is free software; you can redistribute it and/or modify
1433 // it under the terms of the GNU General Public License as published by
1434 // the Free Software Foundation; either version 3, or (at your option)
1435 // any later version.
1436 //
1437 // GCC is distributed in the hope that it will be useful,
1438 // but WITHOUT ANY WARRANTY; without even the implied warranty of
1439 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1440 // GNU General Public License for more details.
1441 //
1442 // Under Section 7 of GPL version 3, you are granted additional
1443 // permissions described in the GCC Runtime Library Exception, version
1444 // 3.1, as published by the Free Software Foundation.
1445 //
1446 // You should have received a copy of the GNU General Public License and
1447 // a copy of the GCC Runtime Library Exception along with this program;
1448 // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
1449 // <http://www.gnu.org/licenses/>.
1450
1451 // ISO C Standard: 7.17 Common definitions <stddef.h>
1452
1453 // Any one of these symbols __need_* means that GNU libc
1454 // wants us just to define one data type. So don't define
1455 // the symbols that indicate this file's entire job has been done.
1456
1457 // This avoids lossage on SunOS but only if stdtypes.h comes first.
1458 // There's no way to win with the other order! Sun lossage.
1459
1460 // Sequent's header files use _PTRDIFF_T_ in some conflicting way.
1461 // Just ignore it.
1462
1463 // On VxWorks, <type/vxTypesBase.h> may have defined macros like
1464 // _TYPE_size_t which will typedef size_t. fixincludes patched the
1465 // vxTypesBase.h so that this macro is only defined if _GCC_SIZE_T is
1466 // not defined, and so that defining this macro defines _GCC_SIZE_T.
1467 // If we find that the macros are still defined at this point, we must
1468 // invoke them so that the type is defined as expected.
1469
1470 // In case nobody has defined these types, but we aren't running under
1471 // GCC 2.00, make sure that __PTRDIFF_TYPE__, __SIZE_TYPE__, and
1472 // __WCHAR_TYPE__ have reasonable values. This can happen if the
1473 // parts of GCC is compiled by an older compiler, that actually
1474 // include gstddef.h, such as collect2.
1475
1476 // Signed type of difference of two pointers.
1477
1478 // Define this type if we are doing the whole job,
1479 // or if we want this type in particular.
1480
1481 // Unsigned type of `sizeof' something.
1482
1483 // Define this type if we are doing the whole job,
1484 // or if we want this type in particular.
1485
1486 // Wide character type.
1487 // Locale-writers should change this as necessary to
1488 // be big enough to hold unique values not between 0 and 127,
1489 // and not (wchar_t) -1, for each defined multibyte character.
1490
1491 // Define this type if we are doing the whole job,
1492 // or if we want this type in particular.
1493
1494 // A null pointer constant.
1495
1496 // Copyright (C) 1991-2020 Free Software Foundation, Inc.
1497 // This file is part of the GNU C Library.
1498 //
1499 // The GNU C Library is free software; you can redistribute it and/or
1500 // modify it under the terms of the GNU Lesser General Public
1501 // License as published by the Free Software Foundation; either
1502 // version 2.1 of the License, or (at your option) any later version.
1503 //
1504 // The GNU C Library is distributed in the hope that it will be useful,
1505 // but WITHOUT ANY WARRANTY; without even the implied warranty of
1506 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1507 // Lesser General Public License for more details.
1508 //
1509 // You should have received a copy of the GNU Lesser General Public
1510 // License along with the GNU C Library; if not, see
1511 // <https://www.gnu.org/licenses/>.
1512
1513 // POSIX Standard: 2.6 Primitive System Data Types <sys/types.h>
1514
1515 // Copyright (C) 1991-2020 Free Software Foundation, Inc.
1516 // This file is part of the GNU C Library.
1517 //
1518 // The GNU C Library is free software; you can redistribute it and/or
1519 // modify it under the terms of the GNU Lesser General Public
1520 // License as published by the Free Software Foundation; either
1521 // version 2.1 of the License, or (at your option) any later version.
1522 //
1523 // The GNU C Library is distributed in the hope that it will be useful,
1524 // but WITHOUT ANY WARRANTY; without even the implied warranty of
1525 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1526 // Lesser General Public License for more details.
1527 //
1528 // You should have received a copy of the GNU Lesser General Public
1529 // License along with the GNU C Library; if not, see
1530 // <https://www.gnu.org/licenses/>.
1531
1532 // bits/types.h -- definitions of __*_t types underlying *_t types.
1533 // Copyright (C) 2002-2020 Free Software Foundation, Inc.
1534 // This file is part of the GNU C Library.
1535 //
1536 // The GNU C Library is free software; you can redistribute it and/or
1537 // modify it under the terms of the GNU Lesser General Public
1538 // License as published by the Free Software Foundation; either
1539 // version 2.1 of the License, or (at your option) any later version.
1540 //
1541 // The GNU C Library is distributed in the hope that it will be useful,
1542 // but WITHOUT ANY WARRANTY; without even the implied warranty of
1543 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1544 // Lesser General Public License for more details.
1545 //
1546 // You should have received a copy of the GNU Lesser General Public
1547 // License along with the GNU C Library; if not, see
1548 // <https://www.gnu.org/licenses/>.
1549
1550 // Never include this file directly; use <sys/types.h> instead.
1551
1552 type U_char = X__u_char /* types.h:33:18 */
1553 type U_short = X__u_short /* types.h:34:19 */
1554 type U_int = X__u_int /* types.h:35:17 */
1555 type U_long = X__u_long /* types.h:36:18 */
1556 type Quad_t = X__quad_t /* types.h:37:18 */
1557 type U_quad_t = X__u_quad_t /* types.h:38:20 */
1558 type Fsid_t = X__fsid_t /* types.h:39:18 */
1559 type Loff_t = X__loff_t /* types.h:42:18 */
1560
1561 type Ino_t = X__ino64_t /* types.h:49:19 */
1562
1563 type Dev_t = X__dev_t /* types.h:59:17 */
1564
1565 type Gid_t = X__gid_t /* types.h:64:17 */
1566
1567 type Mode_t = X__mode_t /* types.h:69:18 */
1568
1569 type Nlink_t = X__nlink_t /* types.h:74:19 */
1570
1571 type Uid_t = X__uid_t /* types.h:79:17 */
1572
1573 type Off_t = X__off64_t /* types.h:87:19 */
1574
1575 type Pid_t = X__pid_t /* types.h:97:17 */
1576
1577 type Id_t = X__id_t /* types.h:103:16 */
1578
1579 type Ssize_t = X__ssize_t /* types.h:108:19 */
1580
1581 type Daddr_t = X__daddr_t /* types.h:114:19 */
1582 type Caddr_t = X__caddr_t /* types.h:115:19 */
1583
1584 type Key_t = X__key_t /* types.h:121:17 */
1585
1586 // bits/types.h -- definitions of __*_t types underlying *_t types.
1587 // Copyright (C) 2002-2020 Free Software Foundation, Inc.
1588 // This file is part of the GNU C Library.
1589 //
1590 // The GNU C Library is free software; you can redistribute it and/or
1591 // modify it under the terms of the GNU Lesser General Public
1592 // License as published by the Free Software Foundation; either
1593 // version 2.1 of the License, or (at your option) any later version.
1594 //
1595 // The GNU C Library is distributed in the hope that it will be useful,
1596 // but WITHOUT ANY WARRANTY; without even the implied warranty of
1597 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1598 // Lesser General Public License for more details.
1599 //
1600 // You should have received a copy of the GNU Lesser General Public
1601 // License along with the GNU C Library; if not, see
1602 // <https://www.gnu.org/licenses/>.
1603
1604 // Never include this file directly; use <sys/types.h> instead.
1605
1606 // Returned by `clock'.
1607 type Clock_t = X__clock_t /* clock_t.h:7:19 */
1608
1609 // bits/types.h -- definitions of __*_t types underlying *_t types.
1610 // Copyright (C) 2002-2020 Free Software Foundation, Inc.
1611 // This file is part of the GNU C Library.
1612 //
1613 // The GNU C Library is free software; you can redistribute it and/or
1614 // modify it under the terms of the GNU Lesser General Public
1615 // License as published by the Free Software Foundation; either
1616 // version 2.1 of the License, or (at your option) any later version.
1617 //
1618 // The GNU C Library is distributed in the hope that it will be useful,
1619 // but WITHOUT ANY WARRANTY; without even the implied warranty of
1620 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1621 // Lesser General Public License for more details.
1622 //
1623 // You should have received a copy of the GNU Lesser General Public
1624 // License along with the GNU C Library; if not, see
1625 // <https://www.gnu.org/licenses/>.
1626
1627 // Never include this file directly; use <sys/types.h> instead.
1628
1629 // Clock ID used in clock and timer functions.
1630 type Clockid_t = X__clockid_t /* clockid_t.h:7:21 */
1631
1632 // bits/types.h -- definitions of __*_t types underlying *_t types.
1633 // Copyright (C) 2002-2020 Free Software Foundation, Inc.
1634 // This file is part of the GNU C Library.
1635 //
1636 // The GNU C Library is free software; you can redistribute it and/or
1637 // modify it under the terms of the GNU Lesser General Public
1638 // License as published by the Free Software Foundation; either
1639 // version 2.1 of the License, or (at your option) any later version.
1640 //
1641 // The GNU C Library is distributed in the hope that it will be useful,
1642 // but WITHOUT ANY WARRANTY; without even the implied warranty of
1643 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1644 // Lesser General Public License for more details.
1645 //
1646 // You should have received a copy of the GNU Lesser General Public
1647 // License along with the GNU C Library; if not, see
1648 // <https://www.gnu.org/licenses/>.
1649
1650 // Never include this file directly; use <sys/types.h> instead.
1651
1652 // Returned by `time'.
1653 type Time_t = X__time_t /* time_t.h:7:18 */
1654
1655 // bits/types.h -- definitions of __*_t types underlying *_t types.
1656 // Copyright (C) 2002-2020 Free Software Foundation, Inc.
1657 // This file is part of the GNU C Library.
1658 //
1659 // The GNU C Library is free software; you can redistribute it and/or
1660 // modify it under the terms of the GNU Lesser General Public
1661 // License as published by the Free Software Foundation; either
1662 // version 2.1 of the License, or (at your option) any later version.
1663 //
1664 // The GNU C Library is distributed in the hope that it will be useful,
1665 // but WITHOUT ANY WARRANTY; without even the implied warranty of
1666 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1667 // Lesser General Public License for more details.
1668 //
1669 // You should have received a copy of the GNU Lesser General Public
1670 // License along with the GNU C Library; if not, see
1671 // <https://www.gnu.org/licenses/>.
1672
1673 // Never include this file directly; use <sys/types.h> instead.
1674
1675 // Timer ID returned by `timer_create'.
1676 type Timer_t = X__timer_t /* timer_t.h:7:19 */
1677
1678 // Copyright (C) 1989-2020 Free Software Foundation, Inc.
1679 //
1680 // This file is part of GCC.
1681 //
1682 // GCC is free software; you can redistribute it and/or modify
1683 // it under the terms of the GNU General Public License as published by
1684 // the Free Software Foundation; either version 3, or (at your option)
1685 // any later version.
1686 //
1687 // GCC is distributed in the hope that it will be useful,
1688 // but WITHOUT ANY WARRANTY; without even the implied warranty of
1689 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1690 // GNU General Public License for more details.
1691 //
1692 // Under Section 7 of GPL version 3, you are granted additional
1693 // permissions described in the GCC Runtime Library Exception, version
1694 // 3.1, as published by the Free Software Foundation.
1695 //
1696 // You should have received a copy of the GNU General Public License and
1697 // a copy of the GCC Runtime Library Exception along with this program;
1698 // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
1699 // <http://www.gnu.org/licenses/>.
1700
1701 // ISO C Standard: 7.17 Common definitions <stddef.h>
1702
1703 // Any one of these symbols __need_* means that GNU libc
1704 // wants us just to define one data type. So don't define
1705 // the symbols that indicate this file's entire job has been done.
1706
1707 // This avoids lossage on SunOS but only if stdtypes.h comes first.
1708 // There's no way to win with the other order! Sun lossage.
1709
1710 // Sequent's header files use _PTRDIFF_T_ in some conflicting way.
1711 // Just ignore it.
1712
1713 // On VxWorks, <type/vxTypesBase.h> may have defined macros like
1714 // _TYPE_size_t which will typedef size_t. fixincludes patched the
1715 // vxTypesBase.h so that this macro is only defined if _GCC_SIZE_T is
1716 // not defined, and so that defining this macro defines _GCC_SIZE_T.
1717 // If we find that the macros are still defined at this point, we must
1718 // invoke them so that the type is defined as expected.
1719
1720 // In case nobody has defined these types, but we aren't running under
1721 // GCC 2.00, make sure that __PTRDIFF_TYPE__, __SIZE_TYPE__, and
1722 // __WCHAR_TYPE__ have reasonable values. This can happen if the
1723 // parts of GCC is compiled by an older compiler, that actually
1724 // include gstddef.h, such as collect2.
1725
1726 // Signed type of difference of two pointers.
1727
1728 // Define this type if we are doing the whole job,
1729 // or if we want this type in particular.
1730
1731 // Unsigned type of `sizeof' something.
1732
1733 // Define this type if we are doing the whole job,
1734 // or if we want this type in particular.
1735
1736 // Wide character type.
1737 // Locale-writers should change this as necessary to
1738 // be big enough to hold unique values not between 0 and 127,
1739 // and not (wchar_t) -1, for each defined multibyte character.
1740
1741 // Define this type if we are doing the whole job,
1742 // or if we want this type in particular.
1743
1744 // A null pointer constant.
1745
1746 // Old compatibility names for C types.
1747 type Ulong = uint32 /* types.h:148:27 */
1748 type Ushort = uint16 /* types.h:149:28 */
1749 type Uint = uint32 /* types.h:150:22 */
1750
1751 // These size-specific names are used by some of the inet code.
1752
1753 // Define intN_t types.
1754 // Copyright (C) 2017-2020 Free Software Foundation, Inc.
1755 // This file is part of the GNU C Library.
1756 //
1757 // The GNU C Library is free software; you can redistribute it and/or
1758 // modify it under the terms of the GNU Lesser General Public
1759 // License as published by the Free Software Foundation; either
1760 // version 2.1 of the License, or (at your option) any later version.
1761 //
1762 // The GNU C Library is distributed in the hope that it will be useful,
1763 // but WITHOUT ANY WARRANTY; without even the implied warranty of
1764 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1765 // Lesser General Public License for more details.
1766 //
1767 // You should have received a copy of the GNU Lesser General Public
1768 // License along with the GNU C Library; if not, see
1769 // <https://www.gnu.org/licenses/>.
1770
1771 // bits/types.h -- definitions of __*_t types underlying *_t types.
1772 // Copyright (C) 2002-2020 Free Software Foundation, Inc.
1773 // This file is part of the GNU C Library.
1774 //
1775 // The GNU C Library is free software; you can redistribute it and/or
1776 // modify it under the terms of the GNU Lesser General Public
1777 // License as published by the Free Software Foundation; either
1778 // version 2.1 of the License, or (at your option) any later version.
1779 //
1780 // The GNU C Library is distributed in the hope that it will be useful,
1781 // but WITHOUT ANY WARRANTY; without even the implied warranty of
1782 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1783 // Lesser General Public License for more details.
1784 //
1785 // You should have received a copy of the GNU Lesser General Public
1786 // License along with the GNU C Library; if not, see
1787 // <https://www.gnu.org/licenses/>.
1788
1789 // Never include this file directly; use <sys/types.h> instead.
1790
1791 type Int8_t = X__int8_t /* stdint-intn.h:24:18 */
1792 type Int16_t = X__int16_t /* stdint-intn.h:25:19 */
1793 type Int32_t = X__int32_t /* stdint-intn.h:26:19 */
1794 type Int64_t = X__int64_t /* stdint-intn.h:27:19 */
1795
1796 // These were defined by ISO C without the first `_'.
1797 type U_int8_t = X__uint8_t /* types.h:158:19 */
1798 type U_int16_t = X__uint16_t /* types.h:159:20 */
1799 type U_int32_t = X__uint32_t /* types.h:160:20 */
1800 type U_int64_t = X__uint64_t /* types.h:161:20 */
1801
1802 type Register_t = int32 /* types.h:164:13 */
1803
1804 // It also defines `fd_set' and the FD_* macros for `select'.
1805 // `fd_set' type and related macros, and `select'/`pselect' declarations.
1806 // Copyright (C) 1996-2020 Free Software Foundation, Inc.
1807 // This file is part of the GNU C Library.
1808 //
1809 // The GNU C Library is free software; you can redistribute it and/or
1810 // modify it under the terms of the GNU Lesser General Public
1811 // License as published by the Free Software Foundation; either
1812 // version 2.1 of the License, or (at your option) any later version.
1813 //
1814 // The GNU C Library is distributed in the hope that it will be useful,
1815 // but WITHOUT ANY WARRANTY; without even the implied warranty of
1816 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1817 // Lesser General Public License for more details.
1818 //
1819 // You should have received a copy of the GNU Lesser General Public
1820 // License along with the GNU C Library; if not, see
1821 // <https://www.gnu.org/licenses/>.
1822
1823 // POSIX 1003.1g: 6.2 Select from File Descriptor Sets <sys/select.h>
1824
1825 // Copyright (C) 1991-2020 Free Software Foundation, Inc.
1826 // This file is part of the GNU C Library.
1827 //
1828 // The GNU C Library is free software; you can redistribute it and/or
1829 // modify it under the terms of the GNU Lesser General Public
1830 // License as published by the Free Software Foundation; either
1831 // version 2.1 of the License, or (at your option) any later version.
1832 //
1833 // The GNU C Library is distributed in the hope that it will be useful,
1834 // but WITHOUT ANY WARRANTY; without even the implied warranty of
1835 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1836 // Lesser General Public License for more details.
1837 //
1838 // You should have received a copy of the GNU Lesser General Public
1839 // License along with the GNU C Library; if not, see
1840 // <https://www.gnu.org/licenses/>.
1841
1842 // Get definition of needed basic types.
1843 // bits/types.h -- definitions of __*_t types underlying *_t types.
1844 // Copyright (C) 2002-2020 Free Software Foundation, Inc.
1845 // This file is part of the GNU C Library.
1846 //
1847 // The GNU C Library is free software; you can redistribute it and/or
1848 // modify it under the terms of the GNU Lesser General Public
1849 // License as published by the Free Software Foundation; either
1850 // version 2.1 of the License, or (at your option) any later version.
1851 //
1852 // The GNU C Library is distributed in the hope that it will be useful,
1853 // but WITHOUT ANY WARRANTY; without even the implied warranty of
1854 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1855 // Lesser General Public License for more details.
1856 //
1857 // You should have received a copy of the GNU Lesser General Public
1858 // License along with the GNU C Library; if not, see
1859 // <https://www.gnu.org/licenses/>.
1860
1861 // Never include this file directly; use <sys/types.h> instead.
1862
1863 // Get __FD_* definitions.
1864 // Copyright (C) 1997-2020 Free Software Foundation, Inc.
1865 // This file is part of the GNU C Library.
1866 //
1867 // The GNU C Library is free software; you can redistribute it and/or
1868 // modify it under the terms of the GNU Lesser General Public
1869 // License as published by the Free Software Foundation; either
1870 // version 2.1 of the License, or (at your option) any later version.
1871 //
1872 // The GNU C Library is distributed in the hope that it will be useful,
1873 // but WITHOUT ANY WARRANTY; without even the implied warranty of
1874 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1875 // Lesser General Public License for more details.
1876 //
1877 // You should have received a copy of the GNU Lesser General Public
1878 // License along with the GNU C Library; if not, see
1879 // <https://www.gnu.org/licenses/>.
1880
1881 // Determine the wordsize from the preprocessor defines.
1882
1883 // Get sigset_t.
1884
1885 type X__sigset_t = struct{ F__val [32]uint32 } /* __sigset_t.h:8:3 */
1886
1887 // A set of signals to be blocked, unblocked, or waited for.
1888 type Sigset_t = X__sigset_t /* sigset_t.h:7:20 */
1889
1890 // Get definition of timer specification structures.
1891
1892 // bits/types.h -- definitions of __*_t types underlying *_t types.
1893 // Copyright (C) 2002-2020 Free Software Foundation, Inc.
1894 // This file is part of the GNU C Library.
1895 //
1896 // The GNU C Library is free software; you can redistribute it and/or
1897 // modify it under the terms of the GNU Lesser General Public
1898 // License as published by the Free Software Foundation; either
1899 // version 2.1 of the License, or (at your option) any later version.
1900 //
1901 // The GNU C Library is distributed in the hope that it will be useful,
1902 // but WITHOUT ANY WARRANTY; without even the implied warranty of
1903 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1904 // Lesser General Public License for more details.
1905 //
1906 // You should have received a copy of the GNU Lesser General Public
1907 // License along with the GNU C Library; if not, see
1908 // <https://www.gnu.org/licenses/>.
1909
1910 // Never include this file directly; use <sys/types.h> instead.
1911
1912 // A time value that is accurate to the nearest
1913 //
1914 // microsecond but also has a range of years.
1915 type Timeval = struct {
1916 Ftv_sec X__time_t
1917 Ftv_usec X__suseconds_t
1918 } /* struct_timeval.h:8:1 */
1919
1920 // NB: Include guard matches what <linux/time.h> uses.
1921
1922 // bits/types.h -- definitions of __*_t types underlying *_t types.
1923 // Copyright (C) 2002-2020 Free Software Foundation, Inc.
1924 // This file is part of the GNU C Library.
1925 //
1926 // The GNU C Library is free software; you can redistribute it and/or
1927 // modify it under the terms of the GNU Lesser General Public
1928 // License as published by the Free Software Foundation; either
1929 // version 2.1 of the License, or (at your option) any later version.
1930 //
1931 // The GNU C Library is distributed in the hope that it will be useful,
1932 // but WITHOUT ANY WARRANTY; without even the implied warranty of
1933 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1934 // Lesser General Public License for more details.
1935 //
1936 // You should have received a copy of the GNU Lesser General Public
1937 // License along with the GNU C Library; if not, see
1938 // <https://www.gnu.org/licenses/>.
1939
1940 // Never include this file directly; use <sys/types.h> instead.
1941
1942 // Endian macros for string.h functions
1943 // Copyright (C) 1992-2020 Free Software Foundation, Inc.
1944 // This file is part of the GNU C Library.
1945 //
1946 // The GNU C Library is free software; you can redistribute it and/or
1947 // modify it under the terms of the GNU Lesser General Public
1948 // License as published by the Free Software Foundation; either
1949 // version 2.1 of the License, or (at your option) any later version.
1950 //
1951 // The GNU C Library is distributed in the hope that it will be useful,
1952 // but WITHOUT ANY WARRANTY; without even the implied warranty of
1953 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1954 // Lesser General Public License for more details.
1955 //
1956 // You should have received a copy of the GNU Lesser General Public
1957 // License along with the GNU C Library; if not, see
1958 // <http://www.gnu.org/licenses/>.
1959
1960 // POSIX.1b structure for a time value. This is like a `struct timeval' but
1961 //
1962 // has nanoseconds instead of microseconds.
1963 type Timespec = struct {
1964 Ftv_sec X__time_t
1965 Ftv_nsec X__syscall_slong_t
1966 } /* struct_timespec.h:10:1 */
1967
1968 type Suseconds_t = X__suseconds_t /* select.h:43:23 */
1969
1970 // The fd_set member is required to be an array of longs.
1971 type X__fd_mask = int32 /* select.h:49:18 */
1972
1973 // Some versions of <linux/posix_types.h> define this macros.
1974 // It's easier to assume 8-bit bytes than to get CHAR_BIT.
1975
1976 // fd_set for select and pselect.
1977 type Fd_set = struct{ F__fds_bits [32]X__fd_mask } /* select.h:70:5 */
1978
1979 // Maximum number of file descriptors in `fd_set'.
1980
1981 // Sometimes the fd_set member is assumed to have this type.
1982 type Fd_mask = X__fd_mask /* select.h:77:19 */
1983
1984 // Define some inlines helping to catch common problems.
1985
1986 type Blksize_t = X__blksize_t /* types.h:185:21 */
1987
1988 // Types from the Large File Support interface.
1989 type Blkcnt_t = X__blkcnt64_t /* types.h:205:22 */ // Type to count number of disk blocks.
1990 type Fsblkcnt_t = X__fsblkcnt64_t /* types.h:209:24 */ // Type to count file system blocks.
1991 type Fsfilcnt_t = X__fsfilcnt64_t /* types.h:213:24 */ // Type to count file system inodes.
1992
1993 // Now add the thread types.
1994 // Declaration of common pthread types for all architectures.
1995 // Copyright (C) 2017-2020 Free Software Foundation, Inc.
1996 // This file is part of the GNU C Library.
1997 //
1998 // The GNU C Library is free software; you can redistribute it and/or
1999 // modify it under the terms of the GNU Lesser General Public
2000 // License as published by the Free Software Foundation; either
2001 // version 2.1 of the License, or (at your option) any later version.
2002 //
2003 // The GNU C Library is distributed in the hope that it will be useful,
2004 // but WITHOUT ANY WARRANTY; without even the implied warranty of
2005 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
2006 // Lesser General Public License for more details.
2007 //
2008 // You should have received a copy of the GNU Lesser General Public
2009 // License along with the GNU C Library; if not, see
2010 // <https://www.gnu.org/licenses/>.
2011
2012 // For internal mutex and condition variable definitions.
2013 // Common threading primitives definitions for both POSIX and C11.
2014 // Copyright (C) 2017-2020 Free Software Foundation, Inc.
2015 // This file is part of the GNU C Library.
2016 //
2017 // The GNU C Library is free software; you can redistribute it and/or
2018 // modify it under the terms of the GNU Lesser General Public
2019 // License as published by the Free Software Foundation; either
2020 // version 2.1 of the License, or (at your option) any later version.
2021 //
2022 // The GNU C Library is distributed in the hope that it will be useful,
2023 // but WITHOUT ANY WARRANTY; without even the implied warranty of
2024 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
2025 // Lesser General Public License for more details.
2026 //
2027 // You should have received a copy of the GNU Lesser General Public
2028 // License along with the GNU C Library; if not, see
2029 // <https://www.gnu.org/licenses/>.
2030
2031 // Arch-specific definitions. Each architecture must define the following
2032 // macros to define the expected sizes of pthread data types:
2033 //
2034 // __SIZEOF_PTHREAD_ATTR_T - size of pthread_attr_t.
2035 // __SIZEOF_PTHREAD_MUTEX_T - size of pthread_mutex_t.
2036 // __SIZEOF_PTHREAD_MUTEXATTR_T - size of pthread_mutexattr_t.
2037 // __SIZEOF_PTHREAD_COND_T - size of pthread_cond_t.
2038 // __SIZEOF_PTHREAD_CONDATTR_T - size of pthread_condattr_t.
2039 // __SIZEOF_PTHREAD_RWLOCK_T - size of pthread_rwlock_t.
2040 // __SIZEOF_PTHREAD_RWLOCKATTR_T - size of pthread_rwlockattr_t.
2041 // __SIZEOF_PTHREAD_BARRIER_T - size of pthread_barrier_t.
2042 // __SIZEOF_PTHREAD_BARRIERATTR_T - size of pthread_barrierattr_t.
2043 //
2044 // The additional macro defines any constraint for the lock alignment
2045 // inside the thread structures:
2046 //
2047 // __LOCK_ALIGNMENT - for internal lock/futex usage.
2048 //
2049 // Same idea but for the once locking primitive:
2050 //
2051 // __ONCE_ALIGNMENT - for pthread_once_t/once_flag definition.
2052
2053 // Copyright (C) 2002-2020 Free Software Foundation, Inc.
2054 // This file is part of the GNU C Library.
2055 //
2056 // The GNU C Library is free software; you can redistribute it and/or
2057 // modify it under the terms of the GNU Lesser General Public
2058 // License as published by the Free Software Foundation; either
2059 // version 2.1 of the License, or (at your option) any later version.
2060 //
2061 // The GNU C Library is distributed in the hope that it will be useful,
2062 // but WITHOUT ANY WARRANTY; without even the implied warranty of
2063 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
2064 // Lesser General Public License for more details.
2065 //
2066 // You should have received a copy of the GNU Lesser General Public
2067 // License along with the GNU C Library; if not, see
2068 // <https://www.gnu.org/licenses/>.
2069
2070 // Determine the wordsize from the preprocessor defines.
2071
2072 // Extra attributes for the cleanup functions.
2073
2074 // Common definition of pthread_mutex_t.
2075
2076 type X__pthread_internal_list = struct {
2077 F__prev uintptr
2078 F__next uintptr
2079 } /* thread-shared-types.h:49:9 */
2080
2081 // Type to count file system inodes.
2082
2083 // Now add the thread types.
2084 // Declaration of common pthread types for all architectures.
2085 // Copyright (C) 2017-2020 Free Software Foundation, Inc.
2086 // This file is part of the GNU C Library.
2087 //
2088 // The GNU C Library is free software; you can redistribute it and/or
2089 // modify it under the terms of the GNU Lesser General Public
2090 // License as published by the Free Software Foundation; either
2091 // version 2.1 of the License, or (at your option) any later version.
2092 //
2093 // The GNU C Library is distributed in the hope that it will be useful,
2094 // but WITHOUT ANY WARRANTY; without even the implied warranty of
2095 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
2096 // Lesser General Public License for more details.
2097 //
2098 // You should have received a copy of the GNU Lesser General Public
2099 // License along with the GNU C Library; if not, see
2100 // <https://www.gnu.org/licenses/>.
2101
2102 // For internal mutex and condition variable definitions.
2103 // Common threading primitives definitions for both POSIX and C11.
2104 // Copyright (C) 2017-2020 Free Software Foundation, Inc.
2105 // This file is part of the GNU C Library.
2106 //
2107 // The GNU C Library is free software; you can redistribute it and/or
2108 // modify it under the terms of the GNU Lesser General Public
2109 // License as published by the Free Software Foundation; either
2110 // version 2.1 of the License, or (at your option) any later version.
2111 //
2112 // The GNU C Library is distributed in the hope that it will be useful,
2113 // but WITHOUT ANY WARRANTY; without even the implied warranty of
2114 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
2115 // Lesser General Public License for more details.
2116 //
2117 // You should have received a copy of the GNU Lesser General Public
2118 // License along with the GNU C Library; if not, see
2119 // <https://www.gnu.org/licenses/>.
2120
2121 // Arch-specific definitions. Each architecture must define the following
2122 // macros to define the expected sizes of pthread data types:
2123 //
2124 // __SIZEOF_PTHREAD_ATTR_T - size of pthread_attr_t.
2125 // __SIZEOF_PTHREAD_MUTEX_T - size of pthread_mutex_t.
2126 // __SIZEOF_PTHREAD_MUTEXATTR_T - size of pthread_mutexattr_t.
2127 // __SIZEOF_PTHREAD_COND_T - size of pthread_cond_t.
2128 // __SIZEOF_PTHREAD_CONDATTR_T - size of pthread_condattr_t.
2129 // __SIZEOF_PTHREAD_RWLOCK_T - size of pthread_rwlock_t.
2130 // __SIZEOF_PTHREAD_RWLOCKATTR_T - size of pthread_rwlockattr_t.
2131 // __SIZEOF_PTHREAD_BARRIER_T - size of pthread_barrier_t.
2132 // __SIZEOF_PTHREAD_BARRIERATTR_T - size of pthread_barrierattr_t.
2133 //
2134 // The additional macro defines any constraint for the lock alignment
2135 // inside the thread structures:
2136 //
2137 // __LOCK_ALIGNMENT - for internal lock/futex usage.
2138 //
2139 // Same idea but for the once locking primitive:
2140 //
2141 // __ONCE_ALIGNMENT - for pthread_once_t/once_flag definition.
2142
2143 // Copyright (C) 2002-2020 Free Software Foundation, Inc.
2144 // This file is part of the GNU C Library.
2145 //
2146 // The GNU C Library is free software; you can redistribute it and/or
2147 // modify it under the terms of the GNU Lesser General Public
2148 // License as published by the Free Software Foundation; either
2149 // version 2.1 of the License, or (at your option) any later version.
2150 //
2151 // The GNU C Library is distributed in the hope that it will be useful,
2152 // but WITHOUT ANY WARRANTY; without even the implied warranty of
2153 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
2154 // Lesser General Public License for more details.
2155 //
2156 // You should have received a copy of the GNU Lesser General Public
2157 // License along with the GNU C Library; if not, see
2158 // <https://www.gnu.org/licenses/>.
2159
2160 // Determine the wordsize from the preprocessor defines.
2161
2162 // Extra attributes for the cleanup functions.
2163
2164 // Common definition of pthread_mutex_t.
2165
2166 type X__pthread_list_t = X__pthread_internal_list /* thread-shared-types.h:53:3 */
2167
2168 type X__pthread_internal_slist = struct{ F__next uintptr } /* thread-shared-types.h:55:9 */
2169
2170 type X__pthread_slist_t = X__pthread_internal_slist /* thread-shared-types.h:58:3 */
2171
2172 // Arch-specific mutex definitions. A generic implementation is provided
2173 // by sysdeps/nptl/bits/struct_mutex.h. If required, an architecture
2174 // can override it by defining:
2175 //
2176 // 1. struct __pthread_mutex_s (used on both pthread_mutex_t and mtx_t
2177 // definition). It should contains at least the internal members
2178 // defined in the generic version.
2179 //
2180 // 2. __LOCK_ALIGNMENT for any extra attribute for internal lock used with
2181 // atomic operations.
2182 //
2183 // 3. The macro __PTHREAD_MUTEX_INITIALIZER used for static initialization.
2184 // It should initialize the mutex internal flag.
2185
2186 // x86 internal mutex struct definitions.
2187 // Copyright (C) 2019-2020 Free Software Foundation, Inc.
2188 // This file is part of the GNU C Library.
2189 //
2190 // The GNU C Library is free software; you can redistribute it and/or
2191 // modify it under the terms of the GNU Lesser General Public
2192 // License as published by the Free Software Foundation; either
2193 // version 2.1 of the License, or (at your option) any later version.
2194 //
2195 // The GNU C Library is distributed in the hope that it will be useful,
2196 // but WITHOUT ANY WARRANTY; without even the implied warranty of
2197 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
2198 // Lesser General Public License for more details.
2199 //
2200 // You should have received a copy of the GNU Lesser General Public
2201 // License along with the GNU C Library; if not, see
2202 // <http://www.gnu.org/licenses/>.
2203
2204 type X__pthread_mutex_s = struct {
2205 F__lock int32
2206 F__count uint32
2207 F__owner int32
2208 F__kind int32
2209 F__nusers uint32
2210 F__20 struct {
2211 F__ccgo_pad1 [0]uint32
2212 F__elision_data struct {
2213 F__espins int16
2214 F__eelision int16
2215 }
2216 }
2217 } /* struct_mutex.h:22:1 */
2218
2219 // Arch-sepecific read-write lock definitions. A generic implementation is
2220 // provided by struct_rwlock.h. If required, an architecture can override it
2221 // by defining:
2222 //
2223 // 1. struct __pthread_rwlock_arch_t (used on pthread_rwlock_t definition).
2224 // It should contain at least the internal members defined in the
2225 // generic version.
2226 //
2227 // 2. The macro __PTHREAD_RWLOCK_INITIALIZER used for static initialization.
2228 // It should initialize the rwlock internal type.
2229
2230 // x86 internal rwlock struct definitions.
2231 // Copyright (C) 2019-2020 Free Software Foundation, Inc.
2232 //
2233 // This file is part of the GNU C Library.
2234 //
2235 // The GNU C Library is free software; you can redistribute it and/or
2236 // modify it under the terms of the GNU Lesser General Public
2237 // License as published by the Free Software Foundation; either
2238 // version 2.1 of the License, or (at your option) any later version.
2239 //
2240 // The GNU C Library is distributed in the hope that it will be useful,
2241 // but WITHOUT ANY WARRANTY; without even the implied warranty of
2242 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
2243 // Lesser General Public License for more details.
2244 //
2245 // You should have received a copy of the GNU Lesser General Public
2246 // License along with the GNU C Library; if not, see
2247 // <http://www.gnu.org/licenses/>.
2248
2249 type X__pthread_rwlock_arch_t = struct {
2250 F__readers uint32
2251 F__writers uint32
2252 F__wrphase_futex uint32
2253 F__writers_futex uint32
2254 F__pad3 uint32
2255 F__pad4 uint32
2256 F__flags uint8
2257 F__shared uint8
2258 F__rwelision int8
2259 F__pad2 uint8
2260 F__cur_writer int32
2261 } /* struct_rwlock.h:23:1 */
2262
2263 // Common definition of pthread_cond_t.
2264
2265 type X__pthread_cond_s = struct {
2266 F__0 struct{ F__wseq uint64 }
2267 F__8 struct{ F__g1_start uint64 }
2268 F__g_refs [2]uint32
2269 F__g_size [2]uint32
2270 F__g1_orig_size uint32
2271 F__wrefs uint32
2272 F__g_signals [2]uint32
2273 } /* thread-shared-types.h:92:1 */
2274
2275 // Thread identifiers. The structure of the attribute type is not
2276 //
2277 // exposed on purpose.
2278 type Pthread_t = uint32 /* pthreadtypes.h:27:27 */
2279
2280 // Data structures for mutex handling. The structure of the attribute
2281 //
2282 // type is not exposed on purpose.
2283 type Pthread_mutexattr_t = struct {
2284 F__ccgo_pad1 [0]uint32
2285 F__size [4]int8
2286 } /* pthreadtypes.h:36:3 */
2287
2288 // Data structure for condition variable handling. The structure of
2289 //
2290 // the attribute type is not exposed on purpose.
2291 type Pthread_condattr_t = struct {
2292 F__ccgo_pad1 [0]uint32
2293 F__size [4]int8
2294 } /* pthreadtypes.h:45:3 */
2295
2296 // Keys for thread-specific data
2297 type Pthread_key_t = uint32 /* pthreadtypes.h:49:22 */
2298
2299 // Once-only execution
2300 type Pthread_once_t = int32 /* pthreadtypes.h:53:30 */
2301
2302 type Pthread_attr_t1 = struct {
2303 F__ccgo_pad1 [0]uint32
2304 F__size [36]int8
2305 } /* pthreadtypes.h:56:1 */
2306
2307 type Pthread_attr_t = Pthread_attr_t1 /* pthreadtypes.h:62:30 */
2308
2309 type Pthread_mutex_t = struct{ F__data X__pthread_mutex_s } /* pthreadtypes.h:72:3 */
2310
2311 type Pthread_cond_t = struct{ F__data X__pthread_cond_s } /* pthreadtypes.h:80:3 */
2312
2313 // Data structure for reader-writer lock variable handling. The
2314 //
2315 // structure of the attribute type is deliberately not exposed.
2316 type Pthread_rwlock_t = struct{ F__data X__pthread_rwlock_arch_t } /* pthreadtypes.h:91:3 */
2317
2318 type Pthread_rwlockattr_t = struct {
2319 F__ccgo_pad1 [0]uint32
2320 F__size [8]int8
2321 } /* pthreadtypes.h:97:3 */
2322
2323 // POSIX spinlock data type.
2324 type Pthread_spinlock_t = int32 /* pthreadtypes.h:103:22 */
2325
2326 // POSIX barriers data type. The structure of the type is
2327 //
2328 // deliberately not exposed.
2329 type Pthread_barrier_t = struct {
2330 F__ccgo_pad1 [0]uint32
2331 F__size [20]int8
2332 } /* pthreadtypes.h:112:3 */
2333
2334 type Pthread_barrierattr_t = struct {
2335 F__ccgo_pad1 [0]uint32
2336 F__size [4]int8
2337 } /* pthreadtypes.h:118:3 */
2338
2339 // Type for length arguments in socket calls.
2340 type Socklen_t = X__socklen_t /* socket.h:33:21 */
2341
2342 // Protocol families.
2343
2344 // Address families.
2345
2346 // Socket level values. Others are defined in the appropriate headers.
2347 //
2348 // XXX These definitions also should go into the appropriate headers as
2349 // far as they are available.
2350
2351 // Maximum queue length specifiable by listen.
2352
2353 // Get the definition of the macro to define the common sockaddr members.
2354 // Definition of struct sockaddr_* common members and sizes, generic version.
2355 // Copyright (C) 1995-2020 Free Software Foundation, Inc.
2356 // This file is part of the GNU C Library.
2357 //
2358 // The GNU C Library is free software; you can redistribute it and/or
2359 // modify it under the terms of the GNU Lesser General Public
2360 // License as published by the Free Software Foundation; either
2361 // version 2.1 of the License, or (at your option) any later version.
2362 //
2363 // The GNU C Library is distributed in the hope that it will be useful,
2364 // but WITHOUT ANY WARRANTY; without even the implied warranty of
2365 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
2366 // Lesser General Public License for more details.
2367 //
2368 // You should have received a copy of the GNU Lesser General Public
2369 // License along with the GNU C Library; if not, see
2370 // <https://www.gnu.org/licenses/>.
2371
2372 // Never include this file directly; use <sys/socket.h> instead.
2373
2374 // POSIX.1g specifies this type name for the `sa_family' member.
2375 type Sa_family_t = uint16 /* sockaddr.h:28:28 */
2376
2377 // This macro is used to declare the initial common members
2378 // of the data types used for socket addresses, `struct sockaddr',
2379 // `struct sockaddr_in', `struct sockaddr_un', etc.
2380
2381 // Size of struct sockaddr_storage.
2382
2383 // Structure describing a generic socket address.
2384 type Sockaddr = struct {
2385 Fsa_family Sa_family_t
2386 Fsa_data [14]int8
2387 } /* socket.h:178:1 */
2388
2389 // Structure large enough to hold any socket address (with the historical
2390 // exception of AF_UNIX).
2391
2392 type Sockaddr_storage = struct {
2393 Fss_family Sa_family_t
2394 F__ss_padding [122]int8
2395 F__ss_align uint32
2396 } /* socket.h:191:1 */
2397
2398 // Structure describing messages sent by
2399 //
2400 // `sendmsg' and received by `recvmsg'.
2401 type Msghdr = struct {
2402 Fmsg_name uintptr
2403 Fmsg_namelen Socklen_t
2404 Fmsg_iov uintptr
2405 Fmsg_iovlen Size_t
2406 Fmsg_control uintptr
2407 Fmsg_controllen Size_t
2408 Fmsg_flags int32
2409 } /* socket.h:257:1 */
2410
2411 // Structure used for storage of ancillary data object information.
2412 type Cmsghdr = struct {
2413 F__ccgo_pad1 [0]uint32
2414 Fcmsg_len Size_t
2415 Fcmsg_level int32
2416 Fcmsg_type int32
2417 } /* socket.h:275:1 */
2418
2419 // SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note
2420
2421 // SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note
2422
2423 // SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note
2424
2425 // This allows for 1024 file descriptors: if NR_OPEN is ever grown
2426 // beyond that you'll have to change this too. But 1024 fd's seem to be
2427 // enough even for such "real" unices like OSF/1, so hopefully this is
2428 // one limit that doesn't have to be changed [again].
2429 //
2430 // Note that POSIX wants the FD_CLEAR(fd,fdsetp) defines to be in
2431 // <sys/time.h> (and thus <linux/time.h>) - but this is a more logical
2432 // place for them. Solved by having dummy defines in <sys/time.h>.
2433
2434 // This macro may have been defined in <gnu/types.h>. But we always
2435 // use the one here.
2436
2437 type X__kernel_fd_set = struct{ Ffds_bits [32]uint32 } /* posix_types.h:27:3 */
2438
2439 // Type of a signal handler.
2440 type X__kernel_sighandler_t = uintptr /* posix_types.h:30:14 */
2441
2442 // Type of a SYSV IPC key.
2443 type X__kernel_key_t = int32 /* posix_types.h:33:13 */
2444 type X__kernel_mqd_t = int32 /* posix_types.h:34:13 */
2445
2446 // SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note
2447 // SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note
2448
2449 // This file is generally used by user-level software, so you need to
2450 // be a little careful about namespace pollution etc. Also, we cannot
2451 // assume GCC is being used.
2452
2453 type X__kernel_mode_t = uint16 /* posix_types_32.h:11:24 */
2454
2455 type X__kernel_ipc_pid_t = uint16 /* posix_types_32.h:14:24 */
2456
2457 type X__kernel_uid_t = uint16 /* posix_types_32.h:17:24 */
2458 type X__kernel_gid_t = uint16 /* posix_types_32.h:18:24 */
2459
2460 type X__kernel_old_dev_t = uint16 /* posix_types_32.h:21:24 */
2461
2462 // SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note
2463
2464 // SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note
2465
2466 // SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note
2467
2468 // There seems to be no way of detecting this automatically from user
2469 // space, so 64 bit architectures should override this in their
2470 // bitsperlong.h. In particular, an architecture that supports
2471 // both 32 and 64 bit user space must not rely on CONFIG_64BIT
2472 // to decide it, but rather check a compiler provided macro.
2473
2474 // This file is generally used by user-level software, so you need to
2475 // be a little careful about namespace pollution etc.
2476 //
2477 // First the types that are often defined in different ways across
2478 // architectures, so that you can override them.
2479
2480 type X__kernel_long_t = int32 /* posix_types.h:15:15 */
2481 type X__kernel_ulong_t = uint32 /* posix_types.h:16:23 */
2482
2483 type X__kernel_ino_t = X__kernel_ulong_t /* posix_types.h:20:26 */
2484
2485 type X__kernel_pid_t = int32 /* posix_types.h:28:14 */
2486
2487 type X__kernel_suseconds_t = X__kernel_long_t /* posix_types.h:41:26 */
2488
2489 type X__kernel_daddr_t = int32 /* posix_types.h:45:14 */
2490
2491 type X__kernel_uid32_t = uint32 /* posix_types.h:49:22 */
2492 type X__kernel_gid32_t = uint32 /* posix_types.h:50:22 */
2493
2494 type X__kernel_old_uid_t = X__kernel_uid_t /* posix_types.h:54:24 */
2495 type X__kernel_old_gid_t = X__kernel_gid_t /* posix_types.h:55:24 */
2496
2497 // Most 32 bit architectures use "unsigned int" size_t,
2498 // and all 64 bit architectures use "unsigned long" size_t.
2499 type X__kernel_size_t = uint32 /* posix_types.h:68:22 */
2500 type X__kernel_ssize_t = int32 /* posix_types.h:69:14 */
2501 type X__kernel_ptrdiff_t = int32 /* posix_types.h:70:14 */
2502
2503 type X__kernel_fsid_t = struct{ Fval [2]int32 } /* posix_types.h:81:3 */
2504
2505 // anything below here should be completely generic
2506 type X__kernel_off_t = X__kernel_long_t /* posix_types.h:87:25 */
2507 type X__kernel_loff_t = int64 /* posix_types.h:88:19 */
2508 type X__kernel_old_time_t = X__kernel_long_t /* posix_types.h:89:25 */
2509 type X__kernel_time_t = X__kernel_long_t /* posix_types.h:90:25 */
2510 type X__kernel_time64_t = int64 /* posix_types.h:91:19 */
2511 type X__kernel_clock_t = X__kernel_long_t /* posix_types.h:92:25 */
2512 type X__kernel_timer_t = int32 /* posix_types.h:93:14 */
2513 type X__kernel_clockid_t = int32 /* posix_types.h:94:14 */
2514 type X__kernel_caddr_t = uintptr /* posix_types.h:95:14 */
2515 type X__kernel_uid16_t = uint16 /* posix_types.h:96:24 */
2516 type X__kernel_gid16_t = uint16 /* posix_types.h:97:24 */
2517
2518 // SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note
2519
2520 // Socket-level I/O control calls.
2521
2522 // For setsockopt(2)
2523
2524 // Security levels - as per NRL IPv6 - don't actually do anything
2525
2526 // Socket filtering
2527
2528 // Instruct lower device to use last 4-bytes of skb data as FCS
2529
2530 // Structure used to manipulate the SO_LINGER option.
2531 type Linger = struct {
2532 Fl_onoff int32
2533 Fl_linger int32
2534 } /* socket.h:361:1 */
2535
2536 // This is the 4.3 BSD `struct sockaddr' format, which is used as wire
2537 //
2538 // format in the grotty old 4.3 `talk' protocol.
2539 type Osockaddr = struct {
2540 Fsa_family uint16
2541 Fsa_data [14]uint8
2542 } /* struct_osockaddr.h:6:1 */
2543
2544 // Define some macros helping to catch buffer overflows.
2545
2546 // bits/types.h -- definitions of __*_t types underlying *_t types.
2547 // Copyright (C) 2002-2020 Free Software Foundation, Inc.
2548 // This file is part of the GNU C Library.
2549 //
2550 // The GNU C Library is free software; you can redistribute it and/or
2551 // modify it under the terms of the GNU Lesser General Public
2552 // License as published by the Free Software Foundation; either
2553 // version 2.1 of the License, or (at your option) any later version.
2554 //
2555 // The GNU C Library is distributed in the hope that it will be useful,
2556 // but WITHOUT ANY WARRANTY; without even the implied warranty of
2557 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
2558 // Lesser General Public License for more details.
2559 //
2560 // You should have received a copy of the GNU Lesser General Public
2561 // License along with the GNU C Library; if not, see
2562 // <https://www.gnu.org/licenses/>.
2563
2564 // Never include this file directly; use <sys/types.h> instead.
2565
2566 // Internet address.
2567 type In_addr_t = Uint32_t /* in.h:30:18 */
2568 type In_addr = struct{ Fs_addr In_addr_t } /* in.h:31:1 */
2569
2570 // Get system-specific definitions.
2571 // Copyright (C) 1991-2020 Free Software Foundation, Inc.
2572 // This file is part of the GNU C Library.
2573 //
2574 // The GNU C Library is free software; you can redistribute it and/or
2575 // modify it under the terms of the GNU Lesser General Public
2576 // License as published by the Free Software Foundation; either
2577 // version 2.1 of the License, or (at your option) any later version.
2578 //
2579 // The GNU C Library is distributed in the hope that it will be useful,
2580 // but WITHOUT ANY WARRANTY; without even the implied warranty of
2581 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
2582 // Lesser General Public License for more details.
2583 //
2584 // You should have received a copy of the GNU Lesser General Public
2585 // License along with the GNU C Library; if not, see
2586 // <https://www.gnu.org/licenses/>.
2587
2588 // Linux version.
2589
2590 // If the application has already included linux/in6.h from a linux-based
2591 // kernel then we will not define the IPv6 IPPROTO_* defines, in6_addr (nor the
2592 // defines), sockaddr_in6, or ipv6_mreq. Same for in6_ptkinfo or ip6_mtuinfo
2593 // in linux/ipv6.h. The ABI used by the linux-kernel and glibc match exactly.
2594 // Neither the linux kernel nor glibc should break this ABI without coordination.
2595 // In upstream kernel 56c176c9 the _UAPI prefix was stripped so we need to check
2596 // for _LINUX_IN6_H and _IPV6_H now, and keep checking the old versions for
2597 // maximum backwards compatibility.
2598
2599 // Options for use with `getsockopt' and `setsockopt' at the IP level.
2600 // The first word in the comment at the right is the data type used;
2601 // "bool" means a boolean value stored in an `int'.
2602 // For BSD compatibility.
2603
2604 // TProxy original addresses
2605
2606 // IP_MTU_DISCOVER arguments.
2607 // Always use interface mtu (ignores dst pmtu) but don't set DF flag.
2608 // Also incoming ICMP frag_needed notifications will be ignored on
2609 // this socket to prevent accepting spoofed ones.
2610 // Like IP_PMTUDISC_INTERFACE but allow packets to be fragmented.
2611
2612 // To select the IP level.
2613
2614 // Structure used to describe IP options for IP_OPTIONS and IP_RETOPTS.
2615 //
2616 // The `ip_dst' field is used for the first-hop gateway when using a
2617 // source route (this gets put into the header proper).
2618 type Ip_opts = struct {
2619 Fip_dst struct{ Fs_addr In_addr_t }
2620 Fip_opts [40]int8
2621 } /* in.h:142:1 */
2622
2623 // Like `struct ip_mreq' but including interface specification by index.
2624 type Ip_mreqn = struct {
2625 Fimr_multiaddr struct{ Fs_addr In_addr_t }
2626 Fimr_address struct{ Fs_addr In_addr_t }
2627 Fimr_ifindex int32
2628 } /* in.h:149:1 */
2629
2630 // Structure used for IP_PKTINFO.
2631 type In_pktinfo = struct {
2632 Fipi_ifindex int32
2633 Fipi_spec_dst struct{ Fs_addr In_addr_t }
2634 Fipi_addr struct{ Fs_addr In_addr_t }
2635 } /* in.h:157:1 */
2636
2637 // Type to represent a port.
2638 type In_port_t = Uint16_t /* in.h:119:18 */
2639
2640 // Definitions of the bits in an Internet address integer.
2641 //
2642 // On subnets, host and network parts are found according to
2643 // the subnet mask, not these masks.
2644
2645 // Address to accept any incoming messages.
2646 // Address to send to all hosts.
2647 // Address indicating an error return.
2648
2649 // Network number for local host loopback.
2650 // Address to loopback in software to local host.
2651
2652 // Defines for Multicast INADDR.
2653
2654 // IPv6 address
2655 type In6_addr = struct {
2656 F__in6_u struct {
2657 F__ccgo_pad1 [0]uint32
2658 F__u6_addr8 [16]Uint8_t
2659 }
2660 } /* in.h:212:1 */
2661
2662 // ::1
2663
2664 // Structure describing an Internet socket address.
2665 type Sockaddr_in = struct {
2666 Fsin_family Sa_family_t
2667 Fsin_port In_port_t
2668 Fsin_addr struct{ Fs_addr In_addr_t }
2669 Fsin_zero [8]uint8
2670 } /* in.h:238:1 */
2671
2672 // Ditto, for IPv6.
2673 type Sockaddr_in6 = struct {
2674 Fsin6_family Sa_family_t
2675 Fsin6_port In_port_t
2676 Fsin6_flowinfo Uint32_t
2677 Fsin6_addr struct {
2678 F__in6_u struct {
2679 F__ccgo_pad1 [0]uint32
2680 F__u6_addr8 [16]Uint8_t
2681 }
2682 }
2683 Fsin6_scope_id Uint32_t
2684 } /* in.h:253:1 */
2685
2686 // IPv4 multicast request.
2687 type Ip_mreq = struct {
2688 Fimr_multiaddr struct{ Fs_addr In_addr_t }
2689 Fimr_interface struct{ Fs_addr In_addr_t }
2690 } /* in.h:265:1 */
2691
2692 type Ip_mreq_source = struct {
2693 Fimr_multiaddr struct{ Fs_addr In_addr_t }
2694 Fimr_interface struct{ Fs_addr In_addr_t }
2695 Fimr_sourceaddr struct{ Fs_addr In_addr_t }
2696 } /* in.h:274:1 */
2697
2698 // Likewise, for IPv6.
2699 type Ipv6_mreq = struct {
2700 Fipv6mr_multiaddr struct {
2701 F__in6_u struct {
2702 F__ccgo_pad1 [0]uint32
2703 F__u6_addr8 [16]Uint8_t
2704 }
2705 }
2706 Fipv6mr_interface uint32
2707 } /* in.h:289:1 */
2708
2709 // Multicast group request.
2710 type Group_req = struct {
2711 Fgr_interface Uint32_t
2712 Fgr_group struct {
2713 Fss_family Sa_family_t
2714 F__ss_padding [122]int8
2715 F__ss_align uint32
2716 }
2717 } /* in.h:301:1 */
2718
2719 type Group_source_req = struct {
2720 Fgsr_interface Uint32_t
2721 Fgsr_group struct {
2722 Fss_family Sa_family_t
2723 F__ss_padding [122]int8
2724 F__ss_align uint32
2725 }
2726 Fgsr_source struct {
2727 Fss_family Sa_family_t
2728 F__ss_padding [122]int8
2729 F__ss_align uint32
2730 }
2731 } /* in.h:310:1 */
2732
2733 // Full-state filter operations.
2734 type Ip_msfilter = struct {
2735 Fimsf_multiaddr struct{ Fs_addr In_addr_t }
2736 Fimsf_interface struct{ Fs_addr In_addr_t }
2737 Fimsf_fmode Uint32_t
2738 Fimsf_numsrc Uint32_t
2739 Fimsf_slist [1]struct{ Fs_addr In_addr_t }
2740 } /* in.h:324:1 */
2741
2742 type Group_filter = struct {
2743 Fgf_interface Uint32_t
2744 Fgf_group struct {
2745 Fss_family Sa_family_t
2746 F__ss_padding [122]int8
2747 F__ss_align uint32
2748 }
2749 Fgf_fmode Uint32_t
2750 Fgf_numsrc Uint32_t
2751 Fgf_slist [1]struct {
2752 Fss_family Sa_family_t
2753 F__ss_padding [122]int8
2754 F__ss_align uint32
2755 }
2756 } /* in.h:345:1 */
2757
2758 var _ int8 /* gen.c:2:13: */