modernc.org/libc@v1.24.1/netdb/netdb_linux_386.go (about)

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