github.com/afumu/libc@v0.0.6/sys/socket/socket_linux_amd64.go (about)

     1  // Code generated by 'ccgo sys/socket/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o sys/socket/socket_linux_amd64.go -pkgname socket', DO NOT EDIT.
     2  
     3  package socket
     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     // socket.h:133:1:
    19  	AF_APPLETALK                     = 5      // socket.h:99:1:
    20  	AF_ASH                           = 18     // socket.h:113:1:
    21  	AF_ATMPVC                        = 8      // socket.h:102:1:
    22  	AF_ATMSVC                        = 20     // socket.h:115:1:
    23  	AF_AX25                          = 3      // socket.h:97:1:
    24  	AF_BLUETOOTH                     = 31     // socket.h:126:1:
    25  	AF_BRIDGE                        = 7      // socket.h:101:1:
    26  	AF_CAIF                          = 37     // socket.h:132:1:
    27  	AF_CAN                           = 29     // socket.h:124:1:
    28  	AF_DECnet                        = 12     // socket.h:106:1:
    29  	AF_ECONET                        = 19     // socket.h:114:1:
    30  	AF_FILE                          = 1      // socket.h:95:1:
    31  	AF_IB                            = 27     // socket.h:122:1:
    32  	AF_IEEE802154                    = 36     // socket.h:131:1:
    33  	AF_INET                          = 2      // socket.h:96:1:
    34  	AF_INET6                         = 10     // socket.h:104:1:
    35  	AF_IPX                           = 4      // socket.h:98:1:
    36  	AF_IRDA                          = 23     // socket.h:118:1:
    37  	AF_ISDN                          = 34     // socket.h:129:1:
    38  	AF_IUCV                          = 32     // socket.h:127:1:
    39  	AF_KCM                           = 41     // socket.h:136:1:
    40  	AF_KEY                           = 15     // socket.h:109:1:
    41  	AF_LLC                           = 26     // socket.h:121:1:
    42  	AF_LOCAL                         = 1      // socket.h:93:1:
    43  	AF_MAX                           = 45     // socket.h:140:1:
    44  	AF_MPLS                          = 28     // socket.h:123:1:
    45  	AF_NETBEUI                       = 13     // socket.h:107:1:
    46  	AF_NETLINK                       = 16     // socket.h:110:1:
    47  	AF_NETROM                        = 6      // socket.h:100:1:
    48  	AF_NFC                           = 39     // socket.h:134:1:
    49  	AF_PACKET                        = 17     // socket.h:112:1:
    50  	AF_PHONET                        = 35     // socket.h:130:1:
    51  	AF_PPPOX                         = 24     // socket.h:119:1:
    52  	AF_QIPCRTR                       = 42     // socket.h:137:1:
    53  	AF_RDS                           = 21     // socket.h:116:1:
    54  	AF_ROSE                          = 11     // socket.h:105:1:
    55  	AF_ROUTE                         = 16     // socket.h:111:1:
    56  	AF_RXRPC                         = 33     // socket.h:128:1:
    57  	AF_SECURITY                      = 14     // socket.h:108:1:
    58  	AF_SMC                           = 43     // socket.h:138:1:
    59  	AF_SNA                           = 22     // socket.h:117:1:
    60  	AF_TIPC                          = 30     // socket.h:125:1:
    61  	AF_UNIX                          = 1      // socket.h:94:1:
    62  	AF_UNSPEC                        = 0      // socket.h:92:1:
    63  	AF_VSOCK                         = 40     // socket.h:135:1:
    64  	AF_WANPIPE                       = 25     // socket.h:120:1:
    65  	AF_X25                           = 9      // socket.h:103:1:
    66  	AF_XDP                           = 44     // socket.h:139:1:
    67  	BIG_ENDIAN                       = 4321   // endian.h:28:1:
    68  	BYTE_ORDER                       = 1234   // endian.h:30:1:
    69  	FD_SETSIZE                       = 1024   // select.h:73:1:
    70  	FIOGETOWN                        = 0x8903 // sockios.h:8:1:
    71  	FIOSETOWN                        = 0x8901 // sockios.h:6:1:
    72  	LITTLE_ENDIAN                    = 1234   // endian.h:27:1:
    73  	PDP_ENDIAN                       = 3412   // endian.h:29:1:
    74  	PF_ALG                           = 38     // socket.h:82:1:
    75  	PF_APPLETALK                     = 5      // socket.h:48:1:
    76  	PF_ASH                           = 18     // socket.h:62:1:
    77  	PF_ATMPVC                        = 8      // socket.h:51:1:
    78  	PF_ATMSVC                        = 20     // socket.h:64:1:
    79  	PF_AX25                          = 3      // socket.h:46:1:
    80  	PF_BLUETOOTH                     = 31     // socket.h:75:1:
    81  	PF_BRIDGE                        = 7      // socket.h:50:1:
    82  	PF_CAIF                          = 37     // socket.h:81:1:
    83  	PF_CAN                           = 29     // socket.h:73:1:
    84  	PF_DECnet                        = 12     // socket.h:55:1:
    85  	PF_ECONET                        = 19     // socket.h:63:1:
    86  	PF_FILE                          = 1      // socket.h:44:1:
    87  	PF_IB                            = 27     // socket.h:71:1:
    88  	PF_IEEE802154                    = 36     // socket.h:80:1:
    89  	PF_INET                          = 2      // socket.h:45:1:
    90  	PF_INET6                         = 10     // socket.h:53:1:
    91  	PF_IPX                           = 4      // socket.h:47:1:
    92  	PF_IRDA                          = 23     // socket.h:67:1:
    93  	PF_ISDN                          = 34     // socket.h:78:1:
    94  	PF_IUCV                          = 32     // socket.h:76:1:
    95  	PF_KCM                           = 41     // socket.h:85:1:
    96  	PF_KEY                           = 15     // socket.h:58:1:
    97  	PF_LLC                           = 26     // socket.h:70:1:
    98  	PF_LOCAL                         = 1      // socket.h:42:1:
    99  	PF_MAX                           = 45     // socket.h:89:1:
   100  	PF_MPLS                          = 28     // socket.h:72:1:
   101  	PF_NETBEUI                       = 13     // socket.h:56:1:
   102  	PF_NETLINK                       = 16     // socket.h:59:1:
   103  	PF_NETROM                        = 6      // socket.h:49:1:
   104  	PF_NFC                           = 39     // socket.h:83:1:
   105  	PF_PACKET                        = 17     // socket.h:61:1:
   106  	PF_PHONET                        = 35     // socket.h:79:1:
   107  	PF_PPPOX                         = 24     // socket.h:68:1:
   108  	PF_QIPCRTR                       = 42     // socket.h:86:1:
   109  	PF_RDS                           = 21     // socket.h:65:1:
   110  	PF_ROSE                          = 11     // socket.h:54:1:
   111  	PF_ROUTE                         = 16     // socket.h:60:1:
   112  	PF_RXRPC                         = 33     // socket.h:77:1:
   113  	PF_SECURITY                      = 14     // socket.h:57:1:
   114  	PF_SMC                           = 43     // socket.h:87:1:
   115  	PF_SNA                           = 22     // socket.h:66:1:
   116  	PF_TIPC                          = 30     // socket.h:74:1:
   117  	PF_UNIX                          = 1      // socket.h:43:1:
   118  	PF_UNSPEC                        = 0      // socket.h:41:1:
   119  	PF_VSOCK                         = 40     // socket.h:84:1:
   120  	PF_WANPIPE                       = 25     // socket.h:69:1:
   121  	PF_X25                           = 9      // socket.h:52:1:
   122  	PF_XDP                           = 44     // socket.h:88:1:
   123  	SCM_TIMESTAMP                    = 29     // socket.h:140:1:
   124  	SCM_TIMESTAMPING                 = 37     // socket.h:142:1:
   125  	SCM_TIMESTAMPING_OPT_STATS       = 54     // socket.h:90:1:
   126  	SCM_TIMESTAMPING_PKTINFO         = 58     // socket.h:98:1:
   127  	SCM_TIMESTAMPNS                  = 35     // socket.h:141:1:
   128  	SCM_TXTIME                       = 61     // socket.h:105:1:
   129  	SCM_WIFI_STATUS                  = 41     // socket.h:64:1:
   130  	SIOCATMARK                       = 0x8905 // sockios.h:10:1:
   131  	SIOCGPGRP                        = 0x8904 // sockios.h:9:1:
   132  	SIOCGSTAMP                       = 0x8906 // sockios.h:11:1:
   133  	SIOCGSTAMPNS                     = 0x8907 // sockios.h:12:1:
   134  	SIOCSPGRP                        = 0x8902 // sockios.h:7:1:
   135  	SOL_AAL                          = 265    // socket.h:151:1:
   136  	SOL_ALG                          = 279    // socket.h:165:1:
   137  	SOL_ATM                          = 264    // socket.h:150:1:
   138  	SOL_BLUETOOTH                    = 274    // socket.h:160:1:
   139  	SOL_CAIF                         = 278    // socket.h:164:1:
   140  	SOL_DCCP                         = 269    // socket.h:155:1:
   141  	SOL_DECNET                       = 261    // socket.h:147:1:
   142  	SOL_IRDA                         = 266    // socket.h:152:1:
   143  	SOL_IUCV                         = 277    // socket.h:163:1:
   144  	SOL_KCM                          = 281    // socket.h:167:1:
   145  	SOL_LLC                          = 268    // socket.h:154:1:
   146  	SOL_NETBEUI                      = 267    // socket.h:153:1:
   147  	SOL_NETLINK                      = 270    // socket.h:156:1:
   148  	SOL_NFC                          = 280    // socket.h:166:1:
   149  	SOL_PACKET                       = 263    // socket.h:149:1:
   150  	SOL_PNPIPE                       = 275    // socket.h:161:1:
   151  	SOL_PPPOL2TP                     = 273    // socket.h:159:1:
   152  	SOL_RAW                          = 255    // socket.h:146:1:
   153  	SOL_RDS                          = 276    // socket.h:162:1:
   154  	SOL_RXRPC                        = 272    // socket.h:158:1:
   155  	SOL_SOCKET                       = 1      // socket.h:9:1:
   156  	SOL_TIPC                         = 271    // socket.h:157:1:
   157  	SOL_TLS                          = 282    // socket.h:168:1:
   158  	SOL_X25                          = 262    // socket.h:148:1:
   159  	SOL_XDP                          = 283    // socket.h:169:1:
   160  	SOMAXCONN                        = 4096   // socket.h:172:1:
   161  	SO_ACCEPTCONN                    = 30     // socket.h:51:1:
   162  	SO_ATTACH_BPF                    = 50     // socket.h:82:1:
   163  	SO_ATTACH_FILTER                 = 26     // socket.h:45:1:
   164  	SO_ATTACH_REUSEPORT_CBPF         = 51     // socket.h:85:1:
   165  	SO_ATTACH_REUSEPORT_EBPF         = 52     // socket.h:86:1:
   166  	SO_BINDTODEVICE                  = 25     // socket.h:42:1:
   167  	SO_BINDTOIFINDEX                 = 62     // socket.h:107:1:
   168  	SO_BPF_EXTENSIONS                = 48     // socket.h:78:1:
   169  	SO_BROADCAST                     = 6      // socket.h:16:1:
   170  	SO_BSDCOMPAT                     = 14     // socket.h:26:1:
   171  	SO_BUSY_POLL                     = 46     // socket.h:74:1:
   172  	SO_CNX_ADVICE                    = 53     // socket.h:88:1:
   173  	SO_COOKIE                        = 57     // socket.h:96:1:
   174  	SO_DEBUG                         = 1      // socket.h:11:1:
   175  	SO_DETACH_BPF                    = 27     // socket.h:83:1:
   176  	SO_DETACH_FILTER                 = 27     // socket.h:46:1:
   177  	SO_DETACH_REUSEPORT_BPF          = 68     // socket.h:120:1:
   178  	SO_DOMAIN                        = 39     // socket.h:59:1:
   179  	SO_DONTROUTE                     = 5      // socket.h:15:1:
   180  	SO_ERROR                         = 4      // socket.h:14:1:
   181  	SO_GET_FILTER                    = 26     // socket.h:47:1:
   182  	SO_INCOMING_CPU                  = 49     // socket.h:80:1:
   183  	SO_INCOMING_NAPI_ID              = 56     // socket.h:94:1:
   184  	SO_KEEPALIVE                     = 9      // socket.h:21:1:
   185  	SO_LINGER                        = 13     // socket.h:25:1:
   186  	SO_LOCK_FILTER                   = 44     // socket.h:70:1:
   187  	SO_MARK                          = 36     // socket.h:56:1:
   188  	SO_MAX_PACING_RATE               = 47     // socket.h:76:1:
   189  	SO_MEMINFO                       = 55     // socket.h:92:1:
   190  	SO_NOFCS                         = 43     // socket.h:68:1:
   191  	SO_NO_CHECK                      = 11     // socket.h:23:1:
   192  	SO_OOBINLINE                     = 10     // socket.h:22:1:
   193  	SO_PASSCRED                      = 16     // socket.h:29:1:
   194  	SO_PASSSEC                       = 34     // socket.h:54:1:
   195  	SO_PEEK_OFF                      = 42     // socket.h:65:1:
   196  	SO_PEERCRED                      = 17     // socket.h:30:1:
   197  	SO_PEERGROUPS                    = 59     // socket.h:100:1:
   198  	SO_PEERNAME                      = 28     // socket.h:49:1:
   199  	SO_PEERSEC                       = 31     // socket.h:53:1:
   200  	SO_PRIORITY                      = 12     // socket.h:24:1:
   201  	SO_PROTOCOL                      = 38     // socket.h:58:1:
   202  	SO_RCVBUF                        = 8      // socket.h:18:1:
   203  	SO_RCVBUFFORCE                   = 33     // socket.h:20:1:
   204  	SO_RCVLOWAT                      = 18     // socket.h:31:1:
   205  	SO_RCVTIMEO                      = 20     // socket.h:129:1:
   206  	SO_RCVTIMEO_NEW                  = 66     // socket.h:117:1:
   207  	SO_RCVTIMEO_OLD                  = 20     // socket.h:33:1:
   208  	SO_REUSEADDR                     = 2      // socket.h:12:1:
   209  	SO_REUSEPORT                     = 15     // socket.h:27:1:
   210  	SO_RXQ_OVFL                      = 40     // socket.h:61:1:
   211  	SO_SECURITY_AUTHENTICATION       = 22     // socket.h:38:1:
   212  	SO_SECURITY_ENCRYPTION_NETWORK   = 24     // socket.h:40:1:
   213  	SO_SECURITY_ENCRYPTION_TRANSPORT = 23     // socket.h:39:1:
   214  	SO_SELECT_ERR_QUEUE              = 45     // socket.h:72:1:
   215  	SO_SNDBUF                        = 7      // socket.h:17:1:
   216  	SO_SNDBUFFORCE                   = 32     // socket.h:19:1:
   217  	SO_SNDLOWAT                      = 19     // socket.h:32:1:
   218  	SO_SNDTIMEO                      = 21     // socket.h:130:1:
   219  	SO_SNDTIMEO_NEW                  = 67     // socket.h:118:1:
   220  	SO_SNDTIMEO_OLD                  = 21     // socket.h:34:1:
   221  	SO_TIMESTAMP                     = 29     // socket.h:125:1:
   222  	SO_TIMESTAMPING                  = 37     // socket.h:127:1:
   223  	SO_TIMESTAMPING_NEW              = 65     // socket.h:115:1:
   224  	SO_TIMESTAMPING_OLD              = 37     // socket.h:111:1:
   225  	SO_TIMESTAMPNS                   = 35     // socket.h:126:1:
   226  	SO_TIMESTAMPNS_NEW               = 64     // socket.h:114:1:
   227  	SO_TIMESTAMPNS_OLD               = 35     // socket.h:110:1:
   228  	SO_TIMESTAMP_NEW                 = 63     // socket.h:113:1:
   229  	SO_TIMESTAMP_OLD                 = 29     // socket.h:109:1:
   230  	SO_TXTIME                        = 61     // socket.h:104:1:
   231  	SO_TYPE                          = 3      // socket.h:13:1:
   232  	SO_WIFI_STATUS                   = 41     // socket.h:63:1:
   233  	SO_ZEROCOPY                      = 60     // socket.h:102:1:
   234  	X_ASM_X86_POSIX_TYPES_64_H       = 0      // posix_types_64.h:3:1:
   235  	X_ATFILE_SOURCE                  = 1      // features.h:342:1:
   236  	X_BITS_BYTESWAP_H                = 1      // byteswap.h:24:1:
   237  	X_BITS_ENDIANNESS_H              = 1      // endianness.h:2:1:
   238  	X_BITS_ENDIAN_H                  = 1      // endian.h:20:1:
   239  	X_BITS_PTHREADTYPES_ARCH_H       = 1      // pthreadtypes-arch.h:19:1:
   240  	X_BITS_PTHREADTYPES_COMMON_H     = 1      // pthreadtypes.h:20:1:
   241  	X_BITS_SOCKADDR_H                = 1      // sockaddr.h:24:1:
   242  	X_BITS_STDINT_INTN_H             = 1      // stdint-intn.h:20:1:
   243  	X_BITS_TIME64_H                  = 1      // time64.h:24:1:
   244  	X_BITS_TYPESIZES_H               = 1      // typesizes.h:24:1:
   245  	X_BITS_TYPES_H                   = 1      // types.h:24:1:
   246  	X_BITS_UINTN_IDENTITY_H          = 1      // uintn-identity.h:24:1:
   247  	X_BSD_SIZE_T_                    = 0      // stddef.h:189:1:
   248  	X_BSD_SIZE_T_DEFINED_            = 0      // stddef.h:192:1:
   249  	X_DEFAULT_SOURCE                 = 1      // features.h:227:1:
   250  	X_ENDIAN_H                       = 1      // endian.h:19:1:
   251  	X_FEATURES_H                     = 1      // features.h:19:1:
   252  	X_FILE_OFFSET_BITS               = 64     // <builtin>:25:1:
   253  	X_GCC_SIZE_T                     = 0      // stddef.h:195:1:
   254  	X_LINUX_POSIX_TYPES_H            = 0      // posix_types.h:3:1:
   255  	X_LP64                           = 1      // <predefined>:284:1:
   256  	X_POSIX_C_SOURCE                 = 200809 // features.h:281:1:
   257  	X_POSIX_SOURCE                   = 1      // features.h:279:1:
   258  	X_RWLOCK_INTERNAL_H              = 0      // struct_rwlock.h:21:1:
   259  	X_SIZET_                         = 0      // stddef.h:196:1:
   260  	X_SIZE_T                         = 0      // stddef.h:183:1:
   261  	X_SIZE_T_                        = 0      // stddef.h:188:1:
   262  	X_SIZE_T_DECLARED                = 0      // stddef.h:193:1:
   263  	X_SIZE_T_DEFINED                 = 0      // stddef.h:191:1:
   264  	X_SIZE_T_DEFINED_                = 0      // stddef.h:190:1:
   265  	X_SS_SIZE                        = 128    // sockaddr.h:40:1:
   266  	X_STDC_PREDEF_H                  = 1      // <predefined>:162:1:
   267  	X_STRUCT_TIMESPEC                = 1      // struct_timespec.h:3:1:
   268  	X_SYS_CDEFS_H                    = 1      // cdefs.h:19:1:
   269  	X_SYS_SELECT_H                   = 1      // select.h:22:1:
   270  	X_SYS_SIZE_T_H                   = 0      // stddef.h:184:1:
   271  	X_SYS_SOCKET_H                   = 1      // socket.h:20:1:
   272  	X_SYS_TYPES_H                    = 1      // types.h:23:1:
   273  	X_THREAD_MUTEX_INTERNAL_H        = 1      // struct_mutex.h:20:1:
   274  	X_THREAD_SHARED_TYPES_H          = 1      // thread-shared-types.h:20:1:
   275  	X_T_SIZE                         = 0      // stddef.h:186:1:
   276  	X_T_SIZE_                        = 0      // stddef.h:185:1:
   277  	Linux                            = 1      // <predefined>:231:1:
   278  	Unix                             = 1      // <predefined>:177:1:
   279  )
   280  
   281  // Bits in the FLAGS argument to `send', `recv', et al.
   282  const ( /* socket.h:200:1: */
   283  	MSG_OOB        = 1  // Process out-of-band data.
   284  	MSG_PEEK       = 2  // Peek at incoming messages.
   285  	MSG_DONTROUTE  = 4  // Don't use local routing.
   286  	MSG_CTRUNC     = 8  // Control data lost before delivery.
   287  	MSG_PROXY      = 16 // Supply or ask second address.
   288  	MSG_TRUNC      = 32
   289  	MSG_DONTWAIT   = 64  // Nonblocking IO.
   290  	MSG_EOR        = 128 // End of record.
   291  	MSG_WAITALL    = 256 // Wait for a full request.
   292  	MSG_FIN        = 512
   293  	MSG_SYN        = 1024
   294  	MSG_CONFIRM    = 2048 // Confirm path validity.
   295  	MSG_RST        = 4096
   296  	MSG_ERRQUEUE   = 8192      // Fetch message from error queue.
   297  	MSG_NOSIGNAL   = 16384     // Do not generate SIGPIPE.
   298  	MSG_MORE       = 32768     // Sender will send more.
   299  	MSG_WAITFORONE = 65536     // Wait for at least one packet to return.
   300  	MSG_BATCH      = 262144    // sendmmsg: more messages coming.
   301  	MSG_ZEROCOPY   = 67108864  // Use user data in kernel path.
   302  	MSG_FASTOPEN   = 536870912 // Send data in TCP SYN.
   303  
   304  	MSG_CMSG_CLOEXEC = 1073741824
   305  )
   306  
   307  // Socket level message types.  This must match the definitions in
   308  //
   309  //	<linux/socket.h>.
   310  const ( /* socket.h:332:1: */
   311  	SCM_RIGHTS = 1
   312  )
   313  
   314  // Get the architecture-dependent definition of enum __socket_type.
   315  // Define enum __socket_type for generic Linux.
   316  //    Copyright (C) 1991-2020 Free Software Foundation, Inc.
   317  //    This file is part of the GNU C Library.
   318  //
   319  //    The GNU C Library is free software; you can redistribute it and/or
   320  //    modify it under the terms of the GNU Lesser General Public
   321  //    License as published by the Free Software Foundation; either
   322  //    version 2.1 of the License, or (at your option) any later version.
   323  //
   324  //    The GNU C Library is distributed in the hope that it will be useful,
   325  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   326  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   327  //    Lesser General Public License for more details.
   328  //
   329  //    You should have received a copy of the GNU Lesser General Public
   330  //    License along with the GNU C Library; if not, see
   331  //    <https://www.gnu.org/licenses/>.
   332  
   333  // Types of sockets.
   334  const ( /* socket_type.h:24:1: */
   335  	SOCK_STREAM = 1 // Sequenced, reliable, connection-based
   336  	// 				   byte streams.
   337  	SOCK_DGRAM = 2 // Connectionless, unreliable datagrams
   338  	// 				   of fixed maximum length.
   339  	SOCK_RAW       = 3 // Raw protocol interface.
   340  	SOCK_RDM       = 4 // Reliably-delivered messages.
   341  	SOCK_SEQPACKET = 5 // Sequenced, reliable, connection-based,
   342  	// 				   datagrams of fixed maximum length.
   343  	SOCK_DCCP   = 6  // Datagram Congestion Control Protocol.
   344  	SOCK_PACKET = 10 // Linux specific way of getting packets
   345  	// 				   at the dev level.  For writing rarp and
   346  	// 				   other similar things on the user level.
   347  
   348  	// Flags to be ORed into the type parameter of socket and socketpair and
   349  	//      used for the flags parameter of paccept.
   350  
   351  	SOCK_CLOEXEC = 524288 // Atomically set close-on-exec flag for the
   352  	// 				   new descriptor(s).
   353  	SOCK_NONBLOCK = 2048
   354  )
   355  
   356  // The following constants should be used for the second parameter of
   357  //
   358  //	`shutdown'.
   359  const ( /* socket.h:41:1: */
   360  	SHUT_RD   = 0 // No more receptions.
   361  	SHUT_WR   = 1 // No more transmissions.
   362  	SHUT_RDWR = 2
   363  )
   364  
   365  type Ptrdiff_t = int64 /* <builtin>:3:26 */
   366  
   367  type Size_t = uint64 /* <builtin>:9:23 */
   368  
   369  type Wchar_t = int32 /* <builtin>:15:24 */
   370  
   371  type X__int128_t = struct {
   372  	Flo int64
   373  	Fhi int64
   374  } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
   375  type X__uint128_t = struct {
   376  	Flo uint64
   377  	Fhi uint64
   378  } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
   379  
   380  type X__builtin_va_list = uintptr /* <builtin>:46:14 */
   381  type X__float128 = float64        /* <builtin>:47:21 */
   382  
   383  // Wide character type.
   384  //    Locale-writers should change this as necessary to
   385  //    be big enough to hold unique values not between 0 and 127,
   386  //    and not (wchar_t) -1, for each defined multibyte character.
   387  
   388  // Define this type if we are doing the whole job,
   389  //    or if we want this type in particular.
   390  
   391  // A null pointer constant.
   392  
   393  // Structure for scatter/gather I/O.
   394  type Iovec = struct {
   395  	Fiov_base uintptr
   396  	Fiov_len  Size_t
   397  } /* struct_iovec.h:26:1 */
   398  
   399  // Copyright (C) 1989-2020 Free Software Foundation, Inc.
   400  //
   401  // This file is part of GCC.
   402  //
   403  // GCC is free software; you can redistribute it and/or modify
   404  // it under the terms of the GNU General Public License as published by
   405  // the Free Software Foundation; either version 3, or (at your option)
   406  // any later version.
   407  //
   408  // GCC is distributed in the hope that it will be useful,
   409  // but WITHOUT ANY WARRANTY; without even the implied warranty of
   410  // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   411  // GNU General Public License for more details.
   412  //
   413  // Under Section 7 of GPL version 3, you are granted additional
   414  // permissions described in the GCC Runtime Library Exception, version
   415  // 3.1, as published by the Free Software Foundation.
   416  //
   417  // You should have received a copy of the GNU General Public License and
   418  // a copy of the GCC Runtime Library Exception along with this program;
   419  // see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
   420  // <http://www.gnu.org/licenses/>.
   421  
   422  // ISO C Standard:  7.17  Common definitions  <stddef.h>
   423  
   424  // Any one of these symbols __need_* means that GNU libc
   425  //    wants us just to define one data type.  So don't define
   426  //    the symbols that indicate this file's entire job has been done.
   427  
   428  // This avoids lossage on SunOS but only if stdtypes.h comes first.
   429  //    There's no way to win with the other order!  Sun lossage.
   430  
   431  // Sequent's header files use _PTRDIFF_T_ in some conflicting way.
   432  //    Just ignore it.
   433  
   434  // On VxWorks, <type/vxTypesBase.h> may have defined macros like
   435  //    _TYPE_size_t which will typedef size_t.  fixincludes patched the
   436  //    vxTypesBase.h so that this macro is only defined if _GCC_SIZE_T is
   437  //    not defined, and so that defining this macro defines _GCC_SIZE_T.
   438  //    If we find that the macros are still defined at this point, we must
   439  //    invoke them so that the type is defined as expected.
   440  
   441  // In case nobody has defined these types, but we aren't running under
   442  //    GCC 2.00, make sure that __PTRDIFF_TYPE__, __SIZE_TYPE__, and
   443  //    __WCHAR_TYPE__ have reasonable values.  This can happen if the
   444  //    parts of GCC is compiled by an older compiler, that actually
   445  //    include gstddef.h, such as collect2.
   446  
   447  // Signed type of difference of two pointers.
   448  
   449  // Define this type if we are doing the whole job,
   450  //    or if we want this type in particular.
   451  
   452  // Unsigned type of `sizeof' something.
   453  
   454  // Define this type if we are doing the whole job,
   455  //    or if we want this type in particular.
   456  
   457  // Wide character type.
   458  //    Locale-writers should change this as necessary to
   459  //    be big enough to hold unique values not between 0 and 127,
   460  //    and not (wchar_t) -1, for each defined multibyte character.
   461  
   462  // Define this type if we are doing the whole job,
   463  //    or if we want this type in particular.
   464  
   465  // A null pointer constant.
   466  
   467  // This operating system-specific header file defines the SOCK_*, PF_*,
   468  //    AF_*, MSG_*, SOL_*, and SO_* constants, and the `struct sockaddr',
   469  //    `struct msghdr', and `struct linger' types.
   470  // System-specific socket constants and types.  Linux version.
   471  //    Copyright (C) 1991-2020 Free Software Foundation, Inc.
   472  //    This file is part of the GNU C Library.
   473  //
   474  //    The GNU C Library is free software; you can redistribute it and/or
   475  //    modify it under the terms of the GNU Lesser General Public
   476  //    License as published by the Free Software Foundation; either
   477  //    version 2.1 of the License, or (at your option) any later version.
   478  //
   479  //    The GNU C Library is distributed in the hope that it will be useful,
   480  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   481  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   482  //    Lesser General Public License for more details.
   483  //
   484  //    You should have received a copy of the GNU Lesser General Public
   485  //    License along with the GNU C Library; if not, see
   486  //    <https://www.gnu.org/licenses/>.
   487  
   488  // Copyright (C) 1989-2020 Free Software Foundation, Inc.
   489  //
   490  // This file is part of GCC.
   491  //
   492  // GCC is free software; you can redistribute it and/or modify
   493  // it under the terms of the GNU General Public License as published by
   494  // the Free Software Foundation; either version 3, or (at your option)
   495  // any later version.
   496  //
   497  // GCC is distributed in the hope that it will be useful,
   498  // but WITHOUT ANY WARRANTY; without even the implied warranty of
   499  // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   500  // GNU General Public License for more details.
   501  //
   502  // Under Section 7 of GPL version 3, you are granted additional
   503  // permissions described in the GCC Runtime Library Exception, version
   504  // 3.1, as published by the Free Software Foundation.
   505  //
   506  // You should have received a copy of the GNU General Public License and
   507  // a copy of the GCC Runtime Library Exception along with this program;
   508  // see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
   509  // <http://www.gnu.org/licenses/>.
   510  
   511  // ISO C Standard:  7.17  Common definitions  <stddef.h>
   512  
   513  // Any one of these symbols __need_* means that GNU libc
   514  //    wants us just to define one data type.  So don't define
   515  //    the symbols that indicate this file's entire job has been done.
   516  
   517  // This avoids lossage on SunOS but only if stdtypes.h comes first.
   518  //    There's no way to win with the other order!  Sun lossage.
   519  
   520  // Sequent's header files use _PTRDIFF_T_ in some conflicting way.
   521  //    Just ignore it.
   522  
   523  // On VxWorks, <type/vxTypesBase.h> may have defined macros like
   524  //    _TYPE_size_t which will typedef size_t.  fixincludes patched the
   525  //    vxTypesBase.h so that this macro is only defined if _GCC_SIZE_T is
   526  //    not defined, and so that defining this macro defines _GCC_SIZE_T.
   527  //    If we find that the macros are still defined at this point, we must
   528  //    invoke them so that the type is defined as expected.
   529  
   530  // In case nobody has defined these types, but we aren't running under
   531  //    GCC 2.00, make sure that __PTRDIFF_TYPE__, __SIZE_TYPE__, and
   532  //    __WCHAR_TYPE__ have reasonable values.  This can happen if the
   533  //    parts of GCC is compiled by an older compiler, that actually
   534  //    include gstddef.h, such as collect2.
   535  
   536  // Signed type of difference of two pointers.
   537  
   538  // Define this type if we are doing the whole job,
   539  //    or if we want this type in particular.
   540  
   541  // Unsigned type of `sizeof' something.
   542  
   543  // Define this type if we are doing the whole job,
   544  //    or if we want this type in particular.
   545  
   546  // Wide character type.
   547  //    Locale-writers should change this as necessary to
   548  //    be big enough to hold unique values not between 0 and 127,
   549  //    and not (wchar_t) -1, for each defined multibyte character.
   550  
   551  // Define this type if we are doing the whole job,
   552  //    or if we want this type in particular.
   553  
   554  // A null pointer constant.
   555  
   556  // Copyright (C) 1991-2020 Free Software Foundation, Inc.
   557  //    This file is part of the GNU C Library.
   558  //
   559  //    The GNU C Library is free software; you can redistribute it and/or
   560  //    modify it under the terms of the GNU Lesser General Public
   561  //    License as published by the Free Software Foundation; either
   562  //    version 2.1 of the License, or (at your option) any later version.
   563  //
   564  //    The GNU C Library is distributed in the hope that it will be useful,
   565  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   566  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   567  //    Lesser General Public License for more details.
   568  //
   569  //    You should have received a copy of the GNU Lesser General Public
   570  //    License along with the GNU C Library; if not, see
   571  //    <https://www.gnu.org/licenses/>.
   572  
   573  //	POSIX Standard: 2.6 Primitive System Data Types	<sys/types.h>
   574  
   575  // Copyright (C) 1991-2020 Free Software Foundation, Inc.
   576  //    This file is part of the GNU C Library.
   577  //
   578  //    The GNU C Library is free software; you can redistribute it and/or
   579  //    modify it under the terms of the GNU Lesser General Public
   580  //    License as published by the Free Software Foundation; either
   581  //    version 2.1 of the License, or (at your option) any later version.
   582  //
   583  //    The GNU C Library is distributed in the hope that it will be useful,
   584  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   585  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   586  //    Lesser General Public License for more details.
   587  //
   588  //    You should have received a copy of the GNU Lesser General Public
   589  //    License along with the GNU C Library; if not, see
   590  //    <https://www.gnu.org/licenses/>.
   591  
   592  // bits/types.h -- definitions of __*_t types underlying *_t types.
   593  //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
   594  //    This file is part of the GNU C Library.
   595  //
   596  //    The GNU C Library is free software; you can redistribute it and/or
   597  //    modify it under the terms of the GNU Lesser General Public
   598  //    License as published by the Free Software Foundation; either
   599  //    version 2.1 of the License, or (at your option) any later version.
   600  //
   601  //    The GNU C Library is distributed in the hope that it will be useful,
   602  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   603  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   604  //    Lesser General Public License for more details.
   605  //
   606  //    You should have received a copy of the GNU Lesser General Public
   607  //    License along with the GNU C Library; if not, see
   608  //    <https://www.gnu.org/licenses/>.
   609  
   610  // Never include this file directly; use <sys/types.h> instead.
   611  
   612  // Copyright (C) 1991-2020 Free Software Foundation, Inc.
   613  //    This file is part of the GNU C Library.
   614  //
   615  //    The GNU C Library is free software; you can redistribute it and/or
   616  //    modify it under the terms of the GNU Lesser General Public
   617  //    License as published by the Free Software Foundation; either
   618  //    version 2.1 of the License, or (at your option) any later version.
   619  //
   620  //    The GNU C Library is distributed in the hope that it will be useful,
   621  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   622  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   623  //    Lesser General Public License for more details.
   624  //
   625  //    You should have received a copy of the GNU Lesser General Public
   626  //    License along with the GNU C Library; if not, see
   627  //    <https://www.gnu.org/licenses/>.
   628  
   629  // Determine the wordsize from the preprocessor defines.
   630  
   631  // Both x86-64 and x32 use the 64-bit system call interface.
   632  // Bit size of the time_t type at glibc build time, x86-64 and x32 case.
   633  //    Copyright (C) 2018-2020 Free Software Foundation, Inc.
   634  //    This file is part of the GNU C Library.
   635  //
   636  //    The GNU C Library is free software; you can redistribute it and/or
   637  //    modify it under the terms of the GNU Lesser General Public
   638  //    License as published by the Free Software Foundation; either
   639  //    version 2.1 of the License, or (at your option) any later version.
   640  //
   641  //    The GNU C Library is distributed in the hope that it will be useful,
   642  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   643  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   644  //    Lesser General Public License for more details.
   645  //
   646  //    You should have received a copy of the GNU Lesser General Public
   647  //    License along with the GNU C Library; if not, see
   648  //    <https://www.gnu.org/licenses/>.
   649  
   650  // For others, time size is word size.
   651  
   652  // Convenience types.
   653  type X__u_char = uint8   /* types.h:31:23 */
   654  type X__u_short = uint16 /* types.h:32:28 */
   655  type X__u_int = uint32   /* types.h:33:22 */
   656  type X__u_long = uint64  /* types.h:34:27 */
   657  
   658  // Fixed-size types, underlying types depend on word size and compiler.
   659  type X__int8_t = int8     /* types.h:37:21 */
   660  type X__uint8_t = uint8   /* types.h:38:23 */
   661  type X__int16_t = int16   /* types.h:39:26 */
   662  type X__uint16_t = uint16 /* types.h:40:28 */
   663  type X__int32_t = int32   /* types.h:41:20 */
   664  type X__uint32_t = uint32 /* types.h:42:22 */
   665  type X__int64_t = int64   /* types.h:44:25 */
   666  type X__uint64_t = uint64 /* types.h:45:27 */
   667  
   668  // Smallest types with at least a given width.
   669  type X__int_least8_t = X__int8_t     /* types.h:52:18 */
   670  type X__uint_least8_t = X__uint8_t   /* types.h:53:19 */
   671  type X__int_least16_t = X__int16_t   /* types.h:54:19 */
   672  type X__uint_least16_t = X__uint16_t /* types.h:55:20 */
   673  type X__int_least32_t = X__int32_t   /* types.h:56:19 */
   674  type X__uint_least32_t = X__uint32_t /* types.h:57:20 */
   675  type X__int_least64_t = X__int64_t   /* types.h:58:19 */
   676  type X__uint_least64_t = X__uint64_t /* types.h:59:20 */
   677  
   678  // quad_t is also 64 bits.
   679  type X__quad_t = int64    /* types.h:63:18 */
   680  type X__u_quad_t = uint64 /* types.h:64:27 */
   681  
   682  // Largest integral types.
   683  type X__intmax_t = int64   /* types.h:72:18 */
   684  type X__uintmax_t = uint64 /* types.h:73:27 */
   685  
   686  // The machine-dependent file <bits/typesizes.h> defines __*_T_TYPE
   687  //    macros for each of the OS types we define below.  The definitions
   688  //    of those macros must use the following macros for underlying types.
   689  //    We define __S<SIZE>_TYPE and __U<SIZE>_TYPE for the signed and unsigned
   690  //    variants of each of the following integer types on this machine.
   691  //
   692  // 	16		-- "natural" 16-bit type (always short)
   693  // 	32		-- "natural" 32-bit type (always int)
   694  // 	64		-- "natural" 64-bit type (long or long long)
   695  // 	LONG32		-- 32-bit type, traditionally long
   696  // 	QUAD		-- 64-bit type, traditionally long long
   697  // 	WORD		-- natural type of __WORDSIZE bits (int or long)
   698  // 	LONGWORD	-- type of __WORDSIZE bits, traditionally long
   699  //
   700  //    We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the
   701  //    conventional uses of `long' or `long long' type modifiers match the
   702  //    types we define, even when a less-adorned type would be the same size.
   703  //    This matters for (somewhat) portably writing printf/scanf formats for
   704  //    these types, where using the appropriate l or ll format modifiers can
   705  //    make the typedefs and the formats match up across all GNU platforms.  If
   706  //    we used `long' when it's 64 bits where `long long' is expected, then the
   707  //    compiler would warn about the formats not matching the argument types,
   708  //    and the programmer changing them to shut up the compiler would break the
   709  //    program's portability.
   710  //
   711  //    Here we assume what is presently the case in all the GCC configurations
   712  //    we support: long long is always 64 bits, long is always word/address size,
   713  //    and int is always 32 bits.
   714  
   715  // No need to mark the typedef with __extension__.
   716  // bits/typesizes.h -- underlying types for *_t.  Linux/x86-64 version.
   717  //    Copyright (C) 2012-2020 Free Software Foundation, Inc.
   718  //    This file is part of the GNU C Library.
   719  //
   720  //    The GNU C Library is free software; you can redistribute it and/or
   721  //    modify it under the terms of the GNU Lesser General Public
   722  //    License as published by the Free Software Foundation; either
   723  //    version 2.1 of the License, or (at your option) any later version.
   724  //
   725  //    The GNU C Library is distributed in the hope that it will be useful,
   726  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   727  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   728  //    Lesser General Public License for more details.
   729  //
   730  //    You should have received a copy of the GNU Lesser General Public
   731  //    License along with the GNU C Library; if not, see
   732  //    <https://www.gnu.org/licenses/>.
   733  
   734  // See <bits/types.h> for the meaning of these macros.  This file exists so
   735  //    that <bits/types.h> need not vary across different GNU platforms.
   736  
   737  // X32 kernel interface is 64-bit.
   738  
   739  // Tell the libc code that off_t and off64_t are actually the same type
   740  //    for all ABI purposes, even if possibly expressed as different base types
   741  //    for C type-checking purposes.
   742  
   743  // Same for ino_t and ino64_t.
   744  
   745  // And for __rlim_t and __rlim64_t.
   746  
   747  // And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t.
   748  
   749  // Number of descriptors that can fit in an `fd_set'.
   750  
   751  // bits/time64.h -- underlying types for __time64_t.  Generic version.
   752  //    Copyright (C) 2018-2020 Free Software Foundation, Inc.
   753  //    This file is part of the GNU C Library.
   754  //
   755  //    The GNU C Library is free software; you can redistribute it and/or
   756  //    modify it under the terms of the GNU Lesser General Public
   757  //    License as published by the Free Software Foundation; either
   758  //    version 2.1 of the License, or (at your option) any later version.
   759  //
   760  //    The GNU C Library is distributed in the hope that it will be useful,
   761  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   762  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   763  //    Lesser General Public License for more details.
   764  //
   765  //    You should have received a copy of the GNU Lesser General Public
   766  //    License along with the GNU C Library; if not, see
   767  //    <https://www.gnu.org/licenses/>.
   768  
   769  // Define __TIME64_T_TYPE so that it is always a 64-bit type.
   770  
   771  // If we already have 64-bit time type then use it.
   772  
   773  type X__dev_t = uint64                     /* types.h:145:25 */ // Type of device numbers.
   774  type X__uid_t = uint32                     /* types.h:146:25 */ // Type of user identifications.
   775  type X__gid_t = uint32                     /* types.h:147:25 */ // Type of group identifications.
   776  type X__ino_t = uint64                     /* types.h:148:25 */ // Type of file serial numbers.
   777  type X__ino64_t = uint64                   /* types.h:149:27 */ // Type of file serial numbers (LFS).
   778  type X__mode_t = uint32                    /* types.h:150:26 */ // Type of file attribute bitmasks.
   779  type X__nlink_t = uint64                   /* types.h:151:27 */ // Type of file link counts.
   780  type X__off_t = int64                      /* types.h:152:25 */ // Type of file sizes and offsets.
   781  type X__off64_t = int64                    /* types.h:153:27 */ // Type of file sizes and offsets (LFS).
   782  type X__pid_t = int32                      /* types.h:154:25 */ // Type of process identifications.
   783  type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs.
   784  type X__clock_t = int64                    /* types.h:156:27 */ // Type of CPU usage counts.
   785  type X__rlim_t = uint64                    /* types.h:157:26 */ // Type for resource measurement.
   786  type X__rlim64_t = uint64                  /* types.h:158:28 */ // Type for resource measurement (LFS).
   787  type X__id_t = uint32                      /* types.h:159:24 */ // General type for IDs.
   788  type X__time_t = int64                     /* types.h:160:26 */ // Seconds since the Epoch.
   789  type X__useconds_t = uint32                /* types.h:161:30 */ // Count of microseconds.
   790  type X__suseconds_t = int64                /* types.h:162:31 */ // Signed count of microseconds.
   791  
   792  type X__daddr_t = int32 /* types.h:164:27 */ // The type of a disk address.
   793  type X__key_t = int32   /* types.h:165:25 */ // Type of an IPC key.
   794  
   795  // Clock ID used in clock and timer functions.
   796  type X__clockid_t = int32 /* types.h:168:29 */
   797  
   798  // Timer ID returned by `timer_create'.
   799  type X__timer_t = uintptr /* types.h:171:12 */
   800  
   801  // Type to represent block size.
   802  type X__blksize_t = int64 /* types.h:174:29 */
   803  
   804  // Types from the Large File Support interface.
   805  
   806  // Type to count number of disk blocks.
   807  type X__blkcnt_t = int64   /* types.h:179:28 */
   808  type X__blkcnt64_t = int64 /* types.h:180:30 */
   809  
   810  // Type to count file system blocks.
   811  type X__fsblkcnt_t = uint64   /* types.h:183:30 */
   812  type X__fsblkcnt64_t = uint64 /* types.h:184:32 */
   813  
   814  // Type to count file system nodes.
   815  type X__fsfilcnt_t = uint64   /* types.h:187:30 */
   816  type X__fsfilcnt64_t = uint64 /* types.h:188:32 */
   817  
   818  // Type of miscellaneous file system fields.
   819  type X__fsword_t = int64 /* types.h:191:28 */
   820  
   821  type X__ssize_t = int64 /* types.h:193:27 */ // Type of a byte count, or error.
   822  
   823  // Signed long type used in system calls.
   824  type X__syscall_slong_t = int64 /* types.h:196:33 */
   825  // Unsigned long type used in system calls.
   826  type X__syscall_ulong_t = uint64 /* types.h:198:33 */
   827  
   828  // These few don't really vary by system, they always correspond
   829  //
   830  //	to one of the other defined types.
   831  type X__loff_t = X__off64_t /* types.h:202:19 */ // Type of file sizes and offsets (LFS).
   832  type X__caddr_t = uintptr   /* types.h:203:14 */
   833  
   834  // Duplicates info from stdint.h but this is used in unistd.h.
   835  type X__intptr_t = int64 /* types.h:206:25 */
   836  
   837  // Duplicate info from sys/socket.h.
   838  type X__socklen_t = uint32 /* types.h:209:23 */
   839  
   840  // C99: An integer type that can be accessed as an atomic entity,
   841  //
   842  //	even in the presence of asynchronous interrupts.
   843  //	It is not currently necessary for this to be machine-specific.
   844  type X__sig_atomic_t = int32 /* types.h:214:13 */
   845  
   846  // Seconds since the Epoch, visible to user code when time_t is too
   847  //    narrow only for consistency with the old way of widening too-narrow
   848  //    types.  User code should never use __time64_t.
   849  
   850  type U_char = X__u_char     /* types.h:33:18 */
   851  type U_short = X__u_short   /* types.h:34:19 */
   852  type U_int = X__u_int       /* types.h:35:17 */
   853  type U_long = X__u_long     /* types.h:36:18 */
   854  type Quad_t = X__quad_t     /* types.h:37:18 */
   855  type U_quad_t = X__u_quad_t /* types.h:38:20 */
   856  type Fsid_t = X__fsid_t     /* types.h:39:18 */
   857  type Loff_t = X__loff_t     /* types.h:42:18 */
   858  
   859  type Ino_t = X__ino64_t /* types.h:49:19 */
   860  
   861  type Dev_t = X__dev_t /* types.h:59:17 */
   862  
   863  type Gid_t = X__gid_t /* types.h:64:17 */
   864  
   865  type Mode_t = X__mode_t /* types.h:69:18 */
   866  
   867  type Nlink_t = X__nlink_t /* types.h:74:19 */
   868  
   869  type Uid_t = X__uid_t /* types.h:79:17 */
   870  
   871  type Off_t = X__off64_t /* types.h:87:19 */
   872  
   873  type Pid_t = X__pid_t /* types.h:97:17 */
   874  
   875  type Id_t = X__id_t /* types.h:103:16 */
   876  
   877  type Ssize_t = X__ssize_t /* types.h:108:19 */
   878  
   879  type Daddr_t = X__daddr_t /* types.h:114:19 */
   880  type Caddr_t = X__caddr_t /* types.h:115:19 */
   881  
   882  type Key_t = X__key_t /* types.h:121:17 */
   883  
   884  // bits/types.h -- definitions of __*_t types underlying *_t types.
   885  //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
   886  //    This file is part of the GNU C Library.
   887  //
   888  //    The GNU C Library is free software; you can redistribute it and/or
   889  //    modify it under the terms of the GNU Lesser General Public
   890  //    License as published by the Free Software Foundation; either
   891  //    version 2.1 of the License, or (at your option) any later version.
   892  //
   893  //    The GNU C Library is distributed in the hope that it will be useful,
   894  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   895  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   896  //    Lesser General Public License for more details.
   897  //
   898  //    You should have received a copy of the GNU Lesser General Public
   899  //    License along with the GNU C Library; if not, see
   900  //    <https://www.gnu.org/licenses/>.
   901  
   902  // Never include this file directly; use <sys/types.h> instead.
   903  
   904  // Returned by `clock'.
   905  type Clock_t = X__clock_t /* clock_t.h:7:19 */
   906  
   907  // bits/types.h -- definitions of __*_t types underlying *_t types.
   908  //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
   909  //    This file is part of the GNU C Library.
   910  //
   911  //    The GNU C Library is free software; you can redistribute it and/or
   912  //    modify it under the terms of the GNU Lesser General Public
   913  //    License as published by the Free Software Foundation; either
   914  //    version 2.1 of the License, or (at your option) any later version.
   915  //
   916  //    The GNU C Library is distributed in the hope that it will be useful,
   917  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   918  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   919  //    Lesser General Public License for more details.
   920  //
   921  //    You should have received a copy of the GNU Lesser General Public
   922  //    License along with the GNU C Library; if not, see
   923  //    <https://www.gnu.org/licenses/>.
   924  
   925  // Never include this file directly; use <sys/types.h> instead.
   926  
   927  // Clock ID used in clock and timer functions.
   928  type Clockid_t = X__clockid_t /* clockid_t.h:7:21 */
   929  
   930  // bits/types.h -- definitions of __*_t types underlying *_t types.
   931  //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
   932  //    This file is part of the GNU C Library.
   933  //
   934  //    The GNU C Library is free software; you can redistribute it and/or
   935  //    modify it under the terms of the GNU Lesser General Public
   936  //    License as published by the Free Software Foundation; either
   937  //    version 2.1 of the License, or (at your option) any later version.
   938  //
   939  //    The GNU C Library is distributed in the hope that it will be useful,
   940  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   941  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   942  //    Lesser General Public License for more details.
   943  //
   944  //    You should have received a copy of the GNU Lesser General Public
   945  //    License along with the GNU C Library; if not, see
   946  //    <https://www.gnu.org/licenses/>.
   947  
   948  // Never include this file directly; use <sys/types.h> instead.
   949  
   950  // Returned by `time'.
   951  type Time_t = X__time_t /* time_t.h:7:18 */
   952  
   953  // bits/types.h -- definitions of __*_t types underlying *_t types.
   954  //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
   955  //    This file is part of the GNU C Library.
   956  //
   957  //    The GNU C Library is free software; you can redistribute it and/or
   958  //    modify it under the terms of the GNU Lesser General Public
   959  //    License as published by the Free Software Foundation; either
   960  //    version 2.1 of the License, or (at your option) any later version.
   961  //
   962  //    The GNU C Library is distributed in the hope that it will be useful,
   963  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   964  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   965  //    Lesser General Public License for more details.
   966  //
   967  //    You should have received a copy of the GNU Lesser General Public
   968  //    License along with the GNU C Library; if not, see
   969  //    <https://www.gnu.org/licenses/>.
   970  
   971  // Never include this file directly; use <sys/types.h> instead.
   972  
   973  // Timer ID returned by `timer_create'.
   974  type Timer_t = X__timer_t /* timer_t.h:7:19 */
   975  
   976  // Copyright (C) 1989-2020 Free Software Foundation, Inc.
   977  //
   978  // This file is part of GCC.
   979  //
   980  // GCC is free software; you can redistribute it and/or modify
   981  // it under the terms of the GNU General Public License as published by
   982  // the Free Software Foundation; either version 3, or (at your option)
   983  // any later version.
   984  //
   985  // GCC is distributed in the hope that it will be useful,
   986  // but WITHOUT ANY WARRANTY; without even the implied warranty of
   987  // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   988  // GNU General Public License for more details.
   989  //
   990  // Under Section 7 of GPL version 3, you are granted additional
   991  // permissions described in the GCC Runtime Library Exception, version
   992  // 3.1, as published by the Free Software Foundation.
   993  //
   994  // You should have received a copy of the GNU General Public License and
   995  // a copy of the GCC Runtime Library Exception along with this program;
   996  // see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
   997  // <http://www.gnu.org/licenses/>.
   998  
   999  // ISO C Standard:  7.17  Common definitions  <stddef.h>
  1000  
  1001  // Any one of these symbols __need_* means that GNU libc
  1002  //    wants us just to define one data type.  So don't define
  1003  //    the symbols that indicate this file's entire job has been done.
  1004  
  1005  // This avoids lossage on SunOS but only if stdtypes.h comes first.
  1006  //    There's no way to win with the other order!  Sun lossage.
  1007  
  1008  // Sequent's header files use _PTRDIFF_T_ in some conflicting way.
  1009  //    Just ignore it.
  1010  
  1011  // On VxWorks, <type/vxTypesBase.h> may have defined macros like
  1012  //    _TYPE_size_t which will typedef size_t.  fixincludes patched the
  1013  //    vxTypesBase.h so that this macro is only defined if _GCC_SIZE_T is
  1014  //    not defined, and so that defining this macro defines _GCC_SIZE_T.
  1015  //    If we find that the macros are still defined at this point, we must
  1016  //    invoke them so that the type is defined as expected.
  1017  
  1018  // In case nobody has defined these types, but we aren't running under
  1019  //    GCC 2.00, make sure that __PTRDIFF_TYPE__, __SIZE_TYPE__, and
  1020  //    __WCHAR_TYPE__ have reasonable values.  This can happen if the
  1021  //    parts of GCC is compiled by an older compiler, that actually
  1022  //    include gstddef.h, such as collect2.
  1023  
  1024  // Signed type of difference of two pointers.
  1025  
  1026  // Define this type if we are doing the whole job,
  1027  //    or if we want this type in particular.
  1028  
  1029  // Unsigned type of `sizeof' something.
  1030  
  1031  // Define this type if we are doing the whole job,
  1032  //    or if we want this type in particular.
  1033  
  1034  // Wide character type.
  1035  //    Locale-writers should change this as necessary to
  1036  //    be big enough to hold unique values not between 0 and 127,
  1037  //    and not (wchar_t) -1, for each defined multibyte character.
  1038  
  1039  // Define this type if we are doing the whole job,
  1040  //    or if we want this type in particular.
  1041  
  1042  // A null pointer constant.
  1043  
  1044  // Old compatibility names for C types.
  1045  type Ulong = uint64  /* types.h:148:27 */
  1046  type Ushort = uint16 /* types.h:149:28 */
  1047  type Uint = uint32   /* types.h:150:22 */
  1048  
  1049  // These size-specific names are used by some of the inet code.
  1050  
  1051  // Define intN_t types.
  1052  //    Copyright (C) 2017-2020 Free Software Foundation, Inc.
  1053  //    This file is part of the GNU C Library.
  1054  //
  1055  //    The GNU C Library is free software; you can redistribute it and/or
  1056  //    modify it under the terms of the GNU Lesser General Public
  1057  //    License as published by the Free Software Foundation; either
  1058  //    version 2.1 of the License, or (at your option) any later version.
  1059  //
  1060  //    The GNU C Library is distributed in the hope that it will be useful,
  1061  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1062  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1063  //    Lesser General Public License for more details.
  1064  //
  1065  //    You should have received a copy of the GNU Lesser General Public
  1066  //    License along with the GNU C Library; if not, see
  1067  //    <https://www.gnu.org/licenses/>.
  1068  
  1069  // bits/types.h -- definitions of __*_t types underlying *_t types.
  1070  //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
  1071  //    This file is part of the GNU C Library.
  1072  //
  1073  //    The GNU C Library is free software; you can redistribute it and/or
  1074  //    modify it under the terms of the GNU Lesser General Public
  1075  //    License as published by the Free Software Foundation; either
  1076  //    version 2.1 of the License, or (at your option) any later version.
  1077  //
  1078  //    The GNU C Library is distributed in the hope that it will be useful,
  1079  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1080  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1081  //    Lesser General Public License for more details.
  1082  //
  1083  //    You should have received a copy of the GNU Lesser General Public
  1084  //    License along with the GNU C Library; if not, see
  1085  //    <https://www.gnu.org/licenses/>.
  1086  
  1087  // Never include this file directly; use <sys/types.h> instead.
  1088  
  1089  type Int8_t = X__int8_t   /* stdint-intn.h:24:18 */
  1090  type Int16_t = X__int16_t /* stdint-intn.h:25:19 */
  1091  type Int32_t = X__int32_t /* stdint-intn.h:26:19 */
  1092  type Int64_t = X__int64_t /* stdint-intn.h:27:19 */
  1093  
  1094  // These were defined by ISO C without the first `_'.
  1095  type U_int8_t = X__uint8_t   /* types.h:158:19 */
  1096  type U_int16_t = X__uint16_t /* types.h:159:20 */
  1097  type U_int32_t = X__uint32_t /* types.h:160:20 */
  1098  type U_int64_t = X__uint64_t /* types.h:161:20 */
  1099  
  1100  type Register_t = int32 /* types.h:164:13 */
  1101  
  1102  // It also defines `fd_set' and the FD_* macros for `select'.
  1103  // `fd_set' type and related macros, and `select'/`pselect' declarations.
  1104  //    Copyright (C) 1996-2020 Free Software Foundation, Inc.
  1105  //    This file is part of the GNU C Library.
  1106  //
  1107  //    The GNU C Library is free software; you can redistribute it and/or
  1108  //    modify it under the terms of the GNU Lesser General Public
  1109  //    License as published by the Free Software Foundation; either
  1110  //    version 2.1 of the License, or (at your option) any later version.
  1111  //
  1112  //    The GNU C Library is distributed in the hope that it will be useful,
  1113  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1114  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1115  //    Lesser General Public License for more details.
  1116  //
  1117  //    You should have received a copy of the GNU Lesser General Public
  1118  //    License along with the GNU C Library; if not, see
  1119  //    <https://www.gnu.org/licenses/>.
  1120  
  1121  //	POSIX 1003.1g: 6.2 Select from File Descriptor Sets <sys/select.h>
  1122  
  1123  // Copyright (C) 1991-2020 Free Software Foundation, Inc.
  1124  //    This file is part of the GNU C Library.
  1125  //
  1126  //    The GNU C Library is free software; you can redistribute it and/or
  1127  //    modify it under the terms of the GNU Lesser General Public
  1128  //    License as published by the Free Software Foundation; either
  1129  //    version 2.1 of the License, or (at your option) any later version.
  1130  //
  1131  //    The GNU C Library is distributed in the hope that it will be useful,
  1132  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1133  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1134  //    Lesser General Public License for more details.
  1135  //
  1136  //    You should have received a copy of the GNU Lesser General Public
  1137  //    License along with the GNU C Library; if not, see
  1138  //    <https://www.gnu.org/licenses/>.
  1139  
  1140  // Get definition of needed basic types.
  1141  // bits/types.h -- definitions of __*_t types underlying *_t types.
  1142  //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
  1143  //    This file is part of the GNU C Library.
  1144  //
  1145  //    The GNU C Library is free software; you can redistribute it and/or
  1146  //    modify it under the terms of the GNU Lesser General Public
  1147  //    License as published by the Free Software Foundation; either
  1148  //    version 2.1 of the License, or (at your option) any later version.
  1149  //
  1150  //    The GNU C Library is distributed in the hope that it will be useful,
  1151  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1152  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1153  //    Lesser General Public License for more details.
  1154  //
  1155  //    You should have received a copy of the GNU Lesser General Public
  1156  //    License along with the GNU C Library; if not, see
  1157  //    <https://www.gnu.org/licenses/>.
  1158  
  1159  // Never include this file directly; use <sys/types.h> instead.
  1160  
  1161  // Get __FD_* definitions.
  1162  // Copyright (C) 1997-2020 Free Software Foundation, Inc.
  1163  //    This file is part of the GNU C Library.
  1164  //
  1165  //    The GNU C Library is free software; you can redistribute it and/or
  1166  //    modify it under the terms of the GNU Lesser General Public
  1167  //    License as published by the Free Software Foundation; either
  1168  //    version 2.1 of the License, or (at your option) any later version.
  1169  //
  1170  //    The GNU C Library is distributed in the hope that it will be useful,
  1171  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1172  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1173  //    Lesser General Public License for more details.
  1174  //
  1175  //    You should have received a copy of the GNU Lesser General Public
  1176  //    License along with the GNU C Library; if not, see
  1177  //    <https://www.gnu.org/licenses/>.
  1178  
  1179  // Determine the wordsize from the preprocessor defines.
  1180  
  1181  // Both x86-64 and x32 use the 64-bit system call interface.
  1182  
  1183  // Get sigset_t.
  1184  
  1185  type X__sigset_t = struct{ F__val [16]uint64 } /* __sigset_t.h:8:3 */
  1186  
  1187  // A set of signals to be blocked, unblocked, or waited for.
  1188  type Sigset_t = X__sigset_t /* sigset_t.h:7:20 */
  1189  
  1190  // Get definition of timer specification structures.
  1191  
  1192  // bits/types.h -- definitions of __*_t types underlying *_t types.
  1193  //    Copyright (C) 2002-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  // Never include this file directly; use <sys/types.h> instead.
  1211  
  1212  // A time value that is accurate to the nearest
  1213  //
  1214  //	microsecond but also has a range of years.
  1215  type Timeval = struct {
  1216  	Ftv_sec  X__time_t
  1217  	Ftv_usec X__suseconds_t
  1218  } /* struct_timeval.h:8:1 */
  1219  
  1220  // NB: Include guard matches what <linux/time.h> uses.
  1221  
  1222  // bits/types.h -- definitions of __*_t types underlying *_t types.
  1223  //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
  1224  //    This file is part of the GNU C Library.
  1225  //
  1226  //    The GNU C Library is free software; you can redistribute it and/or
  1227  //    modify it under the terms of the GNU Lesser General Public
  1228  //    License as published by the Free Software Foundation; either
  1229  //    version 2.1 of the License, or (at your option) any later version.
  1230  //
  1231  //    The GNU C Library is distributed in the hope that it will be useful,
  1232  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1233  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1234  //    Lesser General Public License for more details.
  1235  //
  1236  //    You should have received a copy of the GNU Lesser General Public
  1237  //    License along with the GNU C Library; if not, see
  1238  //    <https://www.gnu.org/licenses/>.
  1239  
  1240  // Never include this file directly; use <sys/types.h> instead.
  1241  
  1242  // Endian macros for string.h functions
  1243  //    Copyright (C) 1992-2020 Free Software Foundation, Inc.
  1244  //    This file is part of the GNU C Library.
  1245  //
  1246  //    The GNU C Library is free software; you can redistribute it and/or
  1247  //    modify it under the terms of the GNU Lesser General Public
  1248  //    License as published by the Free Software Foundation; either
  1249  //    version 2.1 of the License, or (at your option) any later version.
  1250  //
  1251  //    The GNU C Library is distributed in the hope that it will be useful,
  1252  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1253  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1254  //    Lesser General Public License for more details.
  1255  //
  1256  //    You should have received a copy of the GNU Lesser General Public
  1257  //    License along with the GNU C Library; if not, see
  1258  //    <http://www.gnu.org/licenses/>.
  1259  
  1260  // POSIX.1b structure for a time value.  This is like a `struct timeval' but
  1261  //
  1262  //	has nanoseconds instead of microseconds.
  1263  type Timespec = struct {
  1264  	Ftv_sec  X__time_t
  1265  	Ftv_nsec X__syscall_slong_t
  1266  } /* struct_timespec.h:10:1 */
  1267  
  1268  type Suseconds_t = X__suseconds_t /* select.h:43:23 */
  1269  
  1270  // The fd_set member is required to be an array of longs.
  1271  type X__fd_mask = int64 /* select.h:49:18 */
  1272  
  1273  // Some versions of <linux/posix_types.h> define this macros.
  1274  // It's easier to assume 8-bit bytes than to get CHAR_BIT.
  1275  
  1276  // fd_set for select and pselect.
  1277  type Fd_set = struct{ F__fds_bits [16]X__fd_mask } /* select.h:70:5 */
  1278  
  1279  // Maximum number of file descriptors in `fd_set'.
  1280  
  1281  // Sometimes the fd_set member is assumed to have this type.
  1282  type Fd_mask = X__fd_mask /* select.h:77:19 */
  1283  
  1284  // Define some inlines helping to catch common problems.
  1285  
  1286  type Blksize_t = X__blksize_t /* types.h:185:21 */
  1287  
  1288  // Types from the Large File Support interface.
  1289  type Blkcnt_t = X__blkcnt64_t     /* types.h:205:22 */ // Type to count number of disk blocks.
  1290  type Fsblkcnt_t = X__fsblkcnt64_t /* types.h:209:24 */ // Type to count file system blocks.
  1291  type Fsfilcnt_t = X__fsfilcnt64_t /* types.h:213:24 */ // Type to count file system inodes.
  1292  
  1293  // Now add the thread types.
  1294  // Declaration of common pthread types for all architectures.
  1295  //    Copyright (C) 2017-2020 Free Software Foundation, Inc.
  1296  //    This file is part of the GNU C Library.
  1297  //
  1298  //    The GNU C Library is free software; you can redistribute it and/or
  1299  //    modify it under the terms of the GNU Lesser General Public
  1300  //    License as published by the Free Software Foundation; either
  1301  //    version 2.1 of the License, or (at your option) any later version.
  1302  //
  1303  //    The GNU C Library is distributed in the hope that it will be useful,
  1304  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1305  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1306  //    Lesser General Public License for more details.
  1307  //
  1308  //    You should have received a copy of the GNU Lesser General Public
  1309  //    License along with the GNU C Library; if not, see
  1310  //    <https://www.gnu.org/licenses/>.
  1311  
  1312  // For internal mutex and condition variable definitions.
  1313  // Common threading primitives definitions for both POSIX and C11.
  1314  //    Copyright (C) 2017-2020 Free Software Foundation, Inc.
  1315  //    This file is part of the GNU C Library.
  1316  //
  1317  //    The GNU C Library is free software; you can redistribute it and/or
  1318  //    modify it under the terms of the GNU Lesser General Public
  1319  //    License as published by the Free Software Foundation; either
  1320  //    version 2.1 of the License, or (at your option) any later version.
  1321  //
  1322  //    The GNU C Library is distributed in the hope that it will be useful,
  1323  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1324  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1325  //    Lesser General Public License for more details.
  1326  //
  1327  //    You should have received a copy of the GNU Lesser General Public
  1328  //    License along with the GNU C Library; if not, see
  1329  //    <https://www.gnu.org/licenses/>.
  1330  
  1331  // Arch-specific definitions.  Each architecture must define the following
  1332  //    macros to define the expected sizes of pthread data types:
  1333  //
  1334  //    __SIZEOF_PTHREAD_ATTR_T        - size of pthread_attr_t.
  1335  //    __SIZEOF_PTHREAD_MUTEX_T       - size of pthread_mutex_t.
  1336  //    __SIZEOF_PTHREAD_MUTEXATTR_T   - size of pthread_mutexattr_t.
  1337  //    __SIZEOF_PTHREAD_COND_T        - size of pthread_cond_t.
  1338  //    __SIZEOF_PTHREAD_CONDATTR_T    - size of pthread_condattr_t.
  1339  //    __SIZEOF_PTHREAD_RWLOCK_T      - size of pthread_rwlock_t.
  1340  //    __SIZEOF_PTHREAD_RWLOCKATTR_T  - size of pthread_rwlockattr_t.
  1341  //    __SIZEOF_PTHREAD_BARRIER_T     - size of pthread_barrier_t.
  1342  //    __SIZEOF_PTHREAD_BARRIERATTR_T - size of pthread_barrierattr_t.
  1343  //
  1344  //    The additional macro defines any constraint for the lock alignment
  1345  //    inside the thread structures:
  1346  //
  1347  //    __LOCK_ALIGNMENT - for internal lock/futex usage.
  1348  //
  1349  //    Same idea but for the once locking primitive:
  1350  //
  1351  //    __ONCE_ALIGNMENT - for pthread_once_t/once_flag definition.
  1352  
  1353  // Copyright (C) 2002-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  // Determine the wordsize from the preprocessor defines.
  1371  
  1372  // Both x86-64 and x32 use the 64-bit system call interface.
  1373  
  1374  // Common definition of pthread_mutex_t.
  1375  
  1376  type X__pthread_internal_list = struct {
  1377  	F__prev uintptr
  1378  	F__next uintptr
  1379  } /* thread-shared-types.h:49:9 */
  1380  
  1381  // Type to count file system inodes.
  1382  
  1383  // Now add the thread types.
  1384  // Declaration of common pthread types for all architectures.
  1385  //    Copyright (C) 2017-2020 Free Software Foundation, Inc.
  1386  //    This file is part of the GNU C Library.
  1387  //
  1388  //    The GNU C Library is free software; you can redistribute it and/or
  1389  //    modify it under the terms of the GNU Lesser General Public
  1390  //    License as published by the Free Software Foundation; either
  1391  //    version 2.1 of the License, or (at your option) any later version.
  1392  //
  1393  //    The GNU C Library is distributed in the hope that it will be useful,
  1394  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1395  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1396  //    Lesser General Public License for more details.
  1397  //
  1398  //    You should have received a copy of the GNU Lesser General Public
  1399  //    License along with the GNU C Library; if not, see
  1400  //    <https://www.gnu.org/licenses/>.
  1401  
  1402  // For internal mutex and condition variable definitions.
  1403  // Common threading primitives definitions for both POSIX and C11.
  1404  //    Copyright (C) 2017-2020 Free Software Foundation, Inc.
  1405  //    This file is part of the GNU C Library.
  1406  //
  1407  //    The GNU C Library is free software; you can redistribute it and/or
  1408  //    modify it under the terms of the GNU Lesser General Public
  1409  //    License as published by the Free Software Foundation; either
  1410  //    version 2.1 of the License, or (at your option) any later version.
  1411  //
  1412  //    The GNU C Library is distributed in the hope that it will be useful,
  1413  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1414  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1415  //    Lesser General Public License for more details.
  1416  //
  1417  //    You should have received a copy of the GNU Lesser General Public
  1418  //    License along with the GNU C Library; if not, see
  1419  //    <https://www.gnu.org/licenses/>.
  1420  
  1421  // Arch-specific definitions.  Each architecture must define the following
  1422  //    macros to define the expected sizes of pthread data types:
  1423  //
  1424  //    __SIZEOF_PTHREAD_ATTR_T        - size of pthread_attr_t.
  1425  //    __SIZEOF_PTHREAD_MUTEX_T       - size of pthread_mutex_t.
  1426  //    __SIZEOF_PTHREAD_MUTEXATTR_T   - size of pthread_mutexattr_t.
  1427  //    __SIZEOF_PTHREAD_COND_T        - size of pthread_cond_t.
  1428  //    __SIZEOF_PTHREAD_CONDATTR_T    - size of pthread_condattr_t.
  1429  //    __SIZEOF_PTHREAD_RWLOCK_T      - size of pthread_rwlock_t.
  1430  //    __SIZEOF_PTHREAD_RWLOCKATTR_T  - size of pthread_rwlockattr_t.
  1431  //    __SIZEOF_PTHREAD_BARRIER_T     - size of pthread_barrier_t.
  1432  //    __SIZEOF_PTHREAD_BARRIERATTR_T - size of pthread_barrierattr_t.
  1433  //
  1434  //    The additional macro defines any constraint for the lock alignment
  1435  //    inside the thread structures:
  1436  //
  1437  //    __LOCK_ALIGNMENT - for internal lock/futex usage.
  1438  //
  1439  //    Same idea but for the once locking primitive:
  1440  //
  1441  //    __ONCE_ALIGNMENT - for pthread_once_t/once_flag definition.
  1442  
  1443  // Copyright (C) 2002-2020 Free Software Foundation, Inc.
  1444  //    This file is part of the GNU C Library.
  1445  //
  1446  //    The GNU C Library is free software; you can redistribute it and/or
  1447  //    modify it under the terms of the GNU Lesser General Public
  1448  //    License as published by the Free Software Foundation; either
  1449  //    version 2.1 of the License, or (at your option) any later version.
  1450  //
  1451  //    The GNU C Library is distributed in the hope that it will be useful,
  1452  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1453  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1454  //    Lesser General Public License for more details.
  1455  //
  1456  //    You should have received a copy of the GNU Lesser General Public
  1457  //    License along with the GNU C Library; if not, see
  1458  //    <https://www.gnu.org/licenses/>.
  1459  
  1460  // Determine the wordsize from the preprocessor defines.
  1461  
  1462  // Both x86-64 and x32 use the 64-bit system call interface.
  1463  
  1464  // Common definition of pthread_mutex_t.
  1465  
  1466  type X__pthread_list_t = X__pthread_internal_list /* thread-shared-types.h:53:3 */
  1467  
  1468  type X__pthread_internal_slist = struct{ F__next uintptr } /* thread-shared-types.h:55:9 */
  1469  
  1470  type X__pthread_slist_t = X__pthread_internal_slist /* thread-shared-types.h:58:3 */
  1471  
  1472  // Arch-specific mutex definitions.  A generic implementation is provided
  1473  //    by sysdeps/nptl/bits/struct_mutex.h.  If required, an architecture
  1474  //    can override it by defining:
  1475  //
  1476  //    1. struct __pthread_mutex_s (used on both pthread_mutex_t and mtx_t
  1477  //       definition).  It should contains at least the internal members
  1478  //       defined in the generic version.
  1479  //
  1480  //    2. __LOCK_ALIGNMENT for any extra attribute for internal lock used with
  1481  //       atomic operations.
  1482  //
  1483  //    3. The macro __PTHREAD_MUTEX_INITIALIZER used for static initialization.
  1484  //       It should initialize the mutex internal flag.
  1485  
  1486  // x86 internal mutex struct definitions.
  1487  //    Copyright (C) 2019-2020 Free Software Foundation, Inc.
  1488  //    This file is part of the GNU C Library.
  1489  //
  1490  //    The GNU C Library is free software; you can redistribute it and/or
  1491  //    modify it under the terms of the GNU Lesser General Public
  1492  //    License as published by the Free Software Foundation; either
  1493  //    version 2.1 of the License, or (at your option) any later version.
  1494  //
  1495  //    The GNU C Library is distributed in the hope that it will be useful,
  1496  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1497  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1498  //    Lesser General Public License for more details.
  1499  //
  1500  //    You should have received a copy of the GNU Lesser General Public
  1501  //    License along with the GNU C Library; if not, see
  1502  //    <http://www.gnu.org/licenses/>.
  1503  
  1504  type X__pthread_mutex_s = struct {
  1505  	F__lock    int32
  1506  	F__count   uint32
  1507  	F__owner   int32
  1508  	F__nusers  uint32
  1509  	F__kind    int32
  1510  	F__spins   int16
  1511  	F__elision int16
  1512  	F__list    X__pthread_list_t
  1513  } /* struct_mutex.h:22:1 */
  1514  
  1515  // Arch-sepecific read-write lock definitions.  A generic implementation is
  1516  //    provided by struct_rwlock.h.  If required, an architecture can override it
  1517  //    by defining:
  1518  //
  1519  //    1. struct __pthread_rwlock_arch_t (used on pthread_rwlock_t definition).
  1520  //       It should contain at least the internal members defined in the
  1521  //       generic version.
  1522  //
  1523  //    2. The macro __PTHREAD_RWLOCK_INITIALIZER used for static initialization.
  1524  //       It should initialize the rwlock internal type.
  1525  
  1526  // x86 internal rwlock struct definitions.
  1527  //    Copyright (C) 2019-2020 Free Software Foundation, Inc.
  1528  //
  1529  //    This file is part of the GNU C Library.
  1530  //
  1531  //    The GNU C Library is free software; you can redistribute it and/or
  1532  //    modify it under the terms of the GNU Lesser General Public
  1533  //    License as published by the Free Software Foundation; either
  1534  //    version 2.1 of the License, or (at your option) any later version.
  1535  //
  1536  //    The GNU C Library is distributed in the hope that it will be useful,
  1537  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1538  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1539  //    Lesser General Public License for more details.
  1540  //
  1541  //    You should have received a copy of the GNU Lesser General Public
  1542  //    License along with the GNU C Library; if not, see
  1543  //    <http://www.gnu.org/licenses/>.
  1544  
  1545  type X__pthread_rwlock_arch_t = struct {
  1546  	F__readers       uint32
  1547  	F__writers       uint32
  1548  	F__wrphase_futex uint32
  1549  	F__writers_futex uint32
  1550  	F__pad3          uint32
  1551  	F__pad4          uint32
  1552  	F__cur_writer    int32
  1553  	F__shared        int32
  1554  	F__rwelision     int8
  1555  	F__pad1          [7]uint8
  1556  	F__pad2          uint64
  1557  	F__flags         uint32
  1558  	F__ccgo_pad1     [4]byte
  1559  } /* struct_rwlock.h:23:1 */
  1560  
  1561  // Common definition of pthread_cond_t.
  1562  
  1563  type X__pthread_cond_s = struct {
  1564  	F__0            struct{ F__wseq uint64 }
  1565  	F__8            struct{ F__g1_start uint64 }
  1566  	F__g_refs       [2]uint32
  1567  	F__g_size       [2]uint32
  1568  	F__g1_orig_size uint32
  1569  	F__wrefs        uint32
  1570  	F__g_signals    [2]uint32
  1571  } /* thread-shared-types.h:92:1 */
  1572  
  1573  // Thread identifiers.  The structure of the attribute type is not
  1574  //
  1575  //	exposed on purpose.
  1576  type Pthread_t = uint64 /* pthreadtypes.h:27:27 */
  1577  
  1578  // Data structures for mutex handling.  The structure of the attribute
  1579  //
  1580  //	type is not exposed on purpose.
  1581  type Pthread_mutexattr_t = struct {
  1582  	F__ccgo_pad1 [0]uint32
  1583  	F__size      [4]int8
  1584  } /* pthreadtypes.h:36:3 */
  1585  
  1586  // Data structure for condition variable handling.  The structure of
  1587  //
  1588  //	the attribute type is not exposed on purpose.
  1589  type Pthread_condattr_t = struct {
  1590  	F__ccgo_pad1 [0]uint32
  1591  	F__size      [4]int8
  1592  } /* pthreadtypes.h:45:3 */
  1593  
  1594  // Keys for thread-specific data
  1595  type Pthread_key_t = uint32 /* pthreadtypes.h:49:22 */
  1596  
  1597  // Once-only execution
  1598  type Pthread_once_t = int32 /* pthreadtypes.h:53:30 */
  1599  
  1600  type Pthread_attr_t1 = struct {
  1601  	F__ccgo_pad1 [0]uint64
  1602  	F__size      [56]int8
  1603  } /* pthreadtypes.h:56:1 */
  1604  
  1605  type Pthread_attr_t = Pthread_attr_t1 /* pthreadtypes.h:62:30 */
  1606  
  1607  type Pthread_mutex_t = struct{ F__data X__pthread_mutex_s } /* pthreadtypes.h:72:3 */
  1608  
  1609  type Pthread_cond_t = struct{ F__data X__pthread_cond_s } /* pthreadtypes.h:80:3 */
  1610  
  1611  // Data structure for reader-writer lock variable handling.  The
  1612  //
  1613  //	structure of the attribute type is deliberately not exposed.
  1614  type Pthread_rwlock_t = struct{ F__data X__pthread_rwlock_arch_t } /* pthreadtypes.h:91:3 */
  1615  
  1616  type Pthread_rwlockattr_t = struct {
  1617  	F__ccgo_pad1 [0]uint64
  1618  	F__size      [8]int8
  1619  } /* pthreadtypes.h:97:3 */
  1620  
  1621  // POSIX spinlock data type.
  1622  type Pthread_spinlock_t = int32 /* pthreadtypes.h:103:22 */
  1623  
  1624  // POSIX barriers data type.  The structure of the type is
  1625  //
  1626  //	deliberately not exposed.
  1627  type Pthread_barrier_t = struct {
  1628  	F__ccgo_pad1 [0]uint64
  1629  	F__size      [32]int8
  1630  } /* pthreadtypes.h:112:3 */
  1631  
  1632  type Pthread_barrierattr_t = struct {
  1633  	F__ccgo_pad1 [0]uint32
  1634  	F__size      [4]int8
  1635  } /* pthreadtypes.h:118:3 */
  1636  
  1637  // Type for length arguments in socket calls.
  1638  type Socklen_t = X__socklen_t /* socket.h:33:21 */
  1639  
  1640  // Protocol families.
  1641  
  1642  // Address families.
  1643  
  1644  // Socket level values.  Others are defined in the appropriate headers.
  1645  //
  1646  //    XXX These definitions also should go into the appropriate headers as
  1647  //    far as they are available.
  1648  
  1649  // Maximum queue length specifiable by listen.
  1650  
  1651  // Get the definition of the macro to define the common sockaddr members.
  1652  // Definition of struct sockaddr_* common members and sizes, generic version.
  1653  //    Copyright (C) 1995-2020 Free Software Foundation, Inc.
  1654  //    This file is part of the GNU C Library.
  1655  //
  1656  //    The GNU C Library is free software; you can redistribute it and/or
  1657  //    modify it under the terms of the GNU Lesser General Public
  1658  //    License as published by the Free Software Foundation; either
  1659  //    version 2.1 of the License, or (at your option) any later version.
  1660  //
  1661  //    The GNU C Library is distributed in the hope that it will be useful,
  1662  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1663  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1664  //    Lesser General Public License for more details.
  1665  //
  1666  //    You should have received a copy of the GNU Lesser General Public
  1667  //    License along with the GNU C Library; if not, see
  1668  //    <https://www.gnu.org/licenses/>.
  1669  
  1670  // Never include this file directly; use <sys/socket.h> instead.
  1671  
  1672  // POSIX.1g specifies this type name for the `sa_family' member.
  1673  type Sa_family_t = uint16 /* sockaddr.h:28:28 */
  1674  
  1675  // This macro is used to declare the initial common members
  1676  //    of the data types used for socket addresses, `struct sockaddr',
  1677  //    `struct sockaddr_in', `struct sockaddr_un', etc.
  1678  
  1679  // Size of struct sockaddr_storage.
  1680  
  1681  // Structure describing a generic socket address.
  1682  type Sockaddr = struct {
  1683  	Fsa_family Sa_family_t
  1684  	Fsa_data   [14]int8
  1685  } /* socket.h:178:1 */
  1686  
  1687  // Structure large enough to hold any socket address (with the historical
  1688  //    exception of AF_UNIX).
  1689  
  1690  type Sockaddr_storage = struct {
  1691  	Fss_family    Sa_family_t
  1692  	F__ss_padding [118]int8
  1693  	F__ss_align   uint64
  1694  } /* socket.h:191:1 */
  1695  
  1696  // Structure describing messages sent by
  1697  //
  1698  //	`sendmsg' and received by `recvmsg'.
  1699  type Msghdr = struct {
  1700  	Fmsg_name       uintptr
  1701  	Fmsg_namelen    Socklen_t
  1702  	F__ccgo_pad1    [4]byte
  1703  	Fmsg_iov        uintptr
  1704  	Fmsg_iovlen     Size_t
  1705  	Fmsg_control    uintptr
  1706  	Fmsg_controllen Size_t
  1707  	Fmsg_flags      int32
  1708  	F__ccgo_pad2    [4]byte
  1709  } /* socket.h:257:1 */
  1710  
  1711  // Structure used for storage of ancillary data object information.
  1712  type Cmsghdr = struct {
  1713  	F__ccgo_pad1 [0]uint64
  1714  	Fcmsg_len    Size_t
  1715  	Fcmsg_level  int32
  1716  	Fcmsg_type   int32
  1717  } /* socket.h:275:1 */
  1718  
  1719  // SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note
  1720  
  1721  // SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note
  1722  
  1723  // SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note
  1724  
  1725  // This allows for 1024 file descriptors: if NR_OPEN is ever grown
  1726  // beyond that you'll have to change this too. But 1024 fd's seem to be
  1727  // enough even for such "real" unices like OSF/1, so hopefully this is
  1728  // one limit that doesn't have to be changed [again].
  1729  //
  1730  // Note that POSIX wants the FD_CLEAR(fd,fdsetp) defines to be in
  1731  // <sys/time.h> (and thus <linux/time.h>) - but this is a more logical
  1732  // place for them. Solved by having dummy defines in <sys/time.h>.
  1733  
  1734  // This macro may have been defined in <gnu/types.h>. But we always
  1735  // use the one here.
  1736  
  1737  type X__kernel_fd_set = struct{ Ffds_bits [16]uint64 } /* posix_types.h:27:3 */
  1738  
  1739  // Type of a signal handler.
  1740  type X__kernel_sighandler_t = uintptr /* posix_types.h:30:14 */
  1741  
  1742  // Type of a SYSV IPC key.
  1743  type X__kernel_key_t = int32 /* posix_types.h:33:13 */
  1744  type X__kernel_mqd_t = int32 /* posix_types.h:34:13 */
  1745  
  1746  // SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note
  1747  // SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note
  1748  
  1749  // This file is generally used by user-level software, so you need to
  1750  // be a little careful about namespace pollution etc.  Also, we cannot
  1751  // assume GCC is being used.
  1752  
  1753  type X__kernel_old_uid_t = uint16 /* posix_types_64.h:11:24 */
  1754  type X__kernel_old_gid_t = uint16 /* posix_types_64.h:12:24 */
  1755  
  1756  type X__kernel_old_dev_t = uint64 /* posix_types_64.h:15:23 */
  1757  
  1758  // SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note
  1759  
  1760  // SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note
  1761  
  1762  // SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note
  1763  
  1764  // There seems to be no way of detecting this automatically from user
  1765  // space, so 64 bit architectures should override this in their
  1766  // bitsperlong.h. In particular, an architecture that supports
  1767  // both 32 and 64 bit user space must not rely on CONFIG_64BIT
  1768  // to decide it, but rather check a compiler provided macro.
  1769  
  1770  // This file is generally used by user-level software, so you need to
  1771  // be a little careful about namespace pollution etc.
  1772  //
  1773  // First the types that are often defined in different ways across
  1774  // architectures, so that you can override them.
  1775  
  1776  type X__kernel_long_t = int64   /* posix_types.h:15:15 */
  1777  type X__kernel_ulong_t = uint64 /* posix_types.h:16:23 */
  1778  
  1779  type X__kernel_ino_t = X__kernel_ulong_t /* posix_types.h:20:26 */
  1780  
  1781  type X__kernel_mode_t = uint32 /* posix_types.h:24:22 */
  1782  
  1783  type X__kernel_pid_t = int32 /* posix_types.h:28:14 */
  1784  
  1785  type X__kernel_ipc_pid_t = int32 /* posix_types.h:32:14 */
  1786  
  1787  type X__kernel_uid_t = uint32 /* posix_types.h:36:22 */
  1788  type X__kernel_gid_t = uint32 /* posix_types.h:37:22 */
  1789  
  1790  type X__kernel_suseconds_t = X__kernel_long_t /* posix_types.h:41:26 */
  1791  
  1792  type X__kernel_daddr_t = int32 /* posix_types.h:45:14 */
  1793  
  1794  type X__kernel_uid32_t = uint32 /* posix_types.h:49:22 */
  1795  type X__kernel_gid32_t = uint32 /* posix_types.h:50:22 */
  1796  
  1797  // Most 32 bit architectures use "unsigned int" size_t,
  1798  // and all 64 bit architectures use "unsigned long" size_t.
  1799  type X__kernel_size_t = X__kernel_ulong_t   /* posix_types.h:72:26 */
  1800  type X__kernel_ssize_t = X__kernel_long_t   /* posix_types.h:73:25 */
  1801  type X__kernel_ptrdiff_t = X__kernel_long_t /* posix_types.h:74:25 */
  1802  
  1803  type X__kernel_fsid_t = struct{ Fval [2]int32 } /* posix_types.h:81:3 */
  1804  
  1805  // anything below here should be completely generic
  1806  type X__kernel_off_t = X__kernel_long_t      /* posix_types.h:87:25 */
  1807  type X__kernel_loff_t = int64                /* posix_types.h:88:19 */
  1808  type X__kernel_old_time_t = X__kernel_long_t /* posix_types.h:89:25 */
  1809  type X__kernel_time_t = X__kernel_long_t     /* posix_types.h:90:25 */
  1810  type X__kernel_time64_t = int64              /* posix_types.h:91:19 */
  1811  type X__kernel_clock_t = X__kernel_long_t    /* posix_types.h:92:25 */
  1812  type X__kernel_timer_t = int32               /* posix_types.h:93:14 */
  1813  type X__kernel_clockid_t = int32             /* posix_types.h:94:14 */
  1814  type X__kernel_caddr_t = uintptr             /* posix_types.h:95:14 */
  1815  type X__kernel_uid16_t = uint16              /* posix_types.h:96:24 */
  1816  type X__kernel_gid16_t = uint16              /* posix_types.h:97:24 */
  1817  
  1818  // SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note
  1819  
  1820  // Socket-level I/O control calls.
  1821  
  1822  // For setsockopt(2)
  1823  
  1824  // Security levels - as per NRL IPv6 - don't actually do anything
  1825  
  1826  // Socket filtering
  1827  
  1828  // Instruct lower device to use last 4-bytes of skb data as FCS
  1829  
  1830  // on 64-bit and x32, avoid the ?: operator
  1831  
  1832  // Structure used to manipulate the SO_LINGER option.
  1833  type Linger = struct {
  1834  	Fl_onoff  int32
  1835  	Fl_linger int32
  1836  } /* socket.h:361:1 */
  1837  
  1838  // This is the 4.3 BSD `struct sockaddr' format, which is used as wire
  1839  //
  1840  //	format in the grotty old 4.3 `talk' protocol.
  1841  type Osockaddr = struct {
  1842  	Fsa_family uint16
  1843  	Fsa_data   [14]uint8
  1844  } /* struct_osockaddr.h:6:1 */
  1845  
  1846  // Define some macros helping to catch buffer overflows.
  1847  
  1848  var _ int8 /* gen.c:2:13: */