in_linux_s390x.go 112 KB

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