netdb_linux_arm.go 129 KB

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