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