netdb_linux_s390x.go 124 KB

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