gtsocial-umbx

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

netdb_linux_arm64.go (132239B)


      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_arm64.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                       = 1234
     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 = uint32 /* <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 //    Copyright (C) 2016-2020 Free Software Foundation, Inc.
   1057 //    This file is part of the GNU C Library.
   1058 //
   1059 //    The GNU C Library is free software; you can redistribute it and/or
   1060 //    modify it under the terms of the GNU Lesser General Public
   1061 //    License as published by the Free Software Foundation; either
   1062 //    version 2.1 of the License, or (at your option) any later version.
   1063 //
   1064 //    The GNU C Library is distributed in the hope that it will be useful,
   1065 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1066 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1067 //    Lesser General Public License for more details.
   1068 //
   1069 //    You should have received a copy of the GNU Lesser General Public
   1070 //    License along with the GNU C Library; if not, see
   1071 //    <https://www.gnu.org/licenses/>.
   1072 
   1073 // Properties of long double type.  ldbl-128 version.
   1074 //    Copyright (C) 2016-2020 Free Software Foundation, Inc.
   1075 //    This file is part of the GNU C Library.
   1076 //
   1077 //    The GNU C Library is free software; you can redistribute it and/or
   1078 //    modify it under the terms of the GNU Lesser General Public
   1079 //    License  published by the Free Software Foundation; either
   1080 //    version 2.1 of the License, or (at your option) any later version.
   1081 //
   1082 //    The GNU C Library is distributed in the hope that it will be useful,
   1083 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1084 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1085 //    Lesser General Public License for more details.
   1086 //
   1087 //    You should have received a copy of the GNU Lesser General Public
   1088 //    License along with the GNU C Library; if not, see
   1089 //    <https://www.gnu.org/licenses/>.
   1090 
   1091 // long double is distinct from double, so there is nothing to
   1092 //    define here.
   1093 
   1094 // __glibc_macro_warning (MESSAGE) issues warning MESSAGE.  This is
   1095 //    intended for use in preprocessor macros.
   1096 //
   1097 //    Note: MESSAGE must be a _single_ string; concatenation of string
   1098 //    literals is not supported.
   1099 
   1100 // Generic selection (ISO C11) is a C-only feature, available in GCC
   1101 //    since version 4.9.  Previous versions do not provide generic
   1102 //    selection, even though they might set __STDC_VERSION__ to 201112L,
   1103 //    when in -std=c11 mode.  Thus, we must check for !defined __GNUC__
   1104 //    when testing __STDC_VERSION__ for generic selection support.
   1105 //    On the other hand, Clang also defines __GNUC__, so a clang-specific
   1106 //    check is required to enable the use of generic selection.
   1107 
   1108 // If we don't have __REDIRECT, prototypes will be missing if
   1109 //    __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64].
   1110 
   1111 // Decide whether we can define 'extern inline' functions in headers.
   1112 
   1113 // This is here only because every header file already includes this one.
   1114 //    Get the definitions of all the appropriate `__stub_FUNCTION' symbols.
   1115 //    <gnu/stubs.h> contains `#define __stub_FUNCTION' when FUNCTION is a stub
   1116 //    that will always return failure (and set errno to ENOSYS).
   1117 // This file is automatically generated.
   1118 //    This file selects the right generated file of `__stub_FUNCTION' macros
   1119 //    based on the architecture being compiled for.
   1120 
   1121 // Determine the wordsize from the preprocessor defines.
   1122 //
   1123 //    Copyright (C) 2016-2020 Free Software Foundation, Inc.
   1124 //    This file is part of the GNU C Library.
   1125 //
   1126 //    The GNU C Library is free software; you can redistribute it and/or
   1127 //    modify it under the terms of the GNU Lesser General Public
   1128 //    License as published by the Free Software Foundation; either
   1129 //    version 2.1 of the License, or (at your option) any later version.
   1130 //
   1131 //    The GNU C Library is distributed in the hope that it will be useful,
   1132 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1133 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1134 //    Lesser General Public License for more details.
   1135 //
   1136 //    You should have received a copy of the GNU Lesser General Public
   1137 //    License along with the GNU C Library; if not, see
   1138 //    <https://www.gnu.org/licenses/>.
   1139 
   1140 // This file is automatically generated.
   1141 //    It defines a symbol `__stub_FUNCTION' for each function
   1142 //    in the C library which is a stub, meaning it will fail
   1143 //    every time called, usually setting errno to ENOSYS.
   1144 
   1145 // Copyright (C) 1991-2020 Free Software Foundation, Inc.
   1146 //    This file is part of the GNU C Library.
   1147 //
   1148 //    The GNU C Library is free software; you can redistribute it and/or
   1149 //    modify it under the terms of the GNU Lesser General Public
   1150 //    License as published by the Free Software Foundation; either
   1151 //    version 2.1 of the License, or (at your option) any later version.
   1152 //
   1153 //    The GNU C Library is distributed in the hope that it will be useful,
   1154 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1155 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1156 //    Lesser General Public License for more details.
   1157 //
   1158 //    You should have received a copy of the GNU Lesser General Public
   1159 //    License along with the GNU C Library; if not, see
   1160 //    <https://www.gnu.org/licenses/>.
   1161 
   1162 // Copyright (C) 1991-2020 Free Software Foundation, Inc.
   1163 //    This file is part of the GNU C Library.
   1164 //
   1165 //    The GNU C Library is free software; you can redistribute it and/or
   1166 //    modify it under the terms of the GNU Lesser General Public
   1167 //    License as published by the Free Software Foundation; either
   1168 //    version 2.1 of the License, or (at your option) any later version.
   1169 //
   1170 //    The GNU C Library is distributed in the hope that it will be useful,
   1171 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1172 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1173 //    Lesser General Public License for more details.
   1174 //
   1175 //    You should have received a copy of the GNU Lesser General Public
   1176 //    License along with the GNU C Library; if not, see
   1177 //    <https://www.gnu.org/licenses/>.
   1178 
   1179 // Define uintN_t types.
   1180 //    Copyright (C) 2017-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 // bits/types.h -- definitions of __*_t types underlying *_t types.
   1198 //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
   1199 //    This file is part of the GNU C Library.
   1200 //
   1201 //    The GNU C Library is free software; you can redistribute it and/or
   1202 //    modify it under the terms of the GNU Lesser General Public
   1203 //    License as published by the Free Software Foundation; either
   1204 //    version 2.1 of the License, or (at your option) any later version.
   1205 //
   1206 //    The GNU C Library is distributed in the hope that it will be useful,
   1207 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1208 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1209 //    Lesser General Public License for more details.
   1210 //
   1211 //    You should have received a copy of the GNU Lesser General Public
   1212 //    License along with the GNU C Library; if not, see
   1213 //    <https://www.gnu.org/licenses/>.
   1214 
   1215 // Never include this file directly; use <sys/types.h> instead.
   1216 
   1217 // Copyright (C) 1991-2020 Free Software Foundation, Inc.
   1218 //    This file is part of the GNU C Library.
   1219 //
   1220 //    The GNU C Library is free software; you can redistribute it and/or
   1221 //    modify it under the terms of the GNU Lesser General Public
   1222 //    License as published by the Free Software Foundation; either
   1223 //    version 2.1 of the License, or (at your option) any later version.
   1224 //
   1225 //    The GNU C Library is distributed in the hope that it will be useful,
   1226 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1227 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1228 //    Lesser General Public License for more details.
   1229 //
   1230 //    You should have received a copy of the GNU Lesser General Public
   1231 //    License along with the GNU C Library; if not, see
   1232 //    <https://www.gnu.org/licenses/>.
   1233 
   1234 // Determine the wordsize from the preprocessor defines.
   1235 //
   1236 //    Copyright (C) 2016-2020 Free Software Foundation, Inc.
   1237 //    This file is part of the GNU C Library.
   1238 //
   1239 //    The GNU C Library is free software; you can redistribute it and/or
   1240 //    modify it under the terms of the GNU Lesser General Public
   1241 //    License as published by the Free Software Foundation; either
   1242 //    version 2.1 of the License, or (at your option) any later version.
   1243 //
   1244 //    The GNU C Library is distributed in the hope that it will be useful,
   1245 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1246 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1247 //    Lesser General Public License for more details.
   1248 //
   1249 //    You should have received a copy of the GNU Lesser General Public
   1250 //    License along with the GNU C Library; if not, see
   1251 //    <https://www.gnu.org/licenses/>.
   1252 
   1253 // Bit size of the time_t type at glibc build time, general case.
   1254 //    Copyright (C) 2018-2020 Free Software Foundation, Inc.
   1255 //    This file is part of the GNU C Library.
   1256 //
   1257 //    The GNU C Library is free software; you can redistribute it and/or
   1258 //    modify it under the terms of the GNU Lesser General Public
   1259 //    License as published by the Free Software Foundation; either
   1260 //    version 2.1 of the License, or (at your option) any later version.
   1261 //
   1262 //    The GNU C Library is distributed in the hope that it will be useful,
   1263 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1264 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1265 //    Lesser General Public License for more details.
   1266 //
   1267 //    You should have received a copy of the GNU Lesser General Public
   1268 //    License along with the GNU C Library; if not, see
   1269 //    <https://www.gnu.org/licenses/>.
   1270 
   1271 // Determine the wordsize from the preprocessor defines.
   1272 //
   1273 //    Copyright (C) 2016-2020 Free Software Foundation, Inc.
   1274 //    This file is part of the GNU C Library.
   1275 //
   1276 //    The GNU C Library is free software; you can redistribute it and/or
   1277 //    modify it under the terms of the GNU Lesser General Public
   1278 //    License as published by the Free Software Foundation; either
   1279 //    version 2.1 of the License, or (at your option) any later version.
   1280 //
   1281 //    The GNU C Library is distributed in the hope that it will be useful,
   1282 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1283 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1284 //    Lesser General Public License for more details.
   1285 //
   1286 //    You should have received a copy of the GNU Lesser General Public
   1287 //    License along with the GNU C Library; if not, see
   1288 //    <https://www.gnu.org/licenses/>.
   1289 
   1290 // Size in bits of the 'time_t' type of the default ABI.
   1291 
   1292 // Convenience types.
   1293 type X__u_char = uint8   /* types.h:31:23 */
   1294 type X__u_short = uint16 /* types.h:32:28 */
   1295 type X__u_int = uint32   /* types.h:33:22 */
   1296 type X__u_long = uint64  /* types.h:34:27 */
   1297 
   1298 // Fixed-size types, underlying types depend on word size and compiler.
   1299 type X__int8_t = int8     /* types.h:37:21 */
   1300 type X__uint8_t = uint8   /* types.h:38:23 */
   1301 type X__int16_t = int16   /* types.h:39:26 */
   1302 type X__uint16_t = uint16 /* types.h:40:28 */
   1303 type X__int32_t = int32   /* types.h:41:20 */
   1304 type X__uint32_t = uint32 /* types.h:42:22 */
   1305 type X__int64_t = int64   /* types.h:44:25 */
   1306 type X__uint64_t = uint64 /* types.h:45:27 */
   1307 
   1308 // Smallest types with at least a given width.
   1309 type X__int_least8_t = X__int8_t     /* types.h:52:18 */
   1310 type X__uint_least8_t = X__uint8_t   /* types.h:53:19 */
   1311 type X__int_least16_t = X__int16_t   /* types.h:54:19 */
   1312 type X__uint_least16_t = X__uint16_t /* types.h:55:20 */
   1313 type X__int_least32_t = X__int32_t   /* types.h:56:19 */
   1314 type X__uint_least32_t = X__uint32_t /* types.h:57:20 */
   1315 type X__int_least64_t = X__int64_t   /* types.h:58:19 */
   1316 type X__uint_least64_t = X__uint64_t /* types.h:59:20 */
   1317 
   1318 // quad_t is also 64 bits.
   1319 type X__quad_t = int64    /* types.h:63:18 */
   1320 type X__u_quad_t = uint64 /* types.h:64:27 */
   1321 
   1322 // Largest integral types.
   1323 type X__intmax_t = int64   /* types.h:72:18 */
   1324 type X__uintmax_t = uint64 /* types.h:73:27 */
   1325 
   1326 // The machine-dependent file <bits/typesizes.h> defines __*_T_TYPE
   1327 //    macros for each of the OS types we define below.  The definitions
   1328 //    of those macros must use the following macros for underlying types.
   1329 //    We define __S<SIZE>_TYPE and __U<SIZE>_TYPE for the signed and unsigned
   1330 //    variants of each of the following integer types on this machine.
   1331 //
   1332 // 	16		-- "natural" 16-bit type (always short)
   1333 // 	32		-- "natural" 32-bit type (always int)
   1334 // 	64		-- "natural" 64-bit type (long or long long)
   1335 // 	LONG32		-- 32-bit type, traditionally long
   1336 // 	QUAD		-- 64-bit type, traditionally long long
   1337 // 	WORD		-- natural type of __WORDSIZE bits (int or long)
   1338 // 	LONGWORD	-- type of __WORDSIZE bits, traditionally long
   1339 //
   1340 //    We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the
   1341 //    conventional uses of `long' or `long long' type modifiers match the
   1342 //    types we define, even when a less-adorned type would be the same size.
   1343 //    This matters for (somewhat) portably writing printf/scanf formats for
   1344 //    these types, where using the appropriate l or ll format modifiers can
   1345 //    make the typedefs and the formats match up across all GNU platforms.  If
   1346 //    we used `long' when it's 64 bits where `long long' is expected, then the
   1347 //    compiler would warn about the formats not matching the argument types,
   1348 //    and the programmer changing them to shut up the compiler would break the
   1349 //    program's portability.
   1350 //
   1351 //    Here we assume what is presently the case in all the GCC configurations
   1352 //    we support: long long is always 64 bits, long is always word/address size,
   1353 //    and int is always 32 bits.
   1354 
   1355 // No need to mark the typedef with __extension__.
   1356 // bits/typesizes.h -- underlying types for *_t.  For the generic Linux ABI.
   1357 //    Copyright (C) 2011-2020 Free Software Foundation, Inc.
   1358 //    This file is part of the GNU C Library.
   1359 //    Contributed by Chris Metcalf <cmetcalf@tilera.com>, 2011.
   1360 //
   1361 //    The GNU C Library is free software; you can redistribute it and/or
   1362 //    modify it under the terms of the GNU Lesser General Public
   1363 //    License as published by the Free Software Foundation; either
   1364 //    version 2.1 of the License, or (at your option) any later version.
   1365 //
   1366 //    The GNU C Library is distributed in the hope that it will be useful,
   1367 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1368 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1369 //    Lesser General Public License for more details.
   1370 //
   1371 //    You should have received a copy of the GNU Lesser General Public
   1372 //    License along with the GNU C Library.  If not, see
   1373 //    <https://www.gnu.org/licenses/>.
   1374 
   1375 // See <bits/types.h> for the meaning of these macros.  This file exists so
   1376 //    that <bits/types.h> need not vary across different GNU platforms.
   1377 
   1378 // Tell the libc code that off_t and off64_t are actually the same type
   1379 //    for all ABI purposes, even if possibly expressed as different base types
   1380 //    for C type-checking purposes.
   1381 
   1382 // Same for ino_t and ino64_t.
   1383 
   1384 // And for __rlim_t and __rlim64_t.
   1385 
   1386 // And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t.
   1387 // Number of descriptors that can fit in an `fd_set'.
   1388 
   1389 // bits/time64.h -- underlying types for __time64_t.  Generic version.
   1390 //    Copyright (C) 2018-2020 Free Software Foundation, Inc.
   1391 //    This file is part of the GNU C Library.
   1392 //
   1393 //    The GNU C Library is free software; you can redistribute it and/or
   1394 //    modify it under the terms of the GNU Lesser General Public
   1395 //    License as published by the Free Software Foundation; either
   1396 //    version 2.1 of the License, or (at your option) any later version.
   1397 //
   1398 //    The GNU C Library is distributed in the hope that it will be useful,
   1399 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1400 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1401 //    Lesser General Public License for more details.
   1402 //
   1403 //    You should have received a copy of the GNU Lesser General Public
   1404 //    License along with the GNU C Library; if not, see
   1405 //    <https://www.gnu.org/licenses/>.
   1406 
   1407 // Define __TIME64_T_TYPE so that it is always a 64-bit type.
   1408 
   1409 // If we already have 64-bit time type then use it.
   1410 
   1411 type X__dev_t = uint64                     /* types.h:145:25 */ // Type of device numbers.
   1412 type X__uid_t = uint32                     /* types.h:146:25 */ // Type of user identifications.
   1413 type X__gid_t = uint32                     /* types.h:147:25 */ // Type of group identifications.
   1414 type X__ino_t = uint64                     /* types.h:148:25 */ // Type of file serial numbers.
   1415 type X__ino64_t = uint64                   /* types.h:149:27 */ // Type of file serial numbers (LFS).
   1416 type X__mode_t = uint32                    /* types.h:150:26 */ // Type of file attribute bitmasks.
   1417 type X__nlink_t = uint32                   /* types.h:151:27 */ // Type of file link counts.
   1418 type X__off_t = int64                      /* types.h:152:25 */ // Type of file sizes and offsets.
   1419 type X__off64_t = int64                    /* types.h:153:27 */ // Type of file sizes and offsets (LFS).
   1420 type X__pid_t = int32                      /* types.h:154:25 */ // Type of process identifications.
   1421 type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs.
   1422 type X__clock_t = int64                    /* types.h:156:27 */ // Type of CPU usage counts.
   1423 type X__rlim_t = uint64                    /* types.h:157:26 */ // Type for resource measurement.
   1424 type X__rlim64_t = uint64                  /* types.h:158:28 */ // Type for resource measurement (LFS).
   1425 type X__id_t = uint32                      /* types.h:159:24 */ // General type for IDs.
   1426 type X__time_t = int64                     /* types.h:160:26 */ // Seconds since the Epoch.
   1427 type X__useconds_t = uint32                /* types.h:161:30 */ // Count of microseconds.
   1428 type X__suseconds_t = int64                /* types.h:162:31 */ // Signed count of microseconds.
   1429 
   1430 type X__daddr_t = int32 /* types.h:164:27 */ // The type of a disk address.
   1431 type X__key_t = int32   /* types.h:165:25 */ // Type of an IPC key.
   1432 
   1433 // Clock ID used in clock and timer functions.
   1434 type X__clockid_t = int32 /* types.h:168:29 */
   1435 
   1436 // Timer ID returned by `timer_create'.
   1437 type X__timer_t = uintptr /* types.h:171:12 */
   1438 
   1439 // Type to represent block size.
   1440 type X__blksize_t = int32 /* types.h:174:29 */
   1441 
   1442 // Types from the Large File Support interface.
   1443 
   1444 // Type to count number of disk blocks.
   1445 type X__blkcnt_t = int64   /* types.h:179:28 */
   1446 type X__blkcnt64_t = int64 /* types.h:180:30 */
   1447 
   1448 // Type to count file system blocks.
   1449 type X__fsblkcnt_t = uint64   /* types.h:183:30 */
   1450 type X__fsblkcnt64_t = uint64 /* types.h:184:32 */
   1451 
   1452 // Type to count file system nodes.
   1453 type X__fsfilcnt_t = uint64   /* types.h:187:30 */
   1454 type X__fsfilcnt64_t = uint64 /* types.h:188:32 */
   1455 
   1456 // Type of miscellaneous file system fields.
   1457 type X__fsword_t = int64 /* types.h:191:28 */
   1458 
   1459 type X__ssize_t = int64 /* types.h:193:27 */ // Type of a byte count, or error.
   1460 
   1461 // Signed long type used in system calls.
   1462 type X__syscall_slong_t = int64 /* types.h:196:33 */
   1463 // Unsigned long type used in system calls.
   1464 type X__syscall_ulong_t = uint64 /* types.h:198:33 */
   1465 
   1466 // These few don't really vary by system, they always correspond
   1467 //
   1468 //	to one of the other defined types.
   1469 type X__loff_t = X__off64_t /* types.h:202:19 */ // Type of file sizes and offsets (LFS).
   1470 type X__caddr_t = uintptr   /* types.h:203:14 */
   1471 
   1472 // Duplicates info from stdint.h but this is used in unistd.h.
   1473 type X__intptr_t = int64 /* types.h:206:25 */
   1474 
   1475 // Duplicate info from sys/socket.h.
   1476 type X__socklen_t = uint32 /* types.h:209:23 */
   1477 
   1478 // C99: An integer type that can be accessed as an atomic entity,
   1479 //
   1480 //	even in the presence of asynchronous interrupts.
   1481 //	It is not currently necessary for this to be machine-specific.
   1482 type X__sig_atomic_t = int32 /* types.h:214:13 */
   1483 
   1484 // Seconds since the Epoch, visible to user code when time_t is too
   1485 //    narrow only for consistency with the old way of widening too-narrow
   1486 //    types.  User code should never use __time64_t.
   1487 
   1488 type Uint8_t = X__uint8_t   /* stdint-uintn.h:24:19 */
   1489 type Uint16_t = X__uint16_t /* stdint-uintn.h:25:20 */
   1490 type Uint32_t = X__uint32_t /* stdint-uintn.h:26:20 */
   1491 type Uint64_t = X__uint64_t /* stdint-uintn.h:27:20 */
   1492 
   1493 // Wide character type.
   1494 //    Locale-writers should change this as necessary to
   1495 //    be big enough to hold unique values not between 0 and 127,
   1496 //    and not (wchar_t) -1, for each defined multibyte character.
   1497 
   1498 // Define this type if we are doing the whole job,
   1499 //    or if we want this type in particular.
   1500 
   1501 // A null pointer constant.
   1502 
   1503 // Structure for scatter/gather I/O.
   1504 type Iovec = struct {
   1505 	Fiov_base uintptr
   1506 	Fiov_len  Size_t
   1507 } /* struct_iovec.h:26:1 */
   1508 
   1509 // Copyright (C) 1989-2020 Free Software Foundation, Inc.
   1510 //
   1511 // This file is part of GCC.
   1512 //
   1513 // GCC is free software; you can redistribute it and/or modify
   1514 // it under the terms of the GNU General Public License as published by
   1515 // the Free Software Foundation; either version 3, or (at your option)
   1516 // any later version.
   1517 //
   1518 // GCC is distributed in the hope that it will be useful,
   1519 // but WITHOUT ANY WARRANTY; without even the implied warranty of
   1520 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   1521 // GNU General Public License for more details.
   1522 //
   1523 // Under Section 7 of GPL version 3, you are granted additional
   1524 // permissions described in the GCC Runtime Library Exception, version
   1525 // 3.1, as published by the Free Software Foundation.
   1526 //
   1527 // You should have received a copy of the GNU General Public License and
   1528 // a copy of the GCC Runtime Library Exception along with this program;
   1529 // see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
   1530 // <http://www.gnu.org/licenses/>.
   1531 
   1532 // ISO C Standard:  7.17  Common definitions  <stddef.h>
   1533 
   1534 // Any one of these symbols __need_* means that GNU libc
   1535 //    wants us just to define one data type.  So don't define
   1536 //    the symbols that indicate this file's entire job has been done.
   1537 
   1538 // This avoids lossage on SunOS but only if stdtypes.h comes first.
   1539 //    There's no way to win with the other order!  Sun lossage.
   1540 
   1541 // Sequent's header files use _PTRDIFF_T_ in some conflicting way.
   1542 //    Just ignore it.
   1543 
   1544 // On VxWorks, <type/vxTypesBase.h> may have defined macros like
   1545 //    _TYPE_size_t which will typedef size_t.  fixincludes patched the
   1546 //    vxTypesBase.h so that this macro is only defined if _GCC_SIZE_T is
   1547 //    not defined, and so that defining this macro defines _GCC_SIZE_T.
   1548 //    If we find that the macros are still defined at this point, we must
   1549 //    invoke them so that the type is defined as expected.
   1550 
   1551 // In case nobody has defined these types, but we aren't running under
   1552 //    GCC 2.00, make sure that __PTRDIFF_TYPE__, __SIZE_TYPE__, and
   1553 //    __WCHAR_TYPE__ have reasonable values.  This can happen if the
   1554 //    parts of GCC is compiled by an older compiler, that actually
   1555 //    include gstddef.h, such as collect2.
   1556 
   1557 // Signed type of difference of two pointers.
   1558 
   1559 // Define this type if we are doing the whole job,
   1560 //    or if we want this type in particular.
   1561 
   1562 // Unsigned type of `sizeof' something.
   1563 
   1564 // Define this type if we are doing the whole job,
   1565 //    or if we want this type in particular.
   1566 
   1567 // Wide character type.
   1568 //    Locale-writers should change this as necessary to
   1569 //    be big enough to hold unique values not between 0 and 127,
   1570 //    and not (wchar_t) -1, for each defined multibyte character.
   1571 
   1572 // Define this type if we are doing the whole job,
   1573 //    or if we want this type in particular.
   1574 
   1575 // A null pointer constant.
   1576 
   1577 // This operating system-specific header file defines the SOCK_*, PF_*,
   1578 //    AF_*, MSG_*, SOL_*, and SO_* constants, and the `struct sockaddr',
   1579 //    `struct msghdr', and `struct linger' types.
   1580 // System-specific socket constants and types.  Linux version.
   1581 //    Copyright (C) 1991-2020 Free Software Foundation, Inc.
   1582 //    This file is part of the GNU C Library.
   1583 //
   1584 //    The GNU C Library is free software; you can redistribute it and/or
   1585 //    modify it under the terms of the GNU Lesser General Public
   1586 //    License as published by the Free Software Foundation; either
   1587 //    version 2.1 of the License, or (at your option) any later version.
   1588 //
   1589 //    The GNU C Library is distributed in the hope that it will be useful,
   1590 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1591 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1592 //    Lesser General Public License for more details.
   1593 //
   1594 //    You should have received a copy of the GNU Lesser General Public
   1595 //    License along with the GNU C Library; if not, see
   1596 //    <https://www.gnu.org/licenses/>.
   1597 
   1598 // Copyright (C) 1989-2020 Free Software Foundation, Inc.
   1599 //
   1600 // This file is part of GCC.
   1601 //
   1602 // GCC is free software; you can redistribute it and/or modify
   1603 // it under the terms of the GNU General Public License as published by
   1604 // the Free Software Foundation; either version 3, or (at your option)
   1605 // any later version.
   1606 //
   1607 // GCC is distributed in the hope that it will be useful,
   1608 // but WITHOUT ANY WARRANTY; without even the implied warranty of
   1609 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   1610 // GNU General Public License for more details.
   1611 //
   1612 // Under Section 7 of GPL version 3, you are granted additional
   1613 // permissions described in the GCC Runtime Library Exception, version
   1614 // 3.1, as published by the Free Software Foundation.
   1615 //
   1616 // You should have received a copy of the GNU General Public License and
   1617 // a copy of the GCC Runtime Library Exception along with this program;
   1618 // see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
   1619 // <http://www.gnu.org/licenses/>.
   1620 
   1621 // ISO C Standard:  7.17  Common definitions  <stddef.h>
   1622 
   1623 // Any one of these symbols __need_* means that GNU libc
   1624 //    wants us just to define one data type.  So don't define
   1625 //    the symbols that indicate this file's entire job has been done.
   1626 
   1627 // This avoids lossage on SunOS but only if stdtypes.h comes first.
   1628 //    There's no way to win with the other order!  Sun lossage.
   1629 
   1630 // Sequent's header files use _PTRDIFF_T_ in some conflicting way.
   1631 //    Just ignore it.
   1632 
   1633 // On VxWorks, <type/vxTypesBase.h> may have defined macros like
   1634 //    _TYPE_size_t which will typedef size_t.  fixincludes patched the
   1635 //    vxTypesBase.h so that this macro is only defined if _GCC_SIZE_T is
   1636 //    not defined, and so that defining this macro defines _GCC_SIZE_T.
   1637 //    If we find that the macros are still defined at this point, we must
   1638 //    invoke them so that the type is defined as expected.
   1639 
   1640 // In case nobody has defined these types, but we aren't running under
   1641 //    GCC 2.00, make sure that __PTRDIFF_TYPE__, __SIZE_TYPE__, and
   1642 //    __WCHAR_TYPE__ have reasonable values.  This can happen if the
   1643 //    parts of GCC is compiled by an older compiler, that actually
   1644 //    include gstddef.h, such as collect2.
   1645 
   1646 // Signed type of difference of two pointers.
   1647 
   1648 // Define this type if we are doing the whole job,
   1649 //    or if we want this type in particular.
   1650 
   1651 // Unsigned type of `sizeof' something.
   1652 
   1653 // Define this type if we are doing the whole job,
   1654 //    or if we want this type in particular.
   1655 
   1656 // Wide character type.
   1657 //    Locale-writers should change this as necessary to
   1658 //    be big enough to hold unique values not between 0 and 127,
   1659 //    and not (wchar_t) -1, for each defined multibyte character.
   1660 
   1661 // Define this type if we are doing the whole job,
   1662 //    or if we want this type in particular.
   1663 
   1664 // A null pointer constant.
   1665 
   1666 // Copyright (C) 1991-2020 Free Software Foundation, Inc.
   1667 //    This file is part of the GNU C Library.
   1668 //
   1669 //    The GNU C Library is free software; you can redistribute it and/or
   1670 //    modify it under the terms of the GNU Lesser General Public
   1671 //    License as published by the Free Software Foundation; either
   1672 //    version 2.1 of the License, or (at your option) any later version.
   1673 //
   1674 //    The GNU C Library is distributed in the hope that it will be useful,
   1675 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1676 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1677 //    Lesser General Public License for more details.
   1678 //
   1679 //    You should have received a copy of the GNU Lesser General Public
   1680 //    License along with the GNU C Library; if not, see
   1681 //    <https://www.gnu.org/licenses/>.
   1682 
   1683 //	POSIX Standard: 2.6 Primitive System Data Types	<sys/types.h>
   1684 
   1685 // Copyright (C) 1991-2020 Free Software Foundation, Inc.
   1686 //    This file is part of the GNU C Library.
   1687 //
   1688 //    The GNU C Library is free software; you can redistribute it and/or
   1689 //    modify it under the terms of the GNU Lesser General Public
   1690 //    License as published by the Free Software Foundation; either
   1691 //    version 2.1 of the License, or (at your option) any later version.
   1692 //
   1693 //    The GNU C Library is distributed in the hope that it will be useful,
   1694 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1695 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1696 //    Lesser General Public License for more details.
   1697 //
   1698 //    You should have received a copy of the GNU Lesser General Public
   1699 //    License along with the GNU C Library; if not, see
   1700 //    <https://www.gnu.org/licenses/>.
   1701 
   1702 // bits/types.h -- definitions of __*_t types underlying *_t types.
   1703 //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
   1704 //    This file is part of the GNU C Library.
   1705 //
   1706 //    The GNU C Library is free software; you can redistribute it and/or
   1707 //    modify it under the terms of the GNU Lesser General Public
   1708 //    License as published by the Free Software Foundation; either
   1709 //    version 2.1 of the License, or (at your option) any later version.
   1710 //
   1711 //    The GNU C Library is distributed in the hope that it will be useful,
   1712 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1713 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1714 //    Lesser General Public License for more details.
   1715 //
   1716 //    You should have received a copy of the GNU Lesser General Public
   1717 //    License along with the GNU C Library; if not, see
   1718 //    <https://www.gnu.org/licenses/>.
   1719 
   1720 // Never include this file directly; use <sys/types.h> instead.
   1721 
   1722 type U_char = X__u_char     /* types.h:33:18 */
   1723 type U_short = X__u_short   /* types.h:34:19 */
   1724 type U_int = X__u_int       /* types.h:35:17 */
   1725 type U_long = X__u_long     /* types.h:36:18 */
   1726 type Quad_t = X__quad_t     /* types.h:37:18 */
   1727 type U_quad_t = X__u_quad_t /* types.h:38:20 */
   1728 type Fsid_t = X__fsid_t     /* types.h:39:18 */
   1729 type Loff_t = X__loff_t     /* types.h:42:18 */
   1730 
   1731 type Ino_t = X__ino64_t /* types.h:49:19 */
   1732 
   1733 type Dev_t = X__dev_t /* types.h:59:17 */
   1734 
   1735 type Gid_t = X__gid_t /* types.h:64:17 */
   1736 
   1737 type Mode_t = X__mode_t /* types.h:69:18 */
   1738 
   1739 type Nlink_t = X__nlink_t /* types.h:74:19 */
   1740 
   1741 type Uid_t = X__uid_t /* types.h:79:17 */
   1742 
   1743 type Off_t = X__off64_t /* types.h:87:19 */
   1744 
   1745 type Pid_t = X__pid_t /* types.h:97:17 */
   1746 
   1747 type Id_t = X__id_t /* types.h:103:16 */
   1748 
   1749 type Ssize_t = X__ssize_t /* types.h:108:19 */
   1750 
   1751 type Daddr_t = X__daddr_t /* types.h:114:19 */
   1752 type Caddr_t = X__caddr_t /* types.h:115:19 */
   1753 
   1754 type Key_t = X__key_t /* types.h:121:17 */
   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 // Returned by `clock'.
   1777 type Clock_t = X__clock_t /* clock_t.h:7:19 */
   1778 
   1779 // bits/types.h -- definitions of __*_t types underlying *_t types.
   1780 //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
   1781 //    This file is part of the GNU C Library.
   1782 //
   1783 //    The GNU C Library is free software; you can redistribute it and/or
   1784 //    modify it under the terms of the GNU Lesser General Public
   1785 //    License as published by the Free Software Foundation; either
   1786 //    version 2.1 of the License, or (at your option) any later version.
   1787 //
   1788 //    The GNU C Library 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 GNU
   1791 //    Lesser General Public License for more details.
   1792 //
   1793 //    You should have received a copy of the GNU Lesser General Public
   1794 //    License along with the GNU C Library; if not, see
   1795 //    <https://www.gnu.org/licenses/>.
   1796 
   1797 // Never include this file directly; use <sys/types.h> instead.
   1798 
   1799 // Clock ID used in clock and timer functions.
   1800 type Clockid_t = X__clockid_t /* clockid_t.h:7:21 */
   1801 
   1802 // bits/types.h -- definitions of __*_t types underlying *_t types.
   1803 //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
   1804 //    This file is part of the GNU C Library.
   1805 //
   1806 //    The GNU C Library is free software; you can redistribute it and/or
   1807 //    modify it under the terms of the GNU Lesser General Public
   1808 //    License as published by the Free Software Foundation; either
   1809 //    version 2.1 of the License, or (at your option) any later version.
   1810 //
   1811 //    The GNU C Library is distributed in the hope that it will be useful,
   1812 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1813 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1814 //    Lesser General Public License for more details.
   1815 //
   1816 //    You should have received a copy of the GNU Lesser General Public
   1817 //    License along with the GNU C Library; if not, see
   1818 //    <https://www.gnu.org/licenses/>.
   1819 
   1820 // Never include this file directly; use <sys/types.h> instead.
   1821 
   1822 // Returned by `time'.
   1823 type Time_t = X__time_t /* time_t.h:7:18 */
   1824 
   1825 // bits/types.h -- definitions of __*_t types underlying *_t types.
   1826 //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
   1827 //    This file is part of the GNU C Library.
   1828 //
   1829 //    The GNU C Library is free software; you can redistribute it and/or
   1830 //    modify it under the terms of the GNU Lesser General Public
   1831 //    License as published by the Free Software Foundation; either
   1832 //    version 2.1 of the License, or (at your option) any later version.
   1833 //
   1834 //    The GNU C Library is distributed in the hope that it will be useful,
   1835 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1836 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1837 //    Lesser General Public License for more details.
   1838 //
   1839 //    You should have received a copy of the GNU Lesser General Public
   1840 //    License along with the GNU C Library; if not, see
   1841 //    <https://www.gnu.org/licenses/>.
   1842 
   1843 // Never include this file directly; use <sys/types.h> instead.
   1844 
   1845 // Timer ID returned by `timer_create'.
   1846 type Timer_t = X__timer_t /* timer_t.h:7:19 */
   1847 
   1848 // Copyright (C) 1989-2020 Free Software Foundation, Inc.
   1849 //
   1850 // This file is part of GCC.
   1851 //
   1852 // GCC is free software; you can redistribute it and/or modify
   1853 // it under the terms of the GNU General Public License as published by
   1854 // the Free Software Foundation; either version 3, or (at your option)
   1855 // any later version.
   1856 //
   1857 // GCC is distributed in the hope that it will be useful,
   1858 // but WITHOUT ANY WARRANTY; without even the implied warranty of
   1859 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   1860 // GNU General Public License for more details.
   1861 //
   1862 // Under Section 7 of GPL version 3, you are granted additional
   1863 // permissions described in the GCC Runtime Library Exception, version
   1864 // 3.1, as published by the Free Software Foundation.
   1865 //
   1866 // You should have received a copy of the GNU General Public License and
   1867 // a copy of the GCC Runtime Library Exception along with this program;
   1868 // see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
   1869 // <http://www.gnu.org/licenses/>.
   1870 
   1871 // ISO C Standard:  7.17  Common definitions  <stddef.h>
   1872 
   1873 // Any one of these symbols __need_* means that GNU libc
   1874 //    wants us just to define one data type.  So don't define
   1875 //    the symbols that indicate this file's entire job has been done.
   1876 
   1877 // This avoids lossage on SunOS but only if stdtypes.h comes first.
   1878 //    There's no way to win with the other order!  Sun lossage.
   1879 
   1880 // Sequent's header files use _PTRDIFF_T_ in some conflicting way.
   1881 //    Just ignore it.
   1882 
   1883 // On VxWorks, <type/vxTypesBase.h> may have defined macros like
   1884 //    _TYPE_size_t which will typedef size_t.  fixincludes patched the
   1885 //    vxTypesBase.h so that this macro is only defined if _GCC_SIZE_T is
   1886 //    not defined, and so that defining this macro defines _GCC_SIZE_T.
   1887 //    If we find that the macros are still defined at this point, we must
   1888 //    invoke them so that the type is defined as expected.
   1889 
   1890 // In case nobody has defined these types, but we aren't running under
   1891 //    GCC 2.00, make sure that __PTRDIFF_TYPE__, __SIZE_TYPE__, and
   1892 //    __WCHAR_TYPE__ have reasonable values.  This can happen if the
   1893 //    parts of GCC is compiled by an older compiler, that actually
   1894 //    include gstddef.h, such as collect2.
   1895 
   1896 // Signed type of difference of two pointers.
   1897 
   1898 // Define this type if we are doing the whole job,
   1899 //    or if we want this type in particular.
   1900 
   1901 // Unsigned type of `sizeof' something.
   1902 
   1903 // Define this type if we are doing the whole job,
   1904 //    or if we want this type in particular.
   1905 
   1906 // Wide character type.
   1907 //    Locale-writers should change this as necessary to
   1908 //    be big enough to hold unique values not between 0 and 127,
   1909 //    and not (wchar_t) -1, for each defined multibyte character.
   1910 
   1911 // Define this type if we are doing the whole job,
   1912 //    or if we want this type in particular.
   1913 
   1914 // A null pointer constant.
   1915 
   1916 // Old compatibility names for C types.
   1917 type Ulong = uint64  /* types.h:148:27 */
   1918 type Ushort = uint16 /* types.h:149:28 */
   1919 type Uint = uint32   /* types.h:150:22 */
   1920 
   1921 // These size-specific names are used by some of the inet code.
   1922 
   1923 // Define intN_t types.
   1924 //    Copyright (C) 2017-2020 Free Software Foundation, Inc.
   1925 //    This file is part of the GNU C Library.
   1926 //
   1927 //    The GNU C Library is free software; you can redistribute it and/or
   1928 //    modify it under the terms of the GNU Lesser General Public
   1929 //    License as published by the Free Software Foundation; either
   1930 //    version 2.1 of the License, or (at your option) any later version.
   1931 //
   1932 //    The GNU C Library is distributed in the hope that it will be useful,
   1933 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1934 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1935 //    Lesser General Public License for more details.
   1936 //
   1937 //    You should have received a copy of the GNU Lesser General Public
   1938 //    License along with the GNU C Library; if not, see
   1939 //    <https://www.gnu.org/licenses/>.
   1940 
   1941 // bits/types.h -- definitions of __*_t types underlying *_t types.
   1942 //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
   1943 //    This file is part of the GNU C Library.
   1944 //
   1945 //    The GNU C Library is free software; you can redistribute it and/or
   1946 //    modify it under the terms of the GNU Lesser General Public
   1947 //    License as published by the Free Software Foundation; either
   1948 //    version 2.1 of the License, or (at your option) any later version.
   1949 //
   1950 //    The GNU C Library is distributed in the hope that it will be useful,
   1951 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1952 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1953 //    Lesser General Public License for more details.
   1954 //
   1955 //    You should have received a copy of the GNU Lesser General Public
   1956 //    License along with the GNU C Library; if not, see
   1957 //    <https://www.gnu.org/licenses/>.
   1958 
   1959 // Never include this file directly; use <sys/types.h> instead.
   1960 
   1961 type Int8_t = X__int8_t   /* stdint-intn.h:24:18 */
   1962 type Int16_t = X__int16_t /* stdint-intn.h:25:19 */
   1963 type Int32_t = X__int32_t /* stdint-intn.h:26:19 */
   1964 type Int64_t = X__int64_t /* stdint-intn.h:27:19 */
   1965 
   1966 // These were defined by ISO C without the first `_'.
   1967 type U_int8_t = X__uint8_t   /* types.h:158:19 */
   1968 type U_int16_t = X__uint16_t /* types.h:159:20 */
   1969 type U_int32_t = X__uint32_t /* types.h:160:20 */
   1970 type U_int64_t = X__uint64_t /* types.h:161:20 */
   1971 
   1972 type Register_t = int32 /* types.h:164:13 */
   1973 
   1974 // It also defines `fd_set' and the FD_* macros for `select'.
   1975 // `fd_set' type and related macros, and `select'/`pselect' declarations.
   1976 //    Copyright (C) 1996-2020 Free Software Foundation, Inc.
   1977 //    This file is part of the GNU C Library.
   1978 //
   1979 //    The GNU C Library is free software; you can redistribute it and/or
   1980 //    modify it under the terms of the GNU Lesser General Public
   1981 //    License as published by the Free Software Foundation; either
   1982 //    version 2.1 of the License, or (at your option) any later version.
   1983 //
   1984 //    The GNU C Library is distributed in the hope that it will be useful,
   1985 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1986 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1987 //    Lesser General Public License for more details.
   1988 //
   1989 //    You should have received a copy of the GNU Lesser General Public
   1990 //    License along with the GNU C Library; if not, see
   1991 //    <https://www.gnu.org/licenses/>.
   1992 
   1993 //	POSIX 1003.1g: 6.2 Select from File Descriptor Sets <sys/select.h>
   1994 
   1995 // Copyright (C) 1991-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 // Get definition of needed basic types.
   2013 // bits/types.h -- definitions of __*_t types underlying *_t types.
   2014 //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
   2015 //    This file is part of the GNU C Library.
   2016 //
   2017 //    The GNU C Library is free software; you can redistribute it and/or
   2018 //    modify it under the terms of the GNU Lesser General Public
   2019 //    License as published by the Free Software Foundation; either
   2020 //    version 2.1 of the License, or (at your option) any later version.
   2021 //
   2022 //    The GNU C Library is distributed in the hope that it will be useful,
   2023 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   2024 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   2025 //    Lesser General Public License for more details.
   2026 //
   2027 //    You should have received a copy of the GNU Lesser General Public
   2028 //    License along with the GNU C Library; if not, see
   2029 //    <https://www.gnu.org/licenses/>.
   2030 
   2031 // Never include this file directly; use <sys/types.h> instead.
   2032 
   2033 // Get __FD_* definitions.
   2034 // Copyright (C) 1997-2020 Free Software Foundation, Inc.
   2035 //    This file is part of the GNU C Library.
   2036 //
   2037 //    The GNU C Library is free software; you can redistribute it and/or
   2038 //    modify it under the terms of the GNU Lesser General Public
   2039 //    License as published by the Free Software Foundation; either
   2040 //    version 2.1 of the License, or (at your option) any later version.
   2041 //
   2042 //    The GNU C Library is distributed in the hope that it will be useful,
   2043 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   2044 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   2045 //    Lesser General Public License for more details.
   2046 //
   2047 //    You should have received a copy of the GNU Lesser General Public
   2048 //    License along with the GNU C Library; if not, see
   2049 //    <https://www.gnu.org/licenses/>.
   2050 
   2051 // We don't use `memset' because this would require a prototype and
   2052 //    the array isn't too big.
   2053 
   2054 // Get sigset_t.
   2055 
   2056 type X__sigset_t = struct{ F__val [16]uint64 } /* __sigset_t.h:8:3 */
   2057 
   2058 // A set of signals to be blocked, unblocked, or waited for.
   2059 type Sigset_t = X__sigset_t /* sigset_t.h:7:20 */
   2060 
   2061 // Get definition of timer specification structures.
   2062 
   2063 // bits/types.h -- definitions of __*_t types underlying *_t types.
   2064 //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
   2065 //    This file is part of the GNU C Library.
   2066 //
   2067 //    The GNU C Library is free software; you can redistribute it and/or
   2068 //    modify it under the terms of the GNU Lesser General Public
   2069 //    License as published by the Free Software Foundation; either
   2070 //    version 2.1 of the License, or (at your option) any later version.
   2071 //
   2072 //    The GNU C Library is distributed in the hope that it will be useful,
   2073 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   2074 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   2075 //    Lesser General Public License for more details.
   2076 //
   2077 //    You should have received a copy of the GNU Lesser General Public
   2078 //    License along with the GNU C Library; if not, see
   2079 //    <https://www.gnu.org/licenses/>.
   2080 
   2081 // Never include this file directly; use <sys/types.h> instead.
   2082 
   2083 // A time value that is accurate to the nearest
   2084 //
   2085 //	microsecond but also has a range of years.
   2086 type Timeval = struct {
   2087 	Ftv_sec  X__time_t
   2088 	Ftv_usec X__suseconds_t
   2089 } /* struct_timeval.h:8:1 */
   2090 
   2091 // NB: Include guard matches what <linux/time.h> uses.
   2092 
   2093 // bits/types.h -- definitions of __*_t types underlying *_t types.
   2094 //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
   2095 //    This file is part of the GNU C Library.
   2096 //
   2097 //    The GNU C Library is free software; you can redistribute it and/or
   2098 //    modify it under the terms of the GNU Lesser General Public
   2099 //    License as published by the Free Software Foundation; either
   2100 //    version 2.1 of the License, or (at your option) any later version.
   2101 //
   2102 //    The GNU C Library is distributed in the hope that it will be useful,
   2103 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   2104 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   2105 //    Lesser General Public License for more details.
   2106 //
   2107 //    You should have received a copy of the GNU Lesser General Public
   2108 //    License along with the GNU C Library; if not, see
   2109 //    <https://www.gnu.org/licenses/>.
   2110 
   2111 // Never include this file directly; use <sys/types.h> instead.
   2112 
   2113 // Endian macros for string.h functions
   2114 //    Copyright (C) 1992-2020 Free Software Foundation, Inc.
   2115 //    This file is part of the GNU C Library.
   2116 //
   2117 //    The GNU C Library is free software; you can redistribute it and/or
   2118 //    modify it under the terms of the GNU Lesser General Public
   2119 //    License as published by the Free Software Foundation; either
   2120 //    version 2.1 of the License, or (at your option) any later version.
   2121 //
   2122 //    The GNU C Library is distributed in the hope that it will be useful,
   2123 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   2124 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   2125 //    Lesser General Public License for more details.
   2126 //
   2127 //    You should have received a copy of the GNU Lesser General Public
   2128 //    License along with the GNU C Library; if not, see
   2129 //    <http://www.gnu.org/licenses/>.
   2130 
   2131 // POSIX.1b structure for a time value.  This is like a `struct timeval' but
   2132 //
   2133 //	has nanoseconds instead of microseconds.
   2134 type Timespec = struct {
   2135 	Ftv_sec  X__time_t
   2136 	Ftv_nsec X__syscall_slong_t
   2137 } /* struct_timespec.h:10:1 */
   2138 
   2139 type Suseconds_t = X__suseconds_t /* select.h:43:23 */
   2140 
   2141 // The fd_set member is required to be an array of longs.
   2142 type X__fd_mask = int64 /* select.h:49:18 */
   2143 
   2144 // Some versions of <linux/posix_types.h> define this macros.
   2145 // It's easier to assume 8-bit bytes than to get CHAR_BIT.
   2146 
   2147 // fd_set for select and pselect.
   2148 type Fd_set = struct{ F__fds_bits [16]X__fd_mask } /* select.h:70:5 */
   2149 
   2150 // Maximum number of file descriptors in `fd_set'.
   2151 
   2152 // Sometimes the fd_set member is assumed to have this type.
   2153 type Fd_mask = X__fd_mask /* select.h:77:19 */
   2154 
   2155 // Define some inlines helping to catch common problems.
   2156 
   2157 type Blksize_t = X__blksize_t /* types.h:185:21 */
   2158 
   2159 // Types from the Large File Support interface.
   2160 type Blkcnt_t = X__blkcnt64_t     /* types.h:205:22 */ // Type to count number of disk blocks.
   2161 type Fsblkcnt_t = X__fsblkcnt64_t /* types.h:209:24 */ // Type to count file system blocks.
   2162 type Fsfilcnt_t = X__fsfilcnt64_t /* types.h:213:24 */ // Type to count file system inodes.
   2163 
   2164 // Now add the thread types.
   2165 // Declaration of common pthread types for all architectures.
   2166 //    Copyright (C) 2017-2020 Free Software Foundation, Inc.
   2167 //    This file is part of the GNU C Library.
   2168 //
   2169 //    The GNU C Library is free software; you can redistribute it and/or
   2170 //    modify it under the terms of the GNU Lesser General Public
   2171 //    License as published by the Free Software Foundation; either
   2172 //    version 2.1 of the License, or (at your option) any later version.
   2173 //
   2174 //    The GNU C Library is distributed in the hope that it will be useful,
   2175 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   2176 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   2177 //    Lesser General Public License for more details.
   2178 //
   2179 //    You should have received a copy of the GNU Lesser General Public
   2180 //    License along with the GNU C Library; if not, see
   2181 //    <https://www.gnu.org/licenses/>.
   2182 
   2183 // For internal mutex and condition variable definitions.
   2184 // Common threading primitives definitions for both POSIX and C11.
   2185 //    Copyright (C) 2017-2020 Free Software Foundation, Inc.
   2186 //    This file is part of the GNU C Library.
   2187 //
   2188 //    The GNU C Library is free software; you can redistribute it and/or
   2189 //    modify it under the terms of the GNU Lesser General Public
   2190 //    License as published by the Free Software Foundation; either
   2191 //    version 2.1 of the License, or (at your option) any later version.
   2192 //
   2193 //    The GNU C Library is distributed in the hope that it will be useful,
   2194 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   2195 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   2196 //    Lesser General Public License for more details.
   2197 //
   2198 //    You should have received a copy of the GNU Lesser General Public
   2199 //    License along with the GNU C Library; if not, see
   2200 //    <https://www.gnu.org/licenses/>.
   2201 
   2202 // Arch-specific definitions.  Each architecture must define the following
   2203 //    macros to define the expected sizes of pthread data types:
   2204 //
   2205 //    __SIZEOF_PTHREAD_ATTR_T        - size of pthread_attr_t.
   2206 //    __SIZEOF_PTHREAD_MUTEX_T       - size of pthread_mutex_t.
   2207 //    __SIZEOF_PTHREAD_MUTEXATTR_T   - size of pthread_mutexattr_t.
   2208 //    __SIZEOF_PTHREAD_COND_T        - size of pthread_cond_t.
   2209 //    __SIZEOF_PTHREAD_CONDATTR_T    - size of pthread_condattr_t.
   2210 //    __SIZEOF_PTHREAD_RWLOCK_T      - size of pthread_rwlock_t.
   2211 //    __SIZEOF_PTHREAD_RWLOCKATTR_T  - size of pthread_rwlockattr_t.
   2212 //    __SIZEOF_PTHREAD_BARRIER_T     - size of pthread_barrier_t.
   2213 //    __SIZEOF_PTHREAD_BARRIERATTR_T - size of pthread_barrierattr_t.
   2214 //
   2215 //    The additional macro defines any constraint for the lock alignment
   2216 //    inside the thread structures:
   2217 //
   2218 //    __LOCK_ALIGNMENT - for internal lock/futex usage.
   2219 //
   2220 //    Same idea but for the once locking primitive:
   2221 //
   2222 //    __ONCE_ALIGNMENT - for pthread_once_t/once_flag definition.
   2223 
   2224 // Copyright (C) 2002-2020 Free Software Foundation, Inc.
   2225 //
   2226 //    This file is part of the GNU C Library.
   2227 //
   2228 //    The GNU C Library is free software; you can redistribute it and/or
   2229 //    modify it under the terms of the GNU Lesser General Public
   2230 //    License as published by the Free Software Foundation; either
   2231 //    version 2.1 of the License, or (at your option) any later version.
   2232 //
   2233 //    The GNU C Library is distributed in the hope that it will be useful,
   2234 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   2235 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   2236 //    Lesser General Public License for more details.
   2237 //
   2238 //    You should have received a copy of the GNU Lesser General Public
   2239 //    License along with the GNU C Library; if not, see
   2240 //    <https://www.gnu.org/licenses/>.
   2241 
   2242 // Endian macros for string.h functions
   2243 //    Copyright (C) 1992-2020 Free Software Foundation, Inc.
   2244 //    This file is part of the GNU C Library.
   2245 //
   2246 //    The GNU C Library is free software; you can redistribute it and/or
   2247 //    modify it under the terms of the GNU Lesser General Public
   2248 //    License as published by the Free Software Foundation; either
   2249 //    version 2.1 of the License, or (at your option) any later version.
   2250 //
   2251 //    The GNU C Library is distributed in the hope that it will be useful,
   2252 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   2253 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   2254 //    Lesser General Public License for more details.
   2255 //
   2256 //    You should have received a copy of the GNU Lesser General Public
   2257 //    License along with the GNU C Library; if not, see
   2258 //    <http://www.gnu.org/licenses/>.
   2259 
   2260 // Common definition of pthread_mutex_t.
   2261 
   2262 type X__pthread_internal_list = struct {
   2263 	F__prev uintptr
   2264 	F__next uintptr
   2265 } /* thread-shared-types.h:49:9 */
   2266 
   2267 // Type to count file system inodes.
   2268 
   2269 // Now add the thread types.
   2270 // Declaration of common pthread types for all architectures.
   2271 //    Copyright (C) 2017-2020 Free Software Foundation, Inc.
   2272 //    This file is part of the GNU C Library.
   2273 //
   2274 //    The GNU C Library is free software; you can redistribute it and/or
   2275 //    modify it under the terms of the GNU Lesser General Public
   2276 //    License as published by the Free Software Foundation; either
   2277 //    version 2.1 of the License, or (at your option) any later version.
   2278 //
   2279 //    The GNU C Library is distributed in the hope that it will be useful,
   2280 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   2281 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   2282 //    Lesser General Public License for more details.
   2283 //
   2284 //    You should have received a copy of the GNU Lesser General Public
   2285 //    License along with the GNU C Library; if not, see
   2286 //    <https://www.gnu.org/licenses/>.
   2287 
   2288 // For internal mutex and condition variable definitions.
   2289 // Common threading primitives definitions for both POSIX and C11.
   2290 //    Copyright (C) 2017-2020 Free Software Foundation, Inc.
   2291 //    This file is part of the GNU C Library.
   2292 //
   2293 //    The GNU C Library is free software; you can redistribute it and/or
   2294 //    modify it under the terms of the GNU Lesser General Public
   2295 //    License as published by the Free Software Foundation; either
   2296 //    version 2.1 of the License, or (at your option) any later version.
   2297 //
   2298 //    The GNU C Library is distributed in the hope that it will be useful,
   2299 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   2300 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   2301 //    Lesser General Public License for more details.
   2302 //
   2303 //    You should have received a copy of the GNU Lesser General Public
   2304 //    License along with the GNU C Library; if not, see
   2305 //    <https://www.gnu.org/licenses/>.
   2306 
   2307 // Arch-specific definitions.  Each architecture must define the following
   2308 //    macros to define the expected sizes of pthread data types:
   2309 //
   2310 //    __SIZEOF_PTHREAD_ATTR_T        - size of pthread_attr_t.
   2311 //    __SIZEOF_PTHREAD_MUTEX_T       - size of pthread_mutex_t.
   2312 //    __SIZEOF_PTHREAD_MUTEXATTR_T   - size of pthread_mutexattr_t.
   2313 //    __SIZEOF_PTHREAD_COND_T        - size of pthread_cond_t.
   2314 //    __SIZEOF_PTHREAD_CONDATTR_T    - size of pthread_condattr_t.
   2315 //    __SIZEOF_PTHREAD_RWLOCK_T      - size of pthread_rwlock_t.
   2316 //    __SIZEOF_PTHREAD_RWLOCKATTR_T  - size of pthread_rwlockattr_t.
   2317 //    __SIZEOF_PTHREAD_BARRIER_T     - size of pthread_barrier_t.
   2318 //    __SIZEOF_PTHREAD_BARRIERATTR_T - size of pthread_barrierattr_t.
   2319 //
   2320 //    The additional macro defines any constraint for the lock alignment
   2321 //    inside the thread structures:
   2322 //
   2323 //    __LOCK_ALIGNMENT - for internal lock/futex usage.
   2324 //
   2325 //    Same idea but for the once locking primitive:
   2326 //
   2327 //    __ONCE_ALIGNMENT - for pthread_once_t/once_flag definition.
   2328 
   2329 // Copyright (C) 2002-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 //    <https://www.gnu.org/licenses/>.
   2346 
   2347 // Endian macros for string.h functions
   2348 //    Copyright (C) 1992-2020 Free Software Foundation, Inc.
   2349 //    This file is part of the GNU C Library.
   2350 //
   2351 //    The GNU C Library is free software; you can redistribute it and/or
   2352 //    modify it under the terms of the GNU Lesser General Public
   2353 //    License as published by the Free Software Foundation; either
   2354 //    version 2.1 of the License, or (at your option) any later version.
   2355 //
   2356 //    The GNU C Library is distributed in the hope that it will be useful,
   2357 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   2358 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   2359 //    Lesser General Public License for more details.
   2360 //
   2361 //    You should have received a copy of the GNU Lesser General Public
   2362 //    License along with the GNU C Library; if not, see
   2363 //    <http://www.gnu.org/licenses/>.
   2364 
   2365 // Common definition of pthread_mutex_t.
   2366 
   2367 type X__pthread_list_t = X__pthread_internal_list /* thread-shared-types.h:53:3 */
   2368 
   2369 type X__pthread_internal_slist = struct{ F__next uintptr } /* thread-shared-types.h:55:9 */
   2370 
   2371 type X__pthread_slist_t = X__pthread_internal_slist /* thread-shared-types.h:58:3 */
   2372 
   2373 // Arch-specific mutex definitions.  A generic implementation is provided
   2374 //    by sysdeps/nptl/bits/struct_mutex.h.  If required, an architecture
   2375 //    can override it by defining:
   2376 //
   2377 //    1. struct __pthread_mutex_s (used on both pthread_mutex_t and mtx_t
   2378 //       definition).  It should contains at least the internal members
   2379 //       defined in the generic version.
   2380 //
   2381 //    2. __LOCK_ALIGNMENT for any extra attribute for internal lock used with
   2382 //       atomic operations.
   2383 //
   2384 //    3. The macro __PTHREAD_MUTEX_INITIALIZER used for static initialization.
   2385 //       It should initialize the mutex internal flag.
   2386 
   2387 // Default mutex implementation struct definitions.
   2388 //    Copyright (C) 2019-2020 Free Software Foundation, Inc.
   2389 //    This file is part of the GNU C Library.
   2390 //
   2391 //    The GNU C Library is free software; you can redistribute it and/or
   2392 //    modify it under the terms of the GNU Lesser General Public
   2393 //    License as published by the Free Software Foundation; either
   2394 //    version 2.1 of the License, or (at your option) any later version.
   2395 //
   2396 //    The GNU C Library is distributed in the hope that it will be useful,
   2397 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   2398 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   2399 //    Lesser General Public License for more details.
   2400 //
   2401 //    You should have received a copy of the GNU Lesser General Public
   2402 //    License along with the GNU C Library; if not, see
   2403 //    <http://www.gnu.org/licenses/>.
   2404 
   2405 // Generic struct for both POSIX and C11 mutexes.  New ports are expected
   2406 //    to use the default layout, however architecture can redefine it to
   2407 //    add arch-specific extension (such as lock-elision).  The struct have
   2408 //    a size of 32 bytes on LP32 and 40 bytes on LP64 architectures.
   2409 
   2410 type X__pthread_mutex_s = struct {
   2411 	F__lock   int32
   2412 	F__count  uint32
   2413 	F__owner  int32
   2414 	F__nusers uint32
   2415 	F__kind   int32
   2416 	F__spins  int32
   2417 	F__list   X__pthread_list_t
   2418 } /* struct_mutex.h:27:1 */
   2419 
   2420 // Arch-sepecific read-write lock definitions.  A generic implementation is
   2421 //    provided by struct_rwlock.h.  If required, an architecture can override it
   2422 //    by defining:
   2423 //
   2424 //    1. struct __pthread_rwlock_arch_t (used on pthread_rwlock_t definition).
   2425 //       It should contain at least the internal members defined in the
   2426 //       generic version.
   2427 //
   2428 //    2. The macro __PTHREAD_RWLOCK_INITIALIZER used for static initialization.
   2429 //       It should initialize the rwlock internal type.
   2430 
   2431 // AArch64 internal rwlock struct definitions.
   2432 //    Copyright (C) 2019-2020 Free Software Foundation, Inc.
   2433 //
   2434 //    This file is part of the GNU C Library.
   2435 //
   2436 //    The GNU C Library is free software; you can redistribute it and/or
   2437 //    modify it under the terms of the GNU Lesser General Public
   2438 //    License as published by the Free Software Foundation; either
   2439 //    version 2.1 of the License, or (at your option) any later version.
   2440 //
   2441 //    The GNU C Library is distributed in the hope that it will be useful,
   2442 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   2443 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   2444 //    Lesser General Public License for more details.
   2445 //
   2446 //    You should have received a copy of the GNU Lesser General Public
   2447 //    License along with the GNU C Library; if not, see
   2448 //    <http://www.gnu.org/licenses/>.
   2449 
   2450 type X__pthread_rwlock_arch_t = struct {
   2451 	F__readers       uint32
   2452 	F__writers       uint32
   2453 	F__wrphase_futex uint32
   2454 	F__writers_futex uint32
   2455 	F__pad3          uint32
   2456 	F__pad4          uint32
   2457 	F__cur_writer    int32
   2458 	F__shared        int32
   2459 	F__pad1          uint64
   2460 	F__pad2          uint64
   2461 	F__flags         uint32
   2462 	F__ccgo_pad1     [4]byte
   2463 } /* struct_rwlock.h:23:1 */
   2464 
   2465 // Common definition of pthread_cond_t.
   2466 
   2467 type X__pthread_cond_s = struct {
   2468 	F__0            struct{ F__wseq uint64 }
   2469 	F__8            struct{ F__g1_start uint64 }
   2470 	F__g_refs       [2]uint32
   2471 	F__g_size       [2]uint32
   2472 	F__g1_orig_size uint32
   2473 	F__wrefs        uint32
   2474 	F__g_signals    [2]uint32
   2475 } /* thread-shared-types.h:92:1 */
   2476 
   2477 // Thread identifiers.  The structure of the attribute type is not
   2478 //
   2479 //	exposed on purpose.
   2480 type Pthread_t = uint64 /* pthreadtypes.h:27:27 */
   2481 
   2482 // Data structures for mutex handling.  The structure of the attribute
   2483 //
   2484 //	type is not exposed on purpose.
   2485 type Pthread_mutexattr_t = struct {
   2486 	F__ccgo_pad1 [0]uint32
   2487 	F__size      [8]uint8
   2488 } /* pthreadtypes.h:36:3 */
   2489 
   2490 // Data structure for condition variable handling.  The structure of
   2491 //
   2492 //	the attribute type is not exposed on purpose.
   2493 type Pthread_condattr_t = struct {
   2494 	F__ccgo_pad1 [0]uint32
   2495 	F__size      [8]uint8
   2496 } /* pthreadtypes.h:45:3 */
   2497 
   2498 // Keys for thread-specific data
   2499 type Pthread_key_t = uint32 /* pthreadtypes.h:49:22 */
   2500 
   2501 // Once-only execution
   2502 type Pthread_once_t = int32 /* pthreadtypes.h:53:30 */
   2503 
   2504 type Pthread_attr_t1 = struct {
   2505 	F__ccgo_pad1 [0]uint64
   2506 	F__size      [64]uint8
   2507 } /* pthreadtypes.h:56:1 */
   2508 
   2509 type Pthread_attr_t = Pthread_attr_t1 /* pthreadtypes.h:62:30 */
   2510 
   2511 type Pthread_mutex_t = struct {
   2512 	F__data      X__pthread_mutex_s
   2513 	F__ccgo_pad1 [8]byte
   2514 } /* pthreadtypes.h:72:3 */
   2515 
   2516 type Pthread_cond_t = struct{ F__data X__pthread_cond_s } /* pthreadtypes.h:80:3 */
   2517 
   2518 // Data structure for reader-writer lock variable handling.  The
   2519 //
   2520 //	structure of the attribute type is deliberately not exposed.
   2521 type Pthread_rwlock_t = struct{ F__data X__pthread_rwlock_arch_t } /* pthreadtypes.h:91:3 */
   2522 
   2523 type Pthread_rwlockattr_t = struct {
   2524 	F__ccgo_pad1 [0]uint64
   2525 	F__size      [8]uint8
   2526 } /* pthreadtypes.h:97:3 */
   2527 
   2528 // POSIX spinlock data type.
   2529 type Pthread_spinlock_t = int32 /* pthreadtypes.h:103:22 */
   2530 
   2531 // POSIX barriers data type.  The structure of the type is
   2532 //
   2533 //	deliberately not exposed.
   2534 type Pthread_barrier_t = struct {
   2535 	F__ccgo_pad1 [0]uint64
   2536 	F__size      [32]uint8
   2537 } /* pthreadtypes.h:112:3 */
   2538 
   2539 type Pthread_barrierattr_t = struct {
   2540 	F__ccgo_pad1 [0]uint32
   2541 	F__size      [8]uint8
   2542 } /* pthreadtypes.h:118:3 */
   2543 
   2544 // Type for length arguments in socket calls.
   2545 type Socklen_t = X__socklen_t /* socket.h:33:21 */
   2546 
   2547 // Protocol families.
   2548 
   2549 // Address families.
   2550 
   2551 // Socket level values.  Others are defined in the appropriate headers.
   2552 //
   2553 //    XXX These definitions also should go into the appropriate headers as
   2554 //    far as they are available.
   2555 
   2556 // Maximum queue length specifiable by listen.
   2557 
   2558 // Get the definition of the macro to define the common sockaddr members.
   2559 // Definition of struct sockaddr_* common members and sizes, generic version.
   2560 //    Copyright (C) 1995-2020 Free Software Foundation, Inc.
   2561 //    This file is part of the GNU C Library.
   2562 //
   2563 //    The GNU C Library is free software; you can redistribute it and/or
   2564 //    modify it under the terms of the GNU Lesser General Public
   2565 //    License as published by the Free Software Foundation; either
   2566 //    version 2.1 of the License, or (at your option) any later version.
   2567 //
   2568 //    The GNU C Library is distributed in the hope that it will be useful,
   2569 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   2570 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   2571 //    Lesser General Public License for more details.
   2572 //
   2573 //    You should have received a copy of the GNU Lesser General Public
   2574 //    License along with the GNU C Library; if not, see
   2575 //    <https://www.gnu.org/licenses/>.
   2576 
   2577 // Never include this file directly; use <sys/socket.h> instead.
   2578 
   2579 // POSIX.1g specifies this type name for the `sa_family' member.
   2580 type Sa_family_t = uint16 /* sockaddr.h:28:28 */
   2581 
   2582 // This macro is used to declare the initial common members
   2583 //    of the data types used for socket addresses, `struct sockaddr',
   2584 //    `struct sockaddr_in', `struct sockaddr_un', etc.
   2585 
   2586 // Size of struct sockaddr_storage.
   2587 
   2588 // Structure describing a generic socket address.
   2589 type Sockaddr = struct {
   2590 	Fsa_family Sa_family_t
   2591 	Fsa_data   [14]uint8
   2592 } /* socket.h:178:1 */
   2593 
   2594 // Structure large enough to hold any socket address (with the historical
   2595 //    exception of AF_UNIX).
   2596 
   2597 type Sockaddr_storage = struct {
   2598 	Fss_family    Sa_family_t
   2599 	F__ss_padding [118]uint8
   2600 	F__ss_align   uint64
   2601 } /* socket.h:191:1 */
   2602 
   2603 // Structure describing messages sent by
   2604 //
   2605 //	`sendmsg' and received by `recvmsg'.
   2606 type Msghdr = struct {
   2607 	Fmsg_name       uintptr
   2608 	Fmsg_namelen    Socklen_t
   2609 	F__ccgo_pad1    [4]byte
   2610 	Fmsg_iov        uintptr
   2611 	Fmsg_iovlen     Size_t
   2612 	Fmsg_control    uintptr
   2613 	Fmsg_controllen Size_t
   2614 	Fmsg_flags      int32
   2615 	F__ccgo_pad2    [4]byte
   2616 } /* socket.h:257:1 */
   2617 
   2618 // Structure used for storage of ancillary data object information.
   2619 type Cmsghdr = struct {
   2620 	F__ccgo_pad1 [0]uint64
   2621 	Fcmsg_len    Size_t
   2622 	Fcmsg_level  int32
   2623 	Fcmsg_type   int32
   2624 } /* socket.h:275:1 */
   2625 
   2626 // SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note
   2627 
   2628 // SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note
   2629 
   2630 // SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note
   2631 
   2632 // This allows for 1024 file descriptors: if NR_OPEN is ever grown
   2633 // beyond that you'll have to change this too. But 1024 fd's seem to be
   2634 // enough even for such "real" unices like OSF/1, so hopefully this is
   2635 // one limit that doesn't have to be changed [again].
   2636 //
   2637 // Note that POSIX wants the FD_CLEAR(fd,fdsetp) defines to be in
   2638 // <sys/time.h> (and thus <linux/time.h>) - but this is a more logical
   2639 // place for them. Solved by having dummy defines in <sys/time.h>.
   2640 
   2641 // This macro may have been defined in <gnu/types.h>. But we always
   2642 // use the one here.
   2643 
   2644 type X__kernel_fd_set = struct{ Ffds_bits [16]uint64 } /* posix_types.h:27:3 */
   2645 
   2646 // Type of a signal handler.
   2647 type X__kernel_sighandler_t = uintptr /* posix_types.h:30:14 */
   2648 
   2649 // Type of a SYSV IPC key.
   2650 type X__kernel_key_t = int32 /* posix_types.h:33:13 */
   2651 type X__kernel_mqd_t = int32 /* posix_types.h:34:13 */
   2652 
   2653 // SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note
   2654 
   2655 type X__kernel_old_uid_t = uint16 /* posix_types.h:5:24 */
   2656 type X__kernel_old_gid_t = uint16 /* posix_types.h:6:24 */
   2657 
   2658 // SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note
   2659 
   2660 // SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note
   2661 // Copyright (C) 2012 ARM Ltd.
   2662 //
   2663 // This program is free software; you can redistribute it and/or modify
   2664 // it under the terms of the GNU General Public License version 2 as
   2665 // published by the Free Software Foundation.
   2666 //
   2667 // This program is distributed in the hope that it will be useful,
   2668 // but WITHOUT ANY WARRANTY; without even the implied warranty of
   2669 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   2670 // GNU General Public License for more details.
   2671 //
   2672 // You should have received a copy of the GNU General Public License
   2673 // along with this program.  If not, see <http://www.gnu.org/licenses/>.
   2674 
   2675 // SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note
   2676 
   2677 // There seems to be no way of detecting this automatically from user
   2678 // space, so 64 bit architectures should override this in their
   2679 // bitsperlong.h. In particular, an architecture that supports
   2680 // both 32 and 64 bit user space must not rely on CONFIG_64BIT
   2681 // to decide it, but rather check a compiler provided macro.
   2682 
   2683 // This file is generally used by user-level software, so you need to
   2684 // be a little careful about namespace pollution etc.
   2685 //
   2686 // First the types that are often defined in different ways across
   2687 // architectures, so that you can override them.
   2688 
   2689 type X__kernel_long_t = int64   /* posix_types.h:15:15 */
   2690 type X__kernel_ulong_t = uint64 /* posix_types.h:16:23 */
   2691 
   2692 type X__kernel_ino_t = X__kernel_ulong_t /* posix_types.h:20:26 */
   2693 
   2694 type X__kernel_mode_t = uint32 /* posix_types.h:24:22 */
   2695 
   2696 type X__kernel_pid_t = int32 /* posix_types.h:28:14 */
   2697 
   2698 type X__kernel_ipc_pid_t = int32 /* posix_types.h:32:14 */
   2699 
   2700 type X__kernel_uid_t = uint32 /* posix_types.h:36:22 */
   2701 type X__kernel_gid_t = uint32 /* posix_types.h:37:22 */
   2702 
   2703 type X__kernel_suseconds_t = X__kernel_long_t /* posix_types.h:41:26 */
   2704 
   2705 type X__kernel_daddr_t = int32 /* posix_types.h:45:14 */
   2706 
   2707 type X__kernel_uid32_t = uint32 /* posix_types.h:49:22 */
   2708 type X__kernel_gid32_t = uint32 /* posix_types.h:50:22 */
   2709 
   2710 type X__kernel_old_dev_t = uint32 /* posix_types.h:59:22 */
   2711 
   2712 // Most 32 bit architectures use "unsigned int" size_t,
   2713 // and all 64 bit architectures use "unsigned long" size_t.
   2714 type X__kernel_size_t = X__kernel_ulong_t   /* posix_types.h:72:26 */
   2715 type X__kernel_ssize_t = X__kernel_long_t   /* posix_types.h:73:25 */
   2716 type X__kernel_ptrdiff_t = X__kernel_long_t /* posix_types.h:74:25 */
   2717 
   2718 type X__kernel_fsid_t = struct{ Fval [2]int32 } /* posix_types.h:81:3 */
   2719 
   2720 // anything below here should be completely generic
   2721 type X__kernel_off_t = X__kernel_long_t      /* posix_types.h:87:25 */
   2722 type X__kernel_loff_t = int64                /* posix_types.h:88:19 */
   2723 type X__kernel_old_time_t = X__kernel_long_t /* posix_types.h:89:25 */
   2724 type X__kernel_time_t = X__kernel_long_t     /* posix_types.h:90:25 */
   2725 type X__kernel_time64_t = int64              /* posix_types.h:91:19 */
   2726 type X__kernel_clock_t = X__kernel_long_t    /* posix_types.h:92:25 */
   2727 type X__kernel_timer_t = int32               /* posix_types.h:93:14 */
   2728 type X__kernel_clockid_t = int32             /* posix_types.h:94:14 */
   2729 type X__kernel_caddr_t = uintptr             /* posix_types.h:95:14 */
   2730 type X__kernel_uid16_t = uint16              /* posix_types.h:96:24 */
   2731 type X__kernel_gid16_t = uint16              /* posix_types.h:97:24 */
   2732 
   2733 // SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note
   2734 
   2735 // Socket-level I/O control calls.
   2736 
   2737 // For setsockopt(2)
   2738 
   2739 // Security levels - as per NRL IPv6 - don't actually do anything
   2740 
   2741 // Socket filtering
   2742 
   2743 // Instruct lower device to use last 4-bytes of skb data as FCS
   2744 
   2745 // on 64-bit and x32, avoid the ?: operator
   2746 
   2747 // Structure used to manipulate the SO_LINGER option.
   2748 type Linger = struct {
   2749 	Fl_onoff  int32
   2750 	Fl_linger int32
   2751 } /* socket.h:361:1 */
   2752 
   2753 // This is the 4.3 BSD `struct sockaddr' format, which is used as wire
   2754 //
   2755 //	format in the grotty old 4.3 `talk' protocol.
   2756 type Osockaddr = struct {
   2757 	Fsa_family uint16
   2758 	Fsa_data   [14]uint8
   2759 } /* struct_osockaddr.h:6:1 */
   2760 
   2761 // Define some macros helping to catch buffer overflows.
   2762 
   2763 // bits/types.h -- definitions of __*_t types underlying *_t types.
   2764 //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
   2765 //    This file is part of the GNU C Library.
   2766 //
   2767 //    The GNU C Library is free software; you can redistribute it and/or
   2768 //    modify it under the terms of the GNU Lesser General Public
   2769 //    License as published by the Free Software Foundation; either
   2770 //    version 2.1 of the License, or (at your option) any later version.
   2771 //
   2772 //    The GNU C Library is distributed in the hope that it will be useful,
   2773 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   2774 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   2775 //    Lesser General Public License for more details.
   2776 //
   2777 //    You should have received a copy of the GNU Lesser General Public
   2778 //    License along with the GNU C Library; if not, see
   2779 //    <https://www.gnu.org/licenses/>.
   2780 
   2781 // Never include this file directly; use <sys/types.h> instead.
   2782 
   2783 // Internet address.
   2784 type In_addr_t = Uint32_t                  /* in.h:30:18 */
   2785 type In_addr = struct{ Fs_addr In_addr_t } /* in.h:31:1 */
   2786 
   2787 // Get system-specific definitions.
   2788 // Copyright (C) 1991-2020 Free Software Foundation, Inc.
   2789 //    This file is part of the GNU C Library.
   2790 //
   2791 //    The GNU C Library is free software; you can redistribute it and/or
   2792 //    modify it under the terms of the GNU Lesser General Public
   2793 //    License as published by the Free Software Foundation; either
   2794 //    version 2.1 of the License, or (at your option) any later version.
   2795 //
   2796 //    The GNU C Library is distributed in the hope that it will be useful,
   2797 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   2798 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   2799 //    Lesser General Public License for more details.
   2800 //
   2801 //    You should have received a copy of the GNU Lesser General Public
   2802 //    License along with the GNU C Library; if not, see
   2803 //    <https://www.gnu.org/licenses/>.
   2804 
   2805 // Linux version.
   2806 
   2807 // If the application has already included linux/in6.h from a linux-based
   2808 //    kernel then we will not define the IPv6 IPPROTO_* defines, in6_addr (nor the
   2809 //    defines), sockaddr_in6, or ipv6_mreq. Same for in6_ptkinfo or ip6_mtuinfo
   2810 //    in linux/ipv6.h. The ABI used by the linux-kernel and glibc match exactly.
   2811 //    Neither the linux kernel nor glibc should break this ABI without coordination.
   2812 //    In upstream kernel 56c176c9 the _UAPI prefix was stripped so we need to check
   2813 //    for _LINUX_IN6_H and _IPV6_H now, and keep checking the old versions for
   2814 //    maximum backwards compatibility.
   2815 
   2816 // Options for use with `getsockopt' and `setsockopt' at the IP level.
   2817 //    The first word in the comment at the right is the data type used;
   2818 //    "bool" means a boolean value stored in an `int'.
   2819 // For BSD compatibility.
   2820 
   2821 // TProxy original addresses
   2822 
   2823 // IP_MTU_DISCOVER arguments.
   2824 // Always use interface mtu (ignores dst pmtu) but don't set DF flag.
   2825 //    Also incoming ICMP frag_needed notifications will be ignored on
   2826 //    this socket to prevent accepting spoofed ones.
   2827 // Like IP_PMTUDISC_INTERFACE but allow packets to be fragmented.
   2828 
   2829 // To select the IP level.
   2830 
   2831 // Structure used to describe IP options for IP_OPTIONS and IP_RETOPTS.
   2832 //
   2833 //	The `ip_dst' field is used for the first-hop gateway when using a
   2834 //	source route (this gets put into the header proper).
   2835 type Ip_opts = struct {
   2836 	Fip_dst  struct{ Fs_addr In_addr_t }
   2837 	Fip_opts [40]uint8
   2838 } /* in.h:142:1 */
   2839 
   2840 // Like `struct ip_mreq' but including interface specification by index.
   2841 type Ip_mreqn = struct {
   2842 	Fimr_multiaddr struct{ Fs_addr In_addr_t }
   2843 	Fimr_address   struct{ Fs_addr In_addr_t }
   2844 	Fimr_ifindex   int32
   2845 } /* in.h:149:1 */
   2846 
   2847 // Structure used for IP_PKTINFO.
   2848 type In_pktinfo = struct {
   2849 	Fipi_ifindex  int32
   2850 	Fipi_spec_dst struct{ Fs_addr In_addr_t }
   2851 	Fipi_addr     struct{ Fs_addr In_addr_t }
   2852 } /* in.h:157:1 */
   2853 
   2854 // Type to represent a port.
   2855 type In_port_t = Uint16_t /* in.h:119:18 */
   2856 
   2857 // Definitions of the bits in an Internet address integer.
   2858 //
   2859 //    On subnets, host and network parts are found according to
   2860 //    the subnet mask, not these masks.
   2861 
   2862 // Address to accept any incoming messages.
   2863 // Address to send to all hosts.
   2864 // Address indicating an error return.
   2865 
   2866 // Network number for local host loopback.
   2867 // Address to loopback in software to local host.
   2868 
   2869 // Defines for Multicast INADDR.
   2870 
   2871 // IPv6 address
   2872 type In6_addr = struct {
   2873 	F__in6_u struct {
   2874 		F__ccgo_pad1 [0]uint32
   2875 		F__u6_addr8  [16]Uint8_t
   2876 	}
   2877 } /* in.h:212:1 */
   2878 
   2879 // ::1
   2880 
   2881 // Structure describing an Internet socket address.
   2882 type Sockaddr_in = struct {
   2883 	Fsin_family Sa_family_t
   2884 	Fsin_port   In_port_t
   2885 	Fsin_addr   struct{ Fs_addr In_addr_t }
   2886 	Fsin_zero   [8]uint8
   2887 } /* in.h:238:1 */
   2888 
   2889 // Ditto, for IPv6.
   2890 type Sockaddr_in6 = struct {
   2891 	Fsin6_family   Sa_family_t
   2892 	Fsin6_port     In_port_t
   2893 	Fsin6_flowinfo Uint32_t
   2894 	Fsin6_addr     struct {
   2895 		F__in6_u struct {
   2896 			F__ccgo_pad1 [0]uint32
   2897 			F__u6_addr8  [16]Uint8_t
   2898 		}
   2899 	}
   2900 	Fsin6_scope_id Uint32_t
   2901 } /* in.h:253:1 */
   2902 
   2903 // IPv4 multicast request.
   2904 type Ip_mreq = struct {
   2905 	Fimr_multiaddr struct{ Fs_addr In_addr_t }
   2906 	Fimr_interface struct{ Fs_addr In_addr_t }
   2907 } /* in.h:265:1 */
   2908 
   2909 type Ip_mreq_source = struct {
   2910 	Fimr_multiaddr  struct{ Fs_addr In_addr_t }
   2911 	Fimr_interface  struct{ Fs_addr In_addr_t }
   2912 	Fimr_sourceaddr struct{ Fs_addr In_addr_t }
   2913 } /* in.h:274:1 */
   2914 
   2915 // Likewise, for IPv6.
   2916 type Ipv6_mreq = struct {
   2917 	Fipv6mr_multiaddr struct {
   2918 		F__in6_u struct {
   2919 			F__ccgo_pad1 [0]uint32
   2920 			F__u6_addr8  [16]Uint8_t
   2921 		}
   2922 	}
   2923 	Fipv6mr_interface uint32
   2924 } /* in.h:289:1 */
   2925 
   2926 // Multicast group request.
   2927 type Group_req = struct {
   2928 	Fgr_interface Uint32_t
   2929 	F__ccgo_pad1  [4]byte
   2930 	Fgr_group     struct {
   2931 		Fss_family    Sa_family_t
   2932 		F__ss_padding [118]uint8
   2933 		F__ss_align   uint64
   2934 	}
   2935 } /* in.h:301:1 */
   2936 
   2937 type Group_source_req = struct {
   2938 	Fgsr_interface Uint32_t
   2939 	F__ccgo_pad1   [4]byte
   2940 	Fgsr_group     struct {
   2941 		Fss_family    Sa_family_t
   2942 		F__ss_padding [118]uint8
   2943 		F__ss_align   uint64
   2944 	}
   2945 	Fgsr_source struct {
   2946 		Fss_family    Sa_family_t
   2947 		F__ss_padding [118]uint8
   2948 		F__ss_align   uint64
   2949 	}
   2950 } /* in.h:310:1 */
   2951 
   2952 // Full-state filter operations.
   2953 type Ip_msfilter = struct {
   2954 	Fimsf_multiaddr struct{ Fs_addr In_addr_t }
   2955 	Fimsf_interface struct{ Fs_addr In_addr_t }
   2956 	Fimsf_fmode     Uint32_t
   2957 	Fimsf_numsrc    Uint32_t
   2958 	Fimsf_slist     [1]struct{ Fs_addr In_addr_t }
   2959 } /* in.h:324:1 */
   2960 
   2961 type Group_filter = struct {
   2962 	Fgf_interface Uint32_t
   2963 	F__ccgo_pad1  [4]byte
   2964 	Fgf_group     struct {
   2965 		Fss_family    Sa_family_t
   2966 		F__ss_padding [118]uint8
   2967 		F__ss_align   uint64
   2968 	}
   2969 	Fgf_fmode  Uint32_t
   2970 	Fgf_numsrc Uint32_t
   2971 	Fgf_slist  [1]struct {
   2972 		Fss_family    Sa_family_t
   2973 		F__ss_padding [118]uint8
   2974 		F__ss_align   uint64
   2975 	}
   2976 } /* in.h:345:1 */
   2977 
   2978 // Define uintN_t types.
   2979 //    Copyright (C) 2017-2020 Free Software Foundation, Inc.
   2980 //    This file is part of the GNU C Library.
   2981 //
   2982 //    The GNU C Library is free software; you can redistribute it and/or
   2983 //    modify it under the terms of the GNU Lesser General Public
   2984 //    License as published by the Free Software Foundation; either
   2985 //    version 2.1 of the License, or (at your option) any later version.
   2986 //
   2987 //    The GNU C Library is distributed in the hope that it will be useful,
   2988 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   2989 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   2990 //    Lesser General Public License for more details.
   2991 //
   2992 //    You should have received a copy of the GNU Lesser General Public
   2993 //    License along with the GNU C Library; if not, see
   2994 //    <https://www.gnu.org/licenses/>.
   2995 
   2996 // This is necessary to make this include file properly replace the
   2997 //    Sun version.
   2998 // @(#)netdb.h	2.1 88/07/29 3.9 RPCSRC
   2999 // Copyright (c) 2010, Oracle America, Inc.
   3000 // Redistribution and use in source and binary forms, with or without
   3001 // modification, are permitted provided that the following conditions are
   3002 // met:
   3003 //
   3004 //     * Redistributions of source code must retain the above copyright
   3005 //       notice, this list of conditions and the following disclaimer.
   3006 //     * Redistributions in binary form must reproduce the above
   3007 //       copyright notice, this list of conditions and the following
   3008 //       disclaimer in the documentation and/or other materials
   3009 //       provided with the distribution.
   3010 //     * Neither the name of the "Oracle America, Inc." nor the names of its
   3011 //       contributors may be used to endorse or promote products derived
   3012 //       from this software without specific prior written permission.
   3013 //
   3014 //   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
   3015 //   "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
   3016 //   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
   3017 //   FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
   3018 //   COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
   3019 //   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   3020 //   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
   3021 //   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
   3022 //   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
   3023 //   WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
   3024 //   NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
   3025 //   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   3026 
   3027 // Cleaned up for GNU C library roland@gnu.ai.mit.edu:
   3028 //    added multiple inclusion protection and use of <sys/cdefs.h>.
   3029 //    In GNU this file is #include'd by <netdb.h>.
   3030 
   3031 // Copyright (C) 1991-2020 Free Software Foundation, Inc.
   3032 //    This file is part of the GNU C Library.
   3033 //
   3034 //    The GNU C Library is free software; you can redistribute it and/or
   3035 //    modify it under the terms of the GNU Lesser General Public
   3036 //    License as published by the Free Software Foundation; either
   3037 //    version 2.1 of the License, or (at your option) any later version.
   3038 //
   3039 //    The GNU C Library is distributed in the hope that it will be useful,
   3040 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   3041 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   3042 //    Lesser General Public License for more details.
   3043 //
   3044 //    You should have received a copy of the GNU Lesser General Public
   3045 //    License along with the GNU C Library; if not, see
   3046 //    <https://www.gnu.org/licenses/>.
   3047 
   3048 // Copyright (C) 1989-2020 Free Software Foundation, Inc.
   3049 //
   3050 // This file is part of GCC.
   3051 //
   3052 // GCC is free software; you can redistribute it and/or modify
   3053 // it under the terms of the GNU General Public License as published by
   3054 // the Free Software Foundation; either version 3, or (at your option)
   3055 // any later version.
   3056 //
   3057 // GCC is distributed in the hope that it will be useful,
   3058 // but WITHOUT ANY WARRANTY; without even the implied warranty of
   3059 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   3060 // GNU General Public License for more details.
   3061 //
   3062 // Under Section 7 of GPL version 3, you are granted additional
   3063 // permissions described in the GCC Runtime Library Exception, version
   3064 // 3.1, as published by the Free Software Foundation.
   3065 //
   3066 // You should have received a copy of the GNU General Public License and
   3067 // a copy of the GCC Runtime Library Exception along with this program;
   3068 // see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
   3069 // <http://www.gnu.org/licenses/>.
   3070 
   3071 // ISO C Standard:  7.17  Common definitions  <stddef.h>
   3072 
   3073 // Any one of these symbols __need_* means that GNU libc
   3074 //    wants us just to define one data type.  So don't define
   3075 //    the symbols that indicate this file's entire job has been done.
   3076 
   3077 // This avoids lossage on SunOS but only if stdtypes.h comes first.
   3078 //    There's no way to win with the other order!  Sun lossage.
   3079 
   3080 // Sequent's header files use _PTRDIFF_T_ in some conflicting way.
   3081 //    Just ignore it.
   3082 
   3083 // On VxWorks, <type/vxTypesBase.h> may have defined macros like
   3084 //    _TYPE_size_t which will typedef size_t.  fixincludes patched the
   3085 //    vxTypesBase.h so that this macro is only defined if _GCC_SIZE_T is
   3086 //    not defined, and so that defining this macro defines _GCC_SIZE_T.
   3087 //    If we find that the macros are still defined at this point, we must
   3088 //    invoke them so that the type is defined as expected.
   3089 
   3090 // In case nobody has defined these types, but we aren't running under
   3091 //    GCC 2.00, make sure that __PTRDIFF_TYPE__, __SIZE_TYPE__, and
   3092 //    __WCHAR_TYPE__ have reasonable values.  This can happen if the
   3093 //    parts of GCC is compiled by an older compiler, that actually
   3094 //    include gstddef.h, such as collect2.
   3095 
   3096 // Signed type of difference of two pointers.
   3097 
   3098 // Define this type if we are doing the whole job,
   3099 //    or if we want this type in particular.
   3100 
   3101 // Unsigned type of `sizeof' something.
   3102 
   3103 // Define this type if we are doing the whole job,
   3104 //    or if we want this type in particular.
   3105 
   3106 // Wide character type.
   3107 //    Locale-writers should change this as necessary to
   3108 //    be big enough to hold unique values not between 0 and 127,
   3109 //    and not (wchar_t) -1, for each defined multibyte character.
   3110 
   3111 // Define this type if we are doing the whole job,
   3112 //    or if we want this type in particular.
   3113 
   3114 // A null pointer constant.
   3115 
   3116 type Rpcent = struct {
   3117 	Fr_name      uintptr
   3118 	Fr_aliases   uintptr
   3119 	Fr_number    int32
   3120 	F__ccgo_pad1 [4]byte
   3121 } /* netdb.h:46:1 */
   3122 
   3123 // Copyright (C) 1996-2020 Free Software Foundation, Inc.
   3124 //    This file is part of the GNU C Library.
   3125 //
   3126 //    The GNU C Library is free software; you can redistribute it and/or
   3127 //    modify it under the terms of the GNU Lesser General Public
   3128 //    License as published by the Free Software Foundation; either
   3129 //    version 2.1 of the License, or (at your option) any later version.
   3130 //
   3131 //    The GNU C Library is distributed in the hope that it will be useful,
   3132 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   3133 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   3134 //    Lesser General Public License for more details.
   3135 //
   3136 //    You should have received a copy of the GNU Lesser General Public
   3137 //    License along with the GNU C Library; if not, see
   3138 //    <https://www.gnu.org/licenses/>.
   3139 
   3140 // Description of data base entry for a single network.  NOTE: here a
   3141 //
   3142 //	poor assumption is made.  The network number is expected to fit
   3143 //	into an unsigned long int variable.
   3144 type Netent = struct {
   3145 	Fn_name     uintptr
   3146 	Fn_aliases  uintptr
   3147 	Fn_addrtype int32
   3148 	Fn_net      Uint32_t
   3149 } /* netdb.h:26:1 */
   3150 
   3151 // Description of data base entry for a single host.
   3152 type Hostent = struct {
   3153 	Fh_name      uintptr
   3154 	Fh_aliases   uintptr
   3155 	Fh_addrtype  int32
   3156 	Fh_length    int32
   3157 	Fh_addr_list uintptr
   3158 } /* netdb.h:98:1 */
   3159 
   3160 // Description of data base entry for a single service.
   3161 type Servent = struct {
   3162 	Fs_name      uintptr
   3163 	Fs_aliases   uintptr
   3164 	Fs_port      int32
   3165 	F__ccgo_pad1 [4]byte
   3166 	Fs_proto     uintptr
   3167 } /* netdb.h:255:1 */
   3168 
   3169 // Description of data base entry for a single service.
   3170 type Protoent = struct {
   3171 	Fp_name      uintptr
   3172 	Fp_aliases   uintptr
   3173 	Fp_proto     int32
   3174 	F__ccgo_pad1 [4]byte
   3175 } /* netdb.h:324:1 */
   3176 
   3177 // Extension from POSIX.1:2001.
   3178 // Structure to contain information about address of a service provider.
   3179 type Addrinfo = struct {
   3180 	Fai_flags     int32
   3181 	Fai_family    int32
   3182 	Fai_socktype  int32
   3183 	Fai_protocol  int32
   3184 	Fai_addrlen   Socklen_t
   3185 	F__ccgo_pad1  [4]byte
   3186 	Fai_addr      uintptr
   3187 	Fai_canonname uintptr
   3188 	Fai_next      uintptr
   3189 } /* netdb.h:565:1 */
   3190 
   3191 var _ uint8 /* gen.c:2:13: */