netdb_linux_arm64.go 129 KB

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