in_linux_mips64le.go 122 KB

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