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