Debian Codegraph @

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