ccgo_linux_s390x.go 115 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020
  1. // Code generated for linux/s390x by 'generator -no-main-minimize -DHAVE_LIBBSD --prefix-enumerator=_ --prefix-external=x_ --prefix-field=F --prefix-macro=m_ --prefix-static-internal=_ --prefix-static-none=_ --prefix-tagged-enum=_ --prefix-tagged-struct=T --prefix-tagged-union=T --prefix-typename=T --prefix-undefined=_ -extended-errors -ignore-unsupported-alignment -ignore-link-errors -I /home/jnml/src/modernc.org/builder/.exclude/modernc.org/libbsd/include/linux/s390x -lbsd -o libxdmcp.go --package-name libxdmcp .libs/libXdmcp.a', DO NOT EDIT.
  2. //go:build linux && s390x
  3. package libxdmcp
  4. import (
  5. "reflect"
  6. "unsafe"
  7. "modernc.org/libc"
  8. )
  9. var _ reflect.Type
  10. var _ unsafe.Pointer
  11. const m_AT_EACCESS = 0x200
  12. const m_AT_EMPTY_PATH = 0x1000
  13. const m_AT_NO_AUTOMOUNT = 0x800
  14. const m_AT_RECURSIVE = 0x8000
  15. const m_AT_REMOVEDIR = 0x200
  16. const m_AT_STATX_DONT_SYNC = 0x4000
  17. const m_AT_STATX_FORCE_SYNC = 0x2000
  18. const m_AT_STATX_SYNC_AS_STAT = 0x0000
  19. const m_AT_STATX_SYNC_TYPE = 0x6000
  20. const m_AT_SYMLINK_FOLLOW = 0x400
  21. const m_AT_SYMLINK_NOFOLLOW = 0x100
  22. const m_Above = 0
  23. const m_AllTemporary = 0
  24. const m_AllocAll = 1
  25. const m_AllocNone = 0
  26. const m_AllowExposures = 1
  27. const m_AlreadyGrabbed = 1
  28. const m_Always = 2
  29. const m_AnyButton = 0
  30. const m_AnyKey = 0
  31. const m_AnyPropertyType = 0
  32. const m_ArcChord = 0
  33. const m_ArcPieSlice = 1
  34. const m_AsyncBoth = 6
  35. const m_AsyncKeyboard = 3
  36. const m_AsyncPointer = 0
  37. const m_AutoRepeatModeDefault = 2
  38. const m_AutoRepeatModeOff = 0
  39. const m_AutoRepeatModeOn = 1
  40. const m_BIG_ENDIAN = "__BIG_ENDIAN"
  41. const m_BYTE_ORDER = "__BYTE_ORDER"
  42. const m_BadAccess = 10
  43. const m_BadAlloc = 11
  44. const m_BadAtom = 5
  45. const m_BadColor = 12
  46. const m_BadCursor = 6
  47. const m_BadDrawable = 9
  48. const m_BadFont = 7
  49. const m_BadGC = 13
  50. const m_BadIDChoice = 14
  51. const m_BadImplementation = 17
  52. const m_BadLength = 16
  53. const m_BadMatch = 8
  54. const m_BadName = 15
  55. const m_BadPixmap = 4
  56. const m_BadRequest = 1
  57. const m_BadValue = 2
  58. const m_BadWindow = 3
  59. const m_Below = 1
  60. const m_BottomIf = 3
  61. const m_Button1 = 1
  62. const m_Button2 = 2
  63. const m_Button3 = 3
  64. const m_Button4 = 4
  65. const m_Button5 = 5
  66. const m_ButtonPress = 4
  67. const m_ButtonRelease = 5
  68. const m_CLOCKS_PER_SEC = 1000000
  69. const m_CLOCK_BOOTTIME = 7
  70. const m_CLOCK_BOOTTIME_ALARM = 9
  71. const m_CLOCK_MONOTONIC = 1
  72. const m_CLOCK_MONOTONIC_COARSE = 6
  73. const m_CLOCK_MONOTONIC_RAW = 4
  74. const m_CLOCK_PROCESS_CPUTIME_ID = 2
  75. const m_CLOCK_REALTIME = 0
  76. const m_CLOCK_REALTIME_ALARM = 8
  77. const m_CLOCK_REALTIME_COARSE = 5
  78. const m_CLOCK_SGI_CYCLE = 10
  79. const m_CLOCK_TAI = 11
  80. const m_CLOCK_THREAD_CPUTIME_ID = 3
  81. const m_CapButt = 1
  82. const m_CapNotLast = 0
  83. const m_CapProjecting = 3
  84. const m_CapRound = 2
  85. const m_CenterGravity = 5
  86. const m_CirculateNotify = 26
  87. const m_CirculateRequest = 27
  88. const m_ClientMessage = 33
  89. const m_ClipByChildren = 0
  90. const m_ColormapInstalled = 1
  91. const m_ColormapNotify = 32
  92. const m_ColormapUninstalled = 0
  93. const m_Complex = 0
  94. const m_ConfigureNotify = 22
  95. const m_ConfigureRequest = 23
  96. const m_ControlMapIndex = 2
  97. const m_Convex = 2
  98. const m_CoordModeOrigin = 0
  99. const m_CoordModePrevious = 1
  100. const m_CopyFromParent = 0
  101. const m_CreateNotify = 16
  102. const m_CurrentTime = 0
  103. const m_CursorShape = 0
  104. const m_DN_ACCESS = 0x00000001
  105. const m_DN_ATTRIB = 0x00000020
  106. const m_DN_CREATE = 0x00000004
  107. const m_DN_DELETE = 0x00000008
  108. const m_DN_MODIFY = 0x00000002
  109. const m_DN_MULTISHOT = 0x80000000
  110. const m_DN_RENAME = 0x00000010
  111. const m_DefaultBlanking = 2
  112. const m_DefaultExposures = 2
  113. const m_DestroyAll = 0
  114. const m_DestroyNotify = 17
  115. const m_DirectColor = 5
  116. const m_DisableAccess = 0
  117. const m_DisableScreenInterval = 0
  118. const m_DisableScreenSaver = 0
  119. const m_DontAllowExposures = 0
  120. const m_DontPreferBlanking = 0
  121. const m_EXIT_FAILURE = 1
  122. const m_EXIT_SUCCESS = 0
  123. const m_EastGravity = 6
  124. const m_EnableAccess = 1
  125. const m_EnterNotify = 7
  126. const m_EvenOddRule = 0
  127. const m_Expose = 12
  128. const m_FALLOC_FL_KEEP_SIZE = 1
  129. const m_FALLOC_FL_PUNCH_HOLE = 2
  130. const m_FALSE = 0
  131. const m_FAPPEND = "O_APPEND"
  132. const m_FASYNC = "O_ASYNC"
  133. const m_FD_CLOEXEC = 1
  134. const m_FD_SETSIZE = 1024
  135. const m_FFSYNC = "O_SYNC"
  136. const m_FNDELAY = "O_NDELAY"
  137. const m_FNONBLOCK = "O_NONBLOCK"
  138. const m_FUNCPROTO = 15
  139. const m_F_ADD_SEALS = 1033
  140. const m_F_CANCELLK = 1029
  141. const m_F_DUPFD = 0
  142. const m_F_DUPFD_CLOEXEC = 1030
  143. const m_F_GETFD = 1
  144. const m_F_GETFL = 3
  145. const m_F_GETLEASE = 1025
  146. const m_F_GETLK = 5
  147. const m_F_GETOWN = 9
  148. const m_F_GETOWNER_UIDS = 17
  149. const m_F_GETOWN_EX = 16
  150. const m_F_GETPIPE_SZ = 1032
  151. const m_F_GETSIG = 11
  152. const m_F_GET_FILE_RW_HINT = 1037
  153. const m_F_GET_RW_HINT = 1035
  154. const m_F_GET_SEALS = 1034
  155. const m_F_LOCK = 1
  156. const m_F_NOTIFY = 1026
  157. const m_F_OFD_GETLK = 36
  158. const m_F_OFD_SETLK = 37
  159. const m_F_OFD_SETLKW = 38
  160. const m_F_OK = 0
  161. const m_F_OWNER_GID = 2
  162. const m_F_OWNER_PGRP = 2
  163. const m_F_OWNER_PID = 1
  164. const m_F_OWNER_TID = 0
  165. const m_F_RDLCK = 0
  166. const m_F_SEAL_FUTURE_WRITE = 0x0010
  167. const m_F_SEAL_GROW = 0x0004
  168. const m_F_SEAL_SEAL = 0x0001
  169. const m_F_SEAL_SHRINK = 0x0002
  170. const m_F_SEAL_WRITE = 0x0008
  171. const m_F_SETFD = 2
  172. const m_F_SETFL = 4
  173. const m_F_SETLEASE = 1024
  174. const m_F_SETLK = 6
  175. const m_F_SETLKW = 7
  176. const m_F_SETOWN = 8
  177. const m_F_SETOWN_EX = 15
  178. const m_F_SETPIPE_SZ = 1031
  179. const m_F_SETSIG = 10
  180. const m_F_SET_FILE_RW_HINT = 1038
  181. const m_F_SET_RW_HINT = 1036
  182. const m_F_TEST = 3
  183. const m_F_TLOCK = 2
  184. const m_F_ULOCK = 0
  185. const m_F_UNLCK = 2
  186. const m_F_WRLCK = 1
  187. const m_FamilyChaos = 2
  188. const m_FamilyDECnet = 1
  189. const m_FamilyInternet = 0
  190. const m_FamilyInternet6 = 6
  191. const m_FamilyServerInterpreted = 5
  192. const m_FillOpaqueStippled = 3
  193. const m_FillSolid = 0
  194. const m_FillStippled = 2
  195. const m_FillTiled = 1
  196. const m_FirstExtensionError = 128
  197. const m_FocusIn = 9
  198. const m_FocusOut = 10
  199. const m_FontChange = 255
  200. const m_FontLeftToRight = 0
  201. const m_FontRightToLeft = 1
  202. const m_ForgetGravity = 0
  203. const m_GCLastBit = 22
  204. const m_GXand = 0x1
  205. const m_GXandInverted = 0x4
  206. const m_GXandReverse = 0x2
  207. const m_GXclear = 0x0
  208. const m_GXcopy = 0x3
  209. const m_GXcopyInverted = 0xc
  210. const m_GXequiv = 0x9
  211. const m_GXinvert = 0xa
  212. const m_GXnand = 0xe
  213. const m_GXnoop = 0x5
  214. const m_GXnor = 0x8
  215. const m_GXor = 0x7
  216. const m_GXorInverted = 0xd
  217. const m_GXorReverse = 0xb
  218. const m_GXset = 0xf
  219. const m_GXxor = 0x6
  220. const m_GenericEvent = 35
  221. const m_GrabFrozen = 4
  222. const m_GrabInvalidTime = 2
  223. const m_GrabModeAsync = 1
  224. const m_GrabModeSync = 0
  225. const m_GrabNotViewable = 3
  226. const m_GrabSuccess = 0
  227. const m_GraphicsExpose = 13
  228. const m_GravityNotify = 24
  229. const m_GrayScale = 1
  230. const m_HASXDMAUTH = 1
  231. const m_HAVE_CONFIG_H = 1
  232. const m_HAVE_DLFCN_H = 1
  233. const m_HAVE_INTTYPES_H = 1
  234. const m_HAVE_LIBBSD = 1
  235. const m_HAVE_LRAND48 = 1
  236. const m_HAVE_MEMORY_H = 1
  237. const m_HAVE_SRAND48 = 1
  238. const m_HAVE_STDINT_H = 1
  239. const m_HAVE_STDLIB_H = 1
  240. const m_HAVE_STRINGS_H = 1
  241. const m_HAVE_STRING_H = 1
  242. const m_HAVE_SYS_STAT_H = 1
  243. const m_HAVE_SYS_TYPES_H = 1
  244. const m_HAVE_UNISTD_H = 1
  245. const m_HostDelete = 1
  246. const m_HostInsert = 0
  247. const m_INT16_MAX = 0x7fff
  248. const m_INT32_MAX = 0x7fffffff
  249. const m_INT64_MAX = 0x7fffffffffffffff
  250. const m_INT8_MAX = 0x7f
  251. const m_INTMAX_MAX = "INT64_MAX"
  252. const m_INTMAX_MIN = "INT64_MIN"
  253. const m_INTPTR_MAX = "INT64_MAX"
  254. const m_INTPTR_MIN = "INT64_MIN"
  255. const m_INT_FAST16_MAX = "INT32_MAX"
  256. const m_INT_FAST16_MIN = "INT32_MIN"
  257. const m_INT_FAST32_MAX = "INT32_MAX"
  258. const m_INT_FAST32_MIN = "INT32_MIN"
  259. const m_INT_FAST64_MAX = "INT64_MAX"
  260. const m_INT_FAST64_MIN = "INT64_MIN"
  261. const m_INT_FAST8_MAX = "INT8_MAX"
  262. const m_INT_FAST8_MIN = "INT8_MIN"
  263. const m_INT_LEAST16_MAX = "INT16_MAX"
  264. const m_INT_LEAST16_MIN = "INT16_MIN"
  265. const m_INT_LEAST32_MAX = "INT32_MAX"
  266. const m_INT_LEAST32_MIN = "INT32_MIN"
  267. const m_INT_LEAST64_MAX = "INT64_MAX"
  268. const m_INT_LEAST64_MIN = "INT64_MIN"
  269. const m_INT_LEAST8_MAX = "INT8_MAX"
  270. const m_INT_LEAST8_MIN = "INT8_MIN"
  271. const m_ITIMER_PROF = 2
  272. const m_ITIMER_REAL = 0
  273. const m_ITIMER_VIRTUAL = 1
  274. const m_IncludeInferiors = 1
  275. const m_InputFocus = 1
  276. const m_InputOnly = 2
  277. const m_InputOutput = 1
  278. const m_IsUnmapped = 0
  279. const m_IsUnviewable = 1
  280. const m_IsViewable = 2
  281. const m_JoinBevel = 2
  282. const m_JoinMiter = 0
  283. const m_JoinRound = 1
  284. const m_KeyPress = 2
  285. const m_KeyRelease = 3
  286. const m_KeymapNotify = 11
  287. const m_LASTEvent = 36
  288. const m_LITTLE_ENDIAN = "__LITTLE_ENDIAN"
  289. const m_LSBFirst = 0
  290. const m_LT_OBJDIR = ".libs/"
  291. const m_L_INCR = 1
  292. const m_L_SET = 0
  293. const m_L_XTND = 2
  294. const m_LastExtensionError = 255
  295. const m_LeaveNotify = 8
  296. const m_LedModeOff = 0
  297. const m_LedModeOn = 1
  298. const m_LineDoubleDash = 2
  299. const m_LineOnOffDash = 1
  300. const m_LineSolid = 0
  301. const m_LockMapIndex = 1
  302. const m_LowerHighest = 1
  303. const m_MAX_HANDLE_SZ = 128
  304. const m_MSBFirst = 1
  305. const m_MapNotify = 19
  306. const m_MapRequest = 20
  307. const m_MappingBusy = 1
  308. const m_MappingFailed = 2
  309. const m_MappingKeyboard = 1
  310. const m_MappingModifier = 0
  311. const m_MappingNotify = 34
  312. const m_MappingPointer = 2
  313. const m_MappingSuccess = 0
  314. const m_Mod1MapIndex = 3
  315. const m_Mod2MapIndex = 4
  316. const m_Mod3MapIndex = 5
  317. const m_Mod4MapIndex = 6
  318. const m_Mod5MapIndex = 7
  319. const m_MotionNotify = 6
  320. const m_NDEBUG = 1
  321. const m_NeedFunctionPrototypes = 1
  322. const m_NeedNestedPrototypes = 1
  323. const m_NeedVarargsPrototypes = 1
  324. const m_NeedWidePrototypes = 0
  325. const m_NoEventMask = 0
  326. const m_NoExpose = 14
  327. const m_NoSymbol = 0
  328. const m_Nonconvex = 1
  329. const m_None = 0
  330. const m_NorthEastGravity = 3
  331. const m_NorthGravity = 2
  332. const m_NorthWestGravity = 1
  333. const m_NotUseful = 0
  334. const m_NotifyAncestor = 0
  335. const m_NotifyDetailNone = 7
  336. const m_NotifyGrab = 1
  337. const m_NotifyHint = 1
  338. const m_NotifyInferior = 2
  339. const m_NotifyNonlinear = 3
  340. const m_NotifyNonlinearVirtual = 4
  341. const m_NotifyNormal = 0
  342. const m_NotifyPointer = 5
  343. const m_NotifyPointerRoot = 6
  344. const m_NotifyUngrab = 2
  345. const m_NotifyVirtual = 1
  346. const m_NotifyWhileGrabbed = 3
  347. const m_O_APPEND = 02000
  348. const m_O_ASYNC = 020000
  349. const m_O_CLOEXEC = 02000000
  350. const m_O_CREAT = 0100
  351. const m_O_DIRECT = 040000
  352. const m_O_DIRECTORY = 0200000
  353. const m_O_DSYNC = 010000
  354. const m_O_EXCL = 0200
  355. const m_O_EXEC = "O_PATH"
  356. const m_O_LARGEFILE = 0100000
  357. const m_O_NDELAY = "O_NONBLOCK"
  358. const m_O_NOATIME = 01000000
  359. const m_O_NOCTTY = 0400
  360. const m_O_NOFOLLOW = 0400000
  361. const m_O_NONBLOCK = 04000
  362. const m_O_PATH = 010000000
  363. const m_O_RDONLY = 00
  364. const m_O_RDWR = 02
  365. const m_O_RSYNC = 04010000
  366. const m_O_SEARCH = "O_PATH"
  367. const m_O_SYNC = 04010000
  368. const m_O_TMPFILE = 020200000
  369. const m_O_TRUNC = 01000
  370. const m_O_TTY_INIT = 0
  371. const m_O_WRONLY = 01
  372. const m_Opposite = 4
  373. const m_PACKAGE = "libXdmcp"
  374. const m_PACKAGE_BUGREPORT = "https://bugs.freedesktop.org/enter_bug.cgi?product=xorg"
  375. const m_PACKAGE_NAME = "libXdmcp"
  376. const m_PACKAGE_STRING = "libXdmcp 1.1.2"
  377. const m_PACKAGE_TARNAME = "libXdmcp"
  378. const m_PACKAGE_URL = ""
  379. const m_PACKAGE_VERSION = "1.1.2"
  380. const m_PACKAGE_VERSION_MAJOR = 1
  381. const m_PACKAGE_VERSION_MINOR = 1
  382. const m_PACKAGE_VERSION_PATCHLEVEL = 2
  383. const m_PDP_ENDIAN = "__PDP_ENDIAN"
  384. const m_POSIX_CLOSE_RESTART = 0
  385. const m_POSIX_FADV_DONTNEED = 6
  386. const m_POSIX_FADV_NOREUSE = 7
  387. const m_POSIX_FADV_NORMAL = 0
  388. const m_POSIX_FADV_RANDOM = 1
  389. const m_POSIX_FADV_SEQUENTIAL = 2
  390. const m_POSIX_FADV_WILLNEED = 3
  391. const m_PTRDIFF_MAX = "INT64_MAX"
  392. const m_PTRDIFF_MIN = "INT64_MIN"
  393. const m_ParentRelative = 1
  394. const m_PlaceOnBottom = 1
  395. const m_PlaceOnTop = 0
  396. const m_PointerRoot = 1
  397. const m_PointerWindow = 0
  398. const m_PreferBlanking = 1
  399. const m_PropModeAppend = 2
  400. const m_PropModePrepend = 1
  401. const m_PropModeReplace = 0
  402. const m_PropertyDelete = 1
  403. const m_PropertyNewValue = 0
  404. const m_PropertyNotify = 28
  405. const m_PseudoColor = 3
  406. const m_RAND_MAX = 0x7fffffff
  407. const m_RWF_WRITE_LIFE_NOT_SET = 0
  408. const m_RWH_WRITE_LIFE_EXTREME = 5
  409. const m_RWH_WRITE_LIFE_LONG = 4
  410. const m_RWH_WRITE_LIFE_MEDIUM = 3
  411. const m_RWH_WRITE_LIFE_NONE = 1
  412. const m_RWH_WRITE_LIFE_SHORT = 2
  413. const m_R_OK = 4
  414. const m_RaiseLowest = 0
  415. const m_ReparentNotify = 21
  416. const m_ReplayKeyboard = 5
  417. const m_ReplayPointer = 2
  418. const m_ResizeRequest = 25
  419. const m_RetainPermanent = 1
  420. const m_RetainTemporary = 2
  421. const m_RevertToParent = 2
  422. const m_SEEK_DATA = 3
  423. const m_SEEK_HOLE = 4
  424. const m_SIG_ATOMIC_MAX = "INT32_MAX"
  425. const m_SIG_ATOMIC_MIN = "INT32_MIN"
  426. const m_SIZE_MAX = "UINT64_MAX"
  427. const m_SPLICE_F_GIFT = 8
  428. const m_SPLICE_F_MORE = 4
  429. const m_SPLICE_F_MOVE = 1
  430. const m_SPLICE_F_NONBLOCK = 2
  431. const m_STDC_HEADERS = 1
  432. const m_STDERR_FILENO = 2
  433. const m_STDIN_FILENO = 0
  434. const m_STDOUT_FILENO = 1
  435. const m_SYNC_FILE_RANGE_WAIT_AFTER = 4
  436. const m_SYNC_FILE_RANGE_WAIT_BEFORE = 1
  437. const m_SYNC_FILE_RANGE_WRITE = 2
  438. const m_S_IRGRP = 0040
  439. const m_S_IROTH = 0004
  440. const m_S_IRUSR = 0400
  441. const m_S_IRWXG = 0070
  442. const m_S_IRWXO = 0007
  443. const m_S_IRWXU = 0700
  444. const m_S_ISGID = 02000
  445. const m_S_ISUID = 04000
  446. const m_S_ISVTX = 01000
  447. const m_S_IWGRP = 0020
  448. const m_S_IWOTH = 0002
  449. const m_S_IWUSR = 0200
  450. const m_S_IXGRP = 0010
  451. const m_S_IXOTH = 0001
  452. const m_S_IXUSR = 0100
  453. const m_ScreenSaverActive = 1
  454. const m_ScreenSaverReset = 0
  455. const m_SelectionClear = 29
  456. const m_SelectionNotify = 31
  457. const m_SelectionRequest = 30
  458. const m_SetModeDelete = 1
  459. const m_SetModeInsert = 0
  460. const m_ShiftMapIndex = 0
  461. const m_SouthEastGravity = 9
  462. const m_SouthGravity = 8
  463. const m_SouthWestGravity = 7
  464. const m_StaticColor = 2
  465. const m_StaticGravity = 10
  466. const m_StaticGray = 0
  467. const m_StippleShape = 2
  468. const m_Success = 0
  469. const m_SyncBoth = 7
  470. const m_SyncKeyboard = 4
  471. const m_SyncPointer = 1
  472. const m_TIMER_ABSTIME = 1
  473. const m_TIME_UTC = 1
  474. const m_TRUE = 1
  475. const m_TileShape = 1
  476. const m_TopIf = 2
  477. const m_TrueColor = 4
  478. const m_UINT16_MAX = 65535
  479. const m_UINT32_MAX = "0xffffffffu"
  480. const m_UINT64_MAX = "0xffffffffffffffffu"
  481. const m_UINT8_MAX = 255
  482. const m_UINTMAX_MAX = "UINT64_MAX"
  483. const m_UINTPTR_MAX = "UINT64_MAX"
  484. const m_UINT_FAST16_MAX = "UINT32_MAX"
  485. const m_UINT_FAST32_MAX = "UINT32_MAX"
  486. const m_UINT_FAST64_MAX = "UINT64_MAX"
  487. const m_UINT_FAST8_MAX = "UINT8_MAX"
  488. const m_UINT_LEAST16_MAX = "UINT16_MAX"
  489. const m_UINT_LEAST32_MAX = "UINT32_MAX"
  490. const m_UINT_LEAST64_MAX = "UINT64_MAX"
  491. const m_UINT_LEAST8_MAX = "UINT8_MAX"
  492. const m_UnmapGravity = 0
  493. const m_UnmapNotify = 18
  494. const m_Unsorted = 0
  495. const m_VERSION = "1.1.2"
  496. const m_VisibilityFullyObscured = 2
  497. const m_VisibilityNotify = 15
  498. const m_VisibilityPartiallyObscured = 1
  499. const m_VisibilityUnobscured = 0
  500. const m_WINT_MAX = "UINT32_MAX"
  501. const m_WINT_MIN = 0
  502. const m_WNOHANG = 1
  503. const m_WUNTRACED = 2
  504. const m_W_OK = 2
  505. const m_WestGravity = 4
  506. const m_WhenMapped = 1
  507. const m_WindingRule = 1
  508. const m_XDM_DEFAULT_MCAST_ADDR6 = "ff02:0:0:0:0:0:0:12b"
  509. const m_XDM_KA_RTX_LIMIT = 4
  510. const m_XDM_MAX_MSGLEN = 8192
  511. const m_XDM_MAX_RTX = 32
  512. const m_XDM_MIN_RTX = 2
  513. const m_XDM_PROTOCOL_VERSION = 1
  514. const m_XDM_RTX_LIMIT = 7
  515. const m_XDM_UDP_PORT = 177
  516. const m_XMD_H = 1
  517. const m_XYBitmap = 0
  518. const m_XYPixmap = 1
  519. const m_X_BIG_ENDIAN = "BIG_ENDIAN"
  520. const m_X_BYTE_ORDER = "BYTE_ORDER"
  521. const m_X_LITTLE_ENDIAN = "LITTLE_ENDIAN"
  522. const m_X_OK = 1
  523. const m_X_PROTOCOL = 11
  524. const m_X_PROTOCOL_REVISION = 0
  525. const m_YSorted = 1
  526. const m_YXBanded = 3
  527. const m_YXSorted = 2
  528. const m_ZPixmap = 2
  529. const m__ALL_SOURCE = 1
  530. const m__CS_GNU_LIBC_VERSION = 2
  531. const m__CS_GNU_LIBPTHREAD_VERSION = 3
  532. const m__CS_PATH = 0
  533. const m__CS_POSIX_V5_WIDTH_RESTRICTED_ENVS = 4
  534. const m__CS_POSIX_V6_ILP32_OFF32_CFLAGS = 1116
  535. const m__CS_POSIX_V6_ILP32_OFF32_LDFLAGS = 1117
  536. const m__CS_POSIX_V6_ILP32_OFF32_LIBS = 1118
  537. const m__CS_POSIX_V6_ILP32_OFF32_LINTFLAGS = 1119
  538. const m__CS_POSIX_V6_ILP32_OFFBIG_CFLAGS = 1120
  539. const m__CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS = 1121
  540. const m__CS_POSIX_V6_ILP32_OFFBIG_LIBS = 1122
  541. const m__CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS = 1123
  542. const m__CS_POSIX_V6_LP64_OFF64_CFLAGS = 1124
  543. const m__CS_POSIX_V6_LP64_OFF64_LDFLAGS = 1125
  544. const m__CS_POSIX_V6_LP64_OFF64_LIBS = 1126
  545. const m__CS_POSIX_V6_LP64_OFF64_LINTFLAGS = 1127
  546. const m__CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS = 1128
  547. const m__CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS = 1129
  548. const m__CS_POSIX_V6_LPBIG_OFFBIG_LIBS = 1130
  549. const m__CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS = 1131
  550. const m__CS_POSIX_V6_WIDTH_RESTRICTED_ENVS = 1
  551. const m__CS_POSIX_V7_ILP32_OFF32_CFLAGS = 1132
  552. const m__CS_POSIX_V7_ILP32_OFF32_LDFLAGS = 1133
  553. const m__CS_POSIX_V7_ILP32_OFF32_LIBS = 1134
  554. const m__CS_POSIX_V7_ILP32_OFF32_LINTFLAGS = 1135
  555. const m__CS_POSIX_V7_ILP32_OFFBIG_CFLAGS = 1136
  556. const m__CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS = 1137
  557. const m__CS_POSIX_V7_ILP32_OFFBIG_LIBS = 1138
  558. const m__CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS = 1139
  559. const m__CS_POSIX_V7_LP64_OFF64_CFLAGS = 1140
  560. const m__CS_POSIX_V7_LP64_OFF64_LDFLAGS = 1141
  561. const m__CS_POSIX_V7_LP64_OFF64_LIBS = 1142
  562. const m__CS_POSIX_V7_LP64_OFF64_LINTFLAGS = 1143
  563. const m__CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS = 1144
  564. const m__CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS = 1145
  565. const m__CS_POSIX_V7_LPBIG_OFFBIG_LIBS = 1146
  566. const m__CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS = 1147
  567. const m__CS_POSIX_V7_THREADS_CFLAGS = 1150
  568. const m__CS_POSIX_V7_THREADS_LDFLAGS = 1151
  569. const m__CS_POSIX_V7_WIDTH_RESTRICTED_ENVS = 5
  570. const m__CS_V6_ENV = 1148
  571. const m__CS_V7_ENV = 1149
  572. const m__GNU_SOURCE = 1
  573. const m__LP64 = 1
  574. const m__PC_2_SYMLINKS = 20
  575. const m__PC_ALLOC_SIZE_MIN = 18
  576. const m__PC_ASYNC_IO = 10
  577. const m__PC_CHOWN_RESTRICTED = 6
  578. const m__PC_FILESIZEBITS = 13
  579. const m__PC_LINK_MAX = 0
  580. const m__PC_MAX_CANON = 1
  581. const m__PC_MAX_INPUT = 2
  582. const m__PC_NAME_MAX = 3
  583. const m__PC_NO_TRUNC = 7
  584. const m__PC_PATH_MAX = 4
  585. const m__PC_PIPE_BUF = 5
  586. const m__PC_PRIO_IO = 11
  587. const m__PC_REC_INCR_XFER_SIZE = 14
  588. const m__PC_REC_MAX_XFER_SIZE = 15
  589. const m__PC_REC_MIN_XFER_SIZE = 16
  590. const m__PC_REC_XFER_ALIGN = 17
  591. const m__PC_SOCK_MAXBUF = 12
  592. const m__PC_SYMLINK_MAX = 19
  593. const m__PC_SYNC_IO = 9
  594. const m__PC_VDISABLE = 8
  595. const m__POSIX2_C_BIND = "_POSIX_VERSION"
  596. const m__POSIX2_VERSION = "_POSIX_VERSION"
  597. const m__POSIX_ADVISORY_INFO = "_POSIX_VERSION"
  598. const m__POSIX_ASYNCHRONOUS_IO = "_POSIX_VERSION"
  599. const m__POSIX_BARRIERS = "_POSIX_VERSION"
  600. const m__POSIX_CHOWN_RESTRICTED = 1
  601. const m__POSIX_CLOCK_SELECTION = "_POSIX_VERSION"
  602. const m__POSIX_CPUTIME = "_POSIX_VERSION"
  603. const m__POSIX_FSYNC = "_POSIX_VERSION"
  604. const m__POSIX_IPV6 = "_POSIX_VERSION"
  605. const m__POSIX_JOB_CONTROL = 1
  606. const m__POSIX_MAPPED_FILES = "_POSIX_VERSION"
  607. const m__POSIX_MEMLOCK = "_POSIX_VERSION"
  608. const m__POSIX_MEMLOCK_RANGE = "_POSIX_VERSION"
  609. const m__POSIX_MEMORY_PROTECTION = "_POSIX_VERSION"
  610. const m__POSIX_MESSAGE_PASSING = "_POSIX_VERSION"
  611. const m__POSIX_MONOTONIC_CLOCK = "_POSIX_VERSION"
  612. const m__POSIX_NO_TRUNC = 1
  613. const m__POSIX_PTHREAD_SEMANTICS = 1
  614. const m__POSIX_RAW_SOCKETS = "_POSIX_VERSION"
  615. const m__POSIX_READER_WRITER_LOCKS = "_POSIX_VERSION"
  616. const m__POSIX_REALTIME_SIGNALS = "_POSIX_VERSION"
  617. const m__POSIX_REGEXP = 1
  618. const m__POSIX_SAVED_IDS = 1
  619. const m__POSIX_SEMAPHORES = "_POSIX_VERSION"
  620. const m__POSIX_SHARED_MEMORY_OBJECTS = "_POSIX_VERSION"
  621. const m__POSIX_SHELL = 1
  622. const m__POSIX_SPAWN = "_POSIX_VERSION"
  623. const m__POSIX_SPIN_LOCKS = "_POSIX_VERSION"
  624. const m__POSIX_THREADS = "_POSIX_VERSION"
  625. const m__POSIX_THREAD_ATTR_STACKADDR = "_POSIX_VERSION"
  626. const m__POSIX_THREAD_ATTR_STACKSIZE = "_POSIX_VERSION"
  627. const m__POSIX_THREAD_CPUTIME = "_POSIX_VERSION"
  628. const m__POSIX_THREAD_PRIORITY_SCHEDULING = "_POSIX_VERSION"
  629. const m__POSIX_THREAD_PROCESS_SHARED = "_POSIX_VERSION"
  630. const m__POSIX_THREAD_SAFE_FUNCTIONS = "_POSIX_VERSION"
  631. const m__POSIX_TIMEOUTS = "_POSIX_VERSION"
  632. const m__POSIX_TIMERS = "_POSIX_VERSION"
  633. const m__POSIX_V6_LP64_OFF64 = 1
  634. const m__POSIX_V7_LP64_OFF64 = 1
  635. const m__POSIX_VDISABLE = 0
  636. const m__POSIX_VERSION = 200809
  637. const m__SC_2_CHAR_TERM = 95
  638. const m__SC_2_C_BIND = 47
  639. const m__SC_2_C_DEV = 48
  640. const m__SC_2_FORT_DEV = 49
  641. const m__SC_2_FORT_RUN = 50
  642. const m__SC_2_LOCALEDEF = 52
  643. const m__SC_2_PBS = 168
  644. const m__SC_2_PBS_ACCOUNTING = 169
  645. const m__SC_2_PBS_CHECKPOINT = 175
  646. const m__SC_2_PBS_LOCATE = 170
  647. const m__SC_2_PBS_MESSAGE = 171
  648. const m__SC_2_PBS_TRACK = 172
  649. const m__SC_2_SW_DEV = 51
  650. const m__SC_2_UPE = 97
  651. const m__SC_2_VERSION = 46
  652. const m__SC_ADVISORY_INFO = 132
  653. const m__SC_AIO_LISTIO_MAX = 23
  654. const m__SC_AIO_MAX = 24
  655. const m__SC_AIO_PRIO_DELTA_MAX = 25
  656. const m__SC_ARG_MAX = 0
  657. const m__SC_ASYNCHRONOUS_IO = 12
  658. const m__SC_ATEXIT_MAX = 87
  659. const m__SC_AVPHYS_PAGES = 86
  660. const m__SC_BARRIERS = 133
  661. const m__SC_BC_BASE_MAX = 36
  662. const m__SC_BC_DIM_MAX = 37
  663. const m__SC_BC_SCALE_MAX = 38
  664. const m__SC_BC_STRING_MAX = 39
  665. const m__SC_CHILD_MAX = 1
  666. const m__SC_CLK_TCK = 2
  667. const m__SC_CLOCK_SELECTION = 137
  668. const m__SC_COLL_WEIGHTS_MAX = 40
  669. const m__SC_CPUTIME = 138
  670. const m__SC_DELAYTIMER_MAX = 26
  671. const m__SC_EXPR_NEST_MAX = 42
  672. const m__SC_FSYNC = 15
  673. const m__SC_GETGR_R_SIZE_MAX = 69
  674. const m__SC_GETPW_R_SIZE_MAX = 70
  675. const m__SC_HOST_NAME_MAX = 180
  676. const m__SC_IOV_MAX = 60
  677. const m__SC_IPV6 = 235
  678. const m__SC_JOB_CONTROL = 7
  679. const m__SC_LINE_MAX = 43
  680. const m__SC_LOGIN_NAME_MAX = 71
  681. const m__SC_MAPPED_FILES = 16
  682. const m__SC_MEMLOCK = 17
  683. const m__SC_MEMLOCK_RANGE = 18
  684. const m__SC_MEMORY_PROTECTION = 19
  685. const m__SC_MESSAGE_PASSING = 20
  686. const m__SC_MINSIGSTKSZ = 249
  687. const m__SC_MONOTONIC_CLOCK = 149
  688. const m__SC_MQ_OPEN_MAX = 27
  689. const m__SC_MQ_PRIO_MAX = 28
  690. const m__SC_NGROUPS_MAX = 3
  691. const m__SC_NPROCESSORS_CONF = 83
  692. const m__SC_NPROCESSORS_ONLN = 84
  693. const m__SC_NZERO = 109
  694. const m__SC_OPEN_MAX = 4
  695. const m__SC_PAGESIZE = 30
  696. const m__SC_PAGE_SIZE = 30
  697. const m__SC_PASS_MAX = 88
  698. const m__SC_PHYS_PAGES = 85
  699. const m__SC_PRIORITIZED_IO = 13
  700. const m__SC_PRIORITY_SCHEDULING = 10
  701. const m__SC_RAW_SOCKETS = 236
  702. const m__SC_READER_WRITER_LOCKS = 153
  703. const m__SC_REALTIME_SIGNALS = 9
  704. const m__SC_REGEXP = 155
  705. const m__SC_RE_DUP_MAX = 44
  706. const m__SC_RTSIG_MAX = 31
  707. const m__SC_SAVED_IDS = 8
  708. const m__SC_SEMAPHORES = 21
  709. const m__SC_SEM_NSEMS_MAX = 32
  710. const m__SC_SEM_VALUE_MAX = 33
  711. const m__SC_SHARED_MEMORY_OBJECTS = 22
  712. const m__SC_SHELL = 157
  713. const m__SC_SIGQUEUE_MAX = 34
  714. const m__SC_SIGSTKSZ = 250
  715. const m__SC_SPAWN = 159
  716. const m__SC_SPIN_LOCKS = 154
  717. const m__SC_SPORADIC_SERVER = 160
  718. const m__SC_SS_REPL_MAX = 241
  719. const m__SC_STREAMS = 174
  720. const m__SC_STREAM_MAX = 5
  721. const m__SC_SYMLOOP_MAX = 173
  722. const m__SC_SYNCHRONIZED_IO = 14
  723. const m__SC_THREADS = 67
  724. const m__SC_THREAD_ATTR_STACKADDR = 77
  725. const m__SC_THREAD_ATTR_STACKSIZE = 78
  726. const m__SC_THREAD_CPUTIME = 139
  727. const m__SC_THREAD_DESTRUCTOR_ITERATIONS = 73
  728. const m__SC_THREAD_KEYS_MAX = 74
  729. const m__SC_THREAD_PRIORITY_SCHEDULING = 79
  730. const m__SC_THREAD_PRIO_INHERIT = 80
  731. const m__SC_THREAD_PRIO_PROTECT = 81
  732. const m__SC_THREAD_PROCESS_SHARED = 82
  733. const m__SC_THREAD_ROBUST_PRIO_INHERIT = 247
  734. const m__SC_THREAD_ROBUST_PRIO_PROTECT = 248
  735. const m__SC_THREAD_SAFE_FUNCTIONS = 68
  736. const m__SC_THREAD_SPORADIC_SERVER = 161
  737. const m__SC_THREAD_STACK_MIN = 75
  738. const m__SC_THREAD_THREADS_MAX = 76
  739. const m__SC_TIMEOUTS = 164
  740. const m__SC_TIMERS = 11
  741. const m__SC_TIMER_MAX = 35
  742. const m__SC_TRACE = 181
  743. const m__SC_TRACE_EVENT_FILTER = 182
  744. const m__SC_TRACE_EVENT_NAME_MAX = 242
  745. const m__SC_TRACE_INHERIT = 183
  746. const m__SC_TRACE_LOG = 184
  747. const m__SC_TRACE_NAME_MAX = 243
  748. const m__SC_TRACE_SYS_MAX = 244
  749. const m__SC_TRACE_USER_EVENT_MAX = 245
  750. const m__SC_TTY_NAME_MAX = 72
  751. const m__SC_TYPED_MEMORY_OBJECTS = 165
  752. const m__SC_TZNAME_MAX = 6
  753. const m__SC_UIO_MAXIOV = 60
  754. const m__SC_V6_ILP32_OFF32 = 176
  755. const m__SC_V6_ILP32_OFFBIG = 177
  756. const m__SC_V6_LP64_OFF64 = 178
  757. const m__SC_V6_LPBIG_OFFBIG = 179
  758. const m__SC_V7_ILP32_OFF32 = 237
  759. const m__SC_V7_ILP32_OFFBIG = 238
  760. const m__SC_V7_LP64_OFF64 = 239
  761. const m__SC_V7_LPBIG_OFFBIG = 240
  762. const m__SC_VERSION = 29
  763. const m__SC_XBS5_ILP32_OFF32 = 125
  764. const m__SC_XBS5_ILP32_OFFBIG = 126
  765. const m__SC_XBS5_LP64_OFF64 = 127
  766. const m__SC_XBS5_LPBIG_OFFBIG = 128
  767. const m__SC_XOPEN_CRYPT = 92
  768. const m__SC_XOPEN_ENH_I18N = 93
  769. const m__SC_XOPEN_LEGACY = 129
  770. const m__SC_XOPEN_REALTIME = 130
  771. const m__SC_XOPEN_REALTIME_THREADS = 131
  772. const m__SC_XOPEN_SHM = 94
  773. const m__SC_XOPEN_STREAMS = 246
  774. const m__SC_XOPEN_UNIX = 91
  775. const m__SC_XOPEN_VERSION = 89
  776. const m__SC_XOPEN_XCU_VERSION = 90
  777. const m__SC_XOPEN_XPG2 = 98
  778. const m__SC_XOPEN_XPG3 = 99
  779. const m__SC_XOPEN_XPG4 = 100
  780. const m__STDC_PREDEF_H = 1
  781. const m__TANDEM_SOURCE = 1
  782. const m__XOPEN_ENH_I18N = 1
  783. const m__XOPEN_UNIX = 1
  784. const m__XOPEN_VERSION = 700
  785. const m__X_INLINE = "inline"
  786. const m__X_RESTRICT_KYWD = "restrict"
  787. const m__Xconst = "const"
  788. const m___ARCH__ = 9
  789. const m___ATOMIC_ACQUIRE = 2
  790. const m___ATOMIC_ACQ_REL = 4
  791. const m___ATOMIC_CONSUME = 1
  792. const m___ATOMIC_RELAXED = 0
  793. const m___ATOMIC_RELEASE = 3
  794. const m___ATOMIC_SEQ_CST = 5
  795. const m___BIGGEST_ALIGNMENT__ = 8
  796. const m___BIG_ENDIAN = 4321
  797. const m___BYTE_ORDER = 4321
  798. const m___BYTE_ORDER__ = "__ORDER_BIG_ENDIAN__"
  799. const m___CCGO__ = 1
  800. const m___CHAR_BIT__ = 8
  801. const m___CHAR_UNSIGNED__ = 1
  802. const m___DBL_DECIMAL_DIG__ = 17
  803. const m___DBL_DIG__ = 15
  804. const m___DBL_HAS_DENORM__ = 1
  805. const m___DBL_HAS_INFINITY__ = 1
  806. const m___DBL_HAS_QUIET_NAN__ = 1
  807. const m___DBL_MANT_DIG__ = 53
  808. const m___DBL_MAX_10_EXP__ = 308
  809. const m___DBL_MAX_EXP__ = 1024
  810. const m___DEC128_EPSILON__ = 1e-33
  811. const m___DEC128_MANT_DIG__ = 34
  812. const m___DEC128_MAX_EXP__ = 6145
  813. const m___DEC128_MAX__ = "9.999999999999999999999999999999999E6144"
  814. const m___DEC128_MIN__ = 1e-6143
  815. const m___DEC128_SUBNORMAL_MIN__ = 0.000000000000000000000000000000001e-6143
  816. const m___DEC32_EPSILON__ = 1e-6
  817. const m___DEC32_MANT_DIG__ = 7
  818. const m___DEC32_MAX_EXP__ = 97
  819. const m___DEC32_MAX__ = 9.999999e96
  820. const m___DEC32_MIN__ = 1e-95
  821. const m___DEC32_SUBNORMAL_MIN__ = 0.000001e-95
  822. const m___DEC64_EPSILON__ = 1e-15
  823. const m___DEC64_MANT_DIG__ = 16
  824. const m___DEC64_MAX_EXP__ = 385
  825. const m___DEC64_MAX__ = "9.999999999999999E384"
  826. const m___DEC64_MIN__ = 1e-383
  827. const m___DEC64_SUBNORMAL_MIN__ = 0.000000000000001e-383
  828. const m___DECIMAL_DIG__ = 17
  829. const m___DEC_EVAL_METHOD__ = 2
  830. const m___ELF__ = 1
  831. const m___EXTENSIONS__ = 1
  832. const m___FINITE_MATH_ONLY__ = 0
  833. const m___FLOAT_WORD_ORDER__ = "__ORDER_BIG_ENDIAN__"
  834. const m___FLT32X_DECIMAL_DIG__ = 17
  835. const m___FLT32X_DENORM_MIN__ = 4.9406564584124654e-324
  836. const m___FLT32X_DIG__ = 15
  837. const m___FLT32X_EPSILON__ = 2.2204460492503131e-16
  838. const m___FLT32X_HAS_DENORM__ = 1
  839. const m___FLT32X_HAS_INFINITY__ = 1
  840. const m___FLT32X_HAS_QUIET_NAN__ = 1
  841. const m___FLT32X_MANT_DIG__ = 53
  842. const m___FLT32X_MAX_10_EXP__ = 308
  843. const m___FLT32X_MAX_EXP__ = 1024
  844. const m___FLT32X_MAX__ = 1.7976931348623157e+308
  845. const m___FLT32X_MIN__ = 2.2250738585072014e-308
  846. const m___FLT32X_NORM_MAX__ = 1.7976931348623157e+308
  847. const m___FLT32_DECIMAL_DIG__ = 9
  848. const m___FLT32_DENORM_MIN__ = 1.4012984643248171e-45
  849. const m___FLT32_DIG__ = 6
  850. const m___FLT32_EPSILON__ = 1.1920928955078125e-7
  851. const m___FLT32_HAS_DENORM__ = 1
  852. const m___FLT32_HAS_INFINITY__ = 1
  853. const m___FLT32_HAS_QUIET_NAN__ = 1
  854. const m___FLT32_MANT_DIG__ = 24
  855. const m___FLT32_MAX_10_EXP__ = 38
  856. const m___FLT32_MAX_EXP__ = 128
  857. const m___FLT32_MAX__ = 3.4028234663852886e+38
  858. const m___FLT32_MIN__ = 1.1754943508222875e-38
  859. const m___FLT32_NORM_MAX__ = 3.4028234663852886e+38
  860. const m___FLT64_DECIMAL_DIG__ = 17
  861. const m___FLT64_DENORM_MIN__ = 4.9406564584124654e-324
  862. const m___FLT64_DIG__ = 15
  863. const m___FLT64_EPSILON__ = 2.2204460492503131e-16
  864. const m___FLT64_HAS_DENORM__ = 1
  865. const m___FLT64_HAS_INFINITY__ = 1
  866. const m___FLT64_HAS_QUIET_NAN__ = 1
  867. const m___FLT64_MANT_DIG__ = 53
  868. const m___FLT64_MAX_10_EXP__ = 308
  869. const m___FLT64_MAX_EXP__ = 1024
  870. const m___FLT64_MAX__ = 1.7976931348623157e+308
  871. const m___FLT64_MIN__ = 2.2250738585072014e-308
  872. const m___FLT64_NORM_MAX__ = 1.7976931348623157e+308
  873. const m___FLT_DECIMAL_DIG__ = 9
  874. const m___FLT_DENORM_MIN__ = 1.4012984643248171e-45
  875. const m___FLT_DIG__ = 6
  876. const m___FLT_EPSILON__ = 1.1920928955078125e-7
  877. const m___FLT_EVAL_METHOD_TS_18661_3__ = 0
  878. const m___FLT_EVAL_METHOD__ = 0
  879. const m___FLT_HAS_DENORM__ = 1
  880. const m___FLT_HAS_INFINITY__ = 1
  881. const m___FLT_HAS_QUIET_NAN__ = 1
  882. const m___FLT_MANT_DIG__ = 24
  883. const m___FLT_MAX_10_EXP__ = 38
  884. const m___FLT_MAX_EXP__ = 128
  885. const m___FLT_MAX__ = 3.4028234663852886e+38
  886. const m___FLT_MIN__ = 1.1754943508222875e-38
  887. const m___FLT_NORM_MAX__ = 3.4028234663852886e+38
  888. const m___FLT_RADIX__ = 2
  889. const m___FP_FAST_FMA = 1
  890. const m___FP_FAST_FMAF = 1
  891. const m___FP_FAST_FMAF32 = 1
  892. const m___FP_FAST_FMAF32x = 1
  893. const m___FP_FAST_FMAF64 = 1
  894. const m___FP_FAST_FMAL = 1
  895. const m___FUNCTION__ = "__func__"
  896. const m___GCC_ATOMIC_BOOL_LOCK_FREE = 2
  897. const m___GCC_ATOMIC_CHAR16_T_LOCK_FREE = 2
  898. const m___GCC_ATOMIC_CHAR32_T_LOCK_FREE = 2
  899. const m___GCC_ATOMIC_CHAR_LOCK_FREE = 2
  900. const m___GCC_ATOMIC_INT_LOCK_FREE = 2
  901. const m___GCC_ATOMIC_LLONG_LOCK_FREE = 2
  902. const m___GCC_ATOMIC_LONG_LOCK_FREE = 2
  903. const m___GCC_ATOMIC_POINTER_LOCK_FREE = 2
  904. const m___GCC_ATOMIC_SHORT_LOCK_FREE = 2
  905. const m___GCC_ATOMIC_TEST_AND_SET_TRUEVAL = 1
  906. const m___GCC_ATOMIC_WCHAR_T_LOCK_FREE = 2
  907. const m___GCC_HAVE_DWARF2_CFI_ASM = 1
  908. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_1 = 1
  909. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_16 = 1
  910. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_2 = 1
  911. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 = 1
  912. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 = 1
  913. const m___GCC_IEC_559 = 2
  914. const m___GCC_IEC_559_COMPLEX = 2
  915. const m___GNUC_MINOR__ = 2
  916. const m___GNUC_PATCHLEVEL__ = 1
  917. const m___GNUC_STDC_INLINE__ = 1
  918. const m___GNUC__ = 10
  919. const m___GXX_ABI_VERSION = 1014
  920. const m___HAVE_SPECULATION_SAFE_VALUE = 1
  921. const m___INT16_MAX__ = 0x7fff
  922. const m___INT32_MAX__ = 0x7fffffff
  923. const m___INT32_TYPE__ = "int"
  924. const m___INT64_MAX__ = 0x7fffffffffffffff
  925. const m___INT8_MAX__ = 0x7f
  926. const m___INTMAX_MAX__ = 0x7fffffffffffffff
  927. const m___INTMAX_WIDTH__ = 64
  928. const m___INTPTR_MAX__ = 0x7fffffffffffffff
  929. const m___INTPTR_WIDTH__ = 64
  930. const m___INT_FAST16_MAX__ = 0x7fffffffffffffff
  931. const m___INT_FAST16_WIDTH__ = 64
  932. const m___INT_FAST32_MAX__ = 0x7fffffffffffffff
  933. const m___INT_FAST32_WIDTH__ = 64
  934. const m___INT_FAST64_MAX__ = 0x7fffffffffffffff
  935. const m___INT_FAST64_WIDTH__ = 64
  936. const m___INT_FAST8_MAX__ = 0x7f
  937. const m___INT_FAST8_WIDTH__ = 8
  938. const m___INT_LEAST16_MAX__ = 0x7fff
  939. const m___INT_LEAST16_WIDTH__ = 16
  940. const m___INT_LEAST32_MAX__ = 0x7fffffff
  941. const m___INT_LEAST32_TYPE__ = "int"
  942. const m___INT_LEAST32_WIDTH__ = 32
  943. const m___INT_LEAST64_MAX__ = 0x7fffffffffffffff
  944. const m___INT_LEAST64_WIDTH__ = 64
  945. const m___INT_LEAST8_MAX__ = 0x7f
  946. const m___INT_LEAST8_WIDTH__ = 8
  947. const m___INT_MAX__ = 0x7fffffff
  948. const m___INT_WIDTH__ = 32
  949. const m___LDBL_DECIMAL_DIG__ = 17
  950. const m___LDBL_DENORM_MIN__ = 4.9406564584124654e-324
  951. const m___LDBL_DIG__ = 15
  952. const m___LDBL_EPSILON__ = 2.2204460492503131e-16
  953. const m___LDBL_HAS_DENORM__ = 1
  954. const m___LDBL_HAS_INFINITY__ = 1
  955. const m___LDBL_HAS_QUIET_NAN__ = 1
  956. const m___LDBL_MANT_DIG__ = 53
  957. const m___LDBL_MAX_10_EXP__ = 308
  958. const m___LDBL_MAX_EXP__ = 1024
  959. const m___LDBL_MAX__ = 1.7976931348623157e+308
  960. const m___LDBL_MIN__ = 2.2250738585072014e-308
  961. const m___LDBL_NORM_MAX__ = 1.7976931348623157e+308
  962. const m___LITTLE_ENDIAN = 1234
  963. const m___LONG_LONG_MAX__ = 0x7fffffffffffffff
  964. const m___LONG_LONG_WIDTH__ = 64
  965. const m___LONG_MAX = 0x7fffffffffffffff
  966. const m___LONG_MAX__ = 0x7fffffffffffffff
  967. const m___LONG_WIDTH__ = 64
  968. const m___LP64__ = 1
  969. const m___NO_INLINE__ = 1
  970. const m___ORDER_BIG_ENDIAN__ = 4321
  971. const m___ORDER_LITTLE_ENDIAN__ = 1234
  972. const m___ORDER_PDP_ENDIAN__ = 3412
  973. const m___PDP_ENDIAN = 3412
  974. const m___PIC__ = 2
  975. const m___PIE__ = 2
  976. const m___PRAGMA_REDEFINE_EXTNAME = 1
  977. const m___PRETTY_FUNCTION__ = "__func__"
  978. const m___PTRDIFF_MAX__ = 0x7fffffffffffffff
  979. const m___PTRDIFF_WIDTH__ = 64
  980. const m___SCHAR_MAX__ = 0x7f
  981. const m___SCHAR_WIDTH__ = 8
  982. const m___SHRT_MAX__ = 0x7fff
  983. const m___SHRT_WIDTH__ = 16
  984. const m___SIG_ATOMIC_MAX__ = 0x7fffffff
  985. const m___SIG_ATOMIC_TYPE__ = "int"
  986. const m___SIG_ATOMIC_WIDTH__ = 32
  987. const m___SIZEOF_DOUBLE__ = 8
  988. const m___SIZEOF_FLOAT__ = 4
  989. const m___SIZEOF_INT128__ = 16
  990. const m___SIZEOF_INT__ = 4
  991. const m___SIZEOF_LONG_DOUBLE__ = 8
  992. const m___SIZEOF_LONG_LONG__ = 8
  993. const m___SIZEOF_LONG__ = 8
  994. const m___SIZEOF_POINTER__ = 8
  995. const m___SIZEOF_PTRDIFF_T__ = 8
  996. const m___SIZEOF_SHORT__ = 2
  997. const m___SIZEOF_SIZE_T__ = 8
  998. const m___SIZEOF_WCHAR_T__ = 4
  999. const m___SIZEOF_WINT_T__ = 4
  1000. const m___SIZE_MAX__ = 0xffffffffffffffff
  1001. const m___SIZE_WIDTH__ = 64
  1002. const m___STDC_HOSTED__ = 1
  1003. const m___STDC_IEC_559_COMPLEX__ = 1
  1004. const m___STDC_IEC_559__ = 1
  1005. const m___STDC_ISO_10646__ = 201706
  1006. const m___STDC_UTF_16__ = 1
  1007. const m___STDC_UTF_32__ = 1
  1008. const m___STDC_VERSION__ = 201710
  1009. const m___STDC__ = 1
  1010. const m___UINT16_MAX__ = 0xffff
  1011. const m___UINT32_MAX__ = 0xffffffff
  1012. const m___UINT64_MAX__ = 0xffffffffffffffff
  1013. const m___UINT8_MAX__ = 0xff
  1014. const m___UINTMAX_MAX__ = 0xffffffffffffffff
  1015. const m___UINTPTR_MAX__ = 0xffffffffffffffff
  1016. const m___UINT_FAST16_MAX__ = 0xffffffffffffffff
  1017. const m___UINT_FAST32_MAX__ = 0xffffffffffffffff
  1018. const m___UINT_FAST64_MAX__ = 0xffffffffffffffff
  1019. const m___UINT_FAST8_MAX__ = 0xff
  1020. const m___UINT_LEAST16_MAX__ = 0xffff
  1021. const m___UINT_LEAST32_MAX__ = 0xffffffff
  1022. const m___UINT_LEAST64_MAX__ = 0xffffffffffffffff
  1023. const m___UINT_LEAST8_MAX__ = 0xff
  1024. const m___USE_TIME_BITS64 = 1
  1025. const m___VERSION__ = "10.2.1 20210110"
  1026. const m___WCHAR_MAX__ = 0x7fffffff
  1027. const m___WCHAR_TYPE__ = "int"
  1028. const m___WCHAR_WIDTH__ = 32
  1029. const m___WINT_MAX__ = 0xffffffff
  1030. const m___WINT_MIN__ = 0
  1031. const m___WINT_WIDTH__ = 32
  1032. const m___gnu_linux__ = 1
  1033. const m___inline = "inline"
  1034. const m___linux = 1
  1035. const m___linux__ = 1
  1036. const m___pic__ = 2
  1037. const m___pie__ = 2
  1038. const m___restrict = "restrict"
  1039. const m___restrict_arr = "restrict"
  1040. const m___s390__ = 1
  1041. const m___s390x__ = 1
  1042. const m___tm_gmtoff = "tm_gmtoff"
  1043. const m___tm_zone = "tm_zone"
  1044. const m___unix = 1
  1045. const m___unix__ = 1
  1046. const m___zarch__ = 1
  1047. const m_alloca = "__builtin_alloca"
  1048. const m_linux = 1
  1049. const m_loff_t = "off_t"
  1050. const m_unix = 1
  1051. type t__builtin_va_list = uintptr
  1052. type t__predefined_size_t = uint64
  1053. type t__predefined_wchar_t = int32
  1054. type t__predefined_ptrdiff_t = int64
  1055. type Tsize_t = uint64
  1056. type Tssize_t = int64
  1057. type Tregister_t = int64
  1058. type Ttime_t = int64
  1059. type Tsuseconds_t = int64
  1060. type Tint8_t = int8
  1061. type Tint16_t = int16
  1062. type Tint32_t = int32
  1063. type Tint64_t = int64
  1064. type Tu_int64_t = uint64
  1065. type Tmode_t = uint32
  1066. type Tnlink_t = uint64
  1067. type Toff_t = int64
  1068. type Tino_t = uint64
  1069. type Tdev_t = uint64
  1070. type Tblksize_t = int64
  1071. type Tblkcnt_t = int64
  1072. type Tfsblkcnt_t = uint64
  1073. type Tfsfilcnt_t = uint64
  1074. type Ttimer_t = uintptr
  1075. type Tclockid_t = int32
  1076. type Tclock_t = int64
  1077. type Tpid_t = int32
  1078. type Tid_t = uint32
  1079. type Tuid_t = uint32
  1080. type Tgid_t = uint32
  1081. type Tkey_t = int32
  1082. type Tuseconds_t = uint32
  1083. type Tpthread_t = uintptr
  1084. type Tpthread_once_t = int32
  1085. type Tpthread_key_t = uint32
  1086. type Tpthread_spinlock_t = int32
  1087. type Tpthread_mutexattr_t = struct {
  1088. F__attr uint32
  1089. }
  1090. type Tpthread_condattr_t = struct {
  1091. F__attr uint32
  1092. }
  1093. type Tpthread_barrierattr_t = struct {
  1094. F__attr uint32
  1095. }
  1096. type Tpthread_rwlockattr_t = struct {
  1097. F__attr [2]uint32
  1098. }
  1099. type Tpthread_attr_t = struct {
  1100. F__u struct {
  1101. F__vi [0][14]int32
  1102. F__s [0][7]uint64
  1103. F__i [14]int32
  1104. }
  1105. }
  1106. type Tpthread_mutex_t = struct {
  1107. F__u struct {
  1108. F__vi [0][10]int32
  1109. F__p [0][5]uintptr
  1110. F__i [10]int32
  1111. }
  1112. }
  1113. type Tpthread_cond_t = struct {
  1114. F__u struct {
  1115. F__vi [0][12]int32
  1116. F__p [0][6]uintptr
  1117. F__i [12]int32
  1118. }
  1119. }
  1120. type Tpthread_rwlock_t = struct {
  1121. F__u struct {
  1122. F__vi [0][14]int32
  1123. F__p [0][7]uintptr
  1124. F__i [14]int32
  1125. }
  1126. }
  1127. type Tpthread_barrier_t = struct {
  1128. F__u struct {
  1129. F__vi [0][8]int32
  1130. F__p [0][4]uintptr
  1131. F__i [8]int32
  1132. }
  1133. }
  1134. type Tu_int8_t = uint8
  1135. type Tu_int16_t = uint16
  1136. type Tu_int32_t = uint32
  1137. type Tcaddr_t = uintptr
  1138. type Tu_char = uint8
  1139. type Tu_short = uint16
  1140. type Tushort = uint16
  1141. type Tu_int = uint32
  1142. type Tuint = uint32
  1143. type Tu_long = uint64
  1144. type Tulong = uint64
  1145. type Tquad_t = int64
  1146. type Tu_quad_t = uint64
  1147. type Tuint16_t = uint16
  1148. type Tuint32_t = uint32
  1149. type Tuint64_t = uint64
  1150. type Ttimeval = struct {
  1151. Ftv_sec Ttime_t
  1152. Ftv_usec Tsuseconds_t
  1153. }
  1154. type Ttimespec = struct {
  1155. Ftv_sec Ttime_t
  1156. Ftv_nsec int64
  1157. }
  1158. type Tsigset_t = struct {
  1159. F__bits [16]uint64
  1160. }
  1161. type t__sigset_t = Tsigset_t
  1162. type Tfd_mask = uint64
  1163. type Tfd_set = struct {
  1164. Ffds_bits [16]uint64
  1165. }
  1166. type Tlocale_t = uintptr
  1167. type Tiovec = struct {
  1168. Fiov_base uintptr
  1169. Fiov_len Tsize_t
  1170. }
  1171. type Tflock = struct {
  1172. Fl_type int16
  1173. Fl_whence int16
  1174. Fl_start Toff_t
  1175. Fl_len Toff_t
  1176. Fl_pid Tpid_t
  1177. }
  1178. type Tfile_handle = struct {
  1179. Fhandle_bytes uint32
  1180. Fhandle_type int32
  1181. }
  1182. type Tf_owner_ex = struct {
  1183. Ftype1 int32
  1184. Fpid Tpid_t
  1185. }
  1186. type Tintptr_t = int64
  1187. type Titimerval = struct {
  1188. Fit_interval Ttimeval
  1189. Fit_value Ttimeval
  1190. }
  1191. type Ttimezone = struct {
  1192. Ftz_minuteswest int32
  1193. Ftz_dsttime int32
  1194. }
  1195. type Ttm = struct {
  1196. Ftm_sec int32
  1197. Ftm_min int32
  1198. Ftm_hour int32
  1199. Ftm_mday int32
  1200. Ftm_mon int32
  1201. Ftm_year int32
  1202. Ftm_wday int32
  1203. Ftm_yday int32
  1204. Ftm_isdst int32
  1205. Ftm_gmtoff int64
  1206. Ftm_zone uintptr
  1207. }
  1208. type Titimerspec = struct {
  1209. Fit_interval Ttimespec
  1210. Fit_value Ttimespec
  1211. }
  1212. type TXID = uint64
  1213. type TMask = uint64
  1214. type TAtom = uint64
  1215. type TVisualID = uint64
  1216. type TTime = uint64
  1217. type TWindow = uint64
  1218. type TDrawable = uint64
  1219. type TFont = uint64
  1220. type TPixmap = uint64
  1221. type TCursor = uint64
  1222. type TColormap = uint64
  1223. type TGContext = uint64
  1224. type TKeySym = uint64
  1225. type TKeyCode = uint8
  1226. type TINT64 = int64
  1227. type TINT32 = int32
  1228. type TINT16 = int16
  1229. type TINT8 = int8
  1230. type TCARD64 = uint64
  1231. type TCARD32 = uint32
  1232. type TCARD16 = uint16
  1233. type TCARD8 = uint8
  1234. type TBITS32 = uint32
  1235. type TBITS16 = uint16
  1236. type TBYTE = uint8
  1237. type TBOOL = uint8
  1238. type TxdmOpCode = int32
  1239. const _BROADCAST_QUERY = 1
  1240. const _QUERY = 2
  1241. const _INDIRECT_QUERY = 3
  1242. const _FORWARD_QUERY = 4
  1243. const _WILLING = 5
  1244. const _UNWILLING = 6
  1245. const _REQUEST = 7
  1246. const _ACCEPT = 8
  1247. const _DECLINE = 9
  1248. const _MANAGE = 10
  1249. const _REFUSE = 11
  1250. const _FAILED = 12
  1251. const _KEEPALIVE = 13
  1252. const _ALIVE = 14
  1253. type Txdmcp_states = int32
  1254. const _XDM_QUERY = 0
  1255. const _XDM_BROADCAST = 1
  1256. const _XDM_INDIRECT = 2
  1257. const _XDM_COLLECT_QUERY = 3
  1258. const _XDM_COLLECT_BROADCAST_QUERY = 4
  1259. const _XDM_COLLECT_INDIRECT_QUERY = 5
  1260. const _XDM_START_CONNECTION = 6
  1261. const _XDM_AWAIT_REQUEST_RESPONSE = 7
  1262. const _XDM_AWAIT_MANAGE_RESPONSE = 8
  1263. const _XDM_MANAGE = 9
  1264. const _XDM_RUN_SESSION = 10
  1265. const _XDM_OFF = 11
  1266. const _XDM_AWAIT_USER_INPUT = 12
  1267. const _XDM_KEEPALIVE = 13
  1268. const _XDM_AWAIT_ALIVE_RESPONSE = 14
  1269. const _XDM_KEEP_ME_LAST = 15
  1270. type TCARD8Ptr = uintptr
  1271. type TCARD16Ptr = uintptr
  1272. type TCARD32Ptr = uintptr
  1273. type TARRAY8 = struct {
  1274. Flength TCARD16
  1275. Fdata TCARD8Ptr
  1276. }
  1277. type T_ARRAY8 = TARRAY8
  1278. type TARRAY8Ptr = uintptr
  1279. type TARRAY16 = struct {
  1280. Flength TCARD8
  1281. Fdata TCARD16Ptr
  1282. }
  1283. type T_ARRAY16 = TARRAY16
  1284. type TARRAY16Ptr = uintptr
  1285. type TARRAY32 = struct {
  1286. Flength TCARD8
  1287. Fdata TCARD32Ptr
  1288. }
  1289. type T_ARRAY32 = TARRAY32
  1290. type TARRAY32Ptr = uintptr
  1291. type TARRAYofARRAY8 = struct {
  1292. Flength TCARD8
  1293. Fdata TARRAY8Ptr
  1294. }
  1295. type T_ARRAYofARRAY8 = TARRAYofARRAY8
  1296. type TARRAYofARRAY8Ptr = uintptr
  1297. type TXdmcpHeader = struct {
  1298. Fversion TCARD16
  1299. Fopcode TCARD16
  1300. Flength TCARD16
  1301. }
  1302. type T_XdmcpHeader = TXdmcpHeader
  1303. type TXdmcpHeaderPtr = uintptr
  1304. type TXdmcpBuffer = struct {
  1305. Fdata uintptr
  1306. Fsize int32
  1307. Fpointer int32
  1308. Fcount int32
  1309. }
  1310. type T_XdmcpBuffer = TXdmcpBuffer
  1311. type TXdmcpBufferPtr = uintptr
  1312. type TXdmAuthKeyRec = struct {
  1313. Fdata [8]TBYTE
  1314. }
  1315. type T_XdmAuthKey = TXdmAuthKeyRec
  1316. type TXdmAuthKeyPtr = uintptr
  1317. type TXdmcpNetaddr = uintptr
  1318. type Tuintptr_t = uint64
  1319. type Tintmax_t = int64
  1320. type Tuint8_t = uint8
  1321. type Tuintmax_t = uint64
  1322. type Tint_fast8_t = int8
  1323. type Tint_fast64_t = int64
  1324. type Tint_least8_t = int8
  1325. type Tint_least16_t = int16
  1326. type Tint_least32_t = int32
  1327. type Tint_least64_t = int64
  1328. type Tuint_fast8_t = uint8
  1329. type Tuint_fast64_t = uint64
  1330. type Tuint_least8_t = uint8
  1331. type Tuint_least16_t = uint16
  1332. type Tuint_least32_t = uint32
  1333. type Tuint_least64_t = uint64
  1334. type Tint_fast16_t = int32
  1335. type Tint_fast32_t = int32
  1336. type Tuint_fast16_t = uint32
  1337. type Tuint_fast32_t = uint32
  1338. type Twchar_t = int32
  1339. type Tdiv_t = struct {
  1340. Fquot int32
  1341. Frem int32
  1342. }
  1343. type Tldiv_t = struct {
  1344. Fquot int64
  1345. Frem int64
  1346. }
  1347. type Tlldiv_t = struct {
  1348. Fquot int64
  1349. Frem int64
  1350. }
  1351. // C documentation
  1352. //
  1353. // /*
  1354. // * This variant of malloc does not return NULL if zero size is passed into.
  1355. // */
  1356. func _xmalloc(tls *libc.TLS, size Tsize_t) (r uintptr) {
  1357. var v1 uint64
  1358. _ = v1
  1359. if size != 0 {
  1360. v1 = size
  1361. } else {
  1362. v1 = uint64(1)
  1363. }
  1364. return libc.Xmalloc(tls, v1)
  1365. }
  1366. // C documentation
  1367. //
  1368. // /*
  1369. // * This variant of calloc does not return NULL if zero count is passed into.
  1370. // */
  1371. func _xcalloc(tls *libc.TLS, n Tsize_t, size Tsize_t) (r uintptr) {
  1372. var v1 uint64
  1373. _ = v1
  1374. if n != 0 {
  1375. v1 = n
  1376. } else {
  1377. v1 = uint64(1)
  1378. }
  1379. return libc.Xcalloc(tls, v1, size)
  1380. }
  1381. // C documentation
  1382. //
  1383. // /*
  1384. // * This variant of realloc does not return NULL if zero size is passed into
  1385. // */
  1386. func _xrealloc(tls *libc.TLS, ptr uintptr, size Tsize_t) (r uintptr) {
  1387. var v1 uint64
  1388. _ = v1
  1389. if size != 0 {
  1390. v1 = size
  1391. } else {
  1392. v1 = uint64(1)
  1393. }
  1394. return libc.Xrealloc(tls, ptr, v1)
  1395. }
  1396. func XXdmcpAllocARRAY8(tls *libc.TLS, array TARRAY8Ptr, length int32) (r int32) {
  1397. /* length defined in ARRAY8 struct is a CARD16 (not CARD8 like the rest) */
  1398. if length > int32(m_UINT16_MAX) || length < 0 {
  1399. (*T_ARRAY8)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  1400. } else {
  1401. (*T_ARRAY8)(unsafe.Pointer(array)).Fdata = _xmalloc(tls, libc.Uint64FromInt32(length)*uint64(1))
  1402. }
  1403. if (*T_ARRAY8)(unsafe.Pointer(array)).Fdata == libc.UintptrFromInt32(0) {
  1404. (*T_ARRAY8)(unsafe.Pointer(array)).Flength = uint16(0)
  1405. return m_FALSE
  1406. }
  1407. (*T_ARRAY8)(unsafe.Pointer(array)).Flength = libc.Uint16FromInt32(length)
  1408. return int32(m_TRUE)
  1409. }
  1410. func XXdmcpAllocARRAY16(tls *libc.TLS, array TARRAY16Ptr, length int32) (r int32) {
  1411. /* length defined in ARRAY16 struct is a CARD8 */
  1412. if length > int32(m_UINT8_MAX) || length < 0 {
  1413. (*T_ARRAY16)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  1414. } else {
  1415. (*T_ARRAY16)(unsafe.Pointer(array)).Fdata = _xmalloc(tls, libc.Uint64FromInt32(length)*uint64(2))
  1416. }
  1417. if (*T_ARRAY16)(unsafe.Pointer(array)).Fdata == libc.UintptrFromInt32(0) {
  1418. (*T_ARRAY16)(unsafe.Pointer(array)).Flength = uint8(0)
  1419. return m_FALSE
  1420. }
  1421. (*T_ARRAY16)(unsafe.Pointer(array)).Flength = libc.Uint8FromInt32(length)
  1422. return int32(m_TRUE)
  1423. }
  1424. func XXdmcpAllocARRAY32(tls *libc.TLS, array TARRAY32Ptr, length int32) (r int32) {
  1425. /* length defined in ARRAY32 struct is a CARD8 */
  1426. if length > int32(m_UINT8_MAX) || length < 0 {
  1427. (*T_ARRAY32)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  1428. } else {
  1429. (*T_ARRAY32)(unsafe.Pointer(array)).Fdata = _xmalloc(tls, libc.Uint64FromInt32(length)*uint64(4))
  1430. }
  1431. if (*T_ARRAY32)(unsafe.Pointer(array)).Fdata == libc.UintptrFromInt32(0) {
  1432. (*T_ARRAY32)(unsafe.Pointer(array)).Flength = uint8(0)
  1433. return m_FALSE
  1434. }
  1435. (*T_ARRAY32)(unsafe.Pointer(array)).Flength = libc.Uint8FromInt32(length)
  1436. return int32(m_TRUE)
  1437. }
  1438. func XXdmcpAllocARRAYofARRAY8(tls *libc.TLS, array TARRAYofARRAY8Ptr, length int32) (r int32) {
  1439. /* length defined in ARRAYofARRAY8 struct is a CARD8 */
  1440. if length > int32(m_UINT8_MAX) || length < 0 {
  1441. (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  1442. } else {
  1443. /*
  1444. * Use calloc to ensure the pointers are cleared out so we
  1445. * don't try to free garbage if XdmcpDisposeARRAYofARRAY8()
  1446. * is called before the caller sets them to valid pointers.
  1447. */
  1448. (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata = _xcalloc(tls, libc.Uint64FromInt32(length), uint64(16))
  1449. }
  1450. if (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata == libc.UintptrFromInt32(0) {
  1451. (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength = uint8(0)
  1452. return m_FALSE
  1453. }
  1454. (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength = libc.Uint8FromInt32(length)
  1455. return int32(m_TRUE)
  1456. }
  1457. func XXdmcpARRAY8Equal(tls *libc.TLS, array1 TARRAY8Ptr, array2 TARRAY8Ptr) (r int32) {
  1458. if libc.Int32FromUint16((*T_ARRAY8)(unsafe.Pointer(array1)).Flength) != libc.Int32FromUint16((*T_ARRAY8)(unsafe.Pointer(array2)).Flength) {
  1459. return m_FALSE
  1460. }
  1461. if libc.Xmemcmp(tls, (*T_ARRAY8)(unsafe.Pointer(array1)).Fdata, (*T_ARRAY8)(unsafe.Pointer(array2)).Fdata, uint64((*T_ARRAY8)(unsafe.Pointer(array1)).Flength)) != 0 {
  1462. return m_FALSE
  1463. }
  1464. return int32(m_TRUE)
  1465. }
  1466. func XXdmcpCopyARRAY8(tls *libc.TLS, src TARRAY8Ptr, dst TARRAY8Ptr) (r int32) {
  1467. if !(XXdmcpAllocARRAY8(tls, dst, libc.Int32FromUint16((*T_ARRAY8)(unsafe.Pointer(src)).Flength)) != 0) {
  1468. return m_FALSE
  1469. }
  1470. libc.Xmemmove(tls, (*T_ARRAY8)(unsafe.Pointer(dst)).Fdata, (*T_ARRAY8)(unsafe.Pointer(src)).Fdata, uint64((*T_ARRAY8)(unsafe.Pointer(src)).Flength)*uint64(1))
  1471. return int32(m_TRUE)
  1472. }
  1473. func XXdmcpReallocARRAY8(tls *libc.TLS, array TARRAY8Ptr, length int32) (r int32) {
  1474. var newData TCARD8Ptr
  1475. _ = newData
  1476. /* length defined in ARRAY8 struct is a CARD16 (not CARD8 like the rest) */
  1477. if length > int32(m_UINT16_MAX) || length < 0 {
  1478. return m_FALSE
  1479. }
  1480. newData = _xrealloc(tls, (*T_ARRAY8)(unsafe.Pointer(array)).Fdata, libc.Uint64FromInt32(length)*uint64(1))
  1481. if !(newData != 0) {
  1482. return m_FALSE
  1483. }
  1484. (*T_ARRAY8)(unsafe.Pointer(array)).Flength = libc.Uint16FromInt32(length)
  1485. (*T_ARRAY8)(unsafe.Pointer(array)).Fdata = newData
  1486. return int32(m_TRUE)
  1487. }
  1488. func XXdmcpReallocARRAYofARRAY8(tls *libc.TLS, array TARRAYofARRAY8Ptr, length int32) (r int32) {
  1489. var newData TARRAY8Ptr
  1490. _ = newData
  1491. /* length defined in ARRAYofARRAY8 struct is a CARD8 */
  1492. if length > int32(m_UINT8_MAX) || length < 0 {
  1493. return m_FALSE
  1494. }
  1495. newData = _xrealloc(tls, (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata, libc.Uint64FromInt32(length)*uint64(16))
  1496. if !(newData != 0) {
  1497. return m_FALSE
  1498. }
  1499. if length > libc.Int32FromUint8((*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength) {
  1500. libc.Xmemset(tls, newData+uintptr((*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength)*16, 0, libc.Uint64FromInt32(length-libc.Int32FromUint8((*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength))*uint64(16))
  1501. }
  1502. (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength = libc.Uint8FromInt32(length)
  1503. (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata = newData
  1504. return int32(m_TRUE)
  1505. }
  1506. func XXdmcpReallocARRAY16(tls *libc.TLS, array TARRAY16Ptr, length int32) (r int32) {
  1507. var newData TCARD16Ptr
  1508. _ = newData
  1509. /* length defined in ARRAY16 struct is a CARD8 */
  1510. if length > int32(m_UINT8_MAX) || length < 0 {
  1511. return m_FALSE
  1512. }
  1513. newData = _xrealloc(tls, (*T_ARRAY16)(unsafe.Pointer(array)).Fdata, libc.Uint64FromInt32(length)*uint64(2))
  1514. if !(newData != 0) {
  1515. return m_FALSE
  1516. }
  1517. (*T_ARRAY16)(unsafe.Pointer(array)).Flength = libc.Uint8FromInt32(length)
  1518. (*T_ARRAY16)(unsafe.Pointer(array)).Fdata = newData
  1519. return int32(m_TRUE)
  1520. }
  1521. func XXdmcpReallocARRAY32(tls *libc.TLS, array TARRAY32Ptr, length int32) (r int32) {
  1522. var newData TCARD32Ptr
  1523. _ = newData
  1524. /* length defined in ARRAY32 struct is a CARD8 */
  1525. if length > int32(m_UINT8_MAX) || length < 0 {
  1526. return m_FALSE
  1527. }
  1528. newData = _xrealloc(tls, (*T_ARRAY32)(unsafe.Pointer(array)).Fdata, libc.Uint64FromInt32(length)*uint64(4))
  1529. if !(newData != 0) {
  1530. return m_FALSE
  1531. }
  1532. (*T_ARRAY32)(unsafe.Pointer(array)).Flength = libc.Uint8FromInt32(length)
  1533. (*T_ARRAY32)(unsafe.Pointer(array)).Fdata = newData
  1534. return int32(m_TRUE)
  1535. }
  1536. func XXdmcpDisposeARRAY8(tls *libc.TLS, array TARRAY8Ptr) {
  1537. libc.Xfree(tls, (*T_ARRAY8)(unsafe.Pointer(array)).Fdata)
  1538. (*T_ARRAY8)(unsafe.Pointer(array)).Flength = uint16(0)
  1539. (*T_ARRAY8)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  1540. }
  1541. func XXdmcpDisposeARRAY16(tls *libc.TLS, array TARRAY16Ptr) {
  1542. libc.Xfree(tls, (*T_ARRAY16)(unsafe.Pointer(array)).Fdata)
  1543. (*T_ARRAY16)(unsafe.Pointer(array)).Flength = uint8(0)
  1544. (*T_ARRAY16)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  1545. }
  1546. func XXdmcpDisposeARRAY32(tls *libc.TLS, array TARRAY32Ptr) {
  1547. libc.Xfree(tls, (*T_ARRAY32)(unsafe.Pointer(array)).Fdata)
  1548. (*T_ARRAY32)(unsafe.Pointer(array)).Flength = uint8(0)
  1549. (*T_ARRAY32)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  1550. }
  1551. func XXdmcpDisposeARRAYofARRAY8(tls *libc.TLS, array TARRAYofARRAY8Ptr) {
  1552. var i int32
  1553. _ = i
  1554. if (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata != libc.UintptrFromInt32(0) {
  1555. i = 0
  1556. for {
  1557. if !(i < libc.Int32FromUint8((*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength)) {
  1558. break
  1559. }
  1560. XXdmcpDisposeARRAY8(tls, (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata+uintptr(i)*16)
  1561. goto _1
  1562. _1:
  1563. ;
  1564. i++
  1565. }
  1566. libc.Xfree(tls, (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata)
  1567. }
  1568. (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength = uint8(0)
  1569. (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  1570. }
  1571. const m_AF_ALG = "PF_ALG"
  1572. const m_AF_APPLETALK = "PF_APPLETALK"
  1573. const m_AF_ASH = "PF_ASH"
  1574. const m_AF_ATMPVC = "PF_ATMPVC"
  1575. const m_AF_ATMSVC = "PF_ATMSVC"
  1576. const m_AF_AX25 = "PF_AX25"
  1577. const m_AF_BLUETOOTH = "PF_BLUETOOTH"
  1578. const m_AF_BRIDGE = "PF_BRIDGE"
  1579. const m_AF_CAIF = "PF_CAIF"
  1580. const m_AF_CAN = "PF_CAN"
  1581. const m_AF_DECnet = "PF_DECnet"
  1582. const m_AF_ECONET = "PF_ECONET"
  1583. const m_AF_FILE = "AF_LOCAL"
  1584. const m_AF_IB = "PF_IB"
  1585. const m_AF_IEEE802154 = "PF_IEEE802154"
  1586. const m_AF_INET = "PF_INET"
  1587. const m_AF_INET6 = "PF_INET6"
  1588. const m_AF_IPX = "PF_IPX"
  1589. const m_AF_IRDA = "PF_IRDA"
  1590. const m_AF_ISDN = "PF_ISDN"
  1591. const m_AF_IUCV = "PF_IUCV"
  1592. const m_AF_KCM = "PF_KCM"
  1593. const m_AF_KEY = "PF_KEY"
  1594. const m_AF_LLC = "PF_LLC"
  1595. const m_AF_LOCAL = "PF_LOCAL"
  1596. const m_AF_MAX = "PF_MAX"
  1597. const m_AF_MPLS = "PF_MPLS"
  1598. const m_AF_NETBEUI = "PF_NETBEUI"
  1599. const m_AF_NETLINK = "PF_NETLINK"
  1600. const m_AF_NETROM = "PF_NETROM"
  1601. const m_AF_NFC = "PF_NFC"
  1602. const m_AF_PACKET = "PF_PACKET"
  1603. const m_AF_PHONET = "PF_PHONET"
  1604. const m_AF_PPPOX = "PF_PPPOX"
  1605. const m_AF_QIPCRTR = "PF_QIPCRTR"
  1606. const m_AF_RDS = "PF_RDS"
  1607. const m_AF_ROSE = "PF_ROSE"
  1608. const m_AF_ROUTE = "PF_ROUTE"
  1609. const m_AF_RXRPC = "PF_RXRPC"
  1610. const m_AF_SECURITY = "PF_SECURITY"
  1611. const m_AF_SMC = "PF_SMC"
  1612. const m_AF_SNA = "PF_SNA"
  1613. const m_AF_TIPC = "PF_TIPC"
  1614. const m_AF_UNIX = "AF_LOCAL"
  1615. const m_AF_UNSPEC = "PF_UNSPEC"
  1616. const m_AF_VSOCK = "PF_VSOCK"
  1617. const m_AF_WANPIPE = "PF_WANPIPE"
  1618. const m_AF_X25 = "PF_X25"
  1619. const m_AF_XDP = "PF_XDP"
  1620. const m_MSG_BATCH = 0x40000
  1621. const m_MSG_CMSG_CLOEXEC = 0x40000000
  1622. const m_MSG_CONFIRM = 0x0800
  1623. const m_MSG_CTRUNC = 0x0008
  1624. const m_MSG_DONTROUTE = 0x0004
  1625. const m_MSG_DONTWAIT = 0x0040
  1626. const m_MSG_EOR = 0x0080
  1627. const m_MSG_ERRQUEUE = 0x2000
  1628. const m_MSG_FASTOPEN = 0x20000000
  1629. const m_MSG_FIN = 0x0200
  1630. const m_MSG_MORE = 0x8000
  1631. const m_MSG_NOSIGNAL = 0x4000
  1632. const m_MSG_OOB = 0x0001
  1633. const m_MSG_PEEK = 0x0002
  1634. const m_MSG_PROXY = 0x0010
  1635. const m_MSG_RST = 0x1000
  1636. const m_MSG_SYN = 0x0400
  1637. const m_MSG_TRUNC = 0x0020
  1638. const m_MSG_WAITALL = 0x0100
  1639. const m_MSG_WAITFORONE = 0x10000
  1640. const m_MSG_ZEROCOPY = 0x4000000
  1641. const m_PF_ALG = 38
  1642. const m_PF_APPLETALK = 5
  1643. const m_PF_ASH = 18
  1644. const m_PF_ATMPVC = 8
  1645. const m_PF_ATMSVC = 20
  1646. const m_PF_AX25 = 3
  1647. const m_PF_BLUETOOTH = 31
  1648. const m_PF_BRIDGE = 7
  1649. const m_PF_CAIF = 37
  1650. const m_PF_CAN = 29
  1651. const m_PF_DECnet = 12
  1652. const m_PF_ECONET = 19
  1653. const m_PF_FILE = "PF_LOCAL"
  1654. const m_PF_IB = 27
  1655. const m_PF_IEEE802154 = 36
  1656. const m_PF_INET = 2
  1657. const m_PF_INET6 = 10
  1658. const m_PF_IPX = 4
  1659. const m_PF_IRDA = 23
  1660. const m_PF_ISDN = 34
  1661. const m_PF_IUCV = 32
  1662. const m_PF_KCM = 41
  1663. const m_PF_KEY = 15
  1664. const m_PF_LLC = 26
  1665. const m_PF_LOCAL = 1
  1666. const m_PF_MAX = 45
  1667. const m_PF_MPLS = 28
  1668. const m_PF_NETBEUI = 13
  1669. const m_PF_NETLINK = 16
  1670. const m_PF_NETROM = 6
  1671. const m_PF_NFC = 39
  1672. const m_PF_PACKET = 17
  1673. const m_PF_PHONET = 35
  1674. const m_PF_PPPOX = 24
  1675. const m_PF_QIPCRTR = 42
  1676. const m_PF_RDS = 21
  1677. const m_PF_ROSE = 11
  1678. const m_PF_ROUTE = "PF_NETLINK"
  1679. const m_PF_RXRPC = 33
  1680. const m_PF_SECURITY = 14
  1681. const m_PF_SMC = 43
  1682. const m_PF_SNA = 22
  1683. const m_PF_TIPC = 30
  1684. const m_PF_UNIX = "PF_LOCAL"
  1685. const m_PF_UNSPEC = 0
  1686. const m_PF_VSOCK = 40
  1687. const m_PF_WANPIPE = 25
  1688. const m_PF_X25 = 9
  1689. const m_PF_XDP = 44
  1690. const m_SCM_CREDENTIALS = 0x02
  1691. const m_SCM_RIGHTS = 0x01
  1692. const m_SCM_TIMESTAMP = "SO_TIMESTAMP"
  1693. const m_SCM_TIMESTAMPING = "SO_TIMESTAMPING"
  1694. const m_SCM_TIMESTAMPING_OPT_STATS = 54
  1695. const m_SCM_TIMESTAMPING_PKTINFO = 58
  1696. const m_SCM_TIMESTAMPNS = "SO_TIMESTAMPNS"
  1697. const m_SCM_TXTIME = "SO_TXTIME"
  1698. const m_SCM_WIFI_STATUS = "SO_WIFI_STATUS"
  1699. const m_SHUT_RD = 0
  1700. const m_SHUT_RDWR = 2
  1701. const m_SHUT_WR = 1
  1702. const m_SOCK_CLOEXEC = 02000000
  1703. const m_SOCK_DCCP = 6
  1704. const m_SOCK_DGRAM = 2
  1705. const m_SOCK_NONBLOCK = 04000
  1706. const m_SOCK_PACKET = 10
  1707. const m_SOCK_RAW = 3
  1708. const m_SOCK_RDM = 4
  1709. const m_SOCK_SEQPACKET = 5
  1710. const m_SOCK_STREAM = 1
  1711. const m_SOL_AAL = 265
  1712. const m_SOL_ALG = 279
  1713. const m_SOL_ATM = 264
  1714. const m_SOL_BLUETOOTH = 274
  1715. const m_SOL_CAIF = 278
  1716. const m_SOL_DCCP = 269
  1717. const m_SOL_DECNET = 261
  1718. const m_SOL_ICMPV6 = 58
  1719. const m_SOL_IP = 0
  1720. const m_SOL_IPV6 = 41
  1721. const m_SOL_IRDA = 266
  1722. const m_SOL_IUCV = 277
  1723. const m_SOL_KCM = 281
  1724. const m_SOL_LLC = 268
  1725. const m_SOL_NETBEUI = 267
  1726. const m_SOL_NETLINK = 270
  1727. const m_SOL_NFC = 280
  1728. const m_SOL_PACKET = 263
  1729. const m_SOL_PNPIPE = 275
  1730. const m_SOL_PPPOL2TP = 273
  1731. const m_SOL_RAW = 255
  1732. const m_SOL_RDS = 276
  1733. const m_SOL_RXRPC = 272
  1734. const m_SOL_SOCKET = 1
  1735. const m_SOL_TIPC = 271
  1736. const m_SOL_TLS = 282
  1737. const m_SOL_X25 = 262
  1738. const m_SOL_XDP = 283
  1739. const m_SOMAXCONN = 128
  1740. const m_SO_ACCEPTCONN = 30
  1741. const m_SO_ATTACH_BPF = 50
  1742. const m_SO_ATTACH_FILTER = 26
  1743. const m_SO_ATTACH_REUSEPORT_CBPF = 51
  1744. const m_SO_ATTACH_REUSEPORT_EBPF = 52
  1745. const m_SO_BINDTODEVICE = 25
  1746. const m_SO_BINDTOIFINDEX = 62
  1747. const m_SO_BPF_EXTENSIONS = 48
  1748. const m_SO_BROADCAST = 6
  1749. const m_SO_BSDCOMPAT = 14
  1750. const m_SO_BUSY_POLL = 46
  1751. const m_SO_BUSY_POLL_BUDGET = 70
  1752. const m_SO_CNX_ADVICE = 53
  1753. const m_SO_COOKIE = 57
  1754. const m_SO_DEBUG = 1
  1755. const m_SO_DETACH_BPF = "SO_DETACH_FILTER"
  1756. const m_SO_DETACH_FILTER = 27
  1757. const m_SO_DETACH_REUSEPORT_BPF = 68
  1758. const m_SO_DOMAIN = 39
  1759. const m_SO_DONTROUTE = 5
  1760. const m_SO_ERROR = 4
  1761. const m_SO_GET_FILTER = "SO_ATTACH_FILTER"
  1762. const m_SO_INCOMING_CPU = 49
  1763. const m_SO_INCOMING_NAPI_ID = 56
  1764. const m_SO_KEEPALIVE = 9
  1765. const m_SO_LINGER = 13
  1766. const m_SO_LOCK_FILTER = 44
  1767. const m_SO_MARK = 36
  1768. const m_SO_MAX_PACING_RATE = 47
  1769. const m_SO_MEMINFO = 55
  1770. const m_SO_NOFCS = 43
  1771. const m_SO_NO_CHECK = 11
  1772. const m_SO_OOBINLINE = 10
  1773. const m_SO_PASSCRED = 16
  1774. const m_SO_PASSSEC = 34
  1775. const m_SO_PEEK_OFF = 42
  1776. const m_SO_PEERCRED = 17
  1777. const m_SO_PEERGROUPS = 59
  1778. const m_SO_PEERNAME = 28
  1779. const m_SO_PEERSEC = 31
  1780. const m_SO_PREFER_BUSY_POLL = 69
  1781. const m_SO_PRIORITY = 12
  1782. const m_SO_PROTOCOL = 38
  1783. const m_SO_RCVBUF = 8
  1784. const m_SO_RCVBUFFORCE = 33
  1785. const m_SO_RCVLOWAT = 18
  1786. const m_SO_RCVTIMEO = 20
  1787. const m_SO_REUSEADDR = 2
  1788. const m_SO_REUSEPORT = 15
  1789. const m_SO_RXQ_OVFL = 40
  1790. const m_SO_SECURITY_AUTHENTICATION = 22
  1791. const m_SO_SECURITY_ENCRYPTION_NETWORK = 24
  1792. const m_SO_SECURITY_ENCRYPTION_TRANSPORT = 23
  1793. const m_SO_SELECT_ERR_QUEUE = 45
  1794. const m_SO_SNDBUF = 7
  1795. const m_SO_SNDBUFFORCE = 32
  1796. const m_SO_SNDLOWAT = 19
  1797. const m_SO_SNDTIMEO = 21
  1798. const m_SO_TIMESTAMP = 29
  1799. const m_SO_TIMESTAMPING = 37
  1800. const m_SO_TIMESTAMPNS = 35
  1801. const m_SO_TXTIME = 61
  1802. const m_SO_TYPE = 3
  1803. const m_SO_WIFI_STATUS = 41
  1804. const m_SO_ZEROCOPY = 60
  1805. type Tsocklen_t = uint32
  1806. type Tsa_family_t = uint16
  1807. type Tmsghdr = struct {
  1808. Fmsg_name uintptr
  1809. Fmsg_namelen Tsocklen_t
  1810. Fmsg_iov uintptr
  1811. F__pad1 int32
  1812. Fmsg_iovlen int32
  1813. Fmsg_control uintptr
  1814. F__pad2 int32
  1815. Fmsg_controllen Tsocklen_t
  1816. Fmsg_flags int32
  1817. }
  1818. type Tcmsghdr = struct {
  1819. F__pad1 int32
  1820. Fcmsg_len Tsocklen_t
  1821. Fcmsg_level int32
  1822. Fcmsg_type int32
  1823. }
  1824. type Tucred = struct {
  1825. Fpid Tpid_t
  1826. Fuid Tuid_t
  1827. Fgid Tgid_t
  1828. }
  1829. type Tmmsghdr = struct {
  1830. Fmsg_hdr Tmsghdr
  1831. Fmsg_len uint32
  1832. }
  1833. type Tlinger = struct {
  1834. Fl_onoff int32
  1835. Fl_linger int32
  1836. }
  1837. type Tsockaddr = struct {
  1838. Fsa_family Tsa_family_t
  1839. Fsa_data [14]uint8
  1840. }
  1841. type Tsockaddr_storage = struct {
  1842. Fss_family Tsa_family_t
  1843. F__ss_padding [118]uint8
  1844. F__ss_align uint64
  1845. }
  1846. func XXdmcpFill(tls *libc.TLS, fd int32, buffer TXdmcpBufferPtr, from TXdmcpNetaddr, fromlen uintptr) (r int32) {
  1847. var newBuf uintptr
  1848. _ = newBuf
  1849. if (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fsize < int32(m_XDM_MAX_MSGLEN) {
  1850. newBuf = libc.Xmalloc(tls, uint64(m_XDM_MAX_MSGLEN))
  1851. if newBuf != 0 {
  1852. libc.Xfree(tls, (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fdata)
  1853. (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fdata = newBuf
  1854. (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fsize = int32(m_XDM_MAX_MSGLEN)
  1855. }
  1856. }
  1857. (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fpointer = 0
  1858. (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fcount = int32(libc.Xrecvfrom(tls, fd, (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fdata, libc.Uint64FromInt32((*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fsize), 0, from, fromlen))
  1859. if (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fcount < int32(6) {
  1860. (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fcount = 0
  1861. return m_FALSE
  1862. }
  1863. return int32(m_TRUE)
  1864. }
  1865. func XXdmcpFlush(tls *libc.TLS, fd int32, buffer TXdmcpBufferPtr, to TXdmcpNetaddr, tolen int32) (r int32) {
  1866. var result int32
  1867. _ = result
  1868. result = int32(libc.Xsendto(tls, fd, (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fdata, libc.Uint64FromInt32((*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fpointer), 0, to, libc.Uint32FromInt32(tolen)))
  1869. if result != (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fpointer {
  1870. return m_FALSE
  1871. }
  1872. return int32(m_TRUE)
  1873. }
  1874. const m_Time_t = "time_t"
  1875. const m_random = "lrand48"
  1876. const m_srandom = "srand48"
  1877. func _getbits(tls *libc.TLS, data int64, dst uintptr) {
  1878. *(*uint8)(unsafe.Pointer(dst)) = libc.Uint8FromInt64(data & int64(0xff))
  1879. *(*uint8)(unsafe.Pointer(dst + 1)) = libc.Uint8FromInt64(data >> int32(8) & int64(0xff))
  1880. *(*uint8)(unsafe.Pointer(dst + 2)) = libc.Uint8FromInt64(data >> int32(16) & int64(0xff))
  1881. *(*uint8)(unsafe.Pointer(dst + 3)) = libc.Uint8FromInt64(data >> int32(24) & int64(0xff))
  1882. }
  1883. /* Solaris 11.3.0 - 11.4.15 only define getentropy() in <sys/random.h> */
  1884. func _insecure_getrandom_buf(tls *libc.TLS, auth uintptr, len1 int32) {
  1885. var highbits, lowbits int64
  1886. _, _ = highbits, lowbits
  1887. libc.Xsrand48(tls, int64(libc.Xgetpid(tls))^libc.Xtime(tls, libc.UintptrFromInt32(0)))
  1888. lowbits = libc.Xlrand48(tls)
  1889. highbits = libc.Xlrand48(tls)
  1890. _getbits(tls, lowbits, auth)
  1891. _getbits(tls, highbits, auth+uintptr(4))
  1892. }
  1893. func _arc4random_buf(tls *libc.TLS, auth uintptr, len1 int32) {
  1894. _insecure_getrandom_buf(tls, auth, len1)
  1895. }
  1896. func XXdmcpGenerateKey(tls *libc.TLS, key TXdmAuthKeyPtr) {
  1897. _arc4random_buf(tls, key, libc.Int32FromUint64(libc.Uint64FromInt32(8)))
  1898. }
  1899. func XXdmcpCompareKeys(tls *libc.TLS, a TXdmAuthKeyPtr, b TXdmAuthKeyPtr) (r int32) {
  1900. var i int32
  1901. _ = i
  1902. i = 0
  1903. for {
  1904. if !(i < int32(8)) {
  1905. break
  1906. }
  1907. if libc.Int32FromUint8(*(*TBYTE)(unsafe.Pointer(a + uintptr(i)))) != libc.Int32FromUint8(*(*TBYTE)(unsafe.Pointer(b + uintptr(i)))) {
  1908. return m_FALSE
  1909. }
  1910. goto _1
  1911. _1:
  1912. ;
  1913. i++
  1914. }
  1915. return int32(m_TRUE)
  1916. }
  1917. func XXdmcpIncrementKey(tls *libc.TLS, key TXdmAuthKeyPtr) {
  1918. var i, v3 int32
  1919. var v1 TBYTE
  1920. var v2 uintptr
  1921. _, _, _, _ = i, v1, v2, v3
  1922. i = int32(7)
  1923. for {
  1924. v2 = key + uintptr(i)
  1925. *(*TBYTE)(unsafe.Pointer(v2))++
  1926. v1 = *(*TBYTE)(unsafe.Pointer(v2))
  1927. if !(libc.Int32FromUint8(v1) == 0) {
  1928. break
  1929. }
  1930. i--
  1931. v3 = i
  1932. if v3 < 0 {
  1933. break
  1934. }
  1935. }
  1936. }
  1937. func XXdmcpDecrementKey(tls *libc.TLS, key TXdmAuthKeyPtr) {
  1938. var i, v3 int32
  1939. var v1 TBYTE
  1940. var v2 uintptr
  1941. _, _, _, _ = i, v1, v2, v3
  1942. i = int32(7)
  1943. for {
  1944. v2 = key + uintptr(i)
  1945. v1 = *(*TBYTE)(unsafe.Pointer(v2))
  1946. *(*TBYTE)(unsafe.Pointer(v2))--
  1947. if !(libc.Int32FromUint8(v1) == 0) {
  1948. break
  1949. }
  1950. i--
  1951. v3 = i
  1952. if v3 < 0 {
  1953. break
  1954. }
  1955. }
  1956. }
  1957. func XXdmcpReadHeader(tls *libc.TLS, buffer TXdmcpBufferPtr, header TXdmcpHeaderPtr) (r int32) {
  1958. if XXdmcpReadCARD16(tls, buffer, header) != 0 && XXdmcpReadCARD16(tls, buffer, header+2) != 0 && XXdmcpReadCARD16(tls, buffer, header+4) != 0 {
  1959. return int32(m_TRUE)
  1960. }
  1961. return m_FALSE
  1962. }
  1963. func XXdmcpReadRemaining(tls *libc.TLS, buffer TXdmcpBufferPtr) (r int32) {
  1964. return (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fcount - (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fpointer
  1965. }
  1966. func XXdmcpReadARRAY8(tls *libc.TLS, buffer TXdmcpBufferPtr, array TARRAY8Ptr) (r int32) {
  1967. var i int32
  1968. _ = i
  1969. /*
  1970. * When returning FALSE, guarantee that array->data = 0.
  1971. * This allows the user to safely call XdmcpDisposeARRAY8(array)
  1972. * regardless of the return value below.
  1973. * Note that XdmcpDisposeARRAY*(array) will call free(array->data),
  1974. * so we must guarantee that array->data is NULL or a malloced pointer.
  1975. */
  1976. if !(XXdmcpReadCARD16(tls, buffer, array) != 0) {
  1977. (*T_ARRAY8)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  1978. return m_FALSE
  1979. }
  1980. if !((*T_ARRAY8)(unsafe.Pointer(array)).Flength != 0) {
  1981. (*T_ARRAY8)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  1982. return int32(m_TRUE)
  1983. }
  1984. (*T_ARRAY8)(unsafe.Pointer(array)).Fdata = libc.Xmalloc(tls, uint64((*T_ARRAY8)(unsafe.Pointer(array)).Flength)*uint64(1))
  1985. if !((*T_ARRAY8)(unsafe.Pointer(array)).Fdata != 0) {
  1986. return m_FALSE
  1987. }
  1988. i = 0
  1989. for {
  1990. if !(i < libc.Int32FromUint16((*T_ARRAY8)(unsafe.Pointer(array)).Flength)) {
  1991. break
  1992. }
  1993. if !(XXdmcpReadCARD8(tls, buffer, (*T_ARRAY8)(unsafe.Pointer(array)).Fdata+uintptr(i)) != 0) {
  1994. libc.Xfree(tls, (*T_ARRAY8)(unsafe.Pointer(array)).Fdata)
  1995. (*T_ARRAY8)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  1996. (*T_ARRAY8)(unsafe.Pointer(array)).Flength = uint16(0)
  1997. return m_FALSE
  1998. }
  1999. goto _1
  2000. _1:
  2001. ;
  2002. i++
  2003. }
  2004. return int32(m_TRUE)
  2005. }
  2006. func XXdmcpReadARRAY16(tls *libc.TLS, buffer TXdmcpBufferPtr, array TARRAY16Ptr) (r int32) {
  2007. var i int32
  2008. _ = i
  2009. /*
  2010. * When returning FALSE, guarantee that array->data = 0.
  2011. * This allows the user to safely call XdmcpDisposeARRAY16(array)
  2012. * regardless of the return value below.
  2013. * Note that XdmcpDisposeARRAY*(array) will call free(array->data),
  2014. * so we must guarantee that array->data is NULL or a malloced pointer.
  2015. */
  2016. if !(XXdmcpReadCARD8(tls, buffer, array) != 0) {
  2017. (*T_ARRAY16)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  2018. return m_FALSE
  2019. }
  2020. if !((*T_ARRAY16)(unsafe.Pointer(array)).Flength != 0) {
  2021. (*T_ARRAY16)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  2022. return int32(m_TRUE)
  2023. }
  2024. (*T_ARRAY16)(unsafe.Pointer(array)).Fdata = libc.Xmalloc(tls, uint64((*T_ARRAY16)(unsafe.Pointer(array)).Flength)*uint64(2))
  2025. if !((*T_ARRAY16)(unsafe.Pointer(array)).Fdata != 0) {
  2026. return m_FALSE
  2027. }
  2028. i = 0
  2029. for {
  2030. if !(i < libc.Int32FromUint8((*T_ARRAY16)(unsafe.Pointer(array)).Flength)) {
  2031. break
  2032. }
  2033. if !(XXdmcpReadCARD16(tls, buffer, (*T_ARRAY16)(unsafe.Pointer(array)).Fdata+uintptr(i)*2) != 0) {
  2034. libc.Xfree(tls, (*T_ARRAY16)(unsafe.Pointer(array)).Fdata)
  2035. (*T_ARRAY16)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  2036. (*T_ARRAY16)(unsafe.Pointer(array)).Flength = uint8(0)
  2037. return m_FALSE
  2038. }
  2039. goto _1
  2040. _1:
  2041. ;
  2042. i++
  2043. }
  2044. return int32(m_TRUE)
  2045. }
  2046. func XXdmcpReadARRAY32(tls *libc.TLS, buffer TXdmcpBufferPtr, array TARRAY32Ptr) (r int32) {
  2047. var i int32
  2048. _ = i
  2049. /*
  2050. * When returning FALSE, guarantee that array->data = 0.
  2051. * This allows the user to safely call XdmcpDisposeARRAY32(array)
  2052. * regardless of the return value below.
  2053. * Note that XdmcpDisposeARRAY*(array) will call free(array->data),
  2054. * so we must guarantee that array->data is NULL or a malloced pointer.
  2055. */
  2056. if !(XXdmcpReadCARD8(tls, buffer, array) != 0) {
  2057. (*T_ARRAY32)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  2058. return m_FALSE
  2059. }
  2060. if !((*T_ARRAY32)(unsafe.Pointer(array)).Flength != 0) {
  2061. (*T_ARRAY32)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  2062. return int32(m_TRUE)
  2063. }
  2064. (*T_ARRAY32)(unsafe.Pointer(array)).Fdata = libc.Xmalloc(tls, uint64((*T_ARRAY32)(unsafe.Pointer(array)).Flength)*uint64(4))
  2065. if !((*T_ARRAY32)(unsafe.Pointer(array)).Fdata != 0) {
  2066. return m_FALSE
  2067. }
  2068. i = 0
  2069. for {
  2070. if !(i < libc.Int32FromUint8((*T_ARRAY32)(unsafe.Pointer(array)).Flength)) {
  2071. break
  2072. }
  2073. if !(XXdmcpReadCARD32(tls, buffer, (*T_ARRAY32)(unsafe.Pointer(array)).Fdata+uintptr(i)*4) != 0) {
  2074. libc.Xfree(tls, (*T_ARRAY32)(unsafe.Pointer(array)).Fdata)
  2075. (*T_ARRAY32)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  2076. (*T_ARRAY32)(unsafe.Pointer(array)).Flength = uint8(0)
  2077. return m_FALSE
  2078. }
  2079. goto _1
  2080. _1:
  2081. ;
  2082. i++
  2083. }
  2084. return int32(m_TRUE)
  2085. }
  2086. func XXdmcpReadARRAYofARRAY8(tls *libc.TLS, buffer TXdmcpBufferPtr, array TARRAYofARRAY8Ptr) (r int32) {
  2087. var i TCARD8
  2088. _ = i
  2089. /*
  2090. * When returning FALSE, guarantee that array->data = 0.
  2091. * This allows the user to safely call XdmcpDisposeARRAYofARRAY8(array)
  2092. * regardless of the return value below.
  2093. * Note that XdmcpDisposeARRAY*(array) will call free(array->data),
  2094. * so we must guarantee that array->data is NULL or a malloced pointer.
  2095. */
  2096. if !(XXdmcpReadCARD8(tls, buffer, array) != 0) {
  2097. (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  2098. return m_FALSE
  2099. }
  2100. if !((*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength != 0) {
  2101. (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  2102. return int32(m_TRUE)
  2103. }
  2104. (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata = libc.Xmalloc(tls, uint64((*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength)*uint64(16))
  2105. if !((*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata != 0) {
  2106. return m_FALSE
  2107. }
  2108. i = uint8(0)
  2109. for {
  2110. if !(libc.Int32FromUint8(i) < libc.Int32FromUint8((*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength)) {
  2111. break
  2112. }
  2113. if !(XXdmcpReadARRAY8(tls, buffer, (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata+uintptr(i)*16) != 0) {
  2114. /*
  2115. * We must free all of the arrays allocated thus far in the loop
  2116. * and free array->data and finally set array->data = 0;
  2117. * The easiest way to do this is to reset the length and call
  2118. * XdmcpDisposeARRAYofARRAY8(array).
  2119. */
  2120. (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength = i
  2121. XXdmcpDisposeARRAYofARRAY8(tls, array)
  2122. return m_FALSE
  2123. }
  2124. goto _1
  2125. _1:
  2126. ;
  2127. i++
  2128. }
  2129. return int32(m_TRUE)
  2130. }
  2131. func XXdmcpReadCARD8(tls *libc.TLS, buffer TXdmcpBufferPtr, valuep TCARD8Ptr) (r int32) {
  2132. var v1 int32
  2133. var v2 uintptr
  2134. _, _ = v1, v2
  2135. if (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fpointer >= (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fcount {
  2136. return m_FALSE
  2137. }
  2138. v2 = buffer + 12
  2139. v1 = *(*int32)(unsafe.Pointer(v2))
  2140. *(*int32)(unsafe.Pointer(v2))++
  2141. *(*TCARD8)(unsafe.Pointer(valuep)) = *(*TBYTE)(unsafe.Pointer((*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fdata + uintptr(v1)))
  2142. return int32(m_TRUE)
  2143. }
  2144. func XXdmcpReadCARD16(tls *libc.TLS, buffer TXdmcpBufferPtr, valuep TCARD16Ptr) (r int32) {
  2145. bp := tls.Alloc(16)
  2146. defer tls.Free(16)
  2147. var _ /* high at bp+0 */ TCARD8
  2148. var _ /* low at bp+1 */ TCARD8
  2149. if XXdmcpReadCARD8(tls, buffer, bp) != 0 && XXdmcpReadCARD8(tls, buffer, bp+1) != 0 {
  2150. *(*TCARD16)(unsafe.Pointer(valuep)) = libc.Uint16FromInt32(libc.Int32FromUint16(uint16(*(*TCARD8)(unsafe.Pointer(bp))))<<int32(8) | libc.Int32FromUint16(uint16(*(*TCARD8)(unsafe.Pointer(bp + 1)))))
  2151. return int32(m_TRUE)
  2152. }
  2153. return m_FALSE
  2154. }
  2155. func XXdmcpReadCARD32(tls *libc.TLS, buffer TXdmcpBufferPtr, valuep TCARD32Ptr) (r int32) {
  2156. bp := tls.Alloc(16)
  2157. defer tls.Free(16)
  2158. var _ /* byte0 at bp+0 */ TCARD8
  2159. var _ /* byte1 at bp+1 */ TCARD8
  2160. var _ /* byte2 at bp+2 */ TCARD8
  2161. var _ /* byte3 at bp+3 */ TCARD8
  2162. if XXdmcpReadCARD8(tls, buffer, bp) != 0 && XXdmcpReadCARD8(tls, buffer, bp+1) != 0 && XXdmcpReadCARD8(tls, buffer, bp+2) != 0 && XXdmcpReadCARD8(tls, buffer, bp+3) != 0 {
  2163. *(*TCARD32)(unsafe.Pointer(valuep)) = uint32(*(*TCARD8)(unsafe.Pointer(bp)))<<libc.Int32FromInt32(24) | uint32(*(*TCARD8)(unsafe.Pointer(bp + 1)))<<libc.Int32FromInt32(16) | uint32(*(*TCARD8)(unsafe.Pointer(bp + 2)))<<libc.Int32FromInt32(8) | uint32(*(*TCARD8)(unsafe.Pointer(bp + 3)))
  2164. return int32(m_TRUE)
  2165. }
  2166. return m_FALSE
  2167. }
  2168. type Tauth_cblock = [8]uint8
  2169. type Tauth_wrapper_schedule = [16]Tauth_ks_struct
  2170. type Tauth_ks_struct = struct {
  2171. F_1 Tauth_cblock
  2172. }
  2173. func XXdmcpUnwrap(tls *libc.TLS, input uintptr, wrapper uintptr, output uintptr, bytes int32) {
  2174. bp := tls.Alloc(160)
  2175. defer tls.Free(160)
  2176. var i, j, k, v3 int32
  2177. var _ /* blocks at bp+8 */ [2][8]uint8
  2178. var _ /* expand_wrapper at bp+24 */ [8]uint8
  2179. var _ /* schedule at bp+32 */ Tauth_wrapper_schedule
  2180. var _ /* tmp at bp+0 */ [8]uint8
  2181. _, _, _, _ = i, j, k, v3
  2182. X_XdmcpWrapperToOddParity(tls, wrapper, bp+24)
  2183. X_XdmcpAuthSetup(tls, bp+24, bp+32)
  2184. k = 0
  2185. j = 0
  2186. for {
  2187. if !(j < bytes) {
  2188. break
  2189. }
  2190. if bytes-j < int32(8) {
  2191. return
  2192. } /* bad input length */
  2193. i = 0
  2194. for {
  2195. if !(i < int32(8)) {
  2196. break
  2197. }
  2198. *(*uint8)(unsafe.Pointer(bp + 8 + uintptr(k)*8 + uintptr(i))) = *(*uint8)(unsafe.Pointer(input + uintptr(j+i)))
  2199. goto _2
  2200. _2:
  2201. ;
  2202. i++
  2203. }
  2204. X_XdmcpAuthDoIt(tls, input+uintptr(j), bp, bp+32, 0)
  2205. /* block chaining */
  2206. if k == 0 {
  2207. v3 = int32(1)
  2208. } else {
  2209. v3 = 0
  2210. }
  2211. k = v3
  2212. i = 0
  2213. for {
  2214. if !(i < int32(8)) {
  2215. break
  2216. }
  2217. if j == 0 {
  2218. *(*uint8)(unsafe.Pointer(output + uintptr(j+i))) = (*(*[8]uint8)(unsafe.Pointer(bp)))[i]
  2219. } else {
  2220. *(*uint8)(unsafe.Pointer(output + uintptr(j+i))) = libc.Uint8FromInt32(libc.Int32FromUint8((*(*[8]uint8)(unsafe.Pointer(bp)))[i]) ^ libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(bp + 8 + uintptr(k)*8 + uintptr(i)))))
  2221. }
  2222. goto _4
  2223. _4:
  2224. ;
  2225. i++
  2226. }
  2227. goto _1
  2228. _1:
  2229. ;
  2230. j += int32(8)
  2231. }
  2232. }
  2233. func XXdmcpWrap(tls *libc.TLS, input uintptr, wrapper uintptr, output uintptr, bytes int32) {
  2234. bp := tls.Alloc(144)
  2235. defer tls.Free(144)
  2236. var i, j, len1 int32
  2237. var _ /* expand_wrapper at bp+8 */ [8]uint8
  2238. var _ /* schedule at bp+16 */ Tauth_wrapper_schedule
  2239. var _ /* tmp at bp+0 */ [8]uint8
  2240. _, _, _ = i, j, len1
  2241. X_XdmcpWrapperToOddParity(tls, wrapper, bp+8)
  2242. X_XdmcpAuthSetup(tls, bp+8, bp+16)
  2243. j = 0
  2244. for {
  2245. if !(j < bytes) {
  2246. break
  2247. }
  2248. len1 = int32(8)
  2249. if bytes-j < len1 {
  2250. len1 = bytes - j
  2251. }
  2252. /* block chaining */
  2253. i = 0
  2254. for {
  2255. if !(i < len1) {
  2256. break
  2257. }
  2258. if j == 0 {
  2259. (*(*[8]uint8)(unsafe.Pointer(bp)))[i] = *(*uint8)(unsafe.Pointer(input + uintptr(i)))
  2260. } else {
  2261. (*(*[8]uint8)(unsafe.Pointer(bp)))[i] = libc.Uint8FromInt32(libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(input + uintptr(j+i)))) ^ libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(output + uintptr(j-int32(8)+i)))))
  2262. }
  2263. goto _2
  2264. _2:
  2265. ;
  2266. i++
  2267. }
  2268. for {
  2269. if !(i < int32(8)) {
  2270. break
  2271. }
  2272. if j == 0 {
  2273. (*(*[8]uint8)(unsafe.Pointer(bp)))[i] = uint8(0)
  2274. } else {
  2275. (*(*[8]uint8)(unsafe.Pointer(bp)))[i] = libc.Uint8FromInt32(0 ^ libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(output + uintptr(j-int32(8)+i)))))
  2276. }
  2277. goto _3
  2278. _3:
  2279. ;
  2280. i++
  2281. }
  2282. X_XdmcpAuthDoIt(tls, bp, output+uintptr(j), bp+16, int32(1))
  2283. goto _1
  2284. _1:
  2285. ;
  2286. j += int32(8)
  2287. }
  2288. }
  2289. /*
  2290. * Given a 56 bit wrapper in XDMCP format, create a 56
  2291. * bit wrapper in 7-bits + odd parity format
  2292. */
  2293. func _OddParity(tls *libc.TLS, c uint8) (r int32) {
  2294. c = libc.Uint8FromInt32(libc.Int32FromUint8(c) ^ libc.Int32FromUint8(c)>>int32(4))
  2295. c = libc.Uint8FromInt32(libc.Int32FromUint8(c) ^ libc.Int32FromUint8(c)>>int32(2))
  2296. c = libc.Uint8FromInt32(libc.Int32FromUint8(c) ^ libc.Int32FromUint8(c)>>int32(1))
  2297. return ^libc.Int32FromUint8(c) & int32(0x1)
  2298. }
  2299. /*
  2300. * Spread the 56 bit wrapper among 8 bytes, using the upper 7 bits
  2301. * of each byte, and storing an odd parity bit in the low bit
  2302. */
  2303. func X_XdmcpWrapperToOddParity(tls *libc.TLS, in uintptr, out uintptr) {
  2304. var ashift, bshift, i int32
  2305. var c uint8
  2306. _, _, _, _ = ashift, bshift, c, i
  2307. ashift = int32(7)
  2308. bshift = int32(1)
  2309. i = 0
  2310. for {
  2311. if !(i < int32(7)) {
  2312. break
  2313. }
  2314. c = libc.Uint8FromInt32((libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(in + uintptr(i))))<<ashift | libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(in + uintptr(i+int32(1)))))>>bshift) & int32(0x7f))
  2315. *(*uint8)(unsafe.Pointer(out + uintptr(i))) = libc.Uint8FromInt32(libc.Int32FromUint8(c)<<int32(1) | _OddParity(tls, c))
  2316. ashift--
  2317. bshift++
  2318. goto _1
  2319. _1:
  2320. ;
  2321. i++
  2322. }
  2323. c = *(*uint8)(unsafe.Pointer(in + uintptr(i)))
  2324. *(*uint8)(unsafe.Pointer(out + uintptr(i))) = libc.Uint8FromInt32(libc.Int32FromUint8(c)<<int32(1) | _OddParity(tls, c))
  2325. }
  2326. func XXdmcpWriteHeader(tls *libc.TLS, buffer TXdmcpBufferPtr, header TXdmcpHeaderPtr) (r int32) {
  2327. var newData uintptr
  2328. _ = newData
  2329. if (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fsize < int32(6)+libc.Int32FromUint16((*T_XdmcpHeader)(unsafe.Pointer(header)).Flength) {
  2330. newData = libc.Xmalloc(tls, libc.Uint64FromInt32(m_XDM_MAX_MSGLEN)*libc.Uint64FromInt64(1))
  2331. if !(newData != 0) {
  2332. return m_FALSE
  2333. }
  2334. libc.Xfree(tls, (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fdata)
  2335. (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fdata = newData
  2336. (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fsize = int32(m_XDM_MAX_MSGLEN)
  2337. }
  2338. (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fpointer = 0
  2339. if !(XXdmcpWriteCARD16(tls, buffer, uint32((*T_XdmcpHeader)(unsafe.Pointer(header)).Fversion)) != 0) {
  2340. return m_FALSE
  2341. }
  2342. if !(XXdmcpWriteCARD16(tls, buffer, uint32((*T_XdmcpHeader)(unsafe.Pointer(header)).Fopcode)) != 0) {
  2343. return m_FALSE
  2344. }
  2345. if !(XXdmcpWriteCARD16(tls, buffer, uint32((*T_XdmcpHeader)(unsafe.Pointer(header)).Flength)) != 0) {
  2346. return m_FALSE
  2347. }
  2348. return int32(m_TRUE)
  2349. }
  2350. func XXdmcpWriteARRAY8(tls *libc.TLS, buffer TXdmcpBufferPtr, array TARRAY8Ptr) (r int32) {
  2351. var i int32
  2352. _ = i
  2353. if !(XXdmcpWriteCARD16(tls, buffer, uint32((*T_ARRAY8)(unsafe.Pointer(array)).Flength)) != 0) {
  2354. return m_FALSE
  2355. }
  2356. i = 0
  2357. for {
  2358. if !(i < libc.Int32FromUint16((*T_ARRAY8)(unsafe.Pointer(array)).Flength)) {
  2359. break
  2360. }
  2361. if !(XXdmcpWriteCARD8(tls, buffer, uint32(*(*TCARD8)(unsafe.Pointer((*T_ARRAY8)(unsafe.Pointer(array)).Fdata + uintptr(i))))) != 0) {
  2362. return m_FALSE
  2363. }
  2364. goto _1
  2365. _1:
  2366. ;
  2367. i++
  2368. }
  2369. return int32(m_TRUE)
  2370. }
  2371. func XXdmcpWriteARRAY16(tls *libc.TLS, buffer TXdmcpBufferPtr, array TARRAY16Ptr) (r int32) {
  2372. var i int32
  2373. _ = i
  2374. if !(XXdmcpWriteCARD8(tls, buffer, uint32((*T_ARRAY16)(unsafe.Pointer(array)).Flength)) != 0) {
  2375. return m_FALSE
  2376. }
  2377. i = 0
  2378. for {
  2379. if !(i < libc.Int32FromUint8((*T_ARRAY16)(unsafe.Pointer(array)).Flength)) {
  2380. break
  2381. }
  2382. if !(XXdmcpWriteCARD16(tls, buffer, uint32(*(*TCARD16)(unsafe.Pointer((*T_ARRAY16)(unsafe.Pointer(array)).Fdata + uintptr(i)*2)))) != 0) {
  2383. return m_FALSE
  2384. }
  2385. goto _1
  2386. _1:
  2387. ;
  2388. i++
  2389. }
  2390. return int32(m_TRUE)
  2391. }
  2392. func XXdmcpWriteARRAY32(tls *libc.TLS, buffer TXdmcpBufferPtr, array TARRAY32Ptr) (r int32) {
  2393. var i int32
  2394. _ = i
  2395. if !(XXdmcpWriteCARD8(tls, buffer, uint32((*T_ARRAY32)(unsafe.Pointer(array)).Flength)) != 0) {
  2396. return m_FALSE
  2397. }
  2398. i = 0
  2399. for {
  2400. if !(i < libc.Int32FromUint8((*T_ARRAY32)(unsafe.Pointer(array)).Flength)) {
  2401. break
  2402. }
  2403. if !(XXdmcpWriteCARD32(tls, buffer, *(*TCARD32)(unsafe.Pointer((*T_ARRAY32)(unsafe.Pointer(array)).Fdata + uintptr(i)*4))) != 0) {
  2404. return m_FALSE
  2405. }
  2406. goto _1
  2407. _1:
  2408. ;
  2409. i++
  2410. }
  2411. return int32(m_TRUE)
  2412. }
  2413. func XXdmcpWriteARRAYofARRAY8(tls *libc.TLS, buffer TXdmcpBufferPtr, array TARRAYofARRAY8Ptr) (r int32) {
  2414. var i int32
  2415. _ = i
  2416. if !(XXdmcpWriteCARD8(tls, buffer, uint32((*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength)) != 0) {
  2417. return m_FALSE
  2418. }
  2419. i = 0
  2420. for {
  2421. if !(i < libc.Int32FromUint8((*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength)) {
  2422. break
  2423. }
  2424. if !(XXdmcpWriteARRAY8(tls, buffer, (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata+uintptr(i)*16) != 0) {
  2425. return m_FALSE
  2426. }
  2427. goto _1
  2428. _1:
  2429. ;
  2430. i++
  2431. }
  2432. return int32(m_TRUE)
  2433. }
  2434. func XXdmcpWriteCARD8(tls *libc.TLS, buffer TXdmcpBufferPtr, value uint32) (r int32) {
  2435. var v1 int32
  2436. var v2 uintptr
  2437. _, _ = v1, v2
  2438. if (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fpointer >= (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fsize {
  2439. return m_FALSE
  2440. }
  2441. v2 = buffer + 12
  2442. v1 = *(*int32)(unsafe.Pointer(v2))
  2443. *(*int32)(unsafe.Pointer(v2))++
  2444. *(*TBYTE)(unsafe.Pointer((*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fdata + uintptr(v1))) = uint8(value)
  2445. return int32(m_TRUE)
  2446. }
  2447. func XXdmcpWriteCARD16(tls *libc.TLS, buffer TXdmcpBufferPtr, value uint32) (r int32) {
  2448. if !(XXdmcpWriteCARD8(tls, buffer, value>>int32(8)) != 0) {
  2449. return m_FALSE
  2450. }
  2451. if !(XXdmcpWriteCARD8(tls, buffer, value&uint32(0xff)) != 0) {
  2452. return m_FALSE
  2453. }
  2454. return int32(m_TRUE)
  2455. }
  2456. func XXdmcpWriteCARD32(tls *libc.TLS, buffer TXdmcpBufferPtr, value uint32) (r int32) {
  2457. if !(XXdmcpWriteCARD8(tls, buffer, value>>int32(24)) != 0) {
  2458. return m_FALSE
  2459. }
  2460. if !(XXdmcpWriteCARD8(tls, buffer, value>>int32(16)&uint32(0xff)) != 0) {
  2461. return m_FALSE
  2462. }
  2463. if !(XXdmcpWriteCARD8(tls, buffer, value>>int32(8)&uint32(0xff)) != 0) {
  2464. return m_FALSE
  2465. }
  2466. if !(XXdmcpWriteCARD8(tls, buffer, value&uint32(0xff)) != 0) {
  2467. return m_FALSE
  2468. }
  2469. return int32(m_TRUE)
  2470. }
  2471. const m_HALF_ITERATIONS = 8
  2472. const m_ITERATIONS = 16
  2473. /* des routines for non-usa - eay 10/9/1991 eay@psych.psy.uq.oz.au
  2474. * These routines were written for speed not size so they are bigger than
  2475. * needed. I have removed some of the loop unrolling, this will reduce
  2476. * code size at the expense of some speed.
  2477. * 25/9/1991 eay - much faster _XdmcpAuthSetup (4 times faster).
  2478. * 19/9/1991 eay - cleaned up the IP and FP code.
  2479. * 10/9/1991 eay - first release.
  2480. * The des routines this file has been made from can be found in
  2481. * ftp.psy.uq.oz.au /pub/DES
  2482. * This particular version derived from OpenBSD Revsion 1.3.
  2483. */
  2484. /*
  2485. *
  2486. * Export Requirements.
  2487. * You may not export or re-export this software or any copy or
  2488. * adaptation in violation of any applicable laws or regulations.
  2489. *
  2490. * Without limiting the generality of the foregoing, hardware, software,
  2491. * technology or services provided under this license agreement may not
  2492. * be exported, reexported, transferred or downloaded to or within (or to
  2493. * a national resident of) countries under U.S. economic embargo
  2494. * including the following countries:
  2495. *
  2496. * Cuba, Iran, Libya, North Korea, Sudan and Syria. This list is subject
  2497. * to change.
  2498. *
  2499. * Hardware, software, technology or services may not be exported,
  2500. * reexported, transferred or downloaded to persons or entities listed on
  2501. * the U.S. Department of Commerce Denied Persons List, Entity List of
  2502. * proliferation concern or on any U.S. Treasury Department Designated
  2503. * Nationals exclusion list, or to parties directly or indirectly
  2504. * involved in the development or production of nuclear, chemical,
  2505. * biological weapons or in missile technology programs as specified in
  2506. * the U.S. Export Administration Regulations (15 CFR 744).
  2507. *
  2508. * By accepting this license agreement you confirm that you are not
  2509. * located in (or a national resident of) any country under U.S. economic
  2510. * embargo, not identified on any U.S. Department of Commerce Denied
  2511. * Persons List, Entity List or Treasury Department Designated Nationals
  2512. * exclusion list, and not directly or indirectly involved in the
  2513. * development or production of nuclear, chemical, biological weapons or
  2514. * in missile technology programs as specified in the U.S. Export
  2515. * Administration Regulations.
  2516. *
  2517. *
  2518. * Local Country Import Requirements. The software you are about to
  2519. * download contains cryptography technology. Some countries regulate the
  2520. * import, use and/or export of certain products with cryptography. The
  2521. * X.org Foundation makes no claims as to the applicability of local
  2522. * country import, use and/or export regulations in relation to the
  2523. * download of this product. If you are located outside the U.S. and
  2524. * Canada you are advised to consult your local country regulations to
  2525. * insure compliance.
  2526. */
  2527. var _skb = [8][64]TCARD32{
  2528. 0: {
  2529. 1: uint32(0x00000010),
  2530. 2: uint32(0x20000000),
  2531. 3: uint32(0x20000010),
  2532. 4: uint32(0x00010000),
  2533. 5: uint32(0x00010010),
  2534. 6: uint32(0x20010000),
  2535. 7: uint32(0x20010010),
  2536. 8: uint32(0x00000800),
  2537. 9: uint32(0x00000810),
  2538. 10: uint32(0x20000800),
  2539. 11: uint32(0x20000810),
  2540. 12: uint32(0x00010800),
  2541. 13: uint32(0x00010810),
  2542. 14: uint32(0x20010800),
  2543. 15: uint32(0x20010810),
  2544. 16: uint32(0x00000020),
  2545. 17: uint32(0x00000030),
  2546. 18: uint32(0x20000020),
  2547. 19: uint32(0x20000030),
  2548. 20: uint32(0x00010020),
  2549. 21: uint32(0x00010030),
  2550. 22: uint32(0x20010020),
  2551. 23: uint32(0x20010030),
  2552. 24: uint32(0x00000820),
  2553. 25: uint32(0x00000830),
  2554. 26: uint32(0x20000820),
  2555. 27: uint32(0x20000830),
  2556. 28: uint32(0x00010820),
  2557. 29: uint32(0x00010830),
  2558. 30: uint32(0x20010820),
  2559. 31: uint32(0x20010830),
  2560. 32: uint32(0x00080000),
  2561. 33: uint32(0x00080010),
  2562. 34: uint32(0x20080000),
  2563. 35: uint32(0x20080010),
  2564. 36: uint32(0x00090000),
  2565. 37: uint32(0x00090010),
  2566. 38: uint32(0x20090000),
  2567. 39: uint32(0x20090010),
  2568. 40: uint32(0x00080800),
  2569. 41: uint32(0x00080810),
  2570. 42: uint32(0x20080800),
  2571. 43: uint32(0x20080810),
  2572. 44: uint32(0x00090800),
  2573. 45: uint32(0x00090810),
  2574. 46: uint32(0x20090800),
  2575. 47: uint32(0x20090810),
  2576. 48: uint32(0x00080020),
  2577. 49: uint32(0x00080030),
  2578. 50: uint32(0x20080020),
  2579. 51: uint32(0x20080030),
  2580. 52: uint32(0x00090020),
  2581. 53: uint32(0x00090030),
  2582. 54: uint32(0x20090020),
  2583. 55: uint32(0x20090030),
  2584. 56: uint32(0x00080820),
  2585. 57: uint32(0x00080830),
  2586. 58: uint32(0x20080820),
  2587. 59: uint32(0x20080830),
  2588. 60: uint32(0x00090820),
  2589. 61: uint32(0x00090830),
  2590. 62: uint32(0x20090820),
  2591. 63: uint32(0x20090830),
  2592. },
  2593. 1: {
  2594. 1: uint32(0x02000000),
  2595. 2: uint32(0x00002000),
  2596. 3: uint32(0x02002000),
  2597. 4: uint32(0x00200000),
  2598. 5: uint32(0x02200000),
  2599. 6: uint32(0x00202000),
  2600. 7: uint32(0x02202000),
  2601. 8: uint32(0x00000004),
  2602. 9: uint32(0x02000004),
  2603. 10: uint32(0x00002004),
  2604. 11: uint32(0x02002004),
  2605. 12: uint32(0x00200004),
  2606. 13: uint32(0x02200004),
  2607. 14: uint32(0x00202004),
  2608. 15: uint32(0x02202004),
  2609. 16: uint32(0x00000400),
  2610. 17: uint32(0x02000400),
  2611. 18: uint32(0x00002400),
  2612. 19: uint32(0x02002400),
  2613. 20: uint32(0x00200400),
  2614. 21: uint32(0x02200400),
  2615. 22: uint32(0x00202400),
  2616. 23: uint32(0x02202400),
  2617. 24: uint32(0x00000404),
  2618. 25: uint32(0x02000404),
  2619. 26: uint32(0x00002404),
  2620. 27: uint32(0x02002404),
  2621. 28: uint32(0x00200404),
  2622. 29: uint32(0x02200404),
  2623. 30: uint32(0x00202404),
  2624. 31: uint32(0x02202404),
  2625. 32: uint32(0x10000000),
  2626. 33: uint32(0x12000000),
  2627. 34: uint32(0x10002000),
  2628. 35: uint32(0x12002000),
  2629. 36: uint32(0x10200000),
  2630. 37: uint32(0x12200000),
  2631. 38: uint32(0x10202000),
  2632. 39: uint32(0x12202000),
  2633. 40: uint32(0x10000004),
  2634. 41: uint32(0x12000004),
  2635. 42: uint32(0x10002004),
  2636. 43: uint32(0x12002004),
  2637. 44: uint32(0x10200004),
  2638. 45: uint32(0x12200004),
  2639. 46: uint32(0x10202004),
  2640. 47: uint32(0x12202004),
  2641. 48: uint32(0x10000400),
  2642. 49: uint32(0x12000400),
  2643. 50: uint32(0x10002400),
  2644. 51: uint32(0x12002400),
  2645. 52: uint32(0x10200400),
  2646. 53: uint32(0x12200400),
  2647. 54: uint32(0x10202400),
  2648. 55: uint32(0x12202400),
  2649. 56: uint32(0x10000404),
  2650. 57: uint32(0x12000404),
  2651. 58: uint32(0x10002404),
  2652. 59: uint32(0x12002404),
  2653. 60: uint32(0x10200404),
  2654. 61: uint32(0x12200404),
  2655. 62: uint32(0x10202404),
  2656. 63: uint32(0x12202404),
  2657. },
  2658. 2: {
  2659. 1: uint32(0x00000001),
  2660. 2: uint32(0x00040000),
  2661. 3: uint32(0x00040001),
  2662. 4: uint32(0x01000000),
  2663. 5: uint32(0x01000001),
  2664. 6: uint32(0x01040000),
  2665. 7: uint32(0x01040001),
  2666. 8: uint32(0x00000002),
  2667. 9: uint32(0x00000003),
  2668. 10: uint32(0x00040002),
  2669. 11: uint32(0x00040003),
  2670. 12: uint32(0x01000002),
  2671. 13: uint32(0x01000003),
  2672. 14: uint32(0x01040002),
  2673. 15: uint32(0x01040003),
  2674. 16: uint32(0x00000200),
  2675. 17: uint32(0x00000201),
  2676. 18: uint32(0x00040200),
  2677. 19: uint32(0x00040201),
  2678. 20: uint32(0x01000200),
  2679. 21: uint32(0x01000201),
  2680. 22: uint32(0x01040200),
  2681. 23: uint32(0x01040201),
  2682. 24: uint32(0x00000202),
  2683. 25: uint32(0x00000203),
  2684. 26: uint32(0x00040202),
  2685. 27: uint32(0x00040203),
  2686. 28: uint32(0x01000202),
  2687. 29: uint32(0x01000203),
  2688. 30: uint32(0x01040202),
  2689. 31: uint32(0x01040203),
  2690. 32: uint32(0x08000000),
  2691. 33: uint32(0x08000001),
  2692. 34: uint32(0x08040000),
  2693. 35: uint32(0x08040001),
  2694. 36: uint32(0x09000000),
  2695. 37: uint32(0x09000001),
  2696. 38: uint32(0x09040000),
  2697. 39: uint32(0x09040001),
  2698. 40: uint32(0x08000002),
  2699. 41: uint32(0x08000003),
  2700. 42: uint32(0x08040002),
  2701. 43: uint32(0x08040003),
  2702. 44: uint32(0x09000002),
  2703. 45: uint32(0x09000003),
  2704. 46: uint32(0x09040002),
  2705. 47: uint32(0x09040003),
  2706. 48: uint32(0x08000200),
  2707. 49: uint32(0x08000201),
  2708. 50: uint32(0x08040200),
  2709. 51: uint32(0x08040201),
  2710. 52: uint32(0x09000200),
  2711. 53: uint32(0x09000201),
  2712. 54: uint32(0x09040200),
  2713. 55: uint32(0x09040201),
  2714. 56: uint32(0x08000202),
  2715. 57: uint32(0x08000203),
  2716. 58: uint32(0x08040202),
  2717. 59: uint32(0x08040203),
  2718. 60: uint32(0x09000202),
  2719. 61: uint32(0x09000203),
  2720. 62: uint32(0x09040202),
  2721. 63: uint32(0x09040203),
  2722. },
  2723. 3: {
  2724. 1: uint32(0x00100000),
  2725. 2: uint32(0x00000100),
  2726. 3: uint32(0x00100100),
  2727. 4: uint32(0x00000008),
  2728. 5: uint32(0x00100008),
  2729. 6: uint32(0x00000108),
  2730. 7: uint32(0x00100108),
  2731. 8: uint32(0x00001000),
  2732. 9: uint32(0x00101000),
  2733. 10: uint32(0x00001100),
  2734. 11: uint32(0x00101100),
  2735. 12: uint32(0x00001008),
  2736. 13: uint32(0x00101008),
  2737. 14: uint32(0x00001108),
  2738. 15: uint32(0x00101108),
  2739. 16: uint32(0x04000000),
  2740. 17: uint32(0x04100000),
  2741. 18: uint32(0x04000100),
  2742. 19: uint32(0x04100100),
  2743. 20: uint32(0x04000008),
  2744. 21: uint32(0x04100008),
  2745. 22: uint32(0x04000108),
  2746. 23: uint32(0x04100108),
  2747. 24: uint32(0x04001000),
  2748. 25: uint32(0x04101000),
  2749. 26: uint32(0x04001100),
  2750. 27: uint32(0x04101100),
  2751. 28: uint32(0x04001008),
  2752. 29: uint32(0x04101008),
  2753. 30: uint32(0x04001108),
  2754. 31: uint32(0x04101108),
  2755. 32: uint32(0x00020000),
  2756. 33: uint32(0x00120000),
  2757. 34: uint32(0x00020100),
  2758. 35: uint32(0x00120100),
  2759. 36: uint32(0x00020008),
  2760. 37: uint32(0x00120008),
  2761. 38: uint32(0x00020108),
  2762. 39: uint32(0x00120108),
  2763. 40: uint32(0x00021000),
  2764. 41: uint32(0x00121000),
  2765. 42: uint32(0x00021100),
  2766. 43: uint32(0x00121100),
  2767. 44: uint32(0x00021008),
  2768. 45: uint32(0x00121008),
  2769. 46: uint32(0x00021108),
  2770. 47: uint32(0x00121108),
  2771. 48: uint32(0x04020000),
  2772. 49: uint32(0x04120000),
  2773. 50: uint32(0x04020100),
  2774. 51: uint32(0x04120100),
  2775. 52: uint32(0x04020008),
  2776. 53: uint32(0x04120008),
  2777. 54: uint32(0x04020108),
  2778. 55: uint32(0x04120108),
  2779. 56: uint32(0x04021000),
  2780. 57: uint32(0x04121000),
  2781. 58: uint32(0x04021100),
  2782. 59: uint32(0x04121100),
  2783. 60: uint32(0x04021008),
  2784. 61: uint32(0x04121008),
  2785. 62: uint32(0x04021108),
  2786. 63: uint32(0x04121108),
  2787. },
  2788. 4: {
  2789. 1: uint32(0x10000000),
  2790. 2: uint32(0x00010000),
  2791. 3: uint32(0x10010000),
  2792. 4: uint32(0x00000004),
  2793. 5: uint32(0x10000004),
  2794. 6: uint32(0x00010004),
  2795. 7: uint32(0x10010004),
  2796. 8: uint32(0x20000000),
  2797. 9: uint32(0x30000000),
  2798. 10: uint32(0x20010000),
  2799. 11: uint32(0x30010000),
  2800. 12: uint32(0x20000004),
  2801. 13: uint32(0x30000004),
  2802. 14: uint32(0x20010004),
  2803. 15: uint32(0x30010004),
  2804. 16: uint32(0x00100000),
  2805. 17: uint32(0x10100000),
  2806. 18: uint32(0x00110000),
  2807. 19: uint32(0x10110000),
  2808. 20: uint32(0x00100004),
  2809. 21: uint32(0x10100004),
  2810. 22: uint32(0x00110004),
  2811. 23: uint32(0x10110004),
  2812. 24: uint32(0x20100000),
  2813. 25: uint32(0x30100000),
  2814. 26: uint32(0x20110000),
  2815. 27: uint32(0x30110000),
  2816. 28: uint32(0x20100004),
  2817. 29: uint32(0x30100004),
  2818. 30: uint32(0x20110004),
  2819. 31: uint32(0x30110004),
  2820. 32: uint32(0x00001000),
  2821. 33: uint32(0x10001000),
  2822. 34: uint32(0x00011000),
  2823. 35: uint32(0x10011000),
  2824. 36: uint32(0x00001004),
  2825. 37: uint32(0x10001004),
  2826. 38: uint32(0x00011004),
  2827. 39: uint32(0x10011004),
  2828. 40: uint32(0x20001000),
  2829. 41: uint32(0x30001000),
  2830. 42: uint32(0x20011000),
  2831. 43: uint32(0x30011000),
  2832. 44: uint32(0x20001004),
  2833. 45: uint32(0x30001004),
  2834. 46: uint32(0x20011004),
  2835. 47: uint32(0x30011004),
  2836. 48: uint32(0x00101000),
  2837. 49: uint32(0x10101000),
  2838. 50: uint32(0x00111000),
  2839. 51: uint32(0x10111000),
  2840. 52: uint32(0x00101004),
  2841. 53: uint32(0x10101004),
  2842. 54: uint32(0x00111004),
  2843. 55: uint32(0x10111004),
  2844. 56: uint32(0x20101000),
  2845. 57: uint32(0x30101000),
  2846. 58: uint32(0x20111000),
  2847. 59: uint32(0x30111000),
  2848. 60: uint32(0x20101004),
  2849. 61: uint32(0x30101004),
  2850. 62: uint32(0x20111004),
  2851. 63: uint32(0x30111004),
  2852. },
  2853. 5: {
  2854. 1: uint32(0x08000000),
  2855. 2: uint32(0x00000008),
  2856. 3: uint32(0x08000008),
  2857. 4: uint32(0x00000400),
  2858. 5: uint32(0x08000400),
  2859. 6: uint32(0x00000408),
  2860. 7: uint32(0x08000408),
  2861. 8: uint32(0x00020000),
  2862. 9: uint32(0x08020000),
  2863. 10: uint32(0x00020008),
  2864. 11: uint32(0x08020008),
  2865. 12: uint32(0x00020400),
  2866. 13: uint32(0x08020400),
  2867. 14: uint32(0x00020408),
  2868. 15: uint32(0x08020408),
  2869. 16: uint32(0x00000001),
  2870. 17: uint32(0x08000001),
  2871. 18: uint32(0x00000009),
  2872. 19: uint32(0x08000009),
  2873. 20: uint32(0x00000401),
  2874. 21: uint32(0x08000401),
  2875. 22: uint32(0x00000409),
  2876. 23: uint32(0x08000409),
  2877. 24: uint32(0x00020001),
  2878. 25: uint32(0x08020001),
  2879. 26: uint32(0x00020009),
  2880. 27: uint32(0x08020009),
  2881. 28: uint32(0x00020401),
  2882. 29: uint32(0x08020401),
  2883. 30: uint32(0x00020409),
  2884. 31: uint32(0x08020409),
  2885. 32: uint32(0x02000000),
  2886. 33: uint32(0x0A000000),
  2887. 34: uint32(0x02000008),
  2888. 35: uint32(0x0A000008),
  2889. 36: uint32(0x02000400),
  2890. 37: uint32(0x0A000400),
  2891. 38: uint32(0x02000408),
  2892. 39: uint32(0x0A000408),
  2893. 40: uint32(0x02020000),
  2894. 41: uint32(0x0A020000),
  2895. 42: uint32(0x02020008),
  2896. 43: uint32(0x0A020008),
  2897. 44: uint32(0x02020400),
  2898. 45: uint32(0x0A020400),
  2899. 46: uint32(0x02020408),
  2900. 47: uint32(0x0A020408),
  2901. 48: uint32(0x02000001),
  2902. 49: uint32(0x0A000001),
  2903. 50: uint32(0x02000009),
  2904. 51: uint32(0x0A000009),
  2905. 52: uint32(0x02000401),
  2906. 53: uint32(0x0A000401),
  2907. 54: uint32(0x02000409),
  2908. 55: uint32(0x0A000409),
  2909. 56: uint32(0x02020001),
  2910. 57: uint32(0x0A020001),
  2911. 58: uint32(0x02020009),
  2912. 59: uint32(0x0A020009),
  2913. 60: uint32(0x02020401),
  2914. 61: uint32(0x0A020401),
  2915. 62: uint32(0x02020409),
  2916. 63: uint32(0x0A020409),
  2917. },
  2918. 6: {
  2919. 1: uint32(0x00000100),
  2920. 2: uint32(0x00080000),
  2921. 3: uint32(0x00080100),
  2922. 4: uint32(0x01000000),
  2923. 5: uint32(0x01000100),
  2924. 6: uint32(0x01080000),
  2925. 7: uint32(0x01080100),
  2926. 8: uint32(0x00000010),
  2927. 9: uint32(0x00000110),
  2928. 10: uint32(0x00080010),
  2929. 11: uint32(0x00080110),
  2930. 12: uint32(0x01000010),
  2931. 13: uint32(0x01000110),
  2932. 14: uint32(0x01080010),
  2933. 15: uint32(0x01080110),
  2934. 16: uint32(0x00200000),
  2935. 17: uint32(0x00200100),
  2936. 18: uint32(0x00280000),
  2937. 19: uint32(0x00280100),
  2938. 20: uint32(0x01200000),
  2939. 21: uint32(0x01200100),
  2940. 22: uint32(0x01280000),
  2941. 23: uint32(0x01280100),
  2942. 24: uint32(0x00200010),
  2943. 25: uint32(0x00200110),
  2944. 26: uint32(0x00280010),
  2945. 27: uint32(0x00280110),
  2946. 28: uint32(0x01200010),
  2947. 29: uint32(0x01200110),
  2948. 30: uint32(0x01280010),
  2949. 31: uint32(0x01280110),
  2950. 32: uint32(0x00000200),
  2951. 33: uint32(0x00000300),
  2952. 34: uint32(0x00080200),
  2953. 35: uint32(0x00080300),
  2954. 36: uint32(0x01000200),
  2955. 37: uint32(0x01000300),
  2956. 38: uint32(0x01080200),
  2957. 39: uint32(0x01080300),
  2958. 40: uint32(0x00000210),
  2959. 41: uint32(0x00000310),
  2960. 42: uint32(0x00080210),
  2961. 43: uint32(0x00080310),
  2962. 44: uint32(0x01000210),
  2963. 45: uint32(0x01000310),
  2964. 46: uint32(0x01080210),
  2965. 47: uint32(0x01080310),
  2966. 48: uint32(0x00200200),
  2967. 49: uint32(0x00200300),
  2968. 50: uint32(0x00280200),
  2969. 51: uint32(0x00280300),
  2970. 52: uint32(0x01200200),
  2971. 53: uint32(0x01200300),
  2972. 54: uint32(0x01280200),
  2973. 55: uint32(0x01280300),
  2974. 56: uint32(0x00200210),
  2975. 57: uint32(0x00200310),
  2976. 58: uint32(0x00280210),
  2977. 59: uint32(0x00280310),
  2978. 60: uint32(0x01200210),
  2979. 61: uint32(0x01200310),
  2980. 62: uint32(0x01280210),
  2981. 63: uint32(0x01280310),
  2982. },
  2983. 7: {
  2984. 1: uint32(0x04000000),
  2985. 2: uint32(0x00040000),
  2986. 3: uint32(0x04040000),
  2987. 4: uint32(0x00000002),
  2988. 5: uint32(0x04000002),
  2989. 6: uint32(0x00040002),
  2990. 7: uint32(0x04040002),
  2991. 8: uint32(0x00002000),
  2992. 9: uint32(0x04002000),
  2993. 10: uint32(0x00042000),
  2994. 11: uint32(0x04042000),
  2995. 12: uint32(0x00002002),
  2996. 13: uint32(0x04002002),
  2997. 14: uint32(0x00042002),
  2998. 15: uint32(0x04042002),
  2999. 16: uint32(0x00000020),
  3000. 17: uint32(0x04000020),
  3001. 18: uint32(0x00040020),
  3002. 19: uint32(0x04040020),
  3003. 20: uint32(0x00000022),
  3004. 21: uint32(0x04000022),
  3005. 22: uint32(0x00040022),
  3006. 23: uint32(0x04040022),
  3007. 24: uint32(0x00002020),
  3008. 25: uint32(0x04002020),
  3009. 26: uint32(0x00042020),
  3010. 27: uint32(0x04042020),
  3011. 28: uint32(0x00002022),
  3012. 29: uint32(0x04002022),
  3013. 30: uint32(0x00042022),
  3014. 31: uint32(0x04042022),
  3015. 32: uint32(0x00000800),
  3016. 33: uint32(0x04000800),
  3017. 34: uint32(0x00040800),
  3018. 35: uint32(0x04040800),
  3019. 36: uint32(0x00000802),
  3020. 37: uint32(0x04000802),
  3021. 38: uint32(0x00040802),
  3022. 39: uint32(0x04040802),
  3023. 40: uint32(0x00002800),
  3024. 41: uint32(0x04002800),
  3025. 42: uint32(0x00042800),
  3026. 43: uint32(0x04042800),
  3027. 44: uint32(0x00002802),
  3028. 45: uint32(0x04002802),
  3029. 46: uint32(0x00042802),
  3030. 47: uint32(0x04042802),
  3031. 48: uint32(0x00000820),
  3032. 49: uint32(0x04000820),
  3033. 50: uint32(0x00040820),
  3034. 51: uint32(0x04040820),
  3035. 52: uint32(0x00000822),
  3036. 53: uint32(0x04000822),
  3037. 54: uint32(0x00040822),
  3038. 55: uint32(0x04040822),
  3039. 56: uint32(0x00002820),
  3040. 57: uint32(0x04002820),
  3041. 58: uint32(0x00042820),
  3042. 59: uint32(0x04042820),
  3043. 60: uint32(0x00002822),
  3044. 61: uint32(0x04002822),
  3045. 62: uint32(0x00042822),
  3046. 63: uint32(0x04042822),
  3047. },
  3048. }
  3049. var _SPtrans = [8][64]TCARD32{
  3050. 0: {
  3051. 0: uint32(0x00410100),
  3052. 1: uint32(0x00010000),
  3053. 2: uint32(0x40400000),
  3054. 3: uint32(0x40410100),
  3055. 4: uint32(0x00400000),
  3056. 5: uint32(0x40010100),
  3057. 6: uint32(0x40010000),
  3058. 7: uint32(0x40400000),
  3059. 8: uint32(0x40010100),
  3060. 9: uint32(0x00410100),
  3061. 10: uint32(0x00410000),
  3062. 11: uint32(0x40000100),
  3063. 12: uint32(0x40400100),
  3064. 13: uint32(0x00400000),
  3065. 15: uint32(0x40010000),
  3066. 16: uint32(0x00010000),
  3067. 17: uint32(0x40000000),
  3068. 18: uint32(0x00400100),
  3069. 19: uint32(0x00010100),
  3070. 20: uint32(0x40410100),
  3071. 21: uint32(0x00410000),
  3072. 22: uint32(0x40000100),
  3073. 23: uint32(0x00400100),
  3074. 24: uint32(0x40000000),
  3075. 25: uint32(0x00000100),
  3076. 26: uint32(0x00010100),
  3077. 27: uint32(0x40410000),
  3078. 28: uint32(0x00000100),
  3079. 29: uint32(0x40400100),
  3080. 30: uint32(0x40410000),
  3081. 33: uint32(0x40410100),
  3082. 34: uint32(0x00400100),
  3083. 35: uint32(0x40010000),
  3084. 36: uint32(0x00410100),
  3085. 37: uint32(0x00010000),
  3086. 38: uint32(0x40000100),
  3087. 39: uint32(0x00400100),
  3088. 40: uint32(0x40410000),
  3089. 41: uint32(0x00000100),
  3090. 42: uint32(0x00010100),
  3091. 43: uint32(0x40400000),
  3092. 44: uint32(0x40010100),
  3093. 45: uint32(0x40000000),
  3094. 46: uint32(0x40400000),
  3095. 47: uint32(0x00410000),
  3096. 48: uint32(0x40410100),
  3097. 49: uint32(0x00010100),
  3098. 50: uint32(0x00410000),
  3099. 51: uint32(0x40400100),
  3100. 52: uint32(0x00400000),
  3101. 53: uint32(0x40000100),
  3102. 54: uint32(0x40010000),
  3103. 56: uint32(0x00010000),
  3104. 57: uint32(0x00400000),
  3105. 58: uint32(0x40400100),
  3106. 59: uint32(0x00410100),
  3107. 60: uint32(0x40000000),
  3108. 61: uint32(0x40410000),
  3109. 62: uint32(0x00000100),
  3110. 63: uint32(0x40010100),
  3111. },
  3112. 1: {
  3113. 0: uint32(0x08021002),
  3114. 2: uint32(0x00021000),
  3115. 3: uint32(0x08020000),
  3116. 4: uint32(0x08000002),
  3117. 5: uint32(0x00001002),
  3118. 6: uint32(0x08001000),
  3119. 7: uint32(0x00021000),
  3120. 8: uint32(0x00001000),
  3121. 9: uint32(0x08020002),
  3122. 10: uint32(0x00000002),
  3123. 11: uint32(0x08001000),
  3124. 12: uint32(0x00020002),
  3125. 13: uint32(0x08021000),
  3126. 14: uint32(0x08020000),
  3127. 15: uint32(0x00000002),
  3128. 16: uint32(0x00020000),
  3129. 17: uint32(0x08001002),
  3130. 18: uint32(0x08020002),
  3131. 19: uint32(0x00001000),
  3132. 20: uint32(0x00021002),
  3133. 21: uint32(0x08000000),
  3134. 23: uint32(0x00020002),
  3135. 24: uint32(0x08001002),
  3136. 25: uint32(0x00021002),
  3137. 26: uint32(0x08021000),
  3138. 27: uint32(0x08000002),
  3139. 28: uint32(0x08000000),
  3140. 29: uint32(0x00020000),
  3141. 30: uint32(0x00001002),
  3142. 31: uint32(0x08021002),
  3143. 32: uint32(0x00020002),
  3144. 33: uint32(0x08021000),
  3145. 34: uint32(0x08001000),
  3146. 35: uint32(0x00021002),
  3147. 36: uint32(0x08021002),
  3148. 37: uint32(0x00020002),
  3149. 38: uint32(0x08000002),
  3150. 40: uint32(0x08000000),
  3151. 41: uint32(0x00001002),
  3152. 42: uint32(0x00020000),
  3153. 43: uint32(0x08020002),
  3154. 44: uint32(0x00001000),
  3155. 45: uint32(0x08000000),
  3156. 46: uint32(0x00021002),
  3157. 47: uint32(0x08001002),
  3158. 48: uint32(0x08021000),
  3159. 49: uint32(0x00001000),
  3160. 51: uint32(0x08000002),
  3161. 52: uint32(0x00000002),
  3162. 53: uint32(0x08021002),
  3163. 54: uint32(0x00021000),
  3164. 55: uint32(0x08020000),
  3165. 56: uint32(0x08020002),
  3166. 57: uint32(0x00020000),
  3167. 58: uint32(0x00001002),
  3168. 59: uint32(0x08001000),
  3169. 60: uint32(0x08001002),
  3170. 61: uint32(0x00000002),
  3171. 62: uint32(0x08020000),
  3172. 63: uint32(0x00021000),
  3173. },
  3174. 2: {
  3175. 0: uint32(0x20800000),
  3176. 1: uint32(0x00808020),
  3177. 2: uint32(0x00000020),
  3178. 3: uint32(0x20800020),
  3179. 4: uint32(0x20008000),
  3180. 5: uint32(0x00800000),
  3181. 6: uint32(0x20800020),
  3182. 7: uint32(0x00008020),
  3183. 8: uint32(0x00800020),
  3184. 9: uint32(0x00008000),
  3185. 10: uint32(0x00808000),
  3186. 11: uint32(0x20000000),
  3187. 12: uint32(0x20808020),
  3188. 13: uint32(0x20000020),
  3189. 14: uint32(0x20000000),
  3190. 15: uint32(0x20808000),
  3191. 17: uint32(0x20008000),
  3192. 18: uint32(0x00808020),
  3193. 19: uint32(0x00000020),
  3194. 20: uint32(0x20000020),
  3195. 21: uint32(0x20808020),
  3196. 22: uint32(0x00008000),
  3197. 23: uint32(0x20800000),
  3198. 24: uint32(0x20808000),
  3199. 25: uint32(0x00800020),
  3200. 26: uint32(0x20008020),
  3201. 27: uint32(0x00808000),
  3202. 28: uint32(0x00008020),
  3203. 30: uint32(0x00800000),
  3204. 31: uint32(0x20008020),
  3205. 32: uint32(0x00808020),
  3206. 33: uint32(0x00000020),
  3207. 34: uint32(0x20000000),
  3208. 35: uint32(0x00008000),
  3209. 36: uint32(0x20000020),
  3210. 37: uint32(0x20008000),
  3211. 38: uint32(0x00808000),
  3212. 39: uint32(0x20800020),
  3213. 41: uint32(0x00808020),
  3214. 42: uint32(0x00008020),
  3215. 43: uint32(0x20808000),
  3216. 44: uint32(0x20008000),
  3217. 45: uint32(0x00800000),
  3218. 46: uint32(0x20808020),
  3219. 47: uint32(0x20000000),
  3220. 48: uint32(0x20008020),
  3221. 49: uint32(0x20800000),
  3222. 50: uint32(0x00800000),
  3223. 51: uint32(0x20808020),
  3224. 52: uint32(0x00008000),
  3225. 53: uint32(0x00800020),
  3226. 54: uint32(0x20800020),
  3227. 55: uint32(0x00008020),
  3228. 56: uint32(0x00800020),
  3229. 58: uint32(0x20808000),
  3230. 59: uint32(0x20000020),
  3231. 60: uint32(0x20800000),
  3232. 61: uint32(0x20008020),
  3233. 62: uint32(0x00000020),
  3234. 63: uint32(0x00808000),
  3235. },
  3236. 3: {
  3237. 0: uint32(0x00080201),
  3238. 1: uint32(0x02000200),
  3239. 2: uint32(0x00000001),
  3240. 3: uint32(0x02080201),
  3241. 5: uint32(0x02080000),
  3242. 6: uint32(0x02000201),
  3243. 7: uint32(0x00080001),
  3244. 8: uint32(0x02080200),
  3245. 9: uint32(0x02000001),
  3246. 10: uint32(0x02000000),
  3247. 11: uint32(0x00000201),
  3248. 12: uint32(0x02000001),
  3249. 13: uint32(0x00080201),
  3250. 14: uint32(0x00080000),
  3251. 15: uint32(0x02000000),
  3252. 16: uint32(0x02080001),
  3253. 17: uint32(0x00080200),
  3254. 18: uint32(0x00000200),
  3255. 19: uint32(0x00000001),
  3256. 20: uint32(0x00080200),
  3257. 21: uint32(0x02000201),
  3258. 22: uint32(0x02080000),
  3259. 23: uint32(0x00000200),
  3260. 24: uint32(0x00000201),
  3261. 26: uint32(0x00080001),
  3262. 27: uint32(0x02080200),
  3263. 28: uint32(0x02000200),
  3264. 29: uint32(0x02080001),
  3265. 30: uint32(0x02080201),
  3266. 31: uint32(0x00080000),
  3267. 32: uint32(0x02080001),
  3268. 33: uint32(0x00000201),
  3269. 34: uint32(0x00080000),
  3270. 35: uint32(0x02000001),
  3271. 36: uint32(0x00080200),
  3272. 37: uint32(0x02000200),
  3273. 38: uint32(0x00000001),
  3274. 39: uint32(0x02080000),
  3275. 40: uint32(0x02000201),
  3276. 42: uint32(0x00000200),
  3277. 43: uint32(0x00080001),
  3278. 45: uint32(0x02080001),
  3279. 46: uint32(0x02080200),
  3280. 47: uint32(0x00000200),
  3281. 48: uint32(0x02000000),
  3282. 49: uint32(0x02080201),
  3283. 50: uint32(0x00080201),
  3284. 51: uint32(0x00080000),
  3285. 52: uint32(0x02080201),
  3286. 53: uint32(0x00000001),
  3287. 54: uint32(0x02000200),
  3288. 55: uint32(0x00080201),
  3289. 56: uint32(0x00080001),
  3290. 57: uint32(0x00080200),
  3291. 58: uint32(0x02080000),
  3292. 59: uint32(0x02000201),
  3293. 60: uint32(0x00000201),
  3294. 61: uint32(0x02000000),
  3295. 62: uint32(0x02000001),
  3296. 63: uint32(0x02080200),
  3297. },
  3298. 4: {
  3299. 0: uint32(0x01000000),
  3300. 1: uint32(0x00002000),
  3301. 2: uint32(0x00000080),
  3302. 3: uint32(0x01002084),
  3303. 4: uint32(0x01002004),
  3304. 5: uint32(0x01000080),
  3305. 6: uint32(0x00002084),
  3306. 7: uint32(0x01002000),
  3307. 8: uint32(0x00002000),
  3308. 9: uint32(0x00000004),
  3309. 10: uint32(0x01000004),
  3310. 11: uint32(0x00002080),
  3311. 12: uint32(0x01000084),
  3312. 13: uint32(0x01002004),
  3313. 14: uint32(0x01002080),
  3314. 16: uint32(0x00002080),
  3315. 17: uint32(0x01000000),
  3316. 18: uint32(0x00002004),
  3317. 19: uint32(0x00000084),
  3318. 20: uint32(0x01000080),
  3319. 21: uint32(0x00002084),
  3320. 23: uint32(0x01000004),
  3321. 24: uint32(0x00000004),
  3322. 25: uint32(0x01000084),
  3323. 26: uint32(0x01002084),
  3324. 27: uint32(0x00002004),
  3325. 28: uint32(0x01002000),
  3326. 29: uint32(0x00000080),
  3327. 30: uint32(0x00000084),
  3328. 31: uint32(0x01002080),
  3329. 32: uint32(0x01002080),
  3330. 33: uint32(0x01000084),
  3331. 34: uint32(0x00002004),
  3332. 35: uint32(0x01002000),
  3333. 36: uint32(0x00002000),
  3334. 37: uint32(0x00000004),
  3335. 38: uint32(0x01000004),
  3336. 39: uint32(0x01000080),
  3337. 40: uint32(0x01000000),
  3338. 41: uint32(0x00002080),
  3339. 42: uint32(0x01002084),
  3340. 44: uint32(0x00002084),
  3341. 45: uint32(0x01000000),
  3342. 46: uint32(0x00000080),
  3343. 47: uint32(0x00002004),
  3344. 48: uint32(0x01000084),
  3345. 49: uint32(0x00000080),
  3346. 51: uint32(0x01002084),
  3347. 52: uint32(0x01002004),
  3348. 53: uint32(0x01002080),
  3349. 54: uint32(0x00000084),
  3350. 55: uint32(0x00002000),
  3351. 56: uint32(0x00002080),
  3352. 57: uint32(0x01002004),
  3353. 58: uint32(0x01000080),
  3354. 59: uint32(0x00000084),
  3355. 60: uint32(0x00000004),
  3356. 61: uint32(0x00002084),
  3357. 62: uint32(0x01002000),
  3358. 63: uint32(0x01000004),
  3359. },
  3360. 5: {
  3361. 0: uint32(0x10000008),
  3362. 1: uint32(0x00040008),
  3363. 3: uint32(0x10040400),
  3364. 4: uint32(0x00040008),
  3365. 5: uint32(0x00000400),
  3366. 6: uint32(0x10000408),
  3367. 7: uint32(0x00040000),
  3368. 8: uint32(0x00000408),
  3369. 9: uint32(0x10040408),
  3370. 10: uint32(0x00040400),
  3371. 11: uint32(0x10000000),
  3372. 12: uint32(0x10000400),
  3373. 13: uint32(0x10000008),
  3374. 14: uint32(0x10040000),
  3375. 15: uint32(0x00040408),
  3376. 16: uint32(0x00040000),
  3377. 17: uint32(0x10000408),
  3378. 18: uint32(0x10040008),
  3379. 20: uint32(0x00000400),
  3380. 21: uint32(0x00000008),
  3381. 22: uint32(0x10040400),
  3382. 23: uint32(0x10040008),
  3383. 24: uint32(0x10040408),
  3384. 25: uint32(0x10040000),
  3385. 26: uint32(0x10000000),
  3386. 27: uint32(0x00000408),
  3387. 28: uint32(0x00000008),
  3388. 29: uint32(0x00040400),
  3389. 30: uint32(0x00040408),
  3390. 31: uint32(0x10000400),
  3391. 32: uint32(0x00000408),
  3392. 33: uint32(0x10000000),
  3393. 34: uint32(0x10000400),
  3394. 35: uint32(0x00040408),
  3395. 36: uint32(0x10040400),
  3396. 37: uint32(0x00040008),
  3397. 39: uint32(0x10000400),
  3398. 40: uint32(0x10000000),
  3399. 41: uint32(0x00000400),
  3400. 42: uint32(0x10040008),
  3401. 43: uint32(0x00040000),
  3402. 44: uint32(0x00040008),
  3403. 45: uint32(0x10040408),
  3404. 46: uint32(0x00040400),
  3405. 47: uint32(0x00000008),
  3406. 48: uint32(0x10040408),
  3407. 49: uint32(0x00040400),
  3408. 50: uint32(0x00040000),
  3409. 51: uint32(0x10000408),
  3410. 52: uint32(0x10000008),
  3411. 53: uint32(0x10040000),
  3412. 54: uint32(0x00040408),
  3413. 56: uint32(0x00000400),
  3414. 57: uint32(0x10000008),
  3415. 58: uint32(0x10000408),
  3416. 59: uint32(0x10040400),
  3417. 60: uint32(0x10040000),
  3418. 61: uint32(0x00000408),
  3419. 62: uint32(0x00000008),
  3420. 63: uint32(0x10040008),
  3421. },
  3422. 6: {
  3423. 0: uint32(0x00000800),
  3424. 1: uint32(0x00000040),
  3425. 2: uint32(0x00200040),
  3426. 3: uint32(0x80200000),
  3427. 4: uint32(0x80200840),
  3428. 5: uint32(0x80000800),
  3429. 6: uint32(0x00000840),
  3430. 8: uint32(0x00200000),
  3431. 9: uint32(0x80200040),
  3432. 10: uint32(0x80000040),
  3433. 11: uint32(0x00200800),
  3434. 12: uint32(0x80000000),
  3435. 13: uint32(0x00200840),
  3436. 14: uint32(0x00200800),
  3437. 15: uint32(0x80000040),
  3438. 16: uint32(0x80200040),
  3439. 17: uint32(0x00000800),
  3440. 18: uint32(0x80000800),
  3441. 19: uint32(0x80200840),
  3442. 21: uint32(0x00200040),
  3443. 22: uint32(0x80200000),
  3444. 23: uint32(0x00000840),
  3445. 24: uint32(0x80200800),
  3446. 25: uint32(0x80000840),
  3447. 26: uint32(0x00200840),
  3448. 27: uint32(0x80000000),
  3449. 28: uint32(0x80000840),
  3450. 29: uint32(0x80200800),
  3451. 30: uint32(0x00000040),
  3452. 31: uint32(0x00200000),
  3453. 32: uint32(0x80000840),
  3454. 33: uint32(0x00200800),
  3455. 34: uint32(0x80200800),
  3456. 35: uint32(0x80000040),
  3457. 36: uint32(0x00000800),
  3458. 37: uint32(0x00000040),
  3459. 38: uint32(0x00200000),
  3460. 39: uint32(0x80200800),
  3461. 40: uint32(0x80200040),
  3462. 41: uint32(0x80000840),
  3463. 42: uint32(0x00000840),
  3464. 44: uint32(0x00000040),
  3465. 45: uint32(0x80200000),
  3466. 46: uint32(0x80000000),
  3467. 47: uint32(0x00200040),
  3468. 49: uint32(0x80200040),
  3469. 50: uint32(0x00200040),
  3470. 51: uint32(0x00000840),
  3471. 52: uint32(0x80000040),
  3472. 53: uint32(0x00000800),
  3473. 54: uint32(0x80200840),
  3474. 55: uint32(0x00200000),
  3475. 56: uint32(0x00200840),
  3476. 57: uint32(0x80000000),
  3477. 58: uint32(0x80000800),
  3478. 59: uint32(0x80200840),
  3479. 60: uint32(0x80200000),
  3480. 61: uint32(0x00200840),
  3481. 62: uint32(0x00200800),
  3482. 63: uint32(0x80000800),
  3483. },
  3484. 7: {
  3485. 0: uint32(0x04100010),
  3486. 1: uint32(0x04104000),
  3487. 2: uint32(0x00004010),
  3488. 4: uint32(0x04004000),
  3489. 5: uint32(0x00100010),
  3490. 6: uint32(0x04100000),
  3491. 7: uint32(0x04104010),
  3492. 8: uint32(0x00000010),
  3493. 9: uint32(0x04000000),
  3494. 10: uint32(0x00104000),
  3495. 11: uint32(0x00004010),
  3496. 12: uint32(0x00104010),
  3497. 13: uint32(0x04004010),
  3498. 14: uint32(0x04000010),
  3499. 15: uint32(0x04100000),
  3500. 16: uint32(0x00004000),
  3501. 17: uint32(0x00104010),
  3502. 18: uint32(0x00100010),
  3503. 19: uint32(0x04004000),
  3504. 20: uint32(0x04104010),
  3505. 21: uint32(0x04000010),
  3506. 23: uint32(0x00104000),
  3507. 24: uint32(0x04000000),
  3508. 25: uint32(0x00100000),
  3509. 26: uint32(0x04004010),
  3510. 27: uint32(0x04100010),
  3511. 28: uint32(0x00100000),
  3512. 29: uint32(0x00004000),
  3513. 30: uint32(0x04104000),
  3514. 31: uint32(0x00000010),
  3515. 32: uint32(0x00100000),
  3516. 33: uint32(0x00004000),
  3517. 34: uint32(0x04000010),
  3518. 35: uint32(0x04104010),
  3519. 36: uint32(0x00004010),
  3520. 37: uint32(0x04000000),
  3521. 39: uint32(0x00104000),
  3522. 40: uint32(0x04100010),
  3523. 41: uint32(0x04004010),
  3524. 42: uint32(0x04004000),
  3525. 43: uint32(0x00100010),
  3526. 44: uint32(0x04104000),
  3527. 45: uint32(0x00000010),
  3528. 46: uint32(0x00100010),
  3529. 47: uint32(0x04004000),
  3530. 48: uint32(0x04104010),
  3531. 49: uint32(0x00100000),
  3532. 50: uint32(0x04100000),
  3533. 51: uint32(0x04000010),
  3534. 52: uint32(0x00104000),
  3535. 53: uint32(0x00004010),
  3536. 54: uint32(0x04004010),
  3537. 55: uint32(0x04100000),
  3538. 56: uint32(0x00000010),
  3539. 57: uint32(0x04104000),
  3540. 58: uint32(0x00104010),
  3541. 60: uint32(0x04000000),
  3542. 61: uint32(0x04100010),
  3543. 62: uint32(0x00004000),
  3544. 63: uint32(0x00104010),
  3545. },
  3546. }
  3547. var _shifts2 = [16]uint8{
  3548. 2: uint8(1),
  3549. 3: uint8(1),
  3550. 4: uint8(1),
  3551. 5: uint8(1),
  3552. 6: uint8(1),
  3553. 7: uint8(1),
  3554. 9: uint8(1),
  3555. 10: uint8(1),
  3556. 11: uint8(1),
  3557. 12: uint8(1),
  3558. 13: uint8(1),
  3559. 14: uint8(1),
  3560. }
  3561. func X_XdmcpAuthSetup(tls *libc.TLS, key uintptr, schedule uintptr) {
  3562. var c, d, s, t TCARD32
  3563. var i int32
  3564. var in, k, v1, v10, v11, v2, v3, v4, v5, v6, v7, v8 uintptr
  3565. _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = c, d, i, in, k, s, t, v1, v10, v11, v2, v3, v4, v5, v6, v7, v8
  3566. k = schedule
  3567. in = key
  3568. v1 = in
  3569. in++
  3570. c = uint32(*(*TCARD8)(unsafe.Pointer(v1)))
  3571. v2 = in
  3572. in++
  3573. c |= uint32(*(*TCARD8)(unsafe.Pointer(v2))) << int32(8)
  3574. v3 = in
  3575. in++
  3576. c |= uint32(*(*TCARD8)(unsafe.Pointer(v3))) << int32(16)
  3577. v4 = in
  3578. in++
  3579. c |= uint32(*(*TCARD8)(unsafe.Pointer(v4))) << int32(24)
  3580. v5 = in
  3581. in++
  3582. d = uint32(*(*TCARD8)(unsafe.Pointer(v5)))
  3583. v6 = in
  3584. in++
  3585. d |= uint32(*(*TCARD8)(unsafe.Pointer(v6))) << int32(8)
  3586. v7 = in
  3587. in++
  3588. d |= uint32(*(*TCARD8)(unsafe.Pointer(v7))) << int32(16)
  3589. v8 = in
  3590. in++
  3591. d |= uint32(*(*TCARD8)(unsafe.Pointer(v8))) << int32(24)
  3592. /* do PC1 in 60 simple operations */
  3593. t = (d>>libc.Int32FromInt32(4) ^ c) & libc.Uint32FromInt32(libc.Int32FromInt32(0x0f0f0f0f))
  3594. c ^= t
  3595. d ^= t << libc.Int32FromInt32(4)
  3596. t = (c<<(libc.Int32FromInt32(16) - -libc.Int32FromInt32(2)) ^ c) & libc.Uint32FromUint32(0xcccc0000)
  3597. c = c ^ t ^ t>>(libc.Int32FromInt32(16) - -libc.Int32FromInt32(2))
  3598. t = (c<<(libc.Int32FromInt32(16) - -libc.Int32FromInt32(1)) ^ c) & libc.Uint32FromUint32(0xaaaa0000)
  3599. c = c ^ t ^ t>>(libc.Int32FromInt32(16) - -libc.Int32FromInt32(1))
  3600. t = (c<<(libc.Int32FromInt32(16)-libc.Int32FromInt32(8)) ^ c) & libc.Uint32FromInt32(libc.Int32FromInt32(0x00ff0000))
  3601. c = c ^ t ^ t>>(libc.Int32FromInt32(16)-libc.Int32FromInt32(8))
  3602. t = (c<<(libc.Int32FromInt32(16) - -libc.Int32FromInt32(1)) ^ c) & libc.Uint32FromUint32(0xaaaa0000)
  3603. c = c ^ t ^ t>>(libc.Int32FromInt32(16) - -libc.Int32FromInt32(1))
  3604. t = (d<<(libc.Int32FromInt32(16) - -libc.Int32FromInt32(8)) ^ d) & libc.Uint32FromUint32(0xff000000)
  3605. d = d ^ t ^ t>>(libc.Int32FromInt32(16) - -libc.Int32FromInt32(8))
  3606. t = (d<<(libc.Int32FromInt32(16)-libc.Int32FromInt32(8)) ^ d) & libc.Uint32FromInt32(libc.Int32FromInt32(0x00ff0000))
  3607. d = d ^ t ^ t>>(libc.Int32FromInt32(16)-libc.Int32FromInt32(8))
  3608. t = (d<<(libc.Int32FromInt32(16)-libc.Int32FromInt32(2)) ^ d) & libc.Uint32FromInt32(libc.Int32FromInt32(0x33330000))
  3609. d = d ^ t ^ t>>(libc.Int32FromInt32(16)-libc.Int32FromInt32(2))
  3610. d = d&uint32(0x00aa00aa)<<int32(7) | d&uint32(0x55005500)>>int32(7) | d&uint32(0xaa55aa55)
  3611. d = d>>libc.Int32FromInt32(8) | c&uint32(0xf0000000)>>int32(4)
  3612. c &= uint32(0x0fffffff)
  3613. i = 0
  3614. for {
  3615. if !(i < int32(m_ITERATIONS)) {
  3616. break
  3617. }
  3618. if _shifts2[i] != 0 {
  3619. c = c>>libc.Int32FromInt32(2) | c<<libc.Int32FromInt32(26)
  3620. d = d>>libc.Int32FromInt32(2) | d<<libc.Int32FromInt32(26)
  3621. } else {
  3622. c = c>>libc.Int32FromInt32(1) | c<<libc.Int32FromInt32(27)
  3623. d = d>>libc.Int32FromInt32(1) | d<<libc.Int32FromInt32(27)
  3624. }
  3625. c &= uint32(0x0fffffff)
  3626. d &= uint32(0x0fffffff)
  3627. /* could be a few less shifts but I am to lazy at this
  3628. * point in time to investigate */
  3629. s = *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_skb)) + uintptr(c&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_skb)) + 1*256 + uintptr(c>>libc.Int32FromInt32(6)&uint32(0x03)|c>>libc.Int32FromInt32(7)&uint32(0x3c))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_skb)) + 2*256 + uintptr(c>>libc.Int32FromInt32(13)&uint32(0x0f)|c>>libc.Int32FromInt32(14)&uint32(0x30))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_skb)) + 3*256 + uintptr(c>>libc.Int32FromInt32(20)&uint32(0x01)|c>>libc.Int32FromInt32(21)&uint32(0x06)|c>>libc.Int32FromInt32(22)&uint32(0x38))*4))
  3630. t = *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_skb)) + 4*256 + uintptr(d&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_skb)) + 5*256 + uintptr(d>>libc.Int32FromInt32(7)&uint32(0x03)|d>>libc.Int32FromInt32(8)&uint32(0x3c))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_skb)) + 6*256 + uintptr(d>>libc.Int32FromInt32(15)&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_skb)) + 7*256 + uintptr(d>>libc.Int32FromInt32(21)&uint32(0x0f)|d>>libc.Int32FromInt32(22)&uint32(0x30))*4))
  3631. /* table contained 0213 4657 */
  3632. v10 = k
  3633. k += 4
  3634. *(*TCARD32)(unsafe.Pointer(v10)) = t<<libc.Int32FromInt32(16) | s&libc.Uint32FromInt32(0x0000ffff)
  3635. s = s>>libc.Int32FromInt32(16) | t&libc.Uint32FromUint32(0xffff0000)
  3636. s = s<<libc.Int32FromInt32(4) | s>>libc.Int32FromInt32(28)
  3637. v11 = k
  3638. k += 4
  3639. *(*TCARD32)(unsafe.Pointer(v11)) = s
  3640. goto _9
  3641. _9:
  3642. ;
  3643. i++
  3644. }
  3645. return
  3646. }
  3647. func X_XdmcpAuthDoIt(tls *libc.TLS, input uintptr, output uintptr, ks uintptr, encrypt int32) {
  3648. var i int32
  3649. var in, out, s, v1, v11, v12, v13, v14, v15, v16, v17, v18, v2, v3, v4, v5, v6, v7, v8 uintptr
  3650. var l, r, t, u TCARD32
  3651. _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = i, in, l, out, r, s, t, u, v1, v11, v12, v13, v14, v15, v16, v17, v18, v2, v3, v4, v5, v6, v7, v8
  3652. in = input
  3653. out = output
  3654. v1 = in
  3655. in++
  3656. l = uint32(*(*TCARD8)(unsafe.Pointer(v1)))
  3657. v2 = in
  3658. in++
  3659. l |= uint32(*(*TCARD8)(unsafe.Pointer(v2))) << int32(8)
  3660. v3 = in
  3661. in++
  3662. l |= uint32(*(*TCARD8)(unsafe.Pointer(v3))) << int32(16)
  3663. v4 = in
  3664. in++
  3665. l |= uint32(*(*TCARD8)(unsafe.Pointer(v4))) << int32(24)
  3666. v5 = in
  3667. in++
  3668. r = uint32(*(*TCARD8)(unsafe.Pointer(v5)))
  3669. v6 = in
  3670. in++
  3671. r |= uint32(*(*TCARD8)(unsafe.Pointer(v6))) << int32(8)
  3672. v7 = in
  3673. in++
  3674. r |= uint32(*(*TCARD8)(unsafe.Pointer(v7))) << int32(16)
  3675. v8 = in
  3676. in++
  3677. r |= uint32(*(*TCARD8)(unsafe.Pointer(v8))) << int32(24)
  3678. /* do IP */
  3679. t = (r>>libc.Int32FromInt32(4) ^ l) & libc.Uint32FromInt32(libc.Int32FromInt32(0x0f0f0f0f))
  3680. l ^= t
  3681. r ^= t << libc.Int32FromInt32(4)
  3682. t = (l>>libc.Int32FromInt32(16) ^ r) & libc.Uint32FromInt32(libc.Int32FromInt32(0x0000ffff))
  3683. r ^= t
  3684. l ^= t << libc.Int32FromInt32(16)
  3685. t = (r>>libc.Int32FromInt32(2) ^ l) & libc.Uint32FromInt32(libc.Int32FromInt32(0x33333333))
  3686. l ^= t
  3687. r ^= t << libc.Int32FromInt32(2)
  3688. t = (l>>libc.Int32FromInt32(8) ^ r) & libc.Uint32FromInt32(libc.Int32FromInt32(0x00ff00ff))
  3689. r ^= t
  3690. l ^= t << libc.Int32FromInt32(8)
  3691. t = (r>>libc.Int32FromInt32(1) ^ l) & libc.Uint32FromInt32(libc.Int32FromInt32(0x55555555))
  3692. l ^= t
  3693. r ^= t << libc.Int32FromInt32(1)
  3694. /* r and l are reversed - remember that :-) */
  3695. t = l
  3696. l = r
  3697. r = t
  3698. s = ks
  3699. if encrypt != 0 {
  3700. i = 0
  3701. for {
  3702. if !(i < libc.Int32FromInt32(m_ITERATIONS)*libc.Int32FromInt32(2)) {
  3703. break
  3704. }
  3705. t = r<<libc.Int32FromInt32(1) | r>>libc.Int32FromInt32(31)
  3706. u = t ^ *(*TCARD32)(unsafe.Pointer(s + uintptr(i)*4))
  3707. t = t ^ *(*TCARD32)(unsafe.Pointer(s + uintptr(i+int32(1))*4))
  3708. t = t>>libc.Int32FromInt32(4) | t<<libc.Int32FromInt32(28)
  3709. l ^= *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 1*256 + uintptr(t&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 3*256 + uintptr(t>>libc.Int32FromInt32(8)&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 5*256 + uintptr(t>>libc.Int32FromInt32(16)&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 7*256 + uintptr(t>>libc.Int32FromInt32(24)&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + uintptr(u&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 2*256 + uintptr(u>>libc.Int32FromInt32(8)&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 4*256 + uintptr(u>>libc.Int32FromInt32(16)&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 6*256 + uintptr(u>>libc.Int32FromInt32(24)&uint32(0x3f))*4)) /* 1 */
  3710. t = l<<libc.Int32FromInt32(1) | l>>libc.Int32FromInt32(31)
  3711. u = t ^ *(*TCARD32)(unsafe.Pointer(s + uintptr(i+int32(2))*4))
  3712. t = t ^ *(*TCARD32)(unsafe.Pointer(s + uintptr(i+int32(2)+int32(1))*4))
  3713. t = t>>libc.Int32FromInt32(4) | t<<libc.Int32FromInt32(28)
  3714. r ^= *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 1*256 + uintptr(t&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 3*256 + uintptr(t>>libc.Int32FromInt32(8)&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 5*256 + uintptr(t>>libc.Int32FromInt32(16)&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 7*256 + uintptr(t>>libc.Int32FromInt32(24)&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + uintptr(u&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 2*256 + uintptr(u>>libc.Int32FromInt32(8)&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 4*256 + uintptr(u>>libc.Int32FromInt32(16)&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 6*256 + uintptr(u>>libc.Int32FromInt32(24)&uint32(0x3f))*4)) /* 2 */
  3715. goto _9
  3716. _9:
  3717. ;
  3718. i += int32(4)
  3719. }
  3720. } else {
  3721. i = libc.Int32FromInt32(m_ITERATIONS)*libc.Int32FromInt32(2) - libc.Int32FromInt32(2)
  3722. for {
  3723. if !(i >= 0) {
  3724. break
  3725. }
  3726. t = r<<libc.Int32FromInt32(1) | r>>libc.Int32FromInt32(31)
  3727. u = t ^ *(*TCARD32)(unsafe.Pointer(s + uintptr(i)*4))
  3728. t = t ^ *(*TCARD32)(unsafe.Pointer(s + uintptr(i+int32(1))*4))
  3729. t = t>>libc.Int32FromInt32(4) | t<<libc.Int32FromInt32(28)
  3730. l ^= *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 1*256 + uintptr(t&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 3*256 + uintptr(t>>libc.Int32FromInt32(8)&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 5*256 + uintptr(t>>libc.Int32FromInt32(16)&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 7*256 + uintptr(t>>libc.Int32FromInt32(24)&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + uintptr(u&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 2*256 + uintptr(u>>libc.Int32FromInt32(8)&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 4*256 + uintptr(u>>libc.Int32FromInt32(16)&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 6*256 + uintptr(u>>libc.Int32FromInt32(24)&uint32(0x3f))*4)) /* 1 */
  3731. t = l<<libc.Int32FromInt32(1) | l>>libc.Int32FromInt32(31)
  3732. u = t ^ *(*TCARD32)(unsafe.Pointer(s + uintptr(i-int32(2))*4))
  3733. t = t ^ *(*TCARD32)(unsafe.Pointer(s + uintptr(i-int32(2)+int32(1))*4))
  3734. t = t>>libc.Int32FromInt32(4) | t<<libc.Int32FromInt32(28)
  3735. r ^= *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 1*256 + uintptr(t&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 3*256 + uintptr(t>>libc.Int32FromInt32(8)&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 5*256 + uintptr(t>>libc.Int32FromInt32(16)&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 7*256 + uintptr(t>>libc.Int32FromInt32(24)&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + uintptr(u&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 2*256 + uintptr(u>>libc.Int32FromInt32(8)&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 4*256 + uintptr(u>>libc.Int32FromInt32(16)&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 6*256 + uintptr(u>>libc.Int32FromInt32(24)&uint32(0x3f))*4)) /* 2 */
  3736. goto _10
  3737. _10:
  3738. ;
  3739. i -= int32(4)
  3740. }
  3741. }
  3742. /* swap l and r
  3743. * we will not do the swap so just remember they are
  3744. * reversed for the rest of the subroutine
  3745. * luckily by FP fixes this problem :-) */
  3746. t = (r>>libc.Int32FromInt32(1) ^ l) & libc.Uint32FromInt32(libc.Int32FromInt32(0x55555555))
  3747. l ^= t
  3748. r ^= t << libc.Int32FromInt32(1)
  3749. t = (l>>libc.Int32FromInt32(8) ^ r) & libc.Uint32FromInt32(libc.Int32FromInt32(0x00ff00ff))
  3750. r ^= t
  3751. l ^= t << libc.Int32FromInt32(8)
  3752. t = (r>>libc.Int32FromInt32(2) ^ l) & libc.Uint32FromInt32(libc.Int32FromInt32(0x33333333))
  3753. l ^= t
  3754. r ^= t << libc.Int32FromInt32(2)
  3755. t = (l>>libc.Int32FromInt32(16) ^ r) & libc.Uint32FromInt32(libc.Int32FromInt32(0x0000ffff))
  3756. r ^= t
  3757. l ^= t << libc.Int32FromInt32(16)
  3758. t = (r>>libc.Int32FromInt32(4) ^ l) & libc.Uint32FromInt32(libc.Int32FromInt32(0x0f0f0f0f))
  3759. l ^= t
  3760. r ^= t << libc.Int32FromInt32(4)
  3761. v11 = out
  3762. out++
  3763. *(*TCARD8)(unsafe.Pointer(v11)) = uint8(l & libc.Uint32FromInt32(0xff))
  3764. v12 = out
  3765. out++
  3766. *(*TCARD8)(unsafe.Pointer(v12)) = uint8(l >> libc.Int32FromInt32(8) & libc.Uint32FromInt32(0xff))
  3767. v13 = out
  3768. out++
  3769. *(*TCARD8)(unsafe.Pointer(v13)) = uint8(l >> libc.Int32FromInt32(16) & libc.Uint32FromInt32(0xff))
  3770. v14 = out
  3771. out++
  3772. *(*TCARD8)(unsafe.Pointer(v14)) = uint8(l >> libc.Int32FromInt32(24) & libc.Uint32FromInt32(0xff))
  3773. v15 = out
  3774. out++
  3775. *(*TCARD8)(unsafe.Pointer(v15)) = uint8(r & libc.Uint32FromInt32(0xff))
  3776. v16 = out
  3777. out++
  3778. *(*TCARD8)(unsafe.Pointer(v16)) = uint8(r >> libc.Int32FromInt32(8) & libc.Uint32FromInt32(0xff))
  3779. v17 = out
  3780. out++
  3781. *(*TCARD8)(unsafe.Pointer(v17)) = uint8(r >> libc.Int32FromInt32(16) & libc.Uint32FromInt32(0xff))
  3782. v18 = out
  3783. out++
  3784. *(*TCARD8)(unsafe.Pointer(v18)) = uint8(r >> libc.Int32FromInt32(24) & libc.Uint32FromInt32(0xff))
  3785. return
  3786. }