Debian Codegraph @

netinet/in/in_linux_ppc64le.go

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