in_linux_ppc64le.go 123 KB

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