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