ccgo_freebsd_amd64.go 121 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420
  1. // Code generated for freebsd/amd64 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/freebsd/amd64 -lbsd -o libxdmcp.go --package-name libxdmcp .libs/libXdmcp.a', DO NOT EDIT.
  2. //go:build freebsd && amd64
  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 = 0x0100
  12. const m_AT_EMPTY_PATH = 0x4000
  13. const m_AT_REMOVEDIR = 0x0800
  14. const m_AT_RESOLVE_BENEATH = 0x2000
  15. const m_AT_SYMLINK_FOLLOW = 0x0400
  16. const m_AT_SYMLINK_NOFOLLOW = 0x0200
  17. const m_Above = 0
  18. const m_AllTemporary = 0
  19. const m_AllocAll = 1
  20. const m_AllocNone = 0
  21. const m_AllowExposures = 1
  22. const m_AlreadyGrabbed = 1
  23. const m_Always = 2
  24. const m_AnyButton = 0
  25. const m_AnyKey = 0
  26. const m_AnyPropertyType = 0
  27. const m_ArcChord = 0
  28. const m_ArcPieSlice = 1
  29. const m_AsyncBoth = 6
  30. const m_AsyncKeyboard = 3
  31. const m_AsyncPointer = 0
  32. const m_AutoRepeatModeDefault = 2
  33. const m_AutoRepeatModeOff = 0
  34. const m_AutoRepeatModeOn = 1
  35. const m_BIG_ENDIAN = "_BIG_ENDIAN"
  36. const m_BYTE_ORDER = "_BYTE_ORDER"
  37. const m_BadAccess = 10
  38. const m_BadAlloc = 11
  39. const m_BadAtom = 5
  40. const m_BadColor = 12
  41. const m_BadCursor = 6
  42. const m_BadDrawable = 9
  43. const m_BadFont = 7
  44. const m_BadGC = 13
  45. const m_BadIDChoice = 14
  46. const m_BadImplementation = 17
  47. const m_BadLength = 16
  48. const m_BadMatch = 8
  49. const m_BadName = 15
  50. const m_BadPixmap = 4
  51. const m_BadRequest = 1
  52. const m_BadValue = 2
  53. const m_BadWindow = 3
  54. const m_Below = 1
  55. const m_BottomIf = 3
  56. const m_Button1 = 1
  57. const m_Button2 = 2
  58. const m_Button3 = 3
  59. const m_Button4 = 4
  60. const m_Button5 = 5
  61. const m_ButtonPress = 4
  62. const m_ButtonRelease = 5
  63. const m_CLK_TCK = 128
  64. const m_CLOCKS_PER_SEC = 128
  65. const m_CLOCK_BOOTTIME = "CLOCK_UPTIME"
  66. const m_CLOCK_MONOTONIC = 4
  67. const m_CLOCK_MONOTONIC_COARSE = "CLOCK_MONOTONIC_FAST"
  68. const m_CLOCK_MONOTONIC_FAST = 12
  69. const m_CLOCK_MONOTONIC_PRECISE = 11
  70. const m_CLOCK_PROCESS_CPUTIME_ID = 15
  71. const m_CLOCK_PROF = 2
  72. const m_CLOCK_REALTIME = 0
  73. const m_CLOCK_REALTIME_COARSE = "CLOCK_REALTIME_FAST"
  74. const m_CLOCK_REALTIME_FAST = 10
  75. const m_CLOCK_REALTIME_PRECISE = 9
  76. const m_CLOCK_SECOND = 13
  77. const m_CLOCK_THREAD_CPUTIME_ID = 14
  78. const m_CLOCK_UPTIME = 5
  79. const m_CLOCK_UPTIME_FAST = 8
  80. const m_CLOCK_UPTIME_PRECISE = 7
  81. const m_CLOCK_VIRTUAL = 1
  82. const m_CPUCLOCK_WHICH_PID = 0
  83. const m_CPUCLOCK_WHICH_TID = 1
  84. const m_CapButt = 1
  85. const m_CapNotLast = 0
  86. const m_CapProjecting = 3
  87. const m_CapRound = 2
  88. const m_CenterGravity = 5
  89. const m_CirculateNotify = 26
  90. const m_CirculateRequest = 27
  91. const m_ClientMessage = 33
  92. const m_ClipByChildren = 0
  93. const m_ColormapInstalled = 1
  94. const m_ColormapNotify = 32
  95. const m_ColormapUninstalled = 0
  96. const m_Complex = 0
  97. const m_ConfigureNotify = 22
  98. const m_ConfigureRequest = 23
  99. const m_ControlMapIndex = 2
  100. const m_Convex = 2
  101. const m_CoordModeOrigin = 0
  102. const m_CoordModePrevious = 1
  103. const m_CopyFromParent = 0
  104. const m_CreateNotify = 16
  105. const m_CurrentTime = 0
  106. const m_CursorShape = 0
  107. const m_DST_AUST = 2
  108. const m_DST_CAN = 6
  109. const m_DST_EET = 5
  110. const m_DST_MET = 4
  111. const m_DST_NONE = 0
  112. const m_DST_USA = 1
  113. const m_DST_WET = 3
  114. const m_DefaultBlanking = 2
  115. const m_DefaultExposures = 2
  116. const m_DestroyAll = 0
  117. const m_DestroyNotify = 17
  118. const m_DirectColor = 5
  119. const m_DisableAccess = 0
  120. const m_DisableScreenInterval = 0
  121. const m_DisableScreenSaver = 0
  122. const m_DontAllowExposures = 0
  123. const m_DontPreferBlanking = 0
  124. const m_EXIT_FAILURE = 1
  125. const m_EXIT_SUCCESS = 0
  126. const m_EastGravity = 6
  127. const m_EnableAccess = 1
  128. const m_EnterNotify = 7
  129. const m_EvenOddRule = 0
  130. const m_Expose = 12
  131. const m_FALSE = 0
  132. const m_FAPPEND = "O_APPEND"
  133. const m_FASYNC = "O_ASYNC"
  134. const m_FDSYNC = "O_DSYNC"
  135. const m_FD_CLOEXEC = 1
  136. const m_FD_SETSIZE = 1024
  137. const m_FFSYNC = "O_FSYNC"
  138. const m_FNDELAY = "O_NONBLOCK"
  139. const m_FNONBLOCK = "O_NONBLOCK"
  140. const m_FRDAHEAD = "O_CREAT"
  141. const m_FREAD = 0x0001
  142. const m_FUNCPROTO = 15
  143. const m_FWRITE = 0x0002
  144. const m_F_ADD_SEALS = 19
  145. const m_F_CANCEL = 5
  146. const m_F_DUP2FD = 10
  147. const m_F_DUP2FD_CLOEXEC = 18
  148. const m_F_DUPFD = 0
  149. const m_F_DUPFD_CLOEXEC = 17
  150. const m_F_GETFD = 1
  151. const m_F_GETFL = 3
  152. const m_F_GETLK = 11
  153. const m_F_GETOWN = 5
  154. const m_F_GET_SEALS = 20
  155. const m_F_ISUNIONSTACK = 21
  156. const m_F_KINFO = 22
  157. const m_F_LOCK = 1
  158. const m_F_OGETLK = 7
  159. const m_F_OK = 0
  160. const m_F_OSETLK = 8
  161. const m_F_OSETLKW = 9
  162. const m_F_RDAHEAD = 16
  163. const m_F_RDLCK = 1
  164. const m_F_READAHEAD = 15
  165. const m_F_SEAL_GROW = 0x0004
  166. const m_F_SEAL_SEAL = 0x0001
  167. const m_F_SEAL_SHRINK = 0x0002
  168. const m_F_SEAL_WRITE = 0x0008
  169. const m_F_SETFD = 2
  170. const m_F_SETFL = 4
  171. const m_F_SETLK = 12
  172. const m_F_SETLKW = 13
  173. const m_F_SETLK_REMOTE = 14
  174. const m_F_SETOWN = 6
  175. const m_F_TEST = 3
  176. const m_F_TLOCK = 2
  177. const m_F_ULOCK = 0
  178. const m_F_UNLCK = 2
  179. const m_F_UNLCKSYS = 4
  180. const m_F_WRLCK = 3
  181. const m_FamilyChaos = 2
  182. const m_FamilyDECnet = 1
  183. const m_FamilyInternet = 0
  184. const m_FamilyInternet6 = 6
  185. const m_FamilyServerInterpreted = 5
  186. const m_FillOpaqueStippled = 3
  187. const m_FillSolid = 0
  188. const m_FillStippled = 2
  189. const m_FillTiled = 1
  190. const m_FirstExtensionError = 128
  191. const m_FocusIn = 9
  192. const m_FocusOut = 10
  193. const m_FontChange = 255
  194. const m_FontLeftToRight = 0
  195. const m_FontRightToLeft = 1
  196. const m_ForgetGravity = 0
  197. const m_GCLastBit = 22
  198. const m_GXand = 0x1
  199. const m_GXandInverted = 0x4
  200. const m_GXandReverse = 0x2
  201. const m_GXclear = 0x0
  202. const m_GXcopy = 0x3
  203. const m_GXcopyInverted = 0xc
  204. const m_GXequiv = 0x9
  205. const m_GXinvert = 0xa
  206. const m_GXnand = 0xe
  207. const m_GXnoop = 0x5
  208. const m_GXnor = 0x8
  209. const m_GXor = 0x7
  210. const m_GXorInverted = 0xd
  211. const m_GXorReverse = 0xb
  212. const m_GXset = 0xf
  213. const m_GXxor = 0x6
  214. const m_GenericEvent = 35
  215. const m_GrabFrozen = 4
  216. const m_GrabInvalidTime = 2
  217. const m_GrabModeAsync = 1
  218. const m_GrabModeSync = 0
  219. const m_GrabNotViewable = 3
  220. const m_GrabSuccess = 0
  221. const m_GraphicsExpose = 13
  222. const m_GravityNotify = 24
  223. const m_GrayScale = 1
  224. const m_HASXDMAUTH = 1
  225. const m_HAVE_ARC4RANDOM_BUF = 1
  226. const m_HAVE_CONFIG_H = 1
  227. const m_HAVE_DLFCN_H = 1
  228. const m_HAVE_GETENTROPY = 1
  229. const m_HAVE_INTTYPES_H = 1
  230. const m_HAVE_LIBBSD = 1
  231. const m_HAVE_LRAND48 = 1
  232. const m_HAVE_SRAND48 = 1
  233. const m_HAVE_STDINT_H = 1
  234. const m_HAVE_STDIO_H = 1
  235. const m_HAVE_STDLIB_H = 1
  236. const m_HAVE_STRINGS_H = 1
  237. const m_HAVE_STRING_H = 1
  238. const m_HAVE_SYS_RANDOM_H = 1
  239. const m_HAVE_SYS_STAT_H = 1
  240. const m_HAVE_SYS_TYPES_H = 1
  241. const m_HAVE_UNISTD_H = 1
  242. const m_HAVE_WCHAR_H = 1
  243. const m_HostDelete = 1
  244. const m_HostInsert = 0
  245. const m_INT16_MAX = 0x7fff
  246. const m_INT32_MAX = 0x7fffffff
  247. const m_INT64_MAX = 0x7fffffffffffffff
  248. const m_INT8_MAX = 0x7f
  249. const m_INTMAX_MAX = "INT64_MAX"
  250. const m_INTMAX_MIN = "INT64_MIN"
  251. const m_INTPTR_MAX = "INT64_MAX"
  252. const m_INTPTR_MIN = "INT64_MIN"
  253. const m_INT_FAST16_MAX = "INT32_MAX"
  254. const m_INT_FAST16_MIN = "INT32_MIN"
  255. const m_INT_FAST32_MAX = "INT32_MAX"
  256. const m_INT_FAST32_MIN = "INT32_MIN"
  257. const m_INT_FAST64_MAX = "INT64_MAX"
  258. const m_INT_FAST64_MIN = "INT64_MIN"
  259. const m_INT_FAST8_MAX = "INT32_MAX"
  260. const m_INT_FAST8_MIN = "INT32_MIN"
  261. const m_INT_LEAST16_MAX = "INT16_MAX"
  262. const m_INT_LEAST16_MIN = "INT16_MIN"
  263. const m_INT_LEAST32_MAX = "INT32_MAX"
  264. const m_INT_LEAST32_MIN = "INT32_MIN"
  265. const m_INT_LEAST64_MAX = "INT64_MAX"
  266. const m_INT_LEAST64_MIN = "INT64_MIN"
  267. const m_INT_LEAST8_MAX = "INT8_MAX"
  268. const m_INT_LEAST8_MIN = "INT8_MIN"
  269. const m_ITIMER_PROF = 2
  270. const m_ITIMER_REAL = 0
  271. const m_ITIMER_VIRTUAL = 1
  272. const m_IncludeInferiors = 1
  273. const m_InputFocus = 1
  274. const m_InputOnly = 2
  275. const m_InputOutput = 1
  276. const m_IsUnmapped = 0
  277. const m_IsUnviewable = 1
  278. const m_IsViewable = 2
  279. const m_JoinBevel = 2
  280. const m_JoinMiter = 0
  281. const m_JoinRound = 1
  282. const m_KCMP_FILE = 100
  283. const m_KCMP_FILEOBJ = 101
  284. const m_KCMP_FILES = 102
  285. const m_KCMP_SIGHAND = 103
  286. const m_KCMP_VM = 104
  287. const m_KeyPress = 2
  288. const m_KeyRelease = 3
  289. const m_KeymapNotify = 11
  290. const m_LASTEvent = 36
  291. const m_LITTLE_ENDIAN = "_LITTLE_ENDIAN"
  292. const m_LOCK_EX = 0x02
  293. const m_LOCK_NB = 0x04
  294. const m_LOCK_SH = 0x01
  295. const m_LOCK_UN = 0x08
  296. const m_LSBFirst = 0
  297. const m_LT_OBJDIR = ".libs/"
  298. const m_L_INCR = "SEEK_CUR"
  299. const m_L_SET = "SEEK_SET"
  300. const m_L_XTND = "SEEK_END"
  301. const m_LastExtensionError = 255
  302. const m_LeaveNotify = 8
  303. const m_LedModeOff = 0
  304. const m_LedModeOn = 1
  305. const m_LineDoubleDash = 2
  306. const m_LineOnOffDash = 1
  307. const m_LineSolid = 0
  308. const m_LockMapIndex = 1
  309. const m_LowerHighest = 1
  310. const m_MSBFirst = 1
  311. const m_MapNotify = 19
  312. const m_MapRequest = 20
  313. const m_MappingBusy = 1
  314. const m_MappingFailed = 2
  315. const m_MappingKeyboard = 1
  316. const m_MappingModifier = 0
  317. const m_MappingNotify = 34
  318. const m_MappingPointer = 2
  319. const m_MappingSuccess = 0
  320. const m_Mod1MapIndex = 3
  321. const m_Mod2MapIndex = 4
  322. const m_Mod3MapIndex = 5
  323. const m_Mod4MapIndex = 6
  324. const m_Mod5MapIndex = 7
  325. const m_MotionNotify = 6
  326. const m_NDEBUG = 1
  327. const m_NFDBITS = "_NFDBITS"
  328. const m_NeedFunctionPrototypes = 1
  329. const m_NeedNestedPrototypes = 1
  330. const m_NeedVarargsPrototypes = 1
  331. const m_NeedWidePrototypes = 0
  332. const m_NoEventMask = 0
  333. const m_NoExpose = 14
  334. const m_NoSymbol = 0
  335. const m_Nonconvex = 1
  336. const m_None = 0
  337. const m_NorthEastGravity = 3
  338. const m_NorthGravity = 2
  339. const m_NorthWestGravity = 1
  340. const m_NotUseful = 0
  341. const m_NotifyAncestor = 0
  342. const m_NotifyDetailNone = 7
  343. const m_NotifyGrab = 1
  344. const m_NotifyHint = 1
  345. const m_NotifyInferior = 2
  346. const m_NotifyNonlinear = 3
  347. const m_NotifyNonlinearVirtual = 4
  348. const m_NotifyNormal = 0
  349. const m_NotifyPointer = 5
  350. const m_NotifyPointerRoot = 6
  351. const m_NotifyUngrab = 2
  352. const m_NotifyVirtual = 1
  353. const m_NotifyWhileGrabbed = 3
  354. const m_O_ACCMODE = 0x0003
  355. const m_O_APPEND = 0x0008
  356. const m_O_ASYNC = 0x0040
  357. const m_O_CLOEXEC = 0x00100000
  358. const m_O_CREAT = 0x0200
  359. const m_O_DIRECT = 0x00010000
  360. const m_O_DIRECTORY = 0x00020000
  361. const m_O_DSYNC = 0x01000000
  362. const m_O_EMPTY_PATH = 0x02000000
  363. const m_O_EXCL = 0x0800
  364. const m_O_EXEC = 0x00040000
  365. const m_O_EXLOCK = 0x0020
  366. const m_O_FSYNC = 0x0080
  367. const m_O_NDELAY = "O_NONBLOCK"
  368. const m_O_NOCTTY = 0x8000
  369. const m_O_NOFOLLOW = 0x0100
  370. const m_O_NONBLOCK = 0x0004
  371. const m_O_PATH = 0x00400000
  372. const m_O_RDONLY = 0x0000
  373. const m_O_RDWR = 0x0002
  374. const m_O_RESOLVE_BENEATH = 0x00800000
  375. const m_O_SEARCH = "O_EXEC"
  376. const m_O_SHLOCK = 0x0010
  377. const m_O_SYNC = 0x0080
  378. const m_O_TRUNC = 0x0400
  379. const m_O_TTY_INIT = 0x00080000
  380. const m_O_VERIFY = 0x00200000
  381. const m_O_WRONLY = 0x0001
  382. const m_Opposite = 4
  383. const m_PACKAGE = "libXdmcp"
  384. const m_PACKAGE_BUGREPORT = "https://gitlab.freedesktop.org/xorg/lib/libxdmcp/-/issues"
  385. const m_PACKAGE_NAME = "libXdmcp"
  386. const m_PACKAGE_STRING = "libXdmcp 1.1.5"
  387. const m_PACKAGE_TARNAME = "libXdmcp"
  388. const m_PACKAGE_URL = ""
  389. const m_PACKAGE_VERSION = "1.1.5"
  390. const m_PACKAGE_VERSION_MAJOR = 1
  391. const m_PACKAGE_VERSION_MINOR = 1
  392. const m_PACKAGE_VERSION_PATCHLEVEL = 5
  393. const m_PDP_ENDIAN = "_PDP_ENDIAN"
  394. const m_POSIX_FADV_DONTNEED = 4
  395. const m_POSIX_FADV_NOREUSE = 5
  396. const m_POSIX_FADV_NORMAL = 0
  397. const m_POSIX_FADV_RANDOM = 1
  398. const m_POSIX_FADV_SEQUENTIAL = 2
  399. const m_POSIX_FADV_WILLNEED = 3
  400. const m_PTRDIFF_MAX = "INT64_MAX"
  401. const m_PTRDIFF_MIN = "INT64_MIN"
  402. const m_ParentRelative = 1
  403. const m_PlaceOnBottom = 1
  404. const m_PlaceOnTop = 0
  405. const m_PointerRoot = 1
  406. const m_PointerWindow = 0
  407. const m_PreferBlanking = 1
  408. const m_PropModeAppend = 2
  409. const m_PropModePrepend = 1
  410. const m_PropModeReplace = 0
  411. const m_PropertyDelete = 1
  412. const m_PropertyNewValue = 0
  413. const m_PropertyNotify = 28
  414. const m_PseudoColor = 3
  415. const m_RAND_MAX = 0x7fffffff
  416. const m_RFTSIGMASK = 0xFF
  417. const m_RFTSIGSHIFT = 20
  418. const m_R_OK = 0x04
  419. const m_RaiseLowest = 0
  420. const m_ReparentNotify = 21
  421. const m_ReplayKeyboard = 5
  422. const m_ReplayPointer = 2
  423. const m_ResizeRequest = 25
  424. const m_RetainPermanent = 1
  425. const m_RetainTemporary = 2
  426. const m_RevertToParent = 2
  427. const m_SBT_MAX = 0x7fffffffffffffff
  428. const m_SEEK_CUR = 1
  429. const m_SEEK_DATA = 3
  430. const m_SEEK_END = 2
  431. const m_SEEK_HOLE = 4
  432. const m_SEEK_SET = 0
  433. const m_SIG_ATOMIC_MAX = "INT64_MAX"
  434. const m_SIG_ATOMIC_MIN = "INT64_MIN"
  435. const m_SIZE_MAX = "UINT64_MAX"
  436. const m_SPACECTL_DEALLOC = 1
  437. const m_SPACECTL_F_SUPPORTED = 0
  438. const m_STDC_HEADERS = 1
  439. const m_STDERR_FILENO = 2
  440. const m_STDIN_FILENO = 0
  441. const m_STDOUT_FILENO = 1
  442. const m_SWAPOFF_FORCE = 0x00000001
  443. const m_ScreenSaverActive = 1
  444. const m_ScreenSaverReset = 0
  445. const m_SelectionClear = 29
  446. const m_SelectionNotify = 31
  447. const m_SelectionRequest = 30
  448. const m_SetModeDelete = 1
  449. const m_SetModeInsert = 0
  450. const m_ShiftMapIndex = 0
  451. const m_SouthEastGravity = 9
  452. const m_SouthGravity = 8
  453. const m_SouthWestGravity = 7
  454. const m_StaticColor = 2
  455. const m_StaticGravity = 10
  456. const m_StaticGray = 0
  457. const m_StippleShape = 2
  458. const m_Success = 0
  459. const m_SyncBoth = 7
  460. const m_SyncKeyboard = 4
  461. const m_SyncPointer = 1
  462. const m_TIMER_ABSTIME = 0x1
  463. const m_TIMER_RELTIME = 0x0
  464. const m_TIME_MONOTONIC = 2
  465. const m_TIME_UTC = 1
  466. const m_TRUE = 1
  467. const m_TileShape = 1
  468. const m_TopIf = 2
  469. const m_TrueColor = 4
  470. const m_UINT16_MAX = 65535
  471. const m_UINT32_MAX = 0xffffffff
  472. const m_UINT64_MAX = 0xffffffffffffffff
  473. const m_UINT8_MAX = 255
  474. const m_UINTMAX_MAX = "UINT64_MAX"
  475. const m_UINTPTR_MAX = "UINT64_MAX"
  476. const m_UINT_FAST16_MAX = "UINT32_MAX"
  477. const m_UINT_FAST32_MAX = "UINT32_MAX"
  478. const m_UINT_FAST64_MAX = "UINT64_MAX"
  479. const m_UINT_FAST8_MAX = "UINT32_MAX"
  480. const m_UINT_LEAST16_MAX = "UINT16_MAX"
  481. const m_UINT_LEAST32_MAX = "UINT32_MAX"
  482. const m_UINT_LEAST64_MAX = "UINT64_MAX"
  483. const m_UINT_LEAST8_MAX = "UINT8_MAX"
  484. const m_UnmapGravity = 0
  485. const m_UnmapNotify = 18
  486. const m_Unsorted = 0
  487. const m_VERSION = "1.1.5"
  488. const m_VisibilityFullyObscured = 2
  489. const m_VisibilityNotify = 15
  490. const m_VisibilityPartiallyObscured = 1
  491. const m_VisibilityUnobscured = 0
  492. const m_WCHAR_MAX = "__WCHAR_MAX"
  493. const m_WCHAR_MIN = "__WCHAR_MIN"
  494. const m_WINT_MAX = "INT32_MAX"
  495. const m_WINT_MIN = "INT32_MIN"
  496. const m_W_OK = 0x02
  497. const m_WestGravity = 4
  498. const m_WhenMapped = 1
  499. const m_WindingRule = 1
  500. const m_XDM_DEFAULT_MCAST_ADDR6 = "ff02:0:0:0:0:0:0:12b"
  501. const m_XDM_KA_RTX_LIMIT = 4
  502. const m_XDM_MAX_MSGLEN = 8192
  503. const m_XDM_MAX_RTX = 32
  504. const m_XDM_MIN_RTX = 2
  505. const m_XDM_PROTOCOL_VERSION = 1
  506. const m_XDM_RTX_LIMIT = 7
  507. const m_XDM_UDP_PORT = 177
  508. const m_XMD_H = 1
  509. const m_XYBitmap = 0
  510. const m_XYPixmap = 1
  511. const m_X_BIG_ENDIAN = "BIG_ENDIAN"
  512. const m_X_BYTE_ORDER = "BYTE_ORDER"
  513. const m_X_LITTLE_ENDIAN = "LITTLE_ENDIAN"
  514. const m_X_OK = 0x01
  515. const m_X_PROTOCOL = 11
  516. const m_X_PROTOCOL_REVISION = 0
  517. const m_YSorted = 1
  518. const m_YXBanded = 3
  519. const m_YXSorted = 2
  520. const m_ZPixmap = 2
  521. const m__ALL_SOURCE = 1
  522. const m__BYTE_ORDER = "__BYTE_ORDER__"
  523. const m__CS_PATH = 1
  524. const m__CS_POSIX_V6_ILP32_OFF32_CFLAGS = 2
  525. const m__CS_POSIX_V6_ILP32_OFF32_LDFLAGS = 3
  526. const m__CS_POSIX_V6_ILP32_OFF32_LIBS = 4
  527. const m__CS_POSIX_V6_ILP32_OFFBIG_CFLAGS = 5
  528. const m__CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS = 6
  529. const m__CS_POSIX_V6_ILP32_OFFBIG_LIBS = 7
  530. const m__CS_POSIX_V6_LP64_OFF64_CFLAGS = 8
  531. const m__CS_POSIX_V6_LP64_OFF64_LDFLAGS = 9
  532. const m__CS_POSIX_V6_LP64_OFF64_LIBS = 10
  533. const m__CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS = 11
  534. const m__CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS = 12
  535. const m__CS_POSIX_V6_LPBIG_OFFBIG_LIBS = 13
  536. const m__CS_POSIX_V6_WIDTH_RESTRICTED_ENVS = 14
  537. const m__DARWIN_C_SOURCE = 1
  538. const m__GNU_SOURCE = 1
  539. const m__HPUX_ALT_XOPEN_SOCKET_API = 1
  540. const m__LP64 = 1
  541. const m__NETBSD_SOURCE = 1
  542. const m__OPENBSD_SOURCE = 1
  543. const m__PC_ACL_EXTENDED = 59
  544. const m__PC_ACL_NFS4 = 64
  545. const m__PC_ACL_PATH_MAX = 60
  546. const m__PC_ALLOC_SIZE_MIN = 10
  547. const m__PC_ASYNC_IO = 53
  548. const m__PC_CAP_PRESENT = 61
  549. const m__PC_CHOWN_RESTRICTED = 7
  550. const m__PC_DEALLOC_PRESENT = 65
  551. const m__PC_FILESIZEBITS = 12
  552. const m__PC_INF_PRESENT = 62
  553. const m__PC_LINK_MAX = 1
  554. const m__PC_MAC_PRESENT = 63
  555. const m__PC_MAX_CANON = 2
  556. const m__PC_MAX_INPUT = 3
  557. const m__PC_MIN_HOLE_SIZE = 21
  558. const m__PC_NAME_MAX = 4
  559. const m__PC_NO_TRUNC = 8
  560. const m__PC_PATH_MAX = 5
  561. const m__PC_PIPE_BUF = 6
  562. const m__PC_PRIO_IO = 54
  563. const m__PC_REC_INCR_XFER_SIZE = 14
  564. const m__PC_REC_MAX_XFER_SIZE = 15
  565. const m__PC_REC_MIN_XFER_SIZE = 16
  566. const m__PC_REC_XFER_ALIGN = 17
  567. const m__PC_SYMLINK_MAX = 18
  568. const m__PC_SYNC_IO = 55
  569. const m__PC_VDISABLE = 9
  570. const m__PDP_ENDIAN = "__ORDER_PDP_ENDIAN__"
  571. const m__POSIX2_CHAR_TERM = 1
  572. const m__POSIX2_C_BIND = 200112
  573. const m__POSIX2_FORT_RUN = 200112
  574. const m__POSIX2_UPE = 200112
  575. const m__POSIX2_VERSION = 199212
  576. const m__POSIX_ADVISORY_INFO = 200112
  577. const m__POSIX_ASYNCHRONOUS_IO = 200112
  578. const m__POSIX_BARRIERS = 200112
  579. const m__POSIX_CHOWN_RESTRICTED = 1
  580. const m__POSIX_CPUTIME = 200112
  581. const m__POSIX_FSYNC = 200112
  582. const m__POSIX_IPV6 = 0
  583. const m__POSIX_JOB_CONTROL = 1
  584. const m__POSIX_MAPPED_FILES = 200112
  585. const m__POSIX_MEMLOCK_RANGE = 200112
  586. const m__POSIX_MEMORY_PROTECTION = 200112
  587. const m__POSIX_MESSAGE_PASSING = 200112
  588. const m__POSIX_MONOTONIC_CLOCK = 200112
  589. const m__POSIX_NO_TRUNC = 1
  590. const m__POSIX_PRIORITY_SCHEDULING = 0
  591. const m__POSIX_PTHREAD_SEMANTICS = 1
  592. const m__POSIX_RAW_SOCKETS = 200112
  593. const m__POSIX_READER_WRITER_LOCKS = 200112
  594. const m__POSIX_REALTIME_SIGNALS = 200112
  595. const m__POSIX_REGEXP = 1
  596. const m__POSIX_SEMAPHORES = 200112
  597. const m__POSIX_SHARED_MEMORY_OBJECTS = 200112
  598. const m__POSIX_SHELL = 1
  599. const m__POSIX_SPAWN = 200112
  600. const m__POSIX_SPIN_LOCKS = 200112
  601. const m__POSIX_THREADS = 200112
  602. const m__POSIX_THREAD_ATTR_STACKADDR = 200112
  603. const m__POSIX_THREAD_ATTR_STACKSIZE = 200112
  604. const m__POSIX_THREAD_CPUTIME = 200112
  605. const m__POSIX_THREAD_PRIORITY_SCHEDULING = 200112
  606. const m__POSIX_THREAD_PRIO_INHERIT = 200112
  607. const m__POSIX_THREAD_PRIO_PROTECT = 200112
  608. const m__POSIX_THREAD_PROCESS_SHARED = 200112
  609. const m__POSIX_TIMEOUTS = 200112
  610. const m__POSIX_TIMERS = 200112
  611. const m__POSIX_VDISABLE = 0xff
  612. const m__POSIX_VERSION = 200112
  613. const m__QUAD_HIGHWORD = 1
  614. const m__QUAD_LOWWORD = 0
  615. const m__SC_2_CHAR_TERM = 20
  616. const m__SC_2_C_BIND = 18
  617. const m__SC_2_C_DEV = 19
  618. const m__SC_2_FORT_DEV = 21
  619. const m__SC_2_FORT_RUN = 22
  620. const m__SC_2_LOCALEDEF = 23
  621. const m__SC_2_PBS = 59
  622. const m__SC_2_PBS_ACCOUNTING = 60
  623. const m__SC_2_PBS_CHECKPOINT = 61
  624. const m__SC_2_PBS_LOCATE = 62
  625. const m__SC_2_PBS_MESSAGE = 63
  626. const m__SC_2_PBS_TRACK = 64
  627. const m__SC_2_SW_DEV = 24
  628. const m__SC_2_UPE = 25
  629. const m__SC_2_VERSION = 17
  630. const m__SC_ADVISORY_INFO = 65
  631. const m__SC_AIO_LISTIO_MAX = 42
  632. const m__SC_AIO_MAX = 43
  633. const m__SC_AIO_PRIO_DELTA_MAX = 44
  634. const m__SC_ARG_MAX = 1
  635. const m__SC_ASYNCHRONOUS_IO = 28
  636. const m__SC_ATEXIT_MAX = 107
  637. const m__SC_BARRIERS = 66
  638. const m__SC_BC_BASE_MAX = 9
  639. const m__SC_BC_DIM_MAX = 10
  640. const m__SC_BC_SCALE_MAX = 11
  641. const m__SC_BC_STRING_MAX = 12
  642. const m__SC_CHILD_MAX = 2
  643. const m__SC_CLK_TCK = 3
  644. const m__SC_CLOCK_SELECTION = 67
  645. const m__SC_COLL_WEIGHTS_MAX = 13
  646. const m__SC_CPUSET_SIZE = 122
  647. const m__SC_CPUTIME = 68
  648. const m__SC_DELAYTIMER_MAX = 45
  649. const m__SC_EXPR_NEST_MAX = 14
  650. const m__SC_FILE_LOCKING = 69
  651. const m__SC_FSYNC = 38
  652. const m__SC_GETGR_R_SIZE_MAX = 70
  653. const m__SC_GETPW_R_SIZE_MAX = 71
  654. const m__SC_HOST_NAME_MAX = 72
  655. const m__SC_IOV_MAX = 56
  656. const m__SC_IPV6 = 118
  657. const m__SC_JOB_CONTROL = 6
  658. const m__SC_LINE_MAX = 15
  659. const m__SC_LOGIN_NAME_MAX = 73
  660. const m__SC_MAPPED_FILES = 29
  661. const m__SC_MEMLOCK = 30
  662. const m__SC_MEMLOCK_RANGE = 31
  663. const m__SC_MEMORY_PROTECTION = 32
  664. const m__SC_MESSAGE_PASSING = 33
  665. const m__SC_MONOTONIC_CLOCK = 74
  666. const m__SC_MQ_OPEN_MAX = 46
  667. const m__SC_MQ_PRIO_MAX = 75
  668. const m__SC_NGROUPS_MAX = 4
  669. const m__SC_NPROCESSORS_CONF = 57
  670. const m__SC_NPROCESSORS_ONLN = 58
  671. const m__SC_OPEN_MAX = 5
  672. const m__SC_PAGESIZE = 47
  673. const m__SC_PAGE_SIZE = "_SC_PAGESIZE"
  674. const m__SC_PHYS_PAGES = 121
  675. const m__SC_PRIORITIZED_IO = 34
  676. const m__SC_PRIORITY_SCHEDULING = 35
  677. const m__SC_RAW_SOCKETS = 119
  678. const m__SC_READER_WRITER_LOCKS = 76
  679. const m__SC_REALTIME_SIGNALS = 36
  680. const m__SC_REGEXP = 77
  681. const m__SC_RE_DUP_MAX = 16
  682. const m__SC_RTSIG_MAX = 48
  683. const m__SC_SAVED_IDS = 7
  684. const m__SC_SEMAPHORES = 37
  685. const m__SC_SEM_NSEMS_MAX = 49
  686. const m__SC_SEM_VALUE_MAX = 50
  687. const m__SC_SHARED_MEMORY_OBJECTS = 39
  688. const m__SC_SHELL = 78
  689. const m__SC_SIGQUEUE_MAX = 51
  690. const m__SC_SPAWN = 79
  691. const m__SC_SPIN_LOCKS = 80
  692. const m__SC_SPORADIC_SERVER = 81
  693. const m__SC_STREAM_MAX = 26
  694. const m__SC_SYMLOOP_MAX = 120
  695. const m__SC_SYNCHRONIZED_IO = 40
  696. const m__SC_THREADS = 96
  697. const m__SC_THREAD_ATTR_STACKADDR = 82
  698. const m__SC_THREAD_ATTR_STACKSIZE = 83
  699. const m__SC_THREAD_CPUTIME = 84
  700. const m__SC_THREAD_DESTRUCTOR_ITERATIONS = 85
  701. const m__SC_THREAD_KEYS_MAX = 86
  702. const m__SC_THREAD_PRIORITY_SCHEDULING = 89
  703. const m__SC_THREAD_PRIO_INHERIT = 87
  704. const m__SC_THREAD_PRIO_PROTECT = 88
  705. const m__SC_THREAD_PROCESS_SHARED = 90
  706. const m__SC_THREAD_SAFE_FUNCTIONS = 91
  707. const m__SC_THREAD_SPORADIC_SERVER = 92
  708. const m__SC_THREAD_STACK_MIN = 93
  709. const m__SC_THREAD_THREADS_MAX = 94
  710. const m__SC_TIMEOUTS = 95
  711. const m__SC_TIMERS = 41
  712. const m__SC_TIMER_MAX = 52
  713. const m__SC_TRACE = 97
  714. const m__SC_TRACE_EVENT_FILTER = 98
  715. const m__SC_TRACE_INHERIT = 99
  716. const m__SC_TRACE_LOG = 100
  717. const m__SC_TTY_NAME_MAX = 101
  718. const m__SC_TYPED_MEMORY_OBJECTS = 102
  719. const m__SC_TZNAME_MAX = 27
  720. const m__SC_V6_ILP32_OFF32 = 103
  721. const m__SC_V6_ILP32_OFFBIG = 104
  722. const m__SC_V6_LP64_OFF64 = 105
  723. const m__SC_V6_LPBIG_OFFBIG = 106
  724. const m__SC_VERSION = 8
  725. const m__SC_XOPEN_CRYPT = 108
  726. const m__SC_XOPEN_ENH_I18N = 109
  727. const m__SC_XOPEN_LEGACY = 110
  728. const m__SC_XOPEN_REALTIME = 111
  729. const m__SC_XOPEN_REALTIME_THREADS = 112
  730. const m__SC_XOPEN_SHM = 113
  731. const m__SC_XOPEN_STREAMS = 114
  732. const m__SC_XOPEN_UNIX = 115
  733. const m__SC_XOPEN_VERSION = 116
  734. const m__SC_XOPEN_XCU_VERSION = 117
  735. const m__SIG_MAXSIG = 128
  736. const m__SIG_WORDS = 4
  737. const m__TANDEM_SOURCE = 1
  738. const m__V6_ILP32_OFFBIG = 0
  739. const m__V6_LP64_OFF64 = 0
  740. const m__XOPEN_SHM = 1
  741. const m__X_INLINE = "inline"
  742. const m__X_RESTRICT_KYWD = "restrict"
  743. const m__Xconst = "const"
  744. const m___ATOMIC_ACQUIRE = 2
  745. const m___ATOMIC_ACQ_REL = 4
  746. const m___ATOMIC_CONSUME = 1
  747. const m___ATOMIC_RELAXED = 0
  748. const m___ATOMIC_RELEASE = 3
  749. const m___ATOMIC_SEQ_CST = 5
  750. const m___BIGGEST_ALIGNMENT__ = 16
  751. const m___BITINT_MAXWIDTH__ = 8388608
  752. const m___BOOL_WIDTH__ = 8
  753. const m___BSD_VISIBLE = 1
  754. const m___BYTE_ORDER__ = "__ORDER_LITTLE_ENDIAN__"
  755. const m___CCGO__ = 1
  756. const m___CC_SUPPORTS_DYNAMIC_ARRAY_INIT = 1
  757. const m___CC_SUPPORTS_INLINE = 1
  758. const m___CC_SUPPORTS_VARADIC_XXX = 1
  759. const m___CC_SUPPORTS_WARNING = 1
  760. const m___CC_SUPPORTS___FUNC__ = 1
  761. const m___CC_SUPPORTS___INLINE = 1
  762. const m___CC_SUPPORTS___INLINE__ = 1
  763. const m___CHAR_BIT = 8
  764. const m___CHAR_BIT__ = 8
  765. const m___CLANG_ATOMIC_BOOL_LOCK_FREE = 2
  766. const m___CLANG_ATOMIC_CHAR16_T_LOCK_FREE = 2
  767. const m___CLANG_ATOMIC_CHAR32_T_LOCK_FREE = 2
  768. const m___CLANG_ATOMIC_CHAR_LOCK_FREE = 2
  769. const m___CLANG_ATOMIC_INT_LOCK_FREE = 2
  770. const m___CLANG_ATOMIC_LLONG_LOCK_FREE = 2
  771. const m___CLANG_ATOMIC_LONG_LOCK_FREE = 2
  772. const m___CLANG_ATOMIC_POINTER_LOCK_FREE = 2
  773. const m___CLANG_ATOMIC_SHORT_LOCK_FREE = 2
  774. const m___CLANG_ATOMIC_WCHAR_T_LOCK_FREE = 2
  775. const m___CONSTANT_CFSTRINGS__ = 1
  776. const m___DBL_DECIMAL_DIG__ = 17
  777. const m___DBL_DENORM_MIN__ = 4.9406564584124654e-324
  778. const m___DBL_DIG__ = 15
  779. const m___DBL_EPSILON__ = 2.2204460492503131e-16
  780. const m___DBL_HAS_DENORM__ = 1
  781. const m___DBL_HAS_INFINITY__ = 1
  782. const m___DBL_HAS_QUIET_NAN__ = 1
  783. const m___DBL_MANT_DIG__ = 53
  784. const m___DBL_MAX_10_EXP__ = 308
  785. const m___DBL_MAX_EXP__ = 1024
  786. const m___DBL_MAX__ = 1.7976931348623157e+308
  787. const m___DBL_MIN__ = 2.2250738585072014e-308
  788. const m___DECIMAL_DIG__ = "__LDBL_DECIMAL_DIG__"
  789. const m___ELF__ = 1
  790. const m___EXT1_VISIBLE = 1
  791. const m___EXTENSIONS__ = 1
  792. const m___FINITE_MATH_ONLY__ = 0
  793. const m___FLOAT128__ = 1
  794. const m___FLT16_DECIMAL_DIG__ = 5
  795. const m___FLT16_DENORM_MIN__ = 5.9604644775390625e-8
  796. const m___FLT16_DIG__ = 3
  797. const m___FLT16_EPSILON__ = 9.765625e-4
  798. const m___FLT16_HAS_DENORM__ = 1
  799. const m___FLT16_HAS_INFINITY__ = 1
  800. const m___FLT16_HAS_QUIET_NAN__ = 1
  801. const m___FLT16_MANT_DIG__ = 11
  802. const m___FLT16_MAX_10_EXP__ = 4
  803. const m___FLT16_MAX_EXP__ = 16
  804. const m___FLT16_MAX__ = 6.5504e+4
  805. const m___FLT16_MIN__ = 6.103515625e-5
  806. const m___FLT_DECIMAL_DIG__ = 9
  807. const m___FLT_DENORM_MIN__ = 1.40129846e-45
  808. const m___FLT_DIG__ = 6
  809. const m___FLT_EPSILON__ = 1.19209290e-7
  810. const m___FLT_HAS_DENORM__ = 1
  811. const m___FLT_HAS_INFINITY__ = 1
  812. const m___FLT_HAS_QUIET_NAN__ = 1
  813. const m___FLT_MANT_DIG__ = 24
  814. const m___FLT_MAX_10_EXP__ = 38
  815. const m___FLT_MAX_EXP__ = 128
  816. const m___FLT_MAX__ = 3.40282347e+38
  817. const m___FLT_MIN__ = 1.17549435e-38
  818. const m___FLT_RADIX__ = 2
  819. const m___FPCLASS_NEGINF = 0x0004
  820. const m___FPCLASS_NEGNORMAL = 0x0008
  821. const m___FPCLASS_NEGSUBNORMAL = 0x0010
  822. const m___FPCLASS_NEGZERO = 0x0020
  823. const m___FPCLASS_POSINF = 0x0200
  824. const m___FPCLASS_POSNORMAL = 0x0100
  825. const m___FPCLASS_POSSUBNORMAL = 0x0080
  826. const m___FPCLASS_POSZERO = 0x0040
  827. const m___FPCLASS_QNAN = 0x0002
  828. const m___FPCLASS_SNAN = 0x0001
  829. const m___FUNCTION__ = "__func__"
  830. const m___FXSR__ = 1
  831. const m___FreeBSD__ = 14
  832. const m___FreeBSD_cc_version = 1400006
  833. const m___GCC_ASM_FLAG_OUTPUTS__ = 1
  834. const m___GCC_ATOMIC_BOOL_LOCK_FREE = 2
  835. const m___GCC_ATOMIC_CHAR16_T_LOCK_FREE = 2
  836. const m___GCC_ATOMIC_CHAR32_T_LOCK_FREE = 2
  837. const m___GCC_ATOMIC_CHAR_LOCK_FREE = 2
  838. const m___GCC_ATOMIC_INT_LOCK_FREE = 2
  839. const m___GCC_ATOMIC_LLONG_LOCK_FREE = 2
  840. const m___GCC_ATOMIC_LONG_LOCK_FREE = 2
  841. const m___GCC_ATOMIC_POINTER_LOCK_FREE = 2
  842. const m___GCC_ATOMIC_SHORT_LOCK_FREE = 2
  843. const m___GCC_ATOMIC_TEST_AND_SET_TRUEVAL = 1
  844. const m___GCC_ATOMIC_WCHAR_T_LOCK_FREE = 2
  845. const m___GCC_HAVE_DWARF2_CFI_ASM = 1
  846. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_1 = 1
  847. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_2 = 1
  848. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 = 1
  849. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 = 1
  850. const m___GNUCLIKE_ASM = 3
  851. const m___GNUCLIKE_BUILTIN_CONSTANT_P = 1
  852. const m___GNUCLIKE_BUILTIN_MEMCPY = 1
  853. const m___GNUCLIKE_BUILTIN_NEXT_ARG = 1
  854. const m___GNUCLIKE_BUILTIN_STDARG = 1
  855. const m___GNUCLIKE_BUILTIN_VAALIST = 1
  856. const m___GNUCLIKE_BUILTIN_VARARGS = 1
  857. const m___GNUCLIKE_CTOR_SECTION_HANDLING = 1
  858. const m___GNUCLIKE___SECTION = 1
  859. const m___GNUCLIKE___TYPEOF = 1
  860. const m___GNUC_MINOR__ = 2
  861. const m___GNUC_PATCHLEVEL__ = 1
  862. const m___GNUC_STDC_INLINE__ = 1
  863. const m___GNUC_VA_LIST_COMPATIBILITY = 1
  864. const m___GNUC__ = 4
  865. const m___GXX_ABI_VERSION = 1002
  866. const m___INT16_FMTd__ = "hd"
  867. const m___INT16_FMTi__ = "hi"
  868. const m___INT16_MAX__ = 32767
  869. const m___INT16_TYPE__ = "short"
  870. const m___INT32_FMTd__ = "d"
  871. const m___INT32_FMTi__ = "i"
  872. const m___INT32_MAX__ = 2147483647
  873. const m___INT32_TYPE__ = "int"
  874. const m___INT64_C_SUFFIX__ = "L"
  875. const m___INT64_FMTd__ = "ld"
  876. const m___INT64_FMTi__ = "li"
  877. const m___INT64_MAX__ = 9223372036854775807
  878. const m___INT8_FMTd__ = "hhd"
  879. const m___INT8_FMTi__ = "hhi"
  880. const m___INT8_MAX__ = 127
  881. const m___INTMAX_C_SUFFIX__ = "L"
  882. const m___INTMAX_FMTd__ = "ld"
  883. const m___INTMAX_FMTi__ = "li"
  884. const m___INTMAX_MAX__ = 9223372036854775807
  885. const m___INTMAX_WIDTH__ = 64
  886. const m___INTPTR_FMTd__ = "ld"
  887. const m___INTPTR_FMTi__ = "li"
  888. const m___INTPTR_MAX__ = 9223372036854775807
  889. const m___INTPTR_WIDTH__ = 64
  890. const m___INT_FAST16_FMTd__ = "hd"
  891. const m___INT_FAST16_FMTi__ = "hi"
  892. const m___INT_FAST16_MAX__ = 32767
  893. const m___INT_FAST16_TYPE__ = "short"
  894. const m___INT_FAST16_WIDTH__ = 16
  895. const m___INT_FAST32_FMTd__ = "d"
  896. const m___INT_FAST32_FMTi__ = "i"
  897. const m___INT_FAST32_MAX__ = 2147483647
  898. const m___INT_FAST32_TYPE__ = "int"
  899. const m___INT_FAST32_WIDTH__ = 32
  900. const m___INT_FAST64_FMTd__ = "ld"
  901. const m___INT_FAST64_FMTi__ = "li"
  902. const m___INT_FAST64_MAX__ = 9223372036854775807
  903. const m___INT_FAST64_WIDTH__ = 64
  904. const m___INT_FAST8_FMTd__ = "hhd"
  905. const m___INT_FAST8_FMTi__ = "hhi"
  906. const m___INT_FAST8_MAX__ = 127
  907. const m___INT_FAST8_WIDTH__ = 8
  908. const m___INT_LEAST16_FMTd__ = "hd"
  909. const m___INT_LEAST16_FMTi__ = "hi"
  910. const m___INT_LEAST16_MAX__ = 32767
  911. const m___INT_LEAST16_TYPE__ = "short"
  912. const m___INT_LEAST16_WIDTH__ = 16
  913. const m___INT_LEAST32_FMTd__ = "d"
  914. const m___INT_LEAST32_FMTi__ = "i"
  915. const m___INT_LEAST32_MAX__ = 2147483647
  916. const m___INT_LEAST32_TYPE__ = "int"
  917. const m___INT_LEAST32_WIDTH__ = 32
  918. const m___INT_LEAST64_FMTd__ = "ld"
  919. const m___INT_LEAST64_FMTi__ = "li"
  920. const m___INT_LEAST64_MAX__ = 9223372036854775807
  921. const m___INT_LEAST64_WIDTH__ = 64
  922. const m___INT_LEAST8_FMTd__ = "hhd"
  923. const m___INT_LEAST8_FMTi__ = "hhi"
  924. const m___INT_LEAST8_MAX__ = 127
  925. const m___INT_LEAST8_WIDTH__ = 8
  926. const m___INT_MAX = 0x7fffffff
  927. const m___INT_MAX__ = 2147483647
  928. const m___INT_WIDTH__ = 32
  929. const m___ISO_C_VISIBLE = 2011
  930. const m___KPRINTF_ATTRIBUTE__ = 1
  931. const m___LDBL_DECIMAL_DIG__ = 17
  932. const m___LDBL_DENORM_MIN__ = 4.9406564584124654e-324
  933. const m___LDBL_DIG__ = 15
  934. const m___LDBL_EPSILON__ = 2.2204460492503131e-16
  935. const m___LDBL_HAS_DENORM__ = 1
  936. const m___LDBL_HAS_INFINITY__ = 1
  937. const m___LDBL_HAS_QUIET_NAN__ = 1
  938. const m___LDBL_MANT_DIG__ = 53
  939. const m___LDBL_MAX_10_EXP__ = 308
  940. const m___LDBL_MAX_EXP__ = 1024
  941. const m___LDBL_MAX__ = 1.7976931348623157e+308
  942. const m___LDBL_MIN__ = 2.2250738585072014e-308
  943. const m___LITTLE_ENDIAN__ = 1
  944. const m___LLONG_MAX = 0x7fffffffffffffff
  945. const m___LLONG_WIDTH__ = 64
  946. const m___LONG_BIT = 64
  947. const m___LONG_LONG_MAX__ = 9223372036854775807
  948. const m___LONG_MAX = 0x7fffffffffffffff
  949. const m___LONG_MAX__ = 9223372036854775807
  950. const m___LONG_WIDTH__ = 64
  951. const m___LP64__ = 1
  952. const m___MEMORY_SCOPE_DEVICE = 1
  953. const m___MEMORY_SCOPE_SINGLE = 4
  954. const m___MEMORY_SCOPE_SYSTEM = 0
  955. const m___MEMORY_SCOPE_WRKGRP = 2
  956. const m___MEMORY_SCOPE_WVFRNT = 3
  957. const m___MMX__ = 1
  958. const m___NO_INLINE__ = 1
  959. const m___NO_MATH_ERRNO__ = 1
  960. const m___NO_MATH_INLINES = 1
  961. const m___OBJC_BOOL_IS_BOOL = 0
  962. const m___OFF_MAX = "__LONG_MAX"
  963. const m___OFF_MIN = "__LONG_MIN"
  964. const m___OPENCL_MEMORY_SCOPE_ALL_SVM_DEVICES = 3
  965. const m___OPENCL_MEMORY_SCOPE_DEVICE = 2
  966. const m___OPENCL_MEMORY_SCOPE_SUB_GROUP = 4
  967. const m___OPENCL_MEMORY_SCOPE_WORK_GROUP = 1
  968. const m___OPENCL_MEMORY_SCOPE_WORK_ITEM = 0
  969. const m___ORDER_BIG_ENDIAN__ = 4321
  970. const m___ORDER_LITTLE_ENDIAN__ = 1234
  971. const m___ORDER_PDP_ENDIAN__ = 3412
  972. const m___POINTER_WIDTH__ = 64
  973. const m___POSIX_VISIBLE = 200809
  974. const m___PRAGMA_REDEFINE_EXTNAME = 1
  975. const m___PRETTY_FUNCTION__ = "__func__"
  976. const m___PTRDIFF_FMTd__ = "ld"
  977. const m___PTRDIFF_FMTi__ = "li"
  978. const m___PTRDIFF_MAX__ = 9223372036854775807
  979. const m___PTRDIFF_WIDTH__ = 64
  980. const m___QUAD_MAX = "__LONG_MAX"
  981. const m___QUAD_MIN = "__LONG_MIN"
  982. const m___SCHAR_MAX = 0x7f
  983. const m___SCHAR_MAX__ = 127
  984. const m___SEG_FS = 1
  985. const m___SEG_GS = 1
  986. const m___SHRT_MAX = 0x7fff
  987. const m___SHRT_MAX__ = 32767
  988. const m___SHRT_WIDTH__ = 16
  989. const m___SIG_ATOMIC_MAX__ = 2147483647
  990. const m___SIG_ATOMIC_WIDTH__ = 32
  991. const m___SIZEOF_DOUBLE__ = 8
  992. const m___SIZEOF_FLOAT128__ = 16
  993. const m___SIZEOF_FLOAT__ = 4
  994. const m___SIZEOF_INT128__ = 16
  995. const m___SIZEOF_INT__ = 4
  996. const m___SIZEOF_LONG_DOUBLE__ = 8
  997. const m___SIZEOF_LONG_LONG__ = 8
  998. const m___SIZEOF_LONG__ = 8
  999. const m___SIZEOF_POINTER__ = 8
  1000. const m___SIZEOF_PTRDIFF_T__ = 8
  1001. const m___SIZEOF_SHORT__ = 2
  1002. const m___SIZEOF_SIZE_T__ = 8
  1003. const m___SIZEOF_WCHAR_T__ = 4
  1004. const m___SIZEOF_WINT_T__ = 4
  1005. const m___SIZE_FMTX__ = "lX"
  1006. const m___SIZE_FMTo__ = "lo"
  1007. const m___SIZE_FMTu__ = "lu"
  1008. const m___SIZE_FMTx__ = "lx"
  1009. const m___SIZE_MAX__ = 18446744073709551615
  1010. const m___SIZE_T_MAX = "__ULONG_MAX"
  1011. const m___SIZE_WIDTH__ = 64
  1012. const m___SSE2_MATH__ = 1
  1013. const m___SSE2__ = 1
  1014. const m___SSE_MATH__ = 1
  1015. const m___SSE__ = 1
  1016. const m___SSIZE_MAX = "__LONG_MAX"
  1017. const m___STDC_HOSTED__ = 1
  1018. const m___STDC_MB_MIGHT_NEQ_WC__ = 1
  1019. const m___STDC_UTF_16__ = 1
  1020. const m___STDC_UTF_32__ = 1
  1021. const m___STDC_VERSION__ = 201710
  1022. const m___STDC_WANT_IEC_60559_ATTRIBS_EXT__ = 1
  1023. const m___STDC_WANT_IEC_60559_BFP_EXT__ = 1
  1024. const m___STDC_WANT_IEC_60559_DFP_EXT__ = 1
  1025. const m___STDC_WANT_IEC_60559_EXT__ = 1
  1026. const m___STDC_WANT_IEC_60559_FUNCS_EXT__ = 1
  1027. const m___STDC_WANT_IEC_60559_TYPES_EXT__ = 1
  1028. const m___STDC_WANT_LIB_EXT2__ = 1
  1029. const m___STDC_WANT_MATH_SPEC_FUNCS__ = 1
  1030. const m___STDC__ = 1
  1031. const m___UCHAR_MAX = 0xff
  1032. const m___UINT16_FMTX__ = "hX"
  1033. const m___UINT16_FMTo__ = "ho"
  1034. const m___UINT16_FMTu__ = "hu"
  1035. const m___UINT16_FMTx__ = "hx"
  1036. const m___UINT16_MAX__ = 65535
  1037. const m___UINT32_C_SUFFIX__ = "U"
  1038. const m___UINT32_FMTX__ = "X"
  1039. const m___UINT32_FMTo__ = "o"
  1040. const m___UINT32_FMTu__ = "u"
  1041. const m___UINT32_FMTx__ = "x"
  1042. const m___UINT32_MAX__ = 4294967295
  1043. const m___UINT64_C_SUFFIX__ = "UL"
  1044. const m___UINT64_FMTX__ = "lX"
  1045. const m___UINT64_FMTo__ = "lo"
  1046. const m___UINT64_FMTu__ = "lu"
  1047. const m___UINT64_FMTx__ = "lx"
  1048. const m___UINT64_MAX__ = 18446744073709551615
  1049. const m___UINT8_FMTX__ = "hhX"
  1050. const m___UINT8_FMTo__ = "hho"
  1051. const m___UINT8_FMTu__ = "hhu"
  1052. const m___UINT8_FMTx__ = "hhx"
  1053. const m___UINT8_MAX__ = 255
  1054. const m___UINTMAX_C_SUFFIX__ = "UL"
  1055. const m___UINTMAX_FMTX__ = "lX"
  1056. const m___UINTMAX_FMTo__ = "lo"
  1057. const m___UINTMAX_FMTu__ = "lu"
  1058. const m___UINTMAX_FMTx__ = "lx"
  1059. const m___UINTMAX_MAX__ = 18446744073709551615
  1060. const m___UINTMAX_WIDTH__ = 64
  1061. const m___UINTPTR_FMTX__ = "lX"
  1062. const m___UINTPTR_FMTo__ = "lo"
  1063. const m___UINTPTR_FMTu__ = "lu"
  1064. const m___UINTPTR_FMTx__ = "lx"
  1065. const m___UINTPTR_MAX__ = 18446744073709551615
  1066. const m___UINTPTR_WIDTH__ = 64
  1067. const m___UINT_FAST16_FMTX__ = "hX"
  1068. const m___UINT_FAST16_FMTo__ = "ho"
  1069. const m___UINT_FAST16_FMTu__ = "hu"
  1070. const m___UINT_FAST16_FMTx__ = "hx"
  1071. const m___UINT_FAST16_MAX__ = 65535
  1072. const m___UINT_FAST32_FMTX__ = "X"
  1073. const m___UINT_FAST32_FMTo__ = "o"
  1074. const m___UINT_FAST32_FMTu__ = "u"
  1075. const m___UINT_FAST32_FMTx__ = "x"
  1076. const m___UINT_FAST32_MAX__ = 4294967295
  1077. const m___UINT_FAST64_FMTX__ = "lX"
  1078. const m___UINT_FAST64_FMTo__ = "lo"
  1079. const m___UINT_FAST64_FMTu__ = "lu"
  1080. const m___UINT_FAST64_FMTx__ = "lx"
  1081. const m___UINT_FAST64_MAX__ = 18446744073709551615
  1082. const m___UINT_FAST8_FMTX__ = "hhX"
  1083. const m___UINT_FAST8_FMTo__ = "hho"
  1084. const m___UINT_FAST8_FMTu__ = "hhu"
  1085. const m___UINT_FAST8_FMTx__ = "hhx"
  1086. const m___UINT_FAST8_MAX__ = 255
  1087. const m___UINT_LEAST16_FMTX__ = "hX"
  1088. const m___UINT_LEAST16_FMTo__ = "ho"
  1089. const m___UINT_LEAST16_FMTu__ = "hu"
  1090. const m___UINT_LEAST16_FMTx__ = "hx"
  1091. const m___UINT_LEAST16_MAX__ = 65535
  1092. const m___UINT_LEAST32_FMTX__ = "X"
  1093. const m___UINT_LEAST32_FMTo__ = "o"
  1094. const m___UINT_LEAST32_FMTu__ = "u"
  1095. const m___UINT_LEAST32_FMTx__ = "x"
  1096. const m___UINT_LEAST32_MAX__ = 4294967295
  1097. const m___UINT_LEAST64_FMTX__ = "lX"
  1098. const m___UINT_LEAST64_FMTo__ = "lo"
  1099. const m___UINT_LEAST64_FMTu__ = "lu"
  1100. const m___UINT_LEAST64_FMTx__ = "lx"
  1101. const m___UINT_LEAST64_MAX__ = 18446744073709551615
  1102. const m___UINT_LEAST8_FMTX__ = "hhX"
  1103. const m___UINT_LEAST8_FMTo__ = "hho"
  1104. const m___UINT_LEAST8_FMTu__ = "hhu"
  1105. const m___UINT_LEAST8_FMTx__ = "hhx"
  1106. const m___UINT_LEAST8_MAX__ = 255
  1107. const m___UINT_MAX = 0xffffffff
  1108. const m___ULLONG_MAX = "0xffffffffffffffffU"
  1109. const m___ULONG_MAX = 0xffffffffffffffff
  1110. const m___UQUAD_MAX = "__ULONG_MAX"
  1111. const m___USHRT_MAX = 0xffff
  1112. const m___VERSION__ = "FreeBSD Clang 18.1.6 (https://github.com/llvm/llvm-project.git llvmorg-18.1.6-0-g1118c2e05e67)"
  1113. const m___WCHAR_MAX = "__INT_MAX"
  1114. const m___WCHAR_MAX__ = 2147483647
  1115. const m___WCHAR_MIN = "__INT_MIN"
  1116. const m___WCHAR_TYPE__ = "int"
  1117. const m___WCHAR_WIDTH__ = 32
  1118. const m___WINT_MAX__ = 2147483647
  1119. const m___WINT_TYPE__ = "int"
  1120. const m___WINT_WIDTH__ = 32
  1121. const m___WORDSIZE = 64
  1122. const m___WORD_BIT = 32
  1123. const m___XSI_VISIBLE = 700
  1124. const m___amd64 = 1
  1125. const m___amd64__ = 1
  1126. const m___clang__ = 1
  1127. const m___clang_literal_encoding__ = "UTF-8"
  1128. const m___clang_major__ = 18
  1129. const m___clang_minor__ = 1
  1130. const m___clang_patchlevel__ = 6
  1131. const m___clang_version__ = "18.1.6 (https://github.com/llvm/llvm-project.git llvmorg-18.1.6-0-g1118c2e05e67)"
  1132. const m___clang_wide_literal_encoding__ = "UTF-32"
  1133. const m___code_model_small__ = 1
  1134. const m___const = "const"
  1135. const m___has_extension = "__has_feature"
  1136. const m___k8 = 1
  1137. const m___k8__ = 1
  1138. const m___llvm__ = 1
  1139. const m___restrict = "restrict"
  1140. const m___restrict_arr = "restrict"
  1141. const m___signed = "signed"
  1142. const m___tune_k8__ = 1
  1143. const m___unix = 1
  1144. const m___unix__ = 1
  1145. const m___volatile = "volatile"
  1146. const m___writeonly = "__unused"
  1147. const m___x86_64 = 1
  1148. const m___x86_64__ = 1
  1149. const m_fds_bits = "__fds_bits"
  1150. const m_unix = 1
  1151. type t__builtin_va_list = uintptr
  1152. type t__predefined_size_t = uint64
  1153. type t__predefined_wchar_t = int32
  1154. type t__predefined_ptrdiff_t = int64
  1155. type t__int8_t = int8
  1156. type t__uint8_t = uint8
  1157. type t__int16_t = int16
  1158. type t__uint16_t = uint16
  1159. type t__int32_t = int32
  1160. type t__uint32_t = uint32
  1161. type t__int64_t = int64
  1162. type t__uint64_t = uint64
  1163. type t__int_least8_t = int8
  1164. type t__int_least16_t = int16
  1165. type t__int_least32_t = int32
  1166. type t__int_least64_t = int64
  1167. type t__intmax_t = int64
  1168. type t__uint_least8_t = uint8
  1169. type t__uint_least16_t = uint16
  1170. type t__uint_least32_t = uint32
  1171. type t__uint_least64_t = uint64
  1172. type t__uintmax_t = uint64
  1173. type t__intptr_t = int64
  1174. type t__intfptr_t = int64
  1175. type t__uintptr_t = uint64
  1176. type t__uintfptr_t = uint64
  1177. type t__vm_offset_t = uint64
  1178. type t__vm_size_t = uint64
  1179. type t__size_t = uint64
  1180. type t__ssize_t = int64
  1181. type t__ptrdiff_t = int64
  1182. type t__clock_t = int32
  1183. type t__critical_t = int64
  1184. type t__double_t = float64
  1185. type t__float_t = float32
  1186. type t__int_fast8_t = int32
  1187. type t__int_fast16_t = int32
  1188. type t__int_fast32_t = int32
  1189. type t__int_fast64_t = int64
  1190. type t__register_t = int64
  1191. type t__segsz_t = int64
  1192. type t__time_t = int64
  1193. type t__uint_fast8_t = uint32
  1194. type t__uint_fast16_t = uint32
  1195. type t__uint_fast32_t = uint32
  1196. type t__uint_fast64_t = uint64
  1197. type t__u_register_t = uint64
  1198. type t__vm_paddr_t = uint64
  1199. type T___wchar_t = int32
  1200. type t__blksize_t = int32
  1201. type t__blkcnt_t = int64
  1202. type t__clockid_t = int32
  1203. type t__fflags_t = uint32
  1204. type t__fsblkcnt_t = uint64
  1205. type t__fsfilcnt_t = uint64
  1206. type t__gid_t = uint32
  1207. type t__id_t = int64
  1208. type t__ino_t = uint64
  1209. type t__key_t = int64
  1210. type t__lwpid_t = int32
  1211. type t__mode_t = uint16
  1212. type t__accmode_t = int32
  1213. type t__nl_item = int32
  1214. type t__nlink_t = uint64
  1215. type t__off_t = int64
  1216. type t__off64_t = int64
  1217. type t__pid_t = int32
  1218. type t__sbintime_t = int64
  1219. type t__rlim_t = int64
  1220. type t__sa_family_t = uint8
  1221. type t__socklen_t = uint32
  1222. type t__suseconds_t = int64
  1223. type t__timer_t = uintptr
  1224. type t__mqd_t = uintptr
  1225. type t__uid_t = uint32
  1226. type t__useconds_t = uint32
  1227. type t__cpuwhich_t = int32
  1228. type t__cpulevel_t = int32
  1229. type t__cpusetid_t = int32
  1230. type t__daddr_t = int64
  1231. type t__ct_rune_t = int32
  1232. type t__rune_t = int32
  1233. type t__wint_t = int32
  1234. type t__char16_t = uint16
  1235. type t__char32_t = uint32
  1236. type t__max_align_t = struct {
  1237. F__max_align1 int64
  1238. F__max_align2 float64
  1239. }
  1240. type t__dev_t = uint64
  1241. type t__fixpt_t = uint32
  1242. type t__mbstate_t = struct {
  1243. F_mbstateL [0]t__int64_t
  1244. F__mbstate8 [128]int8
  1245. }
  1246. type t__rman_res_t = uint64
  1247. type t__va_list = uintptr
  1248. type t__gnuc_va_list = uintptr
  1249. type Tpthread_once = struct {
  1250. Fstate int32
  1251. Fmutex Tpthread_mutex_t
  1252. }
  1253. type Tpthread_t = uintptr
  1254. type Tpthread_attr_t = uintptr
  1255. type Tpthread_mutex_t = uintptr
  1256. type Tpthread_mutexattr_t = uintptr
  1257. type Tpthread_cond_t = uintptr
  1258. type Tpthread_condattr_t = uintptr
  1259. type Tpthread_key_t = int32
  1260. type Tpthread_once_t = struct {
  1261. Fstate int32
  1262. Fmutex Tpthread_mutex_t
  1263. }
  1264. type Tpthread_rwlock_t = uintptr
  1265. type Tpthread_rwlockattr_t = uintptr
  1266. type Tpthread_barrier_t = uintptr
  1267. type Tpthread_barrierattr_t = uintptr
  1268. type Tpthread_spinlock_t = uintptr
  1269. type Tpthread_addr_t = uintptr
  1270. type Tpthread_startroutine_t = uintptr
  1271. type Tu_char = uint8
  1272. type Tu_short = uint16
  1273. type Tu_int = uint32
  1274. type Tu_long = uint64
  1275. type Tushort = uint16
  1276. type Tuint = uint32
  1277. type Tint8_t = int8
  1278. type Tint16_t = int16
  1279. type Tint32_t = int32
  1280. type Tint64_t = int64
  1281. type Tuint8_t = uint8
  1282. type Tuint16_t = uint16
  1283. type Tuint32_t = uint32
  1284. type Tuint64_t = uint64
  1285. type Tintptr_t = int64
  1286. type Tuintptr_t = uint64
  1287. type Tintmax_t = int64
  1288. type Tuintmax_t = uint64
  1289. type Tu_int8_t = uint8
  1290. type Tu_int16_t = uint16
  1291. type Tu_int32_t = uint32
  1292. type Tu_int64_t = uint64
  1293. type Tu_quad_t = uint64
  1294. type Tquad_t = int64
  1295. type Tqaddr_t = uintptr
  1296. type Tcaddr_t = uintptr
  1297. type Tc_caddr_t = uintptr
  1298. type Tblksize_t = int32
  1299. type Tcpuwhich_t = int32
  1300. type Tcpulevel_t = int32
  1301. type Tcpusetid_t = int32
  1302. type Tblkcnt_t = int64
  1303. type Tclock_t = int32
  1304. type Tclockid_t = int32
  1305. type Tcritical_t = int64
  1306. type Tdaddr_t = int64
  1307. type Tdev_t = uint64
  1308. type Tfflags_t = uint32
  1309. type Tfixpt_t = uint32
  1310. type Tfsblkcnt_t = uint64
  1311. type Tfsfilcnt_t = uint64
  1312. type Tgid_t = uint32
  1313. type Tin_addr_t = uint32
  1314. type Tin_port_t = uint16
  1315. type Tid_t = int64
  1316. type Tino_t = uint64
  1317. type Tkey_t = int64
  1318. type Tlwpid_t = int32
  1319. type Tmode_t = uint16
  1320. type Taccmode_t = int32
  1321. type Tnlink_t = uint64
  1322. type Toff_t = int64
  1323. type Toff64_t = int64
  1324. type Tpid_t = int32
  1325. type Tregister_t = int64
  1326. type Trlim_t = int64
  1327. type Tsbintime_t = int64
  1328. type Tsegsz_t = int64
  1329. type Tsize_t = uint64
  1330. type Tssize_t = int64
  1331. type Tsuseconds_t = int64
  1332. type Ttime_t = int64
  1333. type Ttimer_t = uintptr
  1334. type Tmqd_t = uintptr
  1335. type Tu_register_t = uint64
  1336. type Tuid_t = uint32
  1337. type Tuseconds_t = uint32
  1338. type Tcap_ioctl_t = uint64
  1339. type Tkpaddr_t = uint64
  1340. type Tkvaddr_t = uint64
  1341. type Tksize_t = uint64
  1342. type Tkssize_t = int64
  1343. type Tvm_offset_t = uint64
  1344. type Tvm_ooffset_t = uint64
  1345. type Tvm_paddr_t = uint64
  1346. type Tvm_pindex_t = uint64
  1347. type Tvm_size_t = uint64
  1348. type Trman_res_t = uint64
  1349. type Tsyscallarg_t = int64
  1350. type t__sigset_t = struct {
  1351. F__bits [4]t__uint32_t
  1352. }
  1353. type t__sigset = t__sigset_t
  1354. type Ttimeval = struct {
  1355. Ftv_sec Ttime_t
  1356. Ftv_usec Tsuseconds_t
  1357. }
  1358. type Ttimespec = struct {
  1359. Ftv_sec Ttime_t
  1360. Ftv_nsec int64
  1361. }
  1362. type Titimerspec = struct {
  1363. Fit_interval Ttimespec
  1364. Fit_value Ttimespec
  1365. }
  1366. type t__fd_mask = uint64
  1367. type Tfd_mask = uint64
  1368. type Tsigset_t = struct {
  1369. F__bits [4]t__uint32_t
  1370. }
  1371. type Tfd_set = struct {
  1372. F__fds_bits [16]t__fd_mask
  1373. }
  1374. type Tlocale_t = uintptr
  1375. type Trsize_t = uint64
  1376. type Terrno_t = int32
  1377. type Tflock = struct {
  1378. Fl_start Toff_t
  1379. Fl_len Toff_t
  1380. Fl_pid Tpid_t
  1381. Fl_type int16
  1382. Fl_whence int16
  1383. Fl_sysid int32
  1384. }
  1385. type t__oflock = struct {
  1386. Fl_start Toff_t
  1387. Fl_len Toff_t
  1388. Fl_pid Tpid_t
  1389. Fl_type int16
  1390. Fl_whence int16
  1391. }
  1392. type Tspacectl_range = struct {
  1393. Fr_offset Toff_t
  1394. Fr_len Toff_t
  1395. }
  1396. type Tcrypt_data = struct {
  1397. Finitialized int32
  1398. F__buf [256]int8
  1399. }
  1400. type Ttimezone = struct {
  1401. Ftz_minuteswest int32
  1402. Ftz_dsttime int32
  1403. }
  1404. type Tbintime = struct {
  1405. Fsec Ttime_t
  1406. Ffrac Tuint64_t
  1407. }
  1408. type Titimerval = struct {
  1409. Fit_interval Ttimeval
  1410. Fit_value Ttimeval
  1411. }
  1412. type Tclockinfo = struct {
  1413. Fhz int32
  1414. Ftick int32
  1415. Fspare int32
  1416. Fstathz int32
  1417. Fprofhz int32
  1418. }
  1419. type Ttm = struct {
  1420. Ftm_sec int32
  1421. Ftm_min int32
  1422. Ftm_hour int32
  1423. Ftm_mday int32
  1424. Ftm_mon int32
  1425. Ftm_year int32
  1426. Ftm_wday int32
  1427. Ftm_yday int32
  1428. Ftm_isdst int32
  1429. Ftm_gmtoff int64
  1430. Ftm_zone uintptr
  1431. }
  1432. type TXID = uint64
  1433. type TMask = uint64
  1434. type TAtom = uint64
  1435. type TVisualID = uint64
  1436. type TTime = uint64
  1437. type TWindow = uint64
  1438. type TDrawable = uint64
  1439. type TFont = uint64
  1440. type TPixmap = uint64
  1441. type TCursor = uint64
  1442. type TColormap = uint64
  1443. type TGContext = uint64
  1444. type TKeySym = uint64
  1445. type TKeyCode = uint8
  1446. type TINT64 = int64
  1447. type TINT32 = int32
  1448. type TINT16 = int16
  1449. type TINT8 = int8
  1450. type TCARD64 = uint64
  1451. type TCARD32 = uint32
  1452. type TCARD16 = uint16
  1453. type TCARD8 = uint8
  1454. type TBITS32 = uint32
  1455. type TBITS16 = uint16
  1456. type TBYTE = uint8
  1457. type TBOOL = uint8
  1458. type TxdmOpCode = int32
  1459. const _BROADCAST_QUERY = 1
  1460. const _QUERY = 2
  1461. const _INDIRECT_QUERY = 3
  1462. const _FORWARD_QUERY = 4
  1463. const _WILLING = 5
  1464. const _UNWILLING = 6
  1465. const _REQUEST = 7
  1466. const _ACCEPT = 8
  1467. const _DECLINE = 9
  1468. const _MANAGE = 10
  1469. const _REFUSE = 11
  1470. const _FAILED = 12
  1471. const _KEEPALIVE = 13
  1472. const _ALIVE = 14
  1473. type Txdmcp_states = int32
  1474. const _XDM_QUERY = 0
  1475. const _XDM_BROADCAST = 1
  1476. const _XDM_INDIRECT = 2
  1477. const _XDM_COLLECT_QUERY = 3
  1478. const _XDM_COLLECT_BROADCAST_QUERY = 4
  1479. const _XDM_COLLECT_INDIRECT_QUERY = 5
  1480. const _XDM_START_CONNECTION = 6
  1481. const _XDM_AWAIT_REQUEST_RESPONSE = 7
  1482. const _XDM_AWAIT_MANAGE_RESPONSE = 8
  1483. const _XDM_MANAGE = 9
  1484. const _XDM_RUN_SESSION = 10
  1485. const _XDM_OFF = 11
  1486. const _XDM_AWAIT_USER_INPUT = 12
  1487. const _XDM_KEEPALIVE = 13
  1488. const _XDM_AWAIT_ALIVE_RESPONSE = 14
  1489. const _XDM_KEEP_ME_LAST = 15
  1490. type TCARD8Ptr = uintptr
  1491. type TCARD16Ptr = uintptr
  1492. type TCARD32Ptr = uintptr
  1493. type TARRAY8 = struct {
  1494. Flength TCARD16
  1495. Fdata TCARD8Ptr
  1496. }
  1497. type T_ARRAY8 = TARRAY8
  1498. type TARRAY8Ptr = uintptr
  1499. type TARRAY16 = struct {
  1500. Flength TCARD8
  1501. Fdata TCARD16Ptr
  1502. }
  1503. type T_ARRAY16 = TARRAY16
  1504. type TARRAY16Ptr = uintptr
  1505. type TARRAY32 = struct {
  1506. Flength TCARD8
  1507. Fdata TCARD32Ptr
  1508. }
  1509. type T_ARRAY32 = TARRAY32
  1510. type TARRAY32Ptr = uintptr
  1511. type TARRAYofARRAY8 = struct {
  1512. Flength TCARD8
  1513. Fdata TARRAY8Ptr
  1514. }
  1515. type T_ARRAYofARRAY8 = TARRAYofARRAY8
  1516. type TARRAYofARRAY8Ptr = uintptr
  1517. type TXdmcpHeader = struct {
  1518. Fversion TCARD16
  1519. Fopcode TCARD16
  1520. Flength TCARD16
  1521. }
  1522. type T_XdmcpHeader = TXdmcpHeader
  1523. type TXdmcpHeaderPtr = uintptr
  1524. type TXdmcpBuffer = struct {
  1525. Fdata uintptr
  1526. Fsize int32
  1527. Fpointer int32
  1528. Fcount int32
  1529. }
  1530. type T_XdmcpBuffer = TXdmcpBuffer
  1531. type TXdmcpBufferPtr = uintptr
  1532. type TXdmAuthKeyRec = struct {
  1533. Fdata [8]TBYTE
  1534. }
  1535. type T_XdmAuthKey = TXdmAuthKeyRec
  1536. type TXdmAuthKeyPtr = uintptr
  1537. type TXdmcpNetaddr = uintptr
  1538. type Tint_least8_t = int8
  1539. type Tint_least16_t = int16
  1540. type Tint_least32_t = int32
  1541. type Tint_least64_t = int64
  1542. type Tuint_least8_t = uint8
  1543. type Tuint_least16_t = uint16
  1544. type Tuint_least32_t = uint32
  1545. type Tuint_least64_t = uint64
  1546. type Tint_fast8_t = int32
  1547. type Tint_fast16_t = int32
  1548. type Tint_fast32_t = int32
  1549. type Tint_fast64_t = int64
  1550. type Tuint_fast8_t = uint32
  1551. type Tuint_fast16_t = uint32
  1552. type Tuint_fast32_t = uint32
  1553. type Tuint_fast64_t = uint64
  1554. type Trune_t = int32
  1555. type Twchar_t = int32
  1556. type Tdiv_t = struct {
  1557. Fquot int32
  1558. Frem int32
  1559. }
  1560. type Tldiv_t = struct {
  1561. Fquot int64
  1562. Frem int64
  1563. }
  1564. type Tlldiv_t = struct {
  1565. Fquot int64
  1566. Frem int64
  1567. }
  1568. type Tconstraint_handler_t = uintptr
  1569. // C documentation
  1570. //
  1571. // /*
  1572. // * This variant of malloc does not return NULL if zero size is passed into.
  1573. // */
  1574. func _xmalloc(tls *libc.TLS, size Tsize_t) (r uintptr) {
  1575. var v1 uint64
  1576. _ = v1
  1577. if size != 0 {
  1578. v1 = size
  1579. } else {
  1580. v1 = uint64(1)
  1581. }
  1582. return libc.Xmalloc(tls, v1)
  1583. }
  1584. // C documentation
  1585. //
  1586. // /*
  1587. // * This variant of calloc does not return NULL if zero count is passed into.
  1588. // */
  1589. func _xcalloc(tls *libc.TLS, n Tsize_t, size Tsize_t) (r uintptr) {
  1590. var v1 uint64
  1591. _ = v1
  1592. if n != 0 {
  1593. v1 = n
  1594. } else {
  1595. v1 = uint64(1)
  1596. }
  1597. return libc.Xcalloc(tls, v1, size)
  1598. }
  1599. // C documentation
  1600. //
  1601. // /*
  1602. // * This variant of realloc does not return NULL if zero size is passed into
  1603. // */
  1604. func _xrealloc(tls *libc.TLS, ptr uintptr, size Tsize_t) (r uintptr) {
  1605. var v1 uint64
  1606. _ = v1
  1607. if size != 0 {
  1608. v1 = size
  1609. } else {
  1610. v1 = uint64(1)
  1611. }
  1612. return libc.Xrealloc(tls, ptr, v1)
  1613. }
  1614. func XXdmcpAllocARRAY8(tls *libc.TLS, array TARRAY8Ptr, length int32) (r int32) {
  1615. /* length defined in ARRAY8 struct is a CARD16 (not CARD8 like the rest) */
  1616. if length > int32(m_UINT16_MAX) || length < 0 {
  1617. (*T_ARRAY8)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  1618. } else {
  1619. (*T_ARRAY8)(unsafe.Pointer(array)).Fdata = _xmalloc(tls, libc.Uint64FromInt32(length)*uint64(1))
  1620. }
  1621. if (*T_ARRAY8)(unsafe.Pointer(array)).Fdata == libc.UintptrFromInt32(0) {
  1622. (*T_ARRAY8)(unsafe.Pointer(array)).Flength = uint16(0)
  1623. return m_FALSE
  1624. }
  1625. (*T_ARRAY8)(unsafe.Pointer(array)).Flength = libc.Uint16FromInt32(length)
  1626. return int32(m_TRUE)
  1627. }
  1628. func XXdmcpAllocARRAY16(tls *libc.TLS, array TARRAY16Ptr, length int32) (r int32) {
  1629. /* length defined in ARRAY16 struct is a CARD8 */
  1630. if length > int32(m_UINT8_MAX) || length < 0 {
  1631. (*T_ARRAY16)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  1632. } else {
  1633. (*T_ARRAY16)(unsafe.Pointer(array)).Fdata = _xmalloc(tls, libc.Uint64FromInt32(length)*uint64(2))
  1634. }
  1635. if (*T_ARRAY16)(unsafe.Pointer(array)).Fdata == libc.UintptrFromInt32(0) {
  1636. (*T_ARRAY16)(unsafe.Pointer(array)).Flength = uint8(0)
  1637. return m_FALSE
  1638. }
  1639. (*T_ARRAY16)(unsafe.Pointer(array)).Flength = libc.Uint8FromInt32(length)
  1640. return int32(m_TRUE)
  1641. }
  1642. func XXdmcpAllocARRAY32(tls *libc.TLS, array TARRAY32Ptr, length int32) (r int32) {
  1643. /* length defined in ARRAY32 struct is a CARD8 */
  1644. if length > int32(m_UINT8_MAX) || length < 0 {
  1645. (*T_ARRAY32)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  1646. } else {
  1647. (*T_ARRAY32)(unsafe.Pointer(array)).Fdata = _xmalloc(tls, libc.Uint64FromInt32(length)*uint64(4))
  1648. }
  1649. if (*T_ARRAY32)(unsafe.Pointer(array)).Fdata == libc.UintptrFromInt32(0) {
  1650. (*T_ARRAY32)(unsafe.Pointer(array)).Flength = uint8(0)
  1651. return m_FALSE
  1652. }
  1653. (*T_ARRAY32)(unsafe.Pointer(array)).Flength = libc.Uint8FromInt32(length)
  1654. return int32(m_TRUE)
  1655. }
  1656. func XXdmcpAllocARRAYofARRAY8(tls *libc.TLS, array TARRAYofARRAY8Ptr, length int32) (r int32) {
  1657. /* length defined in ARRAYofARRAY8 struct is a CARD8 */
  1658. if length > int32(m_UINT8_MAX) || length < 0 {
  1659. (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  1660. } else {
  1661. /*
  1662. * Use calloc to ensure the pointers are cleared out so we
  1663. * don't try to free garbage if XdmcpDisposeARRAYofARRAY8()
  1664. * is called before the caller sets them to valid pointers.
  1665. */
  1666. (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata = _xcalloc(tls, libc.Uint64FromInt32(length), uint64(16))
  1667. }
  1668. if (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata == libc.UintptrFromInt32(0) {
  1669. (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength = uint8(0)
  1670. return m_FALSE
  1671. }
  1672. (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength = libc.Uint8FromInt32(length)
  1673. return int32(m_TRUE)
  1674. }
  1675. func XXdmcpARRAY8Equal(tls *libc.TLS, array1 TARRAY8Ptr, array2 TARRAY8Ptr) (r int32) {
  1676. if libc.Int32FromUint16((*T_ARRAY8)(unsafe.Pointer(array1)).Flength) != libc.Int32FromUint16((*T_ARRAY8)(unsafe.Pointer(array2)).Flength) {
  1677. return m_FALSE
  1678. }
  1679. if libc.Xmemcmp(tls, (*T_ARRAY8)(unsafe.Pointer(array1)).Fdata, (*T_ARRAY8)(unsafe.Pointer(array2)).Fdata, uint64((*T_ARRAY8)(unsafe.Pointer(array1)).Flength)) != 0 {
  1680. return m_FALSE
  1681. }
  1682. return int32(m_TRUE)
  1683. }
  1684. func XXdmcpCopyARRAY8(tls *libc.TLS, src TARRAY8Ptr, dst TARRAY8Ptr) (r int32) {
  1685. if !(XXdmcpAllocARRAY8(tls, dst, libc.Int32FromUint16((*T_ARRAY8)(unsafe.Pointer(src)).Flength)) != 0) {
  1686. return m_FALSE
  1687. }
  1688. libc.Xmemcpy(tls, (*T_ARRAY8)(unsafe.Pointer(dst)).Fdata, (*T_ARRAY8)(unsafe.Pointer(src)).Fdata, uint64((*T_ARRAY8)(unsafe.Pointer(src)).Flength)*uint64(1))
  1689. return int32(m_TRUE)
  1690. }
  1691. func XXdmcpReallocARRAY8(tls *libc.TLS, array TARRAY8Ptr, length int32) (r int32) {
  1692. var newData TCARD8Ptr
  1693. _ = newData
  1694. /* length defined in ARRAY8 struct is a CARD16 (not CARD8 like the rest) */
  1695. if length > int32(m_UINT16_MAX) || length < 0 {
  1696. return m_FALSE
  1697. }
  1698. newData = _xrealloc(tls, (*T_ARRAY8)(unsafe.Pointer(array)).Fdata, libc.Uint64FromInt32(length)*uint64(1))
  1699. if !(newData != 0) {
  1700. return m_FALSE
  1701. }
  1702. (*T_ARRAY8)(unsafe.Pointer(array)).Flength = libc.Uint16FromInt32(length)
  1703. (*T_ARRAY8)(unsafe.Pointer(array)).Fdata = newData
  1704. return int32(m_TRUE)
  1705. }
  1706. func XXdmcpReallocARRAYofARRAY8(tls *libc.TLS, array TARRAYofARRAY8Ptr, length int32) (r int32) {
  1707. var newData TARRAY8Ptr
  1708. _ = newData
  1709. /* length defined in ARRAYofARRAY8 struct is a CARD8 */
  1710. if length > int32(m_UINT8_MAX) || length < 0 {
  1711. return m_FALSE
  1712. }
  1713. newData = _xrealloc(tls, (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata, libc.Uint64FromInt32(length)*uint64(16))
  1714. if !(newData != 0) {
  1715. return m_FALSE
  1716. }
  1717. if length > libc.Int32FromUint8((*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength) {
  1718. 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))
  1719. }
  1720. (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength = libc.Uint8FromInt32(length)
  1721. (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata = newData
  1722. return int32(m_TRUE)
  1723. }
  1724. func XXdmcpReallocARRAY16(tls *libc.TLS, array TARRAY16Ptr, length int32) (r int32) {
  1725. var newData TCARD16Ptr
  1726. _ = newData
  1727. /* length defined in ARRAY16 struct is a CARD8 */
  1728. if length > int32(m_UINT8_MAX) || length < 0 {
  1729. return m_FALSE
  1730. }
  1731. newData = _xrealloc(tls, (*T_ARRAY16)(unsafe.Pointer(array)).Fdata, libc.Uint64FromInt32(length)*uint64(2))
  1732. if !(newData != 0) {
  1733. return m_FALSE
  1734. }
  1735. (*T_ARRAY16)(unsafe.Pointer(array)).Flength = libc.Uint8FromInt32(length)
  1736. (*T_ARRAY16)(unsafe.Pointer(array)).Fdata = newData
  1737. return int32(m_TRUE)
  1738. }
  1739. func XXdmcpReallocARRAY32(tls *libc.TLS, array TARRAY32Ptr, length int32) (r int32) {
  1740. var newData TCARD32Ptr
  1741. _ = newData
  1742. /* length defined in ARRAY32 struct is a CARD8 */
  1743. if length > int32(m_UINT8_MAX) || length < 0 {
  1744. return m_FALSE
  1745. }
  1746. newData = _xrealloc(tls, (*T_ARRAY32)(unsafe.Pointer(array)).Fdata, libc.Uint64FromInt32(length)*uint64(4))
  1747. if !(newData != 0) {
  1748. return m_FALSE
  1749. }
  1750. (*T_ARRAY32)(unsafe.Pointer(array)).Flength = libc.Uint8FromInt32(length)
  1751. (*T_ARRAY32)(unsafe.Pointer(array)).Fdata = newData
  1752. return int32(m_TRUE)
  1753. }
  1754. func XXdmcpDisposeARRAY8(tls *libc.TLS, array TARRAY8Ptr) {
  1755. libc.Xfree(tls, (*T_ARRAY8)(unsafe.Pointer(array)).Fdata)
  1756. (*T_ARRAY8)(unsafe.Pointer(array)).Flength = uint16(0)
  1757. (*T_ARRAY8)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  1758. }
  1759. func XXdmcpDisposeARRAY16(tls *libc.TLS, array TARRAY16Ptr) {
  1760. libc.Xfree(tls, (*T_ARRAY16)(unsafe.Pointer(array)).Fdata)
  1761. (*T_ARRAY16)(unsafe.Pointer(array)).Flength = uint8(0)
  1762. (*T_ARRAY16)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  1763. }
  1764. func XXdmcpDisposeARRAY32(tls *libc.TLS, array TARRAY32Ptr) {
  1765. libc.Xfree(tls, (*T_ARRAY32)(unsafe.Pointer(array)).Fdata)
  1766. (*T_ARRAY32)(unsafe.Pointer(array)).Flength = uint8(0)
  1767. (*T_ARRAY32)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  1768. }
  1769. func XXdmcpDisposeARRAYofARRAY8(tls *libc.TLS, array TARRAYofARRAY8Ptr) {
  1770. var i uint32
  1771. _ = i
  1772. if (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata != libc.UintptrFromInt32(0) {
  1773. i = uint32(0)
  1774. for {
  1775. if !(i < uint32((*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength)) {
  1776. break
  1777. }
  1778. XXdmcpDisposeARRAY8(tls, (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata+uintptr(i)*16)
  1779. goto _1
  1780. _1:
  1781. ;
  1782. i++
  1783. }
  1784. libc.Xfree(tls, (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata)
  1785. }
  1786. (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength = uint8(0)
  1787. (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  1788. }
  1789. const m_AF_APPLETALK = 16
  1790. const m_AF_ARP = 35
  1791. const m_AF_ATM = 30
  1792. const m_AF_BLUETOOTH = 36
  1793. const m_AF_CCITT = 10
  1794. const m_AF_CHAOS = 5
  1795. const m_AF_CNT = 21
  1796. const m_AF_COIP = 20
  1797. const m_AF_DATAKIT = 9
  1798. const m_AF_DECnet = 12
  1799. const m_AF_DIVERT = 44
  1800. const m_AF_DLI = 13
  1801. const m_AF_E164 = "AF_ISDN"
  1802. const m_AF_ECMA = 8
  1803. const m_AF_HYLINK = 15
  1804. const m_AF_HYPERV = 43
  1805. const m_AF_IEEE80211 = 37
  1806. const m_AF_IMPLINK = 3
  1807. const m_AF_INET = 2
  1808. const m_AF_INET6 = 28
  1809. const m_AF_INET6_SDP = 42
  1810. const m_AF_INET_SDP = 40
  1811. const m_AF_IPX = 23
  1812. const m_AF_ISDN = 26
  1813. const m_AF_ISO = 7
  1814. const m_AF_LAT = 14
  1815. const m_AF_LINK = 18
  1816. const m_AF_LOCAL = "AF_UNIX"
  1817. const m_AF_MAX = 44
  1818. const m_AF_NATM = 29
  1819. const m_AF_NETBIOS = 6
  1820. const m_AF_NETGRAPH = 32
  1821. const m_AF_NETLINK = 38
  1822. const m_AF_OSI = "AF_ISO"
  1823. const m_AF_PUP = 4
  1824. const m_AF_ROUTE = 17
  1825. const m_AF_SCLUSTER = 34
  1826. const m_AF_SIP = 24
  1827. const m_AF_SLOW = 33
  1828. const m_AF_SNA = 11
  1829. const m_AF_UNIX = 1
  1830. const m_AF_UNSPEC = 0
  1831. const m_AF_VENDOR00 = 39
  1832. const m_AF_VENDOR01 = 41
  1833. const m_AF_VENDOR03 = 45
  1834. const m_AF_VENDOR04 = 47
  1835. const m_AF_VENDOR05 = 49
  1836. const m_AF_VENDOR06 = 51
  1837. const m_AF_VENDOR07 = 53
  1838. const m_AF_VENDOR08 = 55
  1839. const m_AF_VENDOR09 = 57
  1840. const m_AF_VENDOR10 = 59
  1841. const m_AF_VENDOR11 = 61
  1842. const m_AF_VENDOR12 = 63
  1843. const m_AF_VENDOR13 = 65
  1844. const m_AF_VENDOR14 = 67
  1845. const m_AF_VENDOR15 = 69
  1846. const m_AF_VENDOR16 = 71
  1847. const m_AF_VENDOR17 = 73
  1848. const m_AF_VENDOR18 = 75
  1849. const m_AF_VENDOR19 = 77
  1850. const m_AF_VENDOR20 = 79
  1851. const m_AF_VENDOR21 = 81
  1852. const m_AF_VENDOR22 = 83
  1853. const m_AF_VENDOR23 = 85
  1854. const m_AF_VENDOR24 = 87
  1855. const m_AF_VENDOR25 = 89
  1856. const m_AF_VENDOR26 = 91
  1857. const m_AF_VENDOR27 = 93
  1858. const m_AF_VENDOR28 = 95
  1859. const m_AF_VENDOR29 = 97
  1860. const m_AF_VENDOR30 = 99
  1861. const m_AF_VENDOR31 = 101
  1862. const m_AF_VENDOR32 = 103
  1863. const m_AF_VENDOR33 = 105
  1864. const m_AF_VENDOR34 = 107
  1865. const m_AF_VENDOR35 = 109
  1866. const m_AF_VENDOR36 = 111
  1867. const m_AF_VENDOR37 = 113
  1868. const m_AF_VENDOR38 = 115
  1869. const m_AF_VENDOR39 = 117
  1870. const m_AF_VENDOR40 = 119
  1871. const m_AF_VENDOR41 = 121
  1872. const m_AF_VENDOR42 = 123
  1873. const m_AF_VENDOR43 = 125
  1874. const m_AF_VENDOR44 = 127
  1875. const m_AF_VENDOR45 = 129
  1876. const m_AF_VENDOR46 = 131
  1877. const m_AF_VENDOR47 = 133
  1878. const m_CMGROUP_MAX = 16
  1879. const m_MSG_CMSG_CLOEXEC = 0x00040000
  1880. const m_MSG_COMPAT = 0x00008000
  1881. const m_MSG_CTRUNC = 0x00000020
  1882. const m_MSG_DONTROUTE = 0x00000004
  1883. const m_MSG_DONTWAIT = 0x00000080
  1884. const m_MSG_EOF = 0x00000100
  1885. const m_MSG_EOR = 0x00000008
  1886. const m_MSG_NBIO = 0x00004000
  1887. const m_MSG_NOSIGNAL = 0x00020000
  1888. const m_MSG_NOTIFICATION = 0x00002000
  1889. const m_MSG_OOB = 0x00000001
  1890. const m_MSG_PEEK = 0x00000002
  1891. const m_MSG_TRUNC = 0x00000010
  1892. const m_MSG_WAITALL = 0x00000040
  1893. const m_MSG_WAITFORONE = 0x00080000
  1894. const m_NET_RT_DUMP = 1
  1895. const m_NET_RT_FLAGS = 2
  1896. const m_NET_RT_IFLIST = 3
  1897. const m_NET_RT_IFLISTL = 5
  1898. const m_NET_RT_IFMALIST = 4
  1899. const m_NET_RT_NHGRP = 7
  1900. const m_NET_RT_NHOP = 6
  1901. const m_PF_APPLETALK = "AF_APPLETALK"
  1902. const m_PF_ARP = "AF_ARP"
  1903. const m_PF_ATM = "AF_ATM"
  1904. const m_PF_BLUETOOTH = "AF_BLUETOOTH"
  1905. const m_PF_CCITT = "AF_CCITT"
  1906. const m_PF_CHAOS = "AF_CHAOS"
  1907. const m_PF_CNT = "AF_CNT"
  1908. const m_PF_COIP = "AF_COIP"
  1909. const m_PF_DATAKIT = "AF_DATAKIT"
  1910. const m_PF_DECnet = "AF_DECnet"
  1911. const m_PF_DIVERT = "AF_DIVERT"
  1912. const m_PF_DLI = "AF_DLI"
  1913. const m_PF_ECMA = "AF_ECMA"
  1914. const m_PF_HYLINK = "AF_HYLINK"
  1915. const m_PF_IEEE80211 = "AF_IEEE80211"
  1916. const m_PF_IMPLINK = "AF_IMPLINK"
  1917. const m_PF_INET = "AF_INET"
  1918. const m_PF_INET6 = "AF_INET6"
  1919. const m_PF_INET6_SDP = "AF_INET6_SDP"
  1920. const m_PF_INET_SDP = "AF_INET_SDP"
  1921. const m_PF_IPX = "AF_IPX"
  1922. const m_PF_ISDN = "AF_ISDN"
  1923. const m_PF_ISO = "AF_ISO"
  1924. const m_PF_KEY = "pseudo_AF_KEY"
  1925. const m_PF_LAT = "AF_LAT"
  1926. const m_PF_LINK = "AF_LINK"
  1927. const m_PF_LOCAL = "AF_LOCAL"
  1928. const m_PF_MAX = "AF_MAX"
  1929. const m_PF_NATM = "AF_NATM"
  1930. const m_PF_NETBIOS = "AF_NETBIOS"
  1931. const m_PF_NETGRAPH = "AF_NETGRAPH"
  1932. const m_PF_NETLINK = "AF_NETLINK"
  1933. const m_PF_OSI = "AF_ISO"
  1934. const m_PF_PIP = "pseudo_AF_PIP"
  1935. const m_PF_PUP = "AF_PUP"
  1936. const m_PF_ROUTE = "AF_ROUTE"
  1937. const m_PF_RTIP = "pseudo_AF_RTIP"
  1938. const m_PF_SCLUSTER = "AF_SCLUSTER"
  1939. const m_PF_SIP = "AF_SIP"
  1940. const m_PF_SLOW = "AF_SLOW"
  1941. const m_PF_SNA = "AF_SNA"
  1942. const m_PF_UNIX = "PF_LOCAL"
  1943. const m_PF_UNSPEC = "AF_UNSPEC"
  1944. const m_PF_XTP = "pseudo_AF_XTP"
  1945. const m_PRU_FLUSH_RD = "SHUT_RD"
  1946. const m_PRU_FLUSH_RDWR = "SHUT_RDWR"
  1947. const m_PRU_FLUSH_WR = "SHUT_WR"
  1948. const m_SCM_BINTIME = 0x04
  1949. const m_SCM_CREDS = 0x03
  1950. const m_SCM_CREDS2 = 0x08
  1951. const m_SCM_MONOTONIC = 0x06
  1952. const m_SCM_REALTIME = 0x05
  1953. const m_SCM_RIGHTS = 0x01
  1954. const m_SCM_TIMESTAMP = 0x02
  1955. const m_SCM_TIME_INFO = 0x07
  1956. const m_SF_MNOWAIT = 0x00000002
  1957. const m_SF_NOCACHE = 0x00000010
  1958. const m_SF_NODISKIO = 0x00000001
  1959. const m_SF_SYNC = 0x00000004
  1960. const m_SF_USER_READAHEAD = 0x00000008
  1961. const m_SHUT_RD = 0
  1962. const m_SHUT_RDWR = 2
  1963. const m_SHUT_WR = 1
  1964. const m_SOCK_CLOEXEC = 0x10000000
  1965. const m_SOCK_DGRAM = 2
  1966. const m_SOCK_MAXADDRLEN = 255
  1967. const m_SOCK_NONBLOCK = 0x20000000
  1968. const m_SOCK_RAW = 3
  1969. const m_SOCK_RDM = 4
  1970. const m_SOCK_SEQPACKET = 5
  1971. const m_SOCK_STREAM = 1
  1972. const m_SOL_SOCKET = 0xffff
  1973. const m_SOMAXCONN = 128
  1974. const m_SO_ACCEPTCONN = 0x00000002
  1975. const m_SO_ACCEPTFILTER = 0x00001000
  1976. const m_SO_BINTIME = 0x00002000
  1977. const m_SO_BROADCAST = 0x00000020
  1978. const m_SO_DEBUG = 0x00000001
  1979. const m_SO_DOMAIN = 0x1019
  1980. const m_SO_DONTROUTE = 0x00000010
  1981. const m_SO_ERROR = 0x1007
  1982. const m_SO_KEEPALIVE = 0x00000008
  1983. const m_SO_LABEL = 0x1009
  1984. const m_SO_LINGER = 0x00000080
  1985. const m_SO_LISTENINCQLEN = 0x1013
  1986. const m_SO_LISTENQLEN = 0x1012
  1987. const m_SO_LISTENQLIMIT = 0x1011
  1988. const m_SO_MAX_PACING_RATE = 0x1018
  1989. const m_SO_NOSIGPIPE = 0x00000800
  1990. const m_SO_NO_DDP = 0x00008000
  1991. const m_SO_NO_OFFLOAD = 0x00004000
  1992. const m_SO_OOBINLINE = 0x00000100
  1993. const m_SO_PEERLABEL = 0x1010
  1994. const m_SO_PROTOCOL = 0x1016
  1995. const m_SO_PROTOTYPE = "SO_PROTOCOL"
  1996. const m_SO_RCVBUF = 0x1002
  1997. const m_SO_RCVLOWAT = 0x1004
  1998. const m_SO_RCVTIMEO = 0x1006
  1999. const m_SO_RERROR = 0x00020000
  2000. const m_SO_REUSEADDR = 0x00000004
  2001. const m_SO_REUSEPORT = 0x00000200
  2002. const m_SO_REUSEPORT_LB = 0x00010000
  2003. const m_SO_SETFIB = 0x1014
  2004. const m_SO_SNDBUF = 0x1001
  2005. const m_SO_SNDLOWAT = 0x1003
  2006. const m_SO_SNDTIMEO = 0x1005
  2007. const m_SO_SPLICE = 0x1023
  2008. const m_SO_TIMESTAMP = 0x00000400
  2009. const m_SO_TS_BINTIME = 1
  2010. const m_SO_TS_CLOCK = 0x1017
  2011. const m_SO_TS_CLOCK_MAX = "SO_TS_MONOTONIC"
  2012. const m_SO_TS_DEFAULT = "SO_TS_REALTIME_MICRO"
  2013. const m_SO_TS_MONOTONIC = 3
  2014. const m_SO_TS_REALTIME = 2
  2015. const m_SO_TS_REALTIME_MICRO = 0
  2016. const m_SO_TYPE = 0x1008
  2017. const m_SO_USELOOPBACK = 0x00000040
  2018. const m_SO_USER_COOKIE = 0x1015
  2019. const m_SO_VENDOR = 0x80000000
  2020. const m_ST_INFO_HW = 0x0001
  2021. const m_ST_INFO_HW_HPREC = 0x0002
  2022. const m__SS_MAXSIZE = 128
  2023. const m_pseudo_AF_HDRCMPLT = 31
  2024. const m_pseudo_AF_KEY = 27
  2025. const m_pseudo_AF_PIP = 25
  2026. const m_pseudo_AF_RTIP = 22
  2027. const m_pseudo_AF_XTP = 19
  2028. type Tiovec = struct {
  2029. Fiov_base uintptr
  2030. Fiov_len Tsize_t
  2031. }
  2032. type Tsa_family_t = uint8
  2033. type Tsocklen_t = uint32
  2034. type Tlinger = struct {
  2035. Fl_onoff int32
  2036. Fl_linger int32
  2037. }
  2038. type Taccept_filter_arg = struct {
  2039. Faf_name [16]int8
  2040. Faf_arg [240]int8
  2041. }
  2042. type Tsockaddr = struct {
  2043. Fsa_len uint8
  2044. Fsa_family Tsa_family_t
  2045. Fsa_data [14]int8
  2046. }
  2047. type Tsockproto = struct {
  2048. Fsp_family uint16
  2049. Fsp_protocol uint16
  2050. }
  2051. type Tsockaddr_storage = struct {
  2052. Fss_len uint8
  2053. Fss_family Tsa_family_t
  2054. F__ss_pad1 [6]int8
  2055. F__ss_align t__int64_t
  2056. F__ss_pad2 [112]int8
  2057. }
  2058. type Tmsghdr = struct {
  2059. Fmsg_name uintptr
  2060. Fmsg_namelen Tsocklen_t
  2061. Fmsg_iov uintptr
  2062. Fmsg_iovlen int32
  2063. Fmsg_control uintptr
  2064. Fmsg_controllen Tsocklen_t
  2065. Fmsg_flags int32
  2066. }
  2067. type Tcmsghdr = struct {
  2068. Fcmsg_len Tsocklen_t
  2069. Fcmsg_level int32
  2070. Fcmsg_type int32
  2071. }
  2072. type Tcmsgcred = struct {
  2073. Fcmcred_pid Tpid_t
  2074. Fcmcred_uid Tuid_t
  2075. Fcmcred_euid Tuid_t
  2076. Fcmcred_gid Tgid_t
  2077. Fcmcred_ngroups int16
  2078. Fcmcred_groups [16]Tgid_t
  2079. }
  2080. type Tsockcred = struct {
  2081. Fsc_uid Tuid_t
  2082. Fsc_euid Tuid_t
  2083. Fsc_gid Tgid_t
  2084. Fsc_egid Tgid_t
  2085. Fsc_ngroups int32
  2086. Fsc_groups [1]Tgid_t
  2087. }
  2088. type Tsockcred2 = struct {
  2089. Fsc_version int32
  2090. Fsc_pid Tpid_t
  2091. Fsc_uid Tuid_t
  2092. Fsc_euid Tuid_t
  2093. Fsc_gid Tgid_t
  2094. Fsc_egid Tgid_t
  2095. Fsc_ngroups int32
  2096. Fsc_groups [1]Tgid_t
  2097. }
  2098. type Tsock_timestamp_info = struct {
  2099. Fst_info_flags t__uint32_t
  2100. Fst_info_pad0 t__uint32_t
  2101. Fst_info_rsv [7]t__uint64_t
  2102. }
  2103. type Tosockaddr = struct {
  2104. Fsa_family uint16
  2105. Fsa_data [14]int8
  2106. }
  2107. type Tomsghdr = struct {
  2108. Fmsg_name uintptr
  2109. Fmsg_namelen int32
  2110. Fmsg_iov uintptr
  2111. Fmsg_iovlen int32
  2112. Fmsg_accrights uintptr
  2113. Fmsg_accrightslen int32
  2114. }
  2115. type Tsf_hdtr = struct {
  2116. Fheaders uintptr
  2117. Fhdr_cnt int32
  2118. Ftrailers uintptr
  2119. Ftrl_cnt int32
  2120. }
  2121. type Tmmsghdr = struct {
  2122. Fmsg_hdr Tmsghdr
  2123. Fmsg_len Tssize_t
  2124. }
  2125. type Tsplice = struct {
  2126. Fsp_fd int32
  2127. Fsp_max Toff_t
  2128. Fsp_idle Ttimeval
  2129. }
  2130. func XXdmcpFill(tls *libc.TLS, fd int32, buffer TXdmcpBufferPtr, from TXdmcpNetaddr, fromlen uintptr) (r int32) {
  2131. var newBuf uintptr
  2132. _ = newBuf
  2133. if (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fsize < int32(m_XDM_MAX_MSGLEN) {
  2134. newBuf = libc.Xmalloc(tls, uint64(m_XDM_MAX_MSGLEN))
  2135. if newBuf != 0 {
  2136. libc.Xfree(tls, (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fdata)
  2137. (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fdata = newBuf
  2138. (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fsize = int32(m_XDM_MAX_MSGLEN)
  2139. }
  2140. }
  2141. (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fpointer = 0
  2142. (*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))
  2143. if (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fcount < int32(6) {
  2144. (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fcount = 0
  2145. return m_FALSE
  2146. }
  2147. return int32(m_TRUE)
  2148. }
  2149. func XXdmcpFlush(tls *libc.TLS, fd int32, buffer TXdmcpBufferPtr, to TXdmcpNetaddr, tolen int32) (r int32) {
  2150. var result int32
  2151. _ = result
  2152. 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)))
  2153. if result != (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fpointer {
  2154. return m_FALSE
  2155. }
  2156. return int32(m_TRUE)
  2157. }
  2158. const m_Time_t = "time_t"
  2159. const m_random = "lrand48"
  2160. const m_srandom = "srand48"
  2161. func XXdmcpGenerateKey(tls *libc.TLS, key TXdmAuthKeyPtr) {
  2162. _arc4random_buf(tls, key, libc.Uint64FromInt32(8))
  2163. }
  2164. func XXdmcpCompareKeys(tls *libc.TLS, a TXdmAuthKeyPtr, b TXdmAuthKeyPtr) (r int32) {
  2165. var i int32
  2166. _ = i
  2167. i = 0
  2168. for {
  2169. if !(i < int32(8)) {
  2170. break
  2171. }
  2172. if libc.Int32FromUint8(*(*TBYTE)(unsafe.Pointer(a + uintptr(i)))) != libc.Int32FromUint8(*(*TBYTE)(unsafe.Pointer(b + uintptr(i)))) {
  2173. return m_FALSE
  2174. }
  2175. goto _1
  2176. _1:
  2177. ;
  2178. i++
  2179. }
  2180. return int32(m_TRUE)
  2181. }
  2182. func XXdmcpIncrementKey(tls *libc.TLS, key TXdmAuthKeyPtr) {
  2183. var i, v3 int32
  2184. var v1 TBYTE
  2185. var v2 uintptr
  2186. _, _, _, _ = i, v1, v2, v3
  2187. i = int32(7)
  2188. for {
  2189. v2 = key + uintptr(i)
  2190. *(*TBYTE)(unsafe.Pointer(v2))++
  2191. v1 = *(*TBYTE)(unsafe.Pointer(v2))
  2192. if !(libc.Int32FromUint8(v1) == 0) {
  2193. break
  2194. }
  2195. i--
  2196. v3 = i
  2197. if v3 < 0 {
  2198. break
  2199. }
  2200. }
  2201. }
  2202. func XXdmcpDecrementKey(tls *libc.TLS, key TXdmAuthKeyPtr) {
  2203. var i, v3 int32
  2204. var v1 TBYTE
  2205. var v2 uintptr
  2206. _, _, _, _ = i, v1, v2, v3
  2207. i = int32(7)
  2208. for {
  2209. v2 = key + uintptr(i)
  2210. v1 = *(*TBYTE)(unsafe.Pointer(v2))
  2211. *(*TBYTE)(unsafe.Pointer(v2))--
  2212. if !(libc.Int32FromUint8(v1) == 0) {
  2213. break
  2214. }
  2215. i--
  2216. v3 = i
  2217. if v3 < 0 {
  2218. break
  2219. }
  2220. }
  2221. }
  2222. func XXdmcpReadHeader(tls *libc.TLS, buffer TXdmcpBufferPtr, header TXdmcpHeaderPtr) (r int32) {
  2223. if XXdmcpReadCARD16(tls, buffer, header) != 0 && XXdmcpReadCARD16(tls, buffer, header+2) != 0 && XXdmcpReadCARD16(tls, buffer, header+4) != 0 {
  2224. return int32(m_TRUE)
  2225. }
  2226. return m_FALSE
  2227. }
  2228. func XXdmcpReadRemaining(tls *libc.TLS, buffer TXdmcpBufferPtr) (r int32) {
  2229. return (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fcount - (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fpointer
  2230. }
  2231. func XXdmcpReadARRAY8(tls *libc.TLS, buffer TXdmcpBufferPtr, array TARRAY8Ptr) (r int32) {
  2232. var i int32
  2233. _ = i
  2234. /*
  2235. * When returning FALSE, guarantee that array->data = 0.
  2236. * This allows the user to safely call XdmcpDisposeARRAY8(array)
  2237. * regardless of the return value below.
  2238. * Note that XdmcpDisposeARRAY*(array) will call free(array->data),
  2239. * so we must guarantee that array->data is NULL or a malloced pointer.
  2240. */
  2241. if !(XXdmcpReadCARD16(tls, buffer, array) != 0) {
  2242. (*T_ARRAY8)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  2243. return m_FALSE
  2244. }
  2245. if !((*T_ARRAY8)(unsafe.Pointer(array)).Flength != 0) {
  2246. (*T_ARRAY8)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  2247. return int32(m_TRUE)
  2248. }
  2249. (*T_ARRAY8)(unsafe.Pointer(array)).Fdata = libc.Xmalloc(tls, uint64((*T_ARRAY8)(unsafe.Pointer(array)).Flength)*uint64(1))
  2250. if !((*T_ARRAY8)(unsafe.Pointer(array)).Fdata != 0) {
  2251. return m_FALSE
  2252. }
  2253. i = 0
  2254. for {
  2255. if !(i < libc.Int32FromUint16((*T_ARRAY8)(unsafe.Pointer(array)).Flength)) {
  2256. break
  2257. }
  2258. if !(XXdmcpReadCARD8(tls, buffer, (*T_ARRAY8)(unsafe.Pointer(array)).Fdata+uintptr(i)) != 0) {
  2259. libc.Xfree(tls, (*T_ARRAY8)(unsafe.Pointer(array)).Fdata)
  2260. (*T_ARRAY8)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  2261. (*T_ARRAY8)(unsafe.Pointer(array)).Flength = uint16(0)
  2262. return m_FALSE
  2263. }
  2264. goto _1
  2265. _1:
  2266. ;
  2267. i++
  2268. }
  2269. return int32(m_TRUE)
  2270. }
  2271. func XXdmcpReadARRAY16(tls *libc.TLS, buffer TXdmcpBufferPtr, array TARRAY16Ptr) (r int32) {
  2272. var i int32
  2273. _ = i
  2274. /*
  2275. * When returning FALSE, guarantee that array->data = 0.
  2276. * This allows the user to safely call XdmcpDisposeARRAY16(array)
  2277. * regardless of the return value below.
  2278. * Note that XdmcpDisposeARRAY*(array) will call free(array->data),
  2279. * so we must guarantee that array->data is NULL or a malloced pointer.
  2280. */
  2281. if !(XXdmcpReadCARD8(tls, buffer, array) != 0) {
  2282. (*T_ARRAY16)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  2283. return m_FALSE
  2284. }
  2285. if !((*T_ARRAY16)(unsafe.Pointer(array)).Flength != 0) {
  2286. (*T_ARRAY16)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  2287. return int32(m_TRUE)
  2288. }
  2289. (*T_ARRAY16)(unsafe.Pointer(array)).Fdata = libc.Xmalloc(tls, uint64((*T_ARRAY16)(unsafe.Pointer(array)).Flength)*uint64(2))
  2290. if !((*T_ARRAY16)(unsafe.Pointer(array)).Fdata != 0) {
  2291. return m_FALSE
  2292. }
  2293. i = 0
  2294. for {
  2295. if !(i < libc.Int32FromUint8((*T_ARRAY16)(unsafe.Pointer(array)).Flength)) {
  2296. break
  2297. }
  2298. if !(XXdmcpReadCARD16(tls, buffer, (*T_ARRAY16)(unsafe.Pointer(array)).Fdata+uintptr(i)*2) != 0) {
  2299. libc.Xfree(tls, (*T_ARRAY16)(unsafe.Pointer(array)).Fdata)
  2300. (*T_ARRAY16)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  2301. (*T_ARRAY16)(unsafe.Pointer(array)).Flength = uint8(0)
  2302. return m_FALSE
  2303. }
  2304. goto _1
  2305. _1:
  2306. ;
  2307. i++
  2308. }
  2309. return int32(m_TRUE)
  2310. }
  2311. func XXdmcpReadARRAY32(tls *libc.TLS, buffer TXdmcpBufferPtr, array TARRAY32Ptr) (r int32) {
  2312. var i int32
  2313. _ = i
  2314. /*
  2315. * When returning FALSE, guarantee that array->data = 0.
  2316. * This allows the user to safely call XdmcpDisposeARRAY32(array)
  2317. * regardless of the return value below.
  2318. * Note that XdmcpDisposeARRAY*(array) will call free(array->data),
  2319. * so we must guarantee that array->data is NULL or a malloced pointer.
  2320. */
  2321. if !(XXdmcpReadCARD8(tls, buffer, array) != 0) {
  2322. (*T_ARRAY32)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  2323. return m_FALSE
  2324. }
  2325. if !((*T_ARRAY32)(unsafe.Pointer(array)).Flength != 0) {
  2326. (*T_ARRAY32)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  2327. return int32(m_TRUE)
  2328. }
  2329. (*T_ARRAY32)(unsafe.Pointer(array)).Fdata = libc.Xmalloc(tls, uint64((*T_ARRAY32)(unsafe.Pointer(array)).Flength)*uint64(4))
  2330. if !((*T_ARRAY32)(unsafe.Pointer(array)).Fdata != 0) {
  2331. return m_FALSE
  2332. }
  2333. i = 0
  2334. for {
  2335. if !(i < libc.Int32FromUint8((*T_ARRAY32)(unsafe.Pointer(array)).Flength)) {
  2336. break
  2337. }
  2338. if !(XXdmcpReadCARD32(tls, buffer, (*T_ARRAY32)(unsafe.Pointer(array)).Fdata+uintptr(i)*4) != 0) {
  2339. libc.Xfree(tls, (*T_ARRAY32)(unsafe.Pointer(array)).Fdata)
  2340. (*T_ARRAY32)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  2341. (*T_ARRAY32)(unsafe.Pointer(array)).Flength = uint8(0)
  2342. return m_FALSE
  2343. }
  2344. goto _1
  2345. _1:
  2346. ;
  2347. i++
  2348. }
  2349. return int32(m_TRUE)
  2350. }
  2351. func XXdmcpReadARRAYofARRAY8(tls *libc.TLS, buffer TXdmcpBufferPtr, array TARRAYofARRAY8Ptr) (r int32) {
  2352. var i TCARD8
  2353. _ = i
  2354. /*
  2355. * When returning FALSE, guarantee that array->data = 0.
  2356. * This allows the user to safely call XdmcpDisposeARRAYofARRAY8(array)
  2357. * regardless of the return value below.
  2358. * Note that XdmcpDisposeARRAY*(array) will call free(array->data),
  2359. * so we must guarantee that array->data is NULL or a malloced pointer.
  2360. */
  2361. if !(XXdmcpReadCARD8(tls, buffer, array) != 0) {
  2362. (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  2363. return m_FALSE
  2364. }
  2365. if !((*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength != 0) {
  2366. (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  2367. return int32(m_TRUE)
  2368. }
  2369. (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata = libc.Xmalloc(tls, uint64((*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength)*uint64(16))
  2370. if !((*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata != 0) {
  2371. return m_FALSE
  2372. }
  2373. i = uint8(0)
  2374. for {
  2375. if !(libc.Int32FromUint8(i) < libc.Int32FromUint8((*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength)) {
  2376. break
  2377. }
  2378. if !(XXdmcpReadARRAY8(tls, buffer, (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata+uintptr(i)*16) != 0) {
  2379. /*
  2380. * We must free all of the arrays allocated thus far in the loop
  2381. * and free array->data and finally set array->data = 0;
  2382. * The easiest way to do this is to reset the length and call
  2383. * XdmcpDisposeARRAYofARRAY8(array).
  2384. */
  2385. (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength = i
  2386. XXdmcpDisposeARRAYofARRAY8(tls, array)
  2387. return m_FALSE
  2388. }
  2389. goto _1
  2390. _1:
  2391. ;
  2392. i++
  2393. }
  2394. return int32(m_TRUE)
  2395. }
  2396. func XXdmcpReadCARD8(tls *libc.TLS, buffer TXdmcpBufferPtr, valuep TCARD8Ptr) (r int32) {
  2397. var v1 int32
  2398. var v2 uintptr
  2399. _, _ = v1, v2
  2400. if (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fpointer >= (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fcount {
  2401. return m_FALSE
  2402. }
  2403. v2 = buffer + 12
  2404. v1 = *(*int32)(unsafe.Pointer(v2))
  2405. *(*int32)(unsafe.Pointer(v2))++
  2406. *(*TCARD8)(unsafe.Pointer(valuep)) = *(*TBYTE)(unsafe.Pointer((*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fdata + uintptr(v1)))
  2407. return int32(m_TRUE)
  2408. }
  2409. func XXdmcpReadCARD16(tls *libc.TLS, buffer TXdmcpBufferPtr, valuep TCARD16Ptr) (r int32) {
  2410. bp := tls.Alloc(16)
  2411. defer tls.Free(16)
  2412. var _ /* high at bp+0 */ TCARD8
  2413. var _ /* low at bp+1 */ TCARD8
  2414. if XXdmcpReadCARD8(tls, buffer, bp) != 0 && XXdmcpReadCARD8(tls, buffer, bp+1) != 0 {
  2415. *(*TCARD16)(unsafe.Pointer(valuep)) = libc.Uint16FromInt32(libc.Int32FromUint16(uint16(*(*TCARD8)(unsafe.Pointer(bp))))<<int32(8) | libc.Int32FromUint16(uint16(*(*TCARD8)(unsafe.Pointer(bp + 1)))))
  2416. return int32(m_TRUE)
  2417. }
  2418. return m_FALSE
  2419. }
  2420. func XXdmcpReadCARD32(tls *libc.TLS, buffer TXdmcpBufferPtr, valuep TCARD32Ptr) (r int32) {
  2421. bp := tls.Alloc(16)
  2422. defer tls.Free(16)
  2423. var _ /* byte0 at bp+0 */ TCARD8
  2424. var _ /* byte1 at bp+1 */ TCARD8
  2425. var _ /* byte2 at bp+2 */ TCARD8
  2426. var _ /* byte3 at bp+3 */ TCARD8
  2427. if XXdmcpReadCARD8(tls, buffer, bp) != 0 && XXdmcpReadCARD8(tls, buffer, bp+1) != 0 && XXdmcpReadCARD8(tls, buffer, bp+2) != 0 && XXdmcpReadCARD8(tls, buffer, bp+3) != 0 {
  2428. *(*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)))
  2429. return int32(m_TRUE)
  2430. }
  2431. return m_FALSE
  2432. }
  2433. type Tauth_cblock = [8]uint8
  2434. type Tauth_wrapper_schedule = [16]Tauth_ks_struct
  2435. type Tauth_ks_struct = struct {
  2436. F_1 Tauth_cblock
  2437. }
  2438. func XXdmcpUnwrap(tls *libc.TLS, input uintptr, wrapper uintptr, output uintptr, bytes int32) {
  2439. bp := tls.Alloc(160)
  2440. defer tls.Free(160)
  2441. var i, j, k, v3 int32
  2442. var _ /* blocks at bp+8 */ [2][8]uint8
  2443. var _ /* expand_wrapper at bp+24 */ [8]uint8
  2444. var _ /* schedule at bp+32 */ Tauth_wrapper_schedule
  2445. var _ /* tmp at bp+0 */ [8]uint8
  2446. _, _, _, _ = i, j, k, v3
  2447. X_XdmcpWrapperToOddParity(tls, wrapper, bp+24)
  2448. X_XdmcpAuthSetup(tls, bp+24, bp+32)
  2449. k = 0
  2450. j = 0
  2451. for {
  2452. if !(j < bytes) {
  2453. break
  2454. }
  2455. if bytes-j < int32(8) {
  2456. return
  2457. } /* bad input length */
  2458. i = 0
  2459. for {
  2460. if !(i < int32(8)) {
  2461. break
  2462. }
  2463. *(*uint8)(unsafe.Pointer(bp + 8 + uintptr(k)*8 + uintptr(i))) = *(*uint8)(unsafe.Pointer(input + uintptr(j+i)))
  2464. goto _2
  2465. _2:
  2466. ;
  2467. i++
  2468. }
  2469. X_XdmcpAuthDoIt(tls, input+uintptr(j), bp, bp+32, 0)
  2470. /* block chaining */
  2471. if k == 0 {
  2472. v3 = int32(1)
  2473. } else {
  2474. v3 = 0
  2475. }
  2476. k = v3
  2477. i = 0
  2478. for {
  2479. if !(i < int32(8)) {
  2480. break
  2481. }
  2482. if j == 0 {
  2483. *(*uint8)(unsafe.Pointer(output + uintptr(j+i))) = (*(*[8]uint8)(unsafe.Pointer(bp)))[i]
  2484. } else {
  2485. *(*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)))))
  2486. }
  2487. goto _4
  2488. _4:
  2489. ;
  2490. i++
  2491. }
  2492. goto _1
  2493. _1:
  2494. ;
  2495. j += int32(8)
  2496. }
  2497. }
  2498. func XXdmcpWrap(tls *libc.TLS, input uintptr, wrapper uintptr, output uintptr, bytes int32) {
  2499. bp := tls.Alloc(144)
  2500. defer tls.Free(144)
  2501. var i, j, len1 int32
  2502. var _ /* expand_wrapper at bp+8 */ [8]uint8
  2503. var _ /* schedule at bp+16 */ Tauth_wrapper_schedule
  2504. var _ /* tmp at bp+0 */ [8]uint8
  2505. _, _, _ = i, j, len1
  2506. X_XdmcpWrapperToOddParity(tls, wrapper, bp+8)
  2507. X_XdmcpAuthSetup(tls, bp+8, bp+16)
  2508. j = 0
  2509. for {
  2510. if !(j < bytes) {
  2511. break
  2512. }
  2513. len1 = int32(8)
  2514. if bytes-j < len1 {
  2515. len1 = bytes - j
  2516. }
  2517. /* block chaining */
  2518. i = 0
  2519. for {
  2520. if !(i < len1) {
  2521. break
  2522. }
  2523. if j == 0 {
  2524. (*(*[8]uint8)(unsafe.Pointer(bp)))[i] = *(*uint8)(unsafe.Pointer(input + uintptr(i)))
  2525. } else {
  2526. (*(*[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)))))
  2527. }
  2528. goto _2
  2529. _2:
  2530. ;
  2531. i++
  2532. }
  2533. for {
  2534. if !(i < int32(8)) {
  2535. break
  2536. }
  2537. if j == 0 {
  2538. (*(*[8]uint8)(unsafe.Pointer(bp)))[i] = uint8(0)
  2539. } else {
  2540. (*(*[8]uint8)(unsafe.Pointer(bp)))[i] = libc.Uint8FromInt32(0 ^ libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(output + uintptr(j-int32(8)+i)))))
  2541. }
  2542. goto _3
  2543. _3:
  2544. ;
  2545. i++
  2546. }
  2547. X_XdmcpAuthDoIt(tls, bp, output+uintptr(j), bp+16, int32(1))
  2548. goto _1
  2549. _1:
  2550. ;
  2551. j += int32(8)
  2552. }
  2553. }
  2554. /*
  2555. * Given a 56 bit wrapper in XDMCP format, create a 56
  2556. * bit wrapper in 7-bits + odd parity format
  2557. */
  2558. func _OddParity(tls *libc.TLS, c uint8) (r int32) {
  2559. c = libc.Uint8FromInt32(libc.Int32FromUint8(c) ^ libc.Int32FromUint8(c)>>int32(4))
  2560. c = libc.Uint8FromInt32(libc.Int32FromUint8(c) ^ libc.Int32FromUint8(c)>>int32(2))
  2561. c = libc.Uint8FromInt32(libc.Int32FromUint8(c) ^ libc.Int32FromUint8(c)>>int32(1))
  2562. return ^libc.Int32FromUint8(c) & int32(0x1)
  2563. }
  2564. /*
  2565. * Spread the 56 bit wrapper among 8 bytes, using the upper 7 bits
  2566. * of each byte, and storing an odd parity bit in the low bit
  2567. */
  2568. func X_XdmcpWrapperToOddParity(tls *libc.TLS, in uintptr, out uintptr) {
  2569. var ashift, bshift, i int32
  2570. var c uint8
  2571. _, _, _, _ = ashift, bshift, c, i
  2572. ashift = int32(7)
  2573. bshift = int32(1)
  2574. i = 0
  2575. for {
  2576. if !(i < int32(7)) {
  2577. break
  2578. }
  2579. 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))
  2580. *(*uint8)(unsafe.Pointer(out + uintptr(i))) = libc.Uint8FromInt32(libc.Int32FromUint8(c)<<int32(1) | _OddParity(tls, c))
  2581. ashift--
  2582. bshift++
  2583. goto _1
  2584. _1:
  2585. ;
  2586. i++
  2587. }
  2588. c = *(*uint8)(unsafe.Pointer(in + uintptr(i)))
  2589. *(*uint8)(unsafe.Pointer(out + uintptr(i))) = libc.Uint8FromInt32(libc.Int32FromUint8(c)<<int32(1) | _OddParity(tls, c))
  2590. }
  2591. func XXdmcpWriteHeader(tls *libc.TLS, buffer TXdmcpBufferPtr, header TXdmcpHeaderPtr) (r int32) {
  2592. var newData uintptr
  2593. _ = newData
  2594. if (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fsize < int32(6)+libc.Int32FromUint16((*T_XdmcpHeader)(unsafe.Pointer(header)).Flength) {
  2595. newData = libc.Xcalloc(tls, uint64(m_XDM_MAX_MSGLEN), uint64(1))
  2596. if !(newData != 0) {
  2597. return m_FALSE
  2598. }
  2599. libc.Xfree(tls, (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fdata)
  2600. (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fdata = newData
  2601. (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fsize = int32(m_XDM_MAX_MSGLEN)
  2602. }
  2603. (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fpointer = 0
  2604. if !(XXdmcpWriteCARD16(tls, buffer, uint32((*T_XdmcpHeader)(unsafe.Pointer(header)).Fversion)) != 0) {
  2605. return m_FALSE
  2606. }
  2607. if !(XXdmcpWriteCARD16(tls, buffer, uint32((*T_XdmcpHeader)(unsafe.Pointer(header)).Fopcode)) != 0) {
  2608. return m_FALSE
  2609. }
  2610. if !(XXdmcpWriteCARD16(tls, buffer, uint32((*T_XdmcpHeader)(unsafe.Pointer(header)).Flength)) != 0) {
  2611. return m_FALSE
  2612. }
  2613. return int32(m_TRUE)
  2614. }
  2615. func XXdmcpWriteARRAY8(tls *libc.TLS, buffer TXdmcpBufferPtr, array TARRAY8Ptr) (r int32) {
  2616. var i int32
  2617. _ = i
  2618. if !(XXdmcpWriteCARD16(tls, buffer, uint32((*T_ARRAY8)(unsafe.Pointer(array)).Flength)) != 0) {
  2619. return m_FALSE
  2620. }
  2621. i = 0
  2622. for {
  2623. if !(i < libc.Int32FromUint16((*T_ARRAY8)(unsafe.Pointer(array)).Flength)) {
  2624. break
  2625. }
  2626. if !(XXdmcpWriteCARD8(tls, buffer, uint32(*(*TCARD8)(unsafe.Pointer((*T_ARRAY8)(unsafe.Pointer(array)).Fdata + uintptr(i))))) != 0) {
  2627. return m_FALSE
  2628. }
  2629. goto _1
  2630. _1:
  2631. ;
  2632. i++
  2633. }
  2634. return int32(m_TRUE)
  2635. }
  2636. func XXdmcpWriteARRAY16(tls *libc.TLS, buffer TXdmcpBufferPtr, array TARRAY16Ptr) (r int32) {
  2637. var i int32
  2638. _ = i
  2639. if !(XXdmcpWriteCARD8(tls, buffer, uint32((*T_ARRAY16)(unsafe.Pointer(array)).Flength)) != 0) {
  2640. return m_FALSE
  2641. }
  2642. i = 0
  2643. for {
  2644. if !(i < libc.Int32FromUint8((*T_ARRAY16)(unsafe.Pointer(array)).Flength)) {
  2645. break
  2646. }
  2647. if !(XXdmcpWriteCARD16(tls, buffer, uint32(*(*TCARD16)(unsafe.Pointer((*T_ARRAY16)(unsafe.Pointer(array)).Fdata + uintptr(i)*2)))) != 0) {
  2648. return m_FALSE
  2649. }
  2650. goto _1
  2651. _1:
  2652. ;
  2653. i++
  2654. }
  2655. return int32(m_TRUE)
  2656. }
  2657. func XXdmcpWriteARRAY32(tls *libc.TLS, buffer TXdmcpBufferPtr, array TARRAY32Ptr) (r int32) {
  2658. var i int32
  2659. _ = i
  2660. if !(XXdmcpWriteCARD8(tls, buffer, uint32((*T_ARRAY32)(unsafe.Pointer(array)).Flength)) != 0) {
  2661. return m_FALSE
  2662. }
  2663. i = 0
  2664. for {
  2665. if !(i < libc.Int32FromUint8((*T_ARRAY32)(unsafe.Pointer(array)).Flength)) {
  2666. break
  2667. }
  2668. if !(XXdmcpWriteCARD32(tls, buffer, *(*TCARD32)(unsafe.Pointer((*T_ARRAY32)(unsafe.Pointer(array)).Fdata + uintptr(i)*4))) != 0) {
  2669. return m_FALSE
  2670. }
  2671. goto _1
  2672. _1:
  2673. ;
  2674. i++
  2675. }
  2676. return int32(m_TRUE)
  2677. }
  2678. func XXdmcpWriteARRAYofARRAY8(tls *libc.TLS, buffer TXdmcpBufferPtr, array TARRAYofARRAY8Ptr) (r int32) {
  2679. var i int32
  2680. _ = i
  2681. if !(XXdmcpWriteCARD8(tls, buffer, uint32((*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength)) != 0) {
  2682. return m_FALSE
  2683. }
  2684. i = 0
  2685. for {
  2686. if !(i < libc.Int32FromUint8((*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength)) {
  2687. break
  2688. }
  2689. if !(XXdmcpWriteARRAY8(tls, buffer, (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata+uintptr(i)*16) != 0) {
  2690. return m_FALSE
  2691. }
  2692. goto _1
  2693. _1:
  2694. ;
  2695. i++
  2696. }
  2697. return int32(m_TRUE)
  2698. }
  2699. func XXdmcpWriteCARD8(tls *libc.TLS, buffer TXdmcpBufferPtr, value uint32) (r int32) {
  2700. var v1 int32
  2701. var v2 uintptr
  2702. _, _ = v1, v2
  2703. if (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fpointer >= (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fsize {
  2704. return m_FALSE
  2705. }
  2706. v2 = buffer + 12
  2707. v1 = *(*int32)(unsafe.Pointer(v2))
  2708. *(*int32)(unsafe.Pointer(v2))++
  2709. *(*TBYTE)(unsafe.Pointer((*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fdata + uintptr(v1))) = uint8(value)
  2710. return int32(m_TRUE)
  2711. }
  2712. func XXdmcpWriteCARD16(tls *libc.TLS, buffer TXdmcpBufferPtr, value uint32) (r int32) {
  2713. if !(XXdmcpWriteCARD8(tls, buffer, value>>int32(8)) != 0) {
  2714. return m_FALSE
  2715. }
  2716. if !(XXdmcpWriteCARD8(tls, buffer, value&uint32(0xff)) != 0) {
  2717. return m_FALSE
  2718. }
  2719. return int32(m_TRUE)
  2720. }
  2721. func XXdmcpWriteCARD32(tls *libc.TLS, buffer TXdmcpBufferPtr, value uint32) (r int32) {
  2722. if !(XXdmcpWriteCARD8(tls, buffer, value>>int32(24)) != 0) {
  2723. return m_FALSE
  2724. }
  2725. if !(XXdmcpWriteCARD8(tls, buffer, value>>int32(16)&uint32(0xff)) != 0) {
  2726. return m_FALSE
  2727. }
  2728. if !(XXdmcpWriteCARD8(tls, buffer, value>>int32(8)&uint32(0xff)) != 0) {
  2729. return m_FALSE
  2730. }
  2731. if !(XXdmcpWriteCARD8(tls, buffer, value&uint32(0xff)) != 0) {
  2732. return m_FALSE
  2733. }
  2734. return int32(m_TRUE)
  2735. }
  2736. const m_HALF_ITERATIONS = 8
  2737. const m_ITERATIONS = 16
  2738. /* des routines for non-usa - eay 10/9/1991 eay@psych.psy.uq.oz.au
  2739. * These routines were written for speed not size so they are bigger than
  2740. * needed. I have removed some of the loop unrolling, this will reduce
  2741. * code size at the expense of some speed.
  2742. * 25/9/1991 eay - much faster _XdmcpAuthSetup (4 times faster).
  2743. * 19/9/1991 eay - cleaned up the IP and FP code.
  2744. * 10/9/1991 eay - first release.
  2745. * The des routines this file has been made from can be found in
  2746. * ftp.psy.uq.oz.au /pub/DES
  2747. * This particular version derived from OpenBSD Revision 1.3.
  2748. */
  2749. /*
  2750. *
  2751. * Export Requirements.
  2752. * You may not export or re-export this software or any copy or
  2753. * adaptation in violation of any applicable laws or regulations.
  2754. *
  2755. * Without limiting the generality of the foregoing, hardware, software,
  2756. * technology or services provided under this license agreement may not
  2757. * be exported, reexported, transferred or downloaded to or within (or to
  2758. * a national resident of) countries under U.S. economic embargo
  2759. * including the following countries:
  2760. *
  2761. * Cuba, Iran, Libya, North Korea, Sudan and Syria. This list is subject
  2762. * to change.
  2763. *
  2764. * Hardware, software, technology or services may not be exported,
  2765. * reexported, transferred or downloaded to persons or entities listed on
  2766. * the U.S. Department of Commerce Denied Persons List, Entity List of
  2767. * proliferation concern or on any U.S. Treasury Department Designated
  2768. * Nationals exclusion list, or to parties directly or indirectly
  2769. * involved in the development or production of nuclear, chemical,
  2770. * biological weapons or in missile technology programs as specified in
  2771. * the U.S. Export Administration Regulations (15 CFR 744).
  2772. *
  2773. * By accepting this license agreement you confirm that you are not
  2774. * located in (or a national resident of) any country under U.S. economic
  2775. * embargo, not identified on any U.S. Department of Commerce Denied
  2776. * Persons List, Entity List or Treasury Department Designated Nationals
  2777. * exclusion list, and not directly or indirectly involved in the
  2778. * development or production of nuclear, chemical, biological weapons or
  2779. * in missile technology programs as specified in the U.S. Export
  2780. * Administration Regulations.
  2781. *
  2782. *
  2783. * Local Country Import Requirements. The software you are about to
  2784. * download contains cryptography technology. Some countries regulate the
  2785. * import, use and/or export of certain products with cryptography. The
  2786. * X.org Foundation makes no claims as to the applicability of local
  2787. * country import, use and/or export regulations in relation to the
  2788. * download of this product. If you are located outside the U.S. and
  2789. * Canada you are advised to consult your local country regulations to
  2790. * insure compliance.
  2791. */
  2792. var _skb = [8][64]TCARD32{
  2793. 0: {
  2794. 1: uint32(0x00000010),
  2795. 2: uint32(0x20000000),
  2796. 3: uint32(0x20000010),
  2797. 4: uint32(0x00010000),
  2798. 5: uint32(0x00010010),
  2799. 6: uint32(0x20010000),
  2800. 7: uint32(0x20010010),
  2801. 8: uint32(0x00000800),
  2802. 9: uint32(0x00000810),
  2803. 10: uint32(0x20000800),
  2804. 11: uint32(0x20000810),
  2805. 12: uint32(0x00010800),
  2806. 13: uint32(0x00010810),
  2807. 14: uint32(0x20010800),
  2808. 15: uint32(0x20010810),
  2809. 16: uint32(0x00000020),
  2810. 17: uint32(0x00000030),
  2811. 18: uint32(0x20000020),
  2812. 19: uint32(0x20000030),
  2813. 20: uint32(0x00010020),
  2814. 21: uint32(0x00010030),
  2815. 22: uint32(0x20010020),
  2816. 23: uint32(0x20010030),
  2817. 24: uint32(0x00000820),
  2818. 25: uint32(0x00000830),
  2819. 26: uint32(0x20000820),
  2820. 27: uint32(0x20000830),
  2821. 28: uint32(0x00010820),
  2822. 29: uint32(0x00010830),
  2823. 30: uint32(0x20010820),
  2824. 31: uint32(0x20010830),
  2825. 32: uint32(0x00080000),
  2826. 33: uint32(0x00080010),
  2827. 34: uint32(0x20080000),
  2828. 35: uint32(0x20080010),
  2829. 36: uint32(0x00090000),
  2830. 37: uint32(0x00090010),
  2831. 38: uint32(0x20090000),
  2832. 39: uint32(0x20090010),
  2833. 40: uint32(0x00080800),
  2834. 41: uint32(0x00080810),
  2835. 42: uint32(0x20080800),
  2836. 43: uint32(0x20080810),
  2837. 44: uint32(0x00090800),
  2838. 45: uint32(0x00090810),
  2839. 46: uint32(0x20090800),
  2840. 47: uint32(0x20090810),
  2841. 48: uint32(0x00080020),
  2842. 49: uint32(0x00080030),
  2843. 50: uint32(0x20080020),
  2844. 51: uint32(0x20080030),
  2845. 52: uint32(0x00090020),
  2846. 53: uint32(0x00090030),
  2847. 54: uint32(0x20090020),
  2848. 55: uint32(0x20090030),
  2849. 56: uint32(0x00080820),
  2850. 57: uint32(0x00080830),
  2851. 58: uint32(0x20080820),
  2852. 59: uint32(0x20080830),
  2853. 60: uint32(0x00090820),
  2854. 61: uint32(0x00090830),
  2855. 62: uint32(0x20090820),
  2856. 63: uint32(0x20090830),
  2857. },
  2858. 1: {
  2859. 1: uint32(0x02000000),
  2860. 2: uint32(0x00002000),
  2861. 3: uint32(0x02002000),
  2862. 4: uint32(0x00200000),
  2863. 5: uint32(0x02200000),
  2864. 6: uint32(0x00202000),
  2865. 7: uint32(0x02202000),
  2866. 8: uint32(0x00000004),
  2867. 9: uint32(0x02000004),
  2868. 10: uint32(0x00002004),
  2869. 11: uint32(0x02002004),
  2870. 12: uint32(0x00200004),
  2871. 13: uint32(0x02200004),
  2872. 14: uint32(0x00202004),
  2873. 15: uint32(0x02202004),
  2874. 16: uint32(0x00000400),
  2875. 17: uint32(0x02000400),
  2876. 18: uint32(0x00002400),
  2877. 19: uint32(0x02002400),
  2878. 20: uint32(0x00200400),
  2879. 21: uint32(0x02200400),
  2880. 22: uint32(0x00202400),
  2881. 23: uint32(0x02202400),
  2882. 24: uint32(0x00000404),
  2883. 25: uint32(0x02000404),
  2884. 26: uint32(0x00002404),
  2885. 27: uint32(0x02002404),
  2886. 28: uint32(0x00200404),
  2887. 29: uint32(0x02200404),
  2888. 30: uint32(0x00202404),
  2889. 31: uint32(0x02202404),
  2890. 32: uint32(0x10000000),
  2891. 33: uint32(0x12000000),
  2892. 34: uint32(0x10002000),
  2893. 35: uint32(0x12002000),
  2894. 36: uint32(0x10200000),
  2895. 37: uint32(0x12200000),
  2896. 38: uint32(0x10202000),
  2897. 39: uint32(0x12202000),
  2898. 40: uint32(0x10000004),
  2899. 41: uint32(0x12000004),
  2900. 42: uint32(0x10002004),
  2901. 43: uint32(0x12002004),
  2902. 44: uint32(0x10200004),
  2903. 45: uint32(0x12200004),
  2904. 46: uint32(0x10202004),
  2905. 47: uint32(0x12202004),
  2906. 48: uint32(0x10000400),
  2907. 49: uint32(0x12000400),
  2908. 50: uint32(0x10002400),
  2909. 51: uint32(0x12002400),
  2910. 52: uint32(0x10200400),
  2911. 53: uint32(0x12200400),
  2912. 54: uint32(0x10202400),
  2913. 55: uint32(0x12202400),
  2914. 56: uint32(0x10000404),
  2915. 57: uint32(0x12000404),
  2916. 58: uint32(0x10002404),
  2917. 59: uint32(0x12002404),
  2918. 60: uint32(0x10200404),
  2919. 61: uint32(0x12200404),
  2920. 62: uint32(0x10202404),
  2921. 63: uint32(0x12202404),
  2922. },
  2923. 2: {
  2924. 1: uint32(0x00000001),
  2925. 2: uint32(0x00040000),
  2926. 3: uint32(0x00040001),
  2927. 4: uint32(0x01000000),
  2928. 5: uint32(0x01000001),
  2929. 6: uint32(0x01040000),
  2930. 7: uint32(0x01040001),
  2931. 8: uint32(0x00000002),
  2932. 9: uint32(0x00000003),
  2933. 10: uint32(0x00040002),
  2934. 11: uint32(0x00040003),
  2935. 12: uint32(0x01000002),
  2936. 13: uint32(0x01000003),
  2937. 14: uint32(0x01040002),
  2938. 15: uint32(0x01040003),
  2939. 16: uint32(0x00000200),
  2940. 17: uint32(0x00000201),
  2941. 18: uint32(0x00040200),
  2942. 19: uint32(0x00040201),
  2943. 20: uint32(0x01000200),
  2944. 21: uint32(0x01000201),
  2945. 22: uint32(0x01040200),
  2946. 23: uint32(0x01040201),
  2947. 24: uint32(0x00000202),
  2948. 25: uint32(0x00000203),
  2949. 26: uint32(0x00040202),
  2950. 27: uint32(0x00040203),
  2951. 28: uint32(0x01000202),
  2952. 29: uint32(0x01000203),
  2953. 30: uint32(0x01040202),
  2954. 31: uint32(0x01040203),
  2955. 32: uint32(0x08000000),
  2956. 33: uint32(0x08000001),
  2957. 34: uint32(0x08040000),
  2958. 35: uint32(0x08040001),
  2959. 36: uint32(0x09000000),
  2960. 37: uint32(0x09000001),
  2961. 38: uint32(0x09040000),
  2962. 39: uint32(0x09040001),
  2963. 40: uint32(0x08000002),
  2964. 41: uint32(0x08000003),
  2965. 42: uint32(0x08040002),
  2966. 43: uint32(0x08040003),
  2967. 44: uint32(0x09000002),
  2968. 45: uint32(0x09000003),
  2969. 46: uint32(0x09040002),
  2970. 47: uint32(0x09040003),
  2971. 48: uint32(0x08000200),
  2972. 49: uint32(0x08000201),
  2973. 50: uint32(0x08040200),
  2974. 51: uint32(0x08040201),
  2975. 52: uint32(0x09000200),
  2976. 53: uint32(0x09000201),
  2977. 54: uint32(0x09040200),
  2978. 55: uint32(0x09040201),
  2979. 56: uint32(0x08000202),
  2980. 57: uint32(0x08000203),
  2981. 58: uint32(0x08040202),
  2982. 59: uint32(0x08040203),
  2983. 60: uint32(0x09000202),
  2984. 61: uint32(0x09000203),
  2985. 62: uint32(0x09040202),
  2986. 63: uint32(0x09040203),
  2987. },
  2988. 3: {
  2989. 1: uint32(0x00100000),
  2990. 2: uint32(0x00000100),
  2991. 3: uint32(0x00100100),
  2992. 4: uint32(0x00000008),
  2993. 5: uint32(0x00100008),
  2994. 6: uint32(0x00000108),
  2995. 7: uint32(0x00100108),
  2996. 8: uint32(0x00001000),
  2997. 9: uint32(0x00101000),
  2998. 10: uint32(0x00001100),
  2999. 11: uint32(0x00101100),
  3000. 12: uint32(0x00001008),
  3001. 13: uint32(0x00101008),
  3002. 14: uint32(0x00001108),
  3003. 15: uint32(0x00101108),
  3004. 16: uint32(0x04000000),
  3005. 17: uint32(0x04100000),
  3006. 18: uint32(0x04000100),
  3007. 19: uint32(0x04100100),
  3008. 20: uint32(0x04000008),
  3009. 21: uint32(0x04100008),
  3010. 22: uint32(0x04000108),
  3011. 23: uint32(0x04100108),
  3012. 24: uint32(0x04001000),
  3013. 25: uint32(0x04101000),
  3014. 26: uint32(0x04001100),
  3015. 27: uint32(0x04101100),
  3016. 28: uint32(0x04001008),
  3017. 29: uint32(0x04101008),
  3018. 30: uint32(0x04001108),
  3019. 31: uint32(0x04101108),
  3020. 32: uint32(0x00020000),
  3021. 33: uint32(0x00120000),
  3022. 34: uint32(0x00020100),
  3023. 35: uint32(0x00120100),
  3024. 36: uint32(0x00020008),
  3025. 37: uint32(0x00120008),
  3026. 38: uint32(0x00020108),
  3027. 39: uint32(0x00120108),
  3028. 40: uint32(0x00021000),
  3029. 41: uint32(0x00121000),
  3030. 42: uint32(0x00021100),
  3031. 43: uint32(0x00121100),
  3032. 44: uint32(0x00021008),
  3033. 45: uint32(0x00121008),
  3034. 46: uint32(0x00021108),
  3035. 47: uint32(0x00121108),
  3036. 48: uint32(0x04020000),
  3037. 49: uint32(0x04120000),
  3038. 50: uint32(0x04020100),
  3039. 51: uint32(0x04120100),
  3040. 52: uint32(0x04020008),
  3041. 53: uint32(0x04120008),
  3042. 54: uint32(0x04020108),
  3043. 55: uint32(0x04120108),
  3044. 56: uint32(0x04021000),
  3045. 57: uint32(0x04121000),
  3046. 58: uint32(0x04021100),
  3047. 59: uint32(0x04121100),
  3048. 60: uint32(0x04021008),
  3049. 61: uint32(0x04121008),
  3050. 62: uint32(0x04021108),
  3051. 63: uint32(0x04121108),
  3052. },
  3053. 4: {
  3054. 1: uint32(0x10000000),
  3055. 2: uint32(0x00010000),
  3056. 3: uint32(0x10010000),
  3057. 4: uint32(0x00000004),
  3058. 5: uint32(0x10000004),
  3059. 6: uint32(0x00010004),
  3060. 7: uint32(0x10010004),
  3061. 8: uint32(0x20000000),
  3062. 9: uint32(0x30000000),
  3063. 10: uint32(0x20010000),
  3064. 11: uint32(0x30010000),
  3065. 12: uint32(0x20000004),
  3066. 13: uint32(0x30000004),
  3067. 14: uint32(0x20010004),
  3068. 15: uint32(0x30010004),
  3069. 16: uint32(0x00100000),
  3070. 17: uint32(0x10100000),
  3071. 18: uint32(0x00110000),
  3072. 19: uint32(0x10110000),
  3073. 20: uint32(0x00100004),
  3074. 21: uint32(0x10100004),
  3075. 22: uint32(0x00110004),
  3076. 23: uint32(0x10110004),
  3077. 24: uint32(0x20100000),
  3078. 25: uint32(0x30100000),
  3079. 26: uint32(0x20110000),
  3080. 27: uint32(0x30110000),
  3081. 28: uint32(0x20100004),
  3082. 29: uint32(0x30100004),
  3083. 30: uint32(0x20110004),
  3084. 31: uint32(0x30110004),
  3085. 32: uint32(0x00001000),
  3086. 33: uint32(0x10001000),
  3087. 34: uint32(0x00011000),
  3088. 35: uint32(0x10011000),
  3089. 36: uint32(0x00001004),
  3090. 37: uint32(0x10001004),
  3091. 38: uint32(0x00011004),
  3092. 39: uint32(0x10011004),
  3093. 40: uint32(0x20001000),
  3094. 41: uint32(0x30001000),
  3095. 42: uint32(0x20011000),
  3096. 43: uint32(0x30011000),
  3097. 44: uint32(0x20001004),
  3098. 45: uint32(0x30001004),
  3099. 46: uint32(0x20011004),
  3100. 47: uint32(0x30011004),
  3101. 48: uint32(0x00101000),
  3102. 49: uint32(0x10101000),
  3103. 50: uint32(0x00111000),
  3104. 51: uint32(0x10111000),
  3105. 52: uint32(0x00101004),
  3106. 53: uint32(0x10101004),
  3107. 54: uint32(0x00111004),
  3108. 55: uint32(0x10111004),
  3109. 56: uint32(0x20101000),
  3110. 57: uint32(0x30101000),
  3111. 58: uint32(0x20111000),
  3112. 59: uint32(0x30111000),
  3113. 60: uint32(0x20101004),
  3114. 61: uint32(0x30101004),
  3115. 62: uint32(0x20111004),
  3116. 63: uint32(0x30111004),
  3117. },
  3118. 5: {
  3119. 1: uint32(0x08000000),
  3120. 2: uint32(0x00000008),
  3121. 3: uint32(0x08000008),
  3122. 4: uint32(0x00000400),
  3123. 5: uint32(0x08000400),
  3124. 6: uint32(0x00000408),
  3125. 7: uint32(0x08000408),
  3126. 8: uint32(0x00020000),
  3127. 9: uint32(0x08020000),
  3128. 10: uint32(0x00020008),
  3129. 11: uint32(0x08020008),
  3130. 12: uint32(0x00020400),
  3131. 13: uint32(0x08020400),
  3132. 14: uint32(0x00020408),
  3133. 15: uint32(0x08020408),
  3134. 16: uint32(0x00000001),
  3135. 17: uint32(0x08000001),
  3136. 18: uint32(0x00000009),
  3137. 19: uint32(0x08000009),
  3138. 20: uint32(0x00000401),
  3139. 21: uint32(0x08000401),
  3140. 22: uint32(0x00000409),
  3141. 23: uint32(0x08000409),
  3142. 24: uint32(0x00020001),
  3143. 25: uint32(0x08020001),
  3144. 26: uint32(0x00020009),
  3145. 27: uint32(0x08020009),
  3146. 28: uint32(0x00020401),
  3147. 29: uint32(0x08020401),
  3148. 30: uint32(0x00020409),
  3149. 31: uint32(0x08020409),
  3150. 32: uint32(0x02000000),
  3151. 33: uint32(0x0A000000),
  3152. 34: uint32(0x02000008),
  3153. 35: uint32(0x0A000008),
  3154. 36: uint32(0x02000400),
  3155. 37: uint32(0x0A000400),
  3156. 38: uint32(0x02000408),
  3157. 39: uint32(0x0A000408),
  3158. 40: uint32(0x02020000),
  3159. 41: uint32(0x0A020000),
  3160. 42: uint32(0x02020008),
  3161. 43: uint32(0x0A020008),
  3162. 44: uint32(0x02020400),
  3163. 45: uint32(0x0A020400),
  3164. 46: uint32(0x02020408),
  3165. 47: uint32(0x0A020408),
  3166. 48: uint32(0x02000001),
  3167. 49: uint32(0x0A000001),
  3168. 50: uint32(0x02000009),
  3169. 51: uint32(0x0A000009),
  3170. 52: uint32(0x02000401),
  3171. 53: uint32(0x0A000401),
  3172. 54: uint32(0x02000409),
  3173. 55: uint32(0x0A000409),
  3174. 56: uint32(0x02020001),
  3175. 57: uint32(0x0A020001),
  3176. 58: uint32(0x02020009),
  3177. 59: uint32(0x0A020009),
  3178. 60: uint32(0x02020401),
  3179. 61: uint32(0x0A020401),
  3180. 62: uint32(0x02020409),
  3181. 63: uint32(0x0A020409),
  3182. },
  3183. 6: {
  3184. 1: uint32(0x00000100),
  3185. 2: uint32(0x00080000),
  3186. 3: uint32(0x00080100),
  3187. 4: uint32(0x01000000),
  3188. 5: uint32(0x01000100),
  3189. 6: uint32(0x01080000),
  3190. 7: uint32(0x01080100),
  3191. 8: uint32(0x00000010),
  3192. 9: uint32(0x00000110),
  3193. 10: uint32(0x00080010),
  3194. 11: uint32(0x00080110),
  3195. 12: uint32(0x01000010),
  3196. 13: uint32(0x01000110),
  3197. 14: uint32(0x01080010),
  3198. 15: uint32(0x01080110),
  3199. 16: uint32(0x00200000),
  3200. 17: uint32(0x00200100),
  3201. 18: uint32(0x00280000),
  3202. 19: uint32(0x00280100),
  3203. 20: uint32(0x01200000),
  3204. 21: uint32(0x01200100),
  3205. 22: uint32(0x01280000),
  3206. 23: uint32(0x01280100),
  3207. 24: uint32(0x00200010),
  3208. 25: uint32(0x00200110),
  3209. 26: uint32(0x00280010),
  3210. 27: uint32(0x00280110),
  3211. 28: uint32(0x01200010),
  3212. 29: uint32(0x01200110),
  3213. 30: uint32(0x01280010),
  3214. 31: uint32(0x01280110),
  3215. 32: uint32(0x00000200),
  3216. 33: uint32(0x00000300),
  3217. 34: uint32(0x00080200),
  3218. 35: uint32(0x00080300),
  3219. 36: uint32(0x01000200),
  3220. 37: uint32(0x01000300),
  3221. 38: uint32(0x01080200),
  3222. 39: uint32(0x01080300),
  3223. 40: uint32(0x00000210),
  3224. 41: uint32(0x00000310),
  3225. 42: uint32(0x00080210),
  3226. 43: uint32(0x00080310),
  3227. 44: uint32(0x01000210),
  3228. 45: uint32(0x01000310),
  3229. 46: uint32(0x01080210),
  3230. 47: uint32(0x01080310),
  3231. 48: uint32(0x00200200),
  3232. 49: uint32(0x00200300),
  3233. 50: uint32(0x00280200),
  3234. 51: uint32(0x00280300),
  3235. 52: uint32(0x01200200),
  3236. 53: uint32(0x01200300),
  3237. 54: uint32(0x01280200),
  3238. 55: uint32(0x01280300),
  3239. 56: uint32(0x00200210),
  3240. 57: uint32(0x00200310),
  3241. 58: uint32(0x00280210),
  3242. 59: uint32(0x00280310),
  3243. 60: uint32(0x01200210),
  3244. 61: uint32(0x01200310),
  3245. 62: uint32(0x01280210),
  3246. 63: uint32(0x01280310),
  3247. },
  3248. 7: {
  3249. 1: uint32(0x04000000),
  3250. 2: uint32(0x00040000),
  3251. 3: uint32(0x04040000),
  3252. 4: uint32(0x00000002),
  3253. 5: uint32(0x04000002),
  3254. 6: uint32(0x00040002),
  3255. 7: uint32(0x04040002),
  3256. 8: uint32(0x00002000),
  3257. 9: uint32(0x04002000),
  3258. 10: uint32(0x00042000),
  3259. 11: uint32(0x04042000),
  3260. 12: uint32(0x00002002),
  3261. 13: uint32(0x04002002),
  3262. 14: uint32(0x00042002),
  3263. 15: uint32(0x04042002),
  3264. 16: uint32(0x00000020),
  3265. 17: uint32(0x04000020),
  3266. 18: uint32(0x00040020),
  3267. 19: uint32(0x04040020),
  3268. 20: uint32(0x00000022),
  3269. 21: uint32(0x04000022),
  3270. 22: uint32(0x00040022),
  3271. 23: uint32(0x04040022),
  3272. 24: uint32(0x00002020),
  3273. 25: uint32(0x04002020),
  3274. 26: uint32(0x00042020),
  3275. 27: uint32(0x04042020),
  3276. 28: uint32(0x00002022),
  3277. 29: uint32(0x04002022),
  3278. 30: uint32(0x00042022),
  3279. 31: uint32(0x04042022),
  3280. 32: uint32(0x00000800),
  3281. 33: uint32(0x04000800),
  3282. 34: uint32(0x00040800),
  3283. 35: uint32(0x04040800),
  3284. 36: uint32(0x00000802),
  3285. 37: uint32(0x04000802),
  3286. 38: uint32(0x00040802),
  3287. 39: uint32(0x04040802),
  3288. 40: uint32(0x00002800),
  3289. 41: uint32(0x04002800),
  3290. 42: uint32(0x00042800),
  3291. 43: uint32(0x04042800),
  3292. 44: uint32(0x00002802),
  3293. 45: uint32(0x04002802),
  3294. 46: uint32(0x00042802),
  3295. 47: uint32(0x04042802),
  3296. 48: uint32(0x00000820),
  3297. 49: uint32(0x04000820),
  3298. 50: uint32(0x00040820),
  3299. 51: uint32(0x04040820),
  3300. 52: uint32(0x00000822),
  3301. 53: uint32(0x04000822),
  3302. 54: uint32(0x00040822),
  3303. 55: uint32(0x04040822),
  3304. 56: uint32(0x00002820),
  3305. 57: uint32(0x04002820),
  3306. 58: uint32(0x00042820),
  3307. 59: uint32(0x04042820),
  3308. 60: uint32(0x00002822),
  3309. 61: uint32(0x04002822),
  3310. 62: uint32(0x00042822),
  3311. 63: uint32(0x04042822),
  3312. },
  3313. }
  3314. var _SPtrans = [8][64]TCARD32{
  3315. 0: {
  3316. 0: uint32(0x00410100),
  3317. 1: uint32(0x00010000),
  3318. 2: uint32(0x40400000),
  3319. 3: uint32(0x40410100),
  3320. 4: uint32(0x00400000),
  3321. 5: uint32(0x40010100),
  3322. 6: uint32(0x40010000),
  3323. 7: uint32(0x40400000),
  3324. 8: uint32(0x40010100),
  3325. 9: uint32(0x00410100),
  3326. 10: uint32(0x00410000),
  3327. 11: uint32(0x40000100),
  3328. 12: uint32(0x40400100),
  3329. 13: uint32(0x00400000),
  3330. 15: uint32(0x40010000),
  3331. 16: uint32(0x00010000),
  3332. 17: uint32(0x40000000),
  3333. 18: uint32(0x00400100),
  3334. 19: uint32(0x00010100),
  3335. 20: uint32(0x40410100),
  3336. 21: uint32(0x00410000),
  3337. 22: uint32(0x40000100),
  3338. 23: uint32(0x00400100),
  3339. 24: uint32(0x40000000),
  3340. 25: uint32(0x00000100),
  3341. 26: uint32(0x00010100),
  3342. 27: uint32(0x40410000),
  3343. 28: uint32(0x00000100),
  3344. 29: uint32(0x40400100),
  3345. 30: uint32(0x40410000),
  3346. 33: uint32(0x40410100),
  3347. 34: uint32(0x00400100),
  3348. 35: uint32(0x40010000),
  3349. 36: uint32(0x00410100),
  3350. 37: uint32(0x00010000),
  3351. 38: uint32(0x40000100),
  3352. 39: uint32(0x00400100),
  3353. 40: uint32(0x40410000),
  3354. 41: uint32(0x00000100),
  3355. 42: uint32(0x00010100),
  3356. 43: uint32(0x40400000),
  3357. 44: uint32(0x40010100),
  3358. 45: uint32(0x40000000),
  3359. 46: uint32(0x40400000),
  3360. 47: uint32(0x00410000),
  3361. 48: uint32(0x40410100),
  3362. 49: uint32(0x00010100),
  3363. 50: uint32(0x00410000),
  3364. 51: uint32(0x40400100),
  3365. 52: uint32(0x00400000),
  3366. 53: uint32(0x40000100),
  3367. 54: uint32(0x40010000),
  3368. 56: uint32(0x00010000),
  3369. 57: uint32(0x00400000),
  3370. 58: uint32(0x40400100),
  3371. 59: uint32(0x00410100),
  3372. 60: uint32(0x40000000),
  3373. 61: uint32(0x40410000),
  3374. 62: uint32(0x00000100),
  3375. 63: uint32(0x40010100),
  3376. },
  3377. 1: {
  3378. 0: uint32(0x08021002),
  3379. 2: uint32(0x00021000),
  3380. 3: uint32(0x08020000),
  3381. 4: uint32(0x08000002),
  3382. 5: uint32(0x00001002),
  3383. 6: uint32(0x08001000),
  3384. 7: uint32(0x00021000),
  3385. 8: uint32(0x00001000),
  3386. 9: uint32(0x08020002),
  3387. 10: uint32(0x00000002),
  3388. 11: uint32(0x08001000),
  3389. 12: uint32(0x00020002),
  3390. 13: uint32(0x08021000),
  3391. 14: uint32(0x08020000),
  3392. 15: uint32(0x00000002),
  3393. 16: uint32(0x00020000),
  3394. 17: uint32(0x08001002),
  3395. 18: uint32(0x08020002),
  3396. 19: uint32(0x00001000),
  3397. 20: uint32(0x00021002),
  3398. 21: uint32(0x08000000),
  3399. 23: uint32(0x00020002),
  3400. 24: uint32(0x08001002),
  3401. 25: uint32(0x00021002),
  3402. 26: uint32(0x08021000),
  3403. 27: uint32(0x08000002),
  3404. 28: uint32(0x08000000),
  3405. 29: uint32(0x00020000),
  3406. 30: uint32(0x00001002),
  3407. 31: uint32(0x08021002),
  3408. 32: uint32(0x00020002),
  3409. 33: uint32(0x08021000),
  3410. 34: uint32(0x08001000),
  3411. 35: uint32(0x00021002),
  3412. 36: uint32(0x08021002),
  3413. 37: uint32(0x00020002),
  3414. 38: uint32(0x08000002),
  3415. 40: uint32(0x08000000),
  3416. 41: uint32(0x00001002),
  3417. 42: uint32(0x00020000),
  3418. 43: uint32(0x08020002),
  3419. 44: uint32(0x00001000),
  3420. 45: uint32(0x08000000),
  3421. 46: uint32(0x00021002),
  3422. 47: uint32(0x08001002),
  3423. 48: uint32(0x08021000),
  3424. 49: uint32(0x00001000),
  3425. 51: uint32(0x08000002),
  3426. 52: uint32(0x00000002),
  3427. 53: uint32(0x08021002),
  3428. 54: uint32(0x00021000),
  3429. 55: uint32(0x08020000),
  3430. 56: uint32(0x08020002),
  3431. 57: uint32(0x00020000),
  3432. 58: uint32(0x00001002),
  3433. 59: uint32(0x08001000),
  3434. 60: uint32(0x08001002),
  3435. 61: uint32(0x00000002),
  3436. 62: uint32(0x08020000),
  3437. 63: uint32(0x00021000),
  3438. },
  3439. 2: {
  3440. 0: uint32(0x20800000),
  3441. 1: uint32(0x00808020),
  3442. 2: uint32(0x00000020),
  3443. 3: uint32(0x20800020),
  3444. 4: uint32(0x20008000),
  3445. 5: uint32(0x00800000),
  3446. 6: uint32(0x20800020),
  3447. 7: uint32(0x00008020),
  3448. 8: uint32(0x00800020),
  3449. 9: uint32(0x00008000),
  3450. 10: uint32(0x00808000),
  3451. 11: uint32(0x20000000),
  3452. 12: uint32(0x20808020),
  3453. 13: uint32(0x20000020),
  3454. 14: uint32(0x20000000),
  3455. 15: uint32(0x20808000),
  3456. 17: uint32(0x20008000),
  3457. 18: uint32(0x00808020),
  3458. 19: uint32(0x00000020),
  3459. 20: uint32(0x20000020),
  3460. 21: uint32(0x20808020),
  3461. 22: uint32(0x00008000),
  3462. 23: uint32(0x20800000),
  3463. 24: uint32(0x20808000),
  3464. 25: uint32(0x00800020),
  3465. 26: uint32(0x20008020),
  3466. 27: uint32(0x00808000),
  3467. 28: uint32(0x00008020),
  3468. 30: uint32(0x00800000),
  3469. 31: uint32(0x20008020),
  3470. 32: uint32(0x00808020),
  3471. 33: uint32(0x00000020),
  3472. 34: uint32(0x20000000),
  3473. 35: uint32(0x00008000),
  3474. 36: uint32(0x20000020),
  3475. 37: uint32(0x20008000),
  3476. 38: uint32(0x00808000),
  3477. 39: uint32(0x20800020),
  3478. 41: uint32(0x00808020),
  3479. 42: uint32(0x00008020),
  3480. 43: uint32(0x20808000),
  3481. 44: uint32(0x20008000),
  3482. 45: uint32(0x00800000),
  3483. 46: uint32(0x20808020),
  3484. 47: uint32(0x20000000),
  3485. 48: uint32(0x20008020),
  3486. 49: uint32(0x20800000),
  3487. 50: uint32(0x00800000),
  3488. 51: uint32(0x20808020),
  3489. 52: uint32(0x00008000),
  3490. 53: uint32(0x00800020),
  3491. 54: uint32(0x20800020),
  3492. 55: uint32(0x00008020),
  3493. 56: uint32(0x00800020),
  3494. 58: uint32(0x20808000),
  3495. 59: uint32(0x20000020),
  3496. 60: uint32(0x20800000),
  3497. 61: uint32(0x20008020),
  3498. 62: uint32(0x00000020),
  3499. 63: uint32(0x00808000),
  3500. },
  3501. 3: {
  3502. 0: uint32(0x00080201),
  3503. 1: uint32(0x02000200),
  3504. 2: uint32(0x00000001),
  3505. 3: uint32(0x02080201),
  3506. 5: uint32(0x02080000),
  3507. 6: uint32(0x02000201),
  3508. 7: uint32(0x00080001),
  3509. 8: uint32(0x02080200),
  3510. 9: uint32(0x02000001),
  3511. 10: uint32(0x02000000),
  3512. 11: uint32(0x00000201),
  3513. 12: uint32(0x02000001),
  3514. 13: uint32(0x00080201),
  3515. 14: uint32(0x00080000),
  3516. 15: uint32(0x02000000),
  3517. 16: uint32(0x02080001),
  3518. 17: uint32(0x00080200),
  3519. 18: uint32(0x00000200),
  3520. 19: uint32(0x00000001),
  3521. 20: uint32(0x00080200),
  3522. 21: uint32(0x02000201),
  3523. 22: uint32(0x02080000),
  3524. 23: uint32(0x00000200),
  3525. 24: uint32(0x00000201),
  3526. 26: uint32(0x00080001),
  3527. 27: uint32(0x02080200),
  3528. 28: uint32(0x02000200),
  3529. 29: uint32(0x02080001),
  3530. 30: uint32(0x02080201),
  3531. 31: uint32(0x00080000),
  3532. 32: uint32(0x02080001),
  3533. 33: uint32(0x00000201),
  3534. 34: uint32(0x00080000),
  3535. 35: uint32(0x02000001),
  3536. 36: uint32(0x00080200),
  3537. 37: uint32(0x02000200),
  3538. 38: uint32(0x00000001),
  3539. 39: uint32(0x02080000),
  3540. 40: uint32(0x02000201),
  3541. 42: uint32(0x00000200),
  3542. 43: uint32(0x00080001),
  3543. 45: uint32(0x02080001),
  3544. 46: uint32(0x02080200),
  3545. 47: uint32(0x00000200),
  3546. 48: uint32(0x02000000),
  3547. 49: uint32(0x02080201),
  3548. 50: uint32(0x00080201),
  3549. 51: uint32(0x00080000),
  3550. 52: uint32(0x02080201),
  3551. 53: uint32(0x00000001),
  3552. 54: uint32(0x02000200),
  3553. 55: uint32(0x00080201),
  3554. 56: uint32(0x00080001),
  3555. 57: uint32(0x00080200),
  3556. 58: uint32(0x02080000),
  3557. 59: uint32(0x02000201),
  3558. 60: uint32(0x00000201),
  3559. 61: uint32(0x02000000),
  3560. 62: uint32(0x02000001),
  3561. 63: uint32(0x02080200),
  3562. },
  3563. 4: {
  3564. 0: uint32(0x01000000),
  3565. 1: uint32(0x00002000),
  3566. 2: uint32(0x00000080),
  3567. 3: uint32(0x01002084),
  3568. 4: uint32(0x01002004),
  3569. 5: uint32(0x01000080),
  3570. 6: uint32(0x00002084),
  3571. 7: uint32(0x01002000),
  3572. 8: uint32(0x00002000),
  3573. 9: uint32(0x00000004),
  3574. 10: uint32(0x01000004),
  3575. 11: uint32(0x00002080),
  3576. 12: uint32(0x01000084),
  3577. 13: uint32(0x01002004),
  3578. 14: uint32(0x01002080),
  3579. 16: uint32(0x00002080),
  3580. 17: uint32(0x01000000),
  3581. 18: uint32(0x00002004),
  3582. 19: uint32(0x00000084),
  3583. 20: uint32(0x01000080),
  3584. 21: uint32(0x00002084),
  3585. 23: uint32(0x01000004),
  3586. 24: uint32(0x00000004),
  3587. 25: uint32(0x01000084),
  3588. 26: uint32(0x01002084),
  3589. 27: uint32(0x00002004),
  3590. 28: uint32(0x01002000),
  3591. 29: uint32(0x00000080),
  3592. 30: uint32(0x00000084),
  3593. 31: uint32(0x01002080),
  3594. 32: uint32(0x01002080),
  3595. 33: uint32(0x01000084),
  3596. 34: uint32(0x00002004),
  3597. 35: uint32(0x01002000),
  3598. 36: uint32(0x00002000),
  3599. 37: uint32(0x00000004),
  3600. 38: uint32(0x01000004),
  3601. 39: uint32(0x01000080),
  3602. 40: uint32(0x01000000),
  3603. 41: uint32(0x00002080),
  3604. 42: uint32(0x01002084),
  3605. 44: uint32(0x00002084),
  3606. 45: uint32(0x01000000),
  3607. 46: uint32(0x00000080),
  3608. 47: uint32(0x00002004),
  3609. 48: uint32(0x01000084),
  3610. 49: uint32(0x00000080),
  3611. 51: uint32(0x01002084),
  3612. 52: uint32(0x01002004),
  3613. 53: uint32(0x01002080),
  3614. 54: uint32(0x00000084),
  3615. 55: uint32(0x00002000),
  3616. 56: uint32(0x00002080),
  3617. 57: uint32(0x01002004),
  3618. 58: uint32(0x01000080),
  3619. 59: uint32(0x00000084),
  3620. 60: uint32(0x00000004),
  3621. 61: uint32(0x00002084),
  3622. 62: uint32(0x01002000),
  3623. 63: uint32(0x01000004),
  3624. },
  3625. 5: {
  3626. 0: uint32(0x10000008),
  3627. 1: uint32(0x00040008),
  3628. 3: uint32(0x10040400),
  3629. 4: uint32(0x00040008),
  3630. 5: uint32(0x00000400),
  3631. 6: uint32(0x10000408),
  3632. 7: uint32(0x00040000),
  3633. 8: uint32(0x00000408),
  3634. 9: uint32(0x10040408),
  3635. 10: uint32(0x00040400),
  3636. 11: uint32(0x10000000),
  3637. 12: uint32(0x10000400),
  3638. 13: uint32(0x10000008),
  3639. 14: uint32(0x10040000),
  3640. 15: uint32(0x00040408),
  3641. 16: uint32(0x00040000),
  3642. 17: uint32(0x10000408),
  3643. 18: uint32(0x10040008),
  3644. 20: uint32(0x00000400),
  3645. 21: uint32(0x00000008),
  3646. 22: uint32(0x10040400),
  3647. 23: uint32(0x10040008),
  3648. 24: uint32(0x10040408),
  3649. 25: uint32(0x10040000),
  3650. 26: uint32(0x10000000),
  3651. 27: uint32(0x00000408),
  3652. 28: uint32(0x00000008),
  3653. 29: uint32(0x00040400),
  3654. 30: uint32(0x00040408),
  3655. 31: uint32(0x10000400),
  3656. 32: uint32(0x00000408),
  3657. 33: uint32(0x10000000),
  3658. 34: uint32(0x10000400),
  3659. 35: uint32(0x00040408),
  3660. 36: uint32(0x10040400),
  3661. 37: uint32(0x00040008),
  3662. 39: uint32(0x10000400),
  3663. 40: uint32(0x10000000),
  3664. 41: uint32(0x00000400),
  3665. 42: uint32(0x10040008),
  3666. 43: uint32(0x00040000),
  3667. 44: uint32(0x00040008),
  3668. 45: uint32(0x10040408),
  3669. 46: uint32(0x00040400),
  3670. 47: uint32(0x00000008),
  3671. 48: uint32(0x10040408),
  3672. 49: uint32(0x00040400),
  3673. 50: uint32(0x00040000),
  3674. 51: uint32(0x10000408),
  3675. 52: uint32(0x10000008),
  3676. 53: uint32(0x10040000),
  3677. 54: uint32(0x00040408),
  3678. 56: uint32(0x00000400),
  3679. 57: uint32(0x10000008),
  3680. 58: uint32(0x10000408),
  3681. 59: uint32(0x10040400),
  3682. 60: uint32(0x10040000),
  3683. 61: uint32(0x00000408),
  3684. 62: uint32(0x00000008),
  3685. 63: uint32(0x10040008),
  3686. },
  3687. 6: {
  3688. 0: uint32(0x00000800),
  3689. 1: uint32(0x00000040),
  3690. 2: uint32(0x00200040),
  3691. 3: uint32(0x80200000),
  3692. 4: uint32(0x80200840),
  3693. 5: uint32(0x80000800),
  3694. 6: uint32(0x00000840),
  3695. 8: uint32(0x00200000),
  3696. 9: uint32(0x80200040),
  3697. 10: uint32(0x80000040),
  3698. 11: uint32(0x00200800),
  3699. 12: uint32(0x80000000),
  3700. 13: uint32(0x00200840),
  3701. 14: uint32(0x00200800),
  3702. 15: uint32(0x80000040),
  3703. 16: uint32(0x80200040),
  3704. 17: uint32(0x00000800),
  3705. 18: uint32(0x80000800),
  3706. 19: uint32(0x80200840),
  3707. 21: uint32(0x00200040),
  3708. 22: uint32(0x80200000),
  3709. 23: uint32(0x00000840),
  3710. 24: uint32(0x80200800),
  3711. 25: uint32(0x80000840),
  3712. 26: uint32(0x00200840),
  3713. 27: uint32(0x80000000),
  3714. 28: uint32(0x80000840),
  3715. 29: uint32(0x80200800),
  3716. 30: uint32(0x00000040),
  3717. 31: uint32(0x00200000),
  3718. 32: uint32(0x80000840),
  3719. 33: uint32(0x00200800),
  3720. 34: uint32(0x80200800),
  3721. 35: uint32(0x80000040),
  3722. 36: uint32(0x00000800),
  3723. 37: uint32(0x00000040),
  3724. 38: uint32(0x00200000),
  3725. 39: uint32(0x80200800),
  3726. 40: uint32(0x80200040),
  3727. 41: uint32(0x80000840),
  3728. 42: uint32(0x00000840),
  3729. 44: uint32(0x00000040),
  3730. 45: uint32(0x80200000),
  3731. 46: uint32(0x80000000),
  3732. 47: uint32(0x00200040),
  3733. 49: uint32(0x80200040),
  3734. 50: uint32(0x00200040),
  3735. 51: uint32(0x00000840),
  3736. 52: uint32(0x80000040),
  3737. 53: uint32(0x00000800),
  3738. 54: uint32(0x80200840),
  3739. 55: uint32(0x00200000),
  3740. 56: uint32(0x00200840),
  3741. 57: uint32(0x80000000),
  3742. 58: uint32(0x80000800),
  3743. 59: uint32(0x80200840),
  3744. 60: uint32(0x80200000),
  3745. 61: uint32(0x00200840),
  3746. 62: uint32(0x00200800),
  3747. 63: uint32(0x80000800),
  3748. },
  3749. 7: {
  3750. 0: uint32(0x04100010),
  3751. 1: uint32(0x04104000),
  3752. 2: uint32(0x00004010),
  3753. 4: uint32(0x04004000),
  3754. 5: uint32(0x00100010),
  3755. 6: uint32(0x04100000),
  3756. 7: uint32(0x04104010),
  3757. 8: uint32(0x00000010),
  3758. 9: uint32(0x04000000),
  3759. 10: uint32(0x00104000),
  3760. 11: uint32(0x00004010),
  3761. 12: uint32(0x00104010),
  3762. 13: uint32(0x04004010),
  3763. 14: uint32(0x04000010),
  3764. 15: uint32(0x04100000),
  3765. 16: uint32(0x00004000),
  3766. 17: uint32(0x00104010),
  3767. 18: uint32(0x00100010),
  3768. 19: uint32(0x04004000),
  3769. 20: uint32(0x04104010),
  3770. 21: uint32(0x04000010),
  3771. 23: uint32(0x00104000),
  3772. 24: uint32(0x04000000),
  3773. 25: uint32(0x00100000),
  3774. 26: uint32(0x04004010),
  3775. 27: uint32(0x04100010),
  3776. 28: uint32(0x00100000),
  3777. 29: uint32(0x00004000),
  3778. 30: uint32(0x04104000),
  3779. 31: uint32(0x00000010),
  3780. 32: uint32(0x00100000),
  3781. 33: uint32(0x00004000),
  3782. 34: uint32(0x04000010),
  3783. 35: uint32(0x04104010),
  3784. 36: uint32(0x00004010),
  3785. 37: uint32(0x04000000),
  3786. 39: uint32(0x00104000),
  3787. 40: uint32(0x04100010),
  3788. 41: uint32(0x04004010),
  3789. 42: uint32(0x04004000),
  3790. 43: uint32(0x00100010),
  3791. 44: uint32(0x04104000),
  3792. 45: uint32(0x00000010),
  3793. 46: uint32(0x00100010),
  3794. 47: uint32(0x04004000),
  3795. 48: uint32(0x04104010),
  3796. 49: uint32(0x00100000),
  3797. 50: uint32(0x04100000),
  3798. 51: uint32(0x04000010),
  3799. 52: uint32(0x00104000),
  3800. 53: uint32(0x00004010),
  3801. 54: uint32(0x04004010),
  3802. 55: uint32(0x04100000),
  3803. 56: uint32(0x00000010),
  3804. 57: uint32(0x04104000),
  3805. 58: uint32(0x00104010),
  3806. 60: uint32(0x04000000),
  3807. 61: uint32(0x04100010),
  3808. 62: uint32(0x00004000),
  3809. 63: uint32(0x00104010),
  3810. },
  3811. }
  3812. var _shifts2 = [16]int8{
  3813. 2: int8(1),
  3814. 3: int8(1),
  3815. 4: int8(1),
  3816. 5: int8(1),
  3817. 6: int8(1),
  3818. 7: int8(1),
  3819. 9: int8(1),
  3820. 10: int8(1),
  3821. 11: int8(1),
  3822. 12: int8(1),
  3823. 13: int8(1),
  3824. 14: int8(1),
  3825. }
  3826. func X_XdmcpAuthSetup(tls *libc.TLS, key uintptr, schedule uintptr) {
  3827. var c, d, s, t TCARD32
  3828. var i int32
  3829. var in, k, v1, v10, v11, v2, v3, v4, v5, v6, v7, v8 uintptr
  3830. _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = c, d, i, in, k, s, t, v1, v10, v11, v2, v3, v4, v5, v6, v7, v8
  3831. k = schedule
  3832. in = key
  3833. v1 = in
  3834. in++
  3835. c = uint32(*(*TCARD8)(unsafe.Pointer(v1)))
  3836. v2 = in
  3837. in++
  3838. c |= uint32(*(*TCARD8)(unsafe.Pointer(v2))) << int32(8)
  3839. v3 = in
  3840. in++
  3841. c |= uint32(*(*TCARD8)(unsafe.Pointer(v3))) << int32(16)
  3842. v4 = in
  3843. in++
  3844. c |= uint32(*(*TCARD8)(unsafe.Pointer(v4))) << int32(24)
  3845. v5 = in
  3846. in++
  3847. d = uint32(*(*TCARD8)(unsafe.Pointer(v5)))
  3848. v6 = in
  3849. in++
  3850. d |= uint32(*(*TCARD8)(unsafe.Pointer(v6))) << int32(8)
  3851. v7 = in
  3852. in++
  3853. d |= uint32(*(*TCARD8)(unsafe.Pointer(v7))) << int32(16)
  3854. v8 = in
  3855. in++
  3856. d |= uint32(*(*TCARD8)(unsafe.Pointer(v8))) << int32(24)
  3857. /* do PC1 in 60 simple operations */
  3858. t = (d>>libc.Int32FromInt32(4) ^ c) & libc.Uint32FromInt32(libc.Int32FromInt32(0x0f0f0f0f))
  3859. c ^= t
  3860. d ^= t << libc.Int32FromInt32(4)
  3861. t = (c<<(libc.Int32FromInt32(16) - -libc.Int32FromInt32(2)) ^ c) & libc.Uint32FromUint32(0xcccc0000)
  3862. c = c ^ t ^ t>>(libc.Int32FromInt32(16) - -libc.Int32FromInt32(2))
  3863. t = (c<<(libc.Int32FromInt32(16) - -libc.Int32FromInt32(1)) ^ c) & libc.Uint32FromUint32(0xaaaa0000)
  3864. c = c ^ t ^ t>>(libc.Int32FromInt32(16) - -libc.Int32FromInt32(1))
  3865. t = (c<<(libc.Int32FromInt32(16)-libc.Int32FromInt32(8)) ^ c) & libc.Uint32FromInt32(libc.Int32FromInt32(0x00ff0000))
  3866. c = c ^ t ^ t>>(libc.Int32FromInt32(16)-libc.Int32FromInt32(8))
  3867. t = (c<<(libc.Int32FromInt32(16) - -libc.Int32FromInt32(1)) ^ c) & libc.Uint32FromUint32(0xaaaa0000)
  3868. c = c ^ t ^ t>>(libc.Int32FromInt32(16) - -libc.Int32FromInt32(1))
  3869. t = (d<<(libc.Int32FromInt32(16) - -libc.Int32FromInt32(8)) ^ d) & libc.Uint32FromUint32(0xff000000)
  3870. d = d ^ t ^ t>>(libc.Int32FromInt32(16) - -libc.Int32FromInt32(8))
  3871. t = (d<<(libc.Int32FromInt32(16)-libc.Int32FromInt32(8)) ^ d) & libc.Uint32FromInt32(libc.Int32FromInt32(0x00ff0000))
  3872. d = d ^ t ^ t>>(libc.Int32FromInt32(16)-libc.Int32FromInt32(8))
  3873. t = (d<<(libc.Int32FromInt32(16)-libc.Int32FromInt32(2)) ^ d) & libc.Uint32FromInt32(libc.Int32FromInt32(0x33330000))
  3874. d = d ^ t ^ t>>(libc.Int32FromInt32(16)-libc.Int32FromInt32(2))
  3875. d = d&uint32(0x00aa00aa)<<int32(7) | d&uint32(0x55005500)>>int32(7) | d&uint32(0xaa55aa55)
  3876. d = d>>libc.Int32FromInt32(8) | c&uint32(0xf0000000)>>int32(4)
  3877. c &= uint32(0x0fffffff)
  3878. i = 0
  3879. for {
  3880. if !(i < int32(m_ITERATIONS)) {
  3881. break
  3882. }
  3883. if _shifts2[i] != 0 {
  3884. c = c>>libc.Int32FromInt32(2) | c<<libc.Int32FromInt32(26)
  3885. d = d>>libc.Int32FromInt32(2) | d<<libc.Int32FromInt32(26)
  3886. } else {
  3887. c = c>>libc.Int32FromInt32(1) | c<<libc.Int32FromInt32(27)
  3888. d = d>>libc.Int32FromInt32(1) | d<<libc.Int32FromInt32(27)
  3889. }
  3890. c &= uint32(0x0fffffff)
  3891. d &= uint32(0x0fffffff)
  3892. /* could be a few less shifts but I am to lazy at this
  3893. * point in time to investigate */
  3894. 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))
  3895. 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))
  3896. /* table contained 0213 4657 */
  3897. v10 = k
  3898. k += 4
  3899. *(*TCARD32)(unsafe.Pointer(v10)) = t<<libc.Int32FromInt32(16) | s&libc.Uint32FromInt32(0x0000ffff)
  3900. s = s>>libc.Int32FromInt32(16) | t&libc.Uint32FromUint32(0xffff0000)
  3901. s = s<<libc.Int32FromInt32(4) | s>>libc.Int32FromInt32(28)
  3902. v11 = k
  3903. k += 4
  3904. *(*TCARD32)(unsafe.Pointer(v11)) = s
  3905. goto _9
  3906. _9:
  3907. ;
  3908. i++
  3909. }
  3910. return
  3911. }
  3912. func X_XdmcpAuthDoIt(tls *libc.TLS, input uintptr, output uintptr, ks uintptr, encrypt int32) {
  3913. var i int32
  3914. var in, out, s, v1, v11, v12, v13, v14, v15, v16, v17, v18, v2, v3, v4, v5, v6, v7, v8 uintptr
  3915. var l, r, t, u TCARD32
  3916. _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = i, in, l, out, r, s, t, u, v1, v11, v12, v13, v14, v15, v16, v17, v18, v2, v3, v4, v5, v6, v7, v8
  3917. in = input
  3918. out = output
  3919. v1 = in
  3920. in++
  3921. l = uint32(*(*TCARD8)(unsafe.Pointer(v1)))
  3922. v2 = in
  3923. in++
  3924. l |= uint32(*(*TCARD8)(unsafe.Pointer(v2))) << int32(8)
  3925. v3 = in
  3926. in++
  3927. l |= uint32(*(*TCARD8)(unsafe.Pointer(v3))) << int32(16)
  3928. v4 = in
  3929. in++
  3930. l |= uint32(*(*TCARD8)(unsafe.Pointer(v4))) << int32(24)
  3931. v5 = in
  3932. in++
  3933. r = uint32(*(*TCARD8)(unsafe.Pointer(v5)))
  3934. v6 = in
  3935. in++
  3936. r |= uint32(*(*TCARD8)(unsafe.Pointer(v6))) << int32(8)
  3937. v7 = in
  3938. in++
  3939. r |= uint32(*(*TCARD8)(unsafe.Pointer(v7))) << int32(16)
  3940. v8 = in
  3941. in++
  3942. r |= uint32(*(*TCARD8)(unsafe.Pointer(v8))) << int32(24)
  3943. /* do IP */
  3944. t = (r>>libc.Int32FromInt32(4) ^ l) & libc.Uint32FromInt32(libc.Int32FromInt32(0x0f0f0f0f))
  3945. l ^= t
  3946. r ^= t << libc.Int32FromInt32(4)
  3947. t = (l>>libc.Int32FromInt32(16) ^ r) & libc.Uint32FromInt32(libc.Int32FromInt32(0x0000ffff))
  3948. r ^= t
  3949. l ^= t << libc.Int32FromInt32(16)
  3950. t = (r>>libc.Int32FromInt32(2) ^ l) & libc.Uint32FromInt32(libc.Int32FromInt32(0x33333333))
  3951. l ^= t
  3952. r ^= t << libc.Int32FromInt32(2)
  3953. t = (l>>libc.Int32FromInt32(8) ^ r) & libc.Uint32FromInt32(libc.Int32FromInt32(0x00ff00ff))
  3954. r ^= t
  3955. l ^= t << libc.Int32FromInt32(8)
  3956. t = (r>>libc.Int32FromInt32(1) ^ l) & libc.Uint32FromInt32(libc.Int32FromInt32(0x55555555))
  3957. l ^= t
  3958. r ^= t << libc.Int32FromInt32(1)
  3959. /* r and l are reversed - remember that :-) */
  3960. t = l
  3961. l = r
  3962. r = t
  3963. s = ks
  3964. if encrypt != 0 {
  3965. i = 0
  3966. for {
  3967. if !(i < libc.Int32FromInt32(m_ITERATIONS)*libc.Int32FromInt32(2)) {
  3968. break
  3969. }
  3970. t = r<<libc.Int32FromInt32(1) | r>>libc.Int32FromInt32(31)
  3971. u = t ^ *(*TCARD32)(unsafe.Pointer(s + uintptr(i)*4))
  3972. t = t ^ *(*TCARD32)(unsafe.Pointer(s + uintptr(i+int32(1))*4))
  3973. t = t>>libc.Int32FromInt32(4) | t<<libc.Int32FromInt32(28)
  3974. 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 */
  3975. t = l<<libc.Int32FromInt32(1) | l>>libc.Int32FromInt32(31)
  3976. u = t ^ *(*TCARD32)(unsafe.Pointer(s + uintptr(i+int32(2))*4))
  3977. t = t ^ *(*TCARD32)(unsafe.Pointer(s + uintptr(i+int32(2)+int32(1))*4))
  3978. t = t>>libc.Int32FromInt32(4) | t<<libc.Int32FromInt32(28)
  3979. 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 */
  3980. goto _9
  3981. _9:
  3982. ;
  3983. i += int32(4)
  3984. }
  3985. } else {
  3986. i = libc.Int32FromInt32(m_ITERATIONS)*libc.Int32FromInt32(2) - libc.Int32FromInt32(2)
  3987. for {
  3988. if !(i >= 0) {
  3989. break
  3990. }
  3991. t = r<<libc.Int32FromInt32(1) | r>>libc.Int32FromInt32(31)
  3992. u = t ^ *(*TCARD32)(unsafe.Pointer(s + uintptr(i)*4))
  3993. t = t ^ *(*TCARD32)(unsafe.Pointer(s + uintptr(i+int32(1))*4))
  3994. t = t>>libc.Int32FromInt32(4) | t<<libc.Int32FromInt32(28)
  3995. 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 */
  3996. t = l<<libc.Int32FromInt32(1) | l>>libc.Int32FromInt32(31)
  3997. u = t ^ *(*TCARD32)(unsafe.Pointer(s + uintptr(i-int32(2))*4))
  3998. t = t ^ *(*TCARD32)(unsafe.Pointer(s + uintptr(i-int32(2)+int32(1))*4))
  3999. t = t>>libc.Int32FromInt32(4) | t<<libc.Int32FromInt32(28)
  4000. 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 */
  4001. goto _10
  4002. _10:
  4003. ;
  4004. i -= int32(4)
  4005. }
  4006. }
  4007. /* swap l and r
  4008. * we will not do the swap so just remember they are
  4009. * reversed for the rest of the subroutine
  4010. * luckily by FP fixes this problem :-) */
  4011. t = (r>>libc.Int32FromInt32(1) ^ l) & libc.Uint32FromInt32(libc.Int32FromInt32(0x55555555))
  4012. l ^= t
  4013. r ^= t << libc.Int32FromInt32(1)
  4014. t = (l>>libc.Int32FromInt32(8) ^ r) & libc.Uint32FromInt32(libc.Int32FromInt32(0x00ff00ff))
  4015. r ^= t
  4016. l ^= t << libc.Int32FromInt32(8)
  4017. t = (r>>libc.Int32FromInt32(2) ^ l) & libc.Uint32FromInt32(libc.Int32FromInt32(0x33333333))
  4018. l ^= t
  4019. r ^= t << libc.Int32FromInt32(2)
  4020. t = (l>>libc.Int32FromInt32(16) ^ r) & libc.Uint32FromInt32(libc.Int32FromInt32(0x0000ffff))
  4021. r ^= t
  4022. l ^= t << libc.Int32FromInt32(16)
  4023. t = (r>>libc.Int32FromInt32(4) ^ l) & libc.Uint32FromInt32(libc.Int32FromInt32(0x0f0f0f0f))
  4024. l ^= t
  4025. r ^= t << libc.Int32FromInt32(4)
  4026. v11 = out
  4027. out++
  4028. *(*TCARD8)(unsafe.Pointer(v11)) = uint8(l & libc.Uint32FromInt32(0xff))
  4029. v12 = out
  4030. out++
  4031. *(*TCARD8)(unsafe.Pointer(v12)) = uint8(l >> libc.Int32FromInt32(8) & libc.Uint32FromInt32(0xff))
  4032. v13 = out
  4033. out++
  4034. *(*TCARD8)(unsafe.Pointer(v13)) = uint8(l >> libc.Int32FromInt32(16) & libc.Uint32FromInt32(0xff))
  4035. v14 = out
  4036. out++
  4037. *(*TCARD8)(unsafe.Pointer(v14)) = uint8(l >> libc.Int32FromInt32(24) & libc.Uint32FromInt32(0xff))
  4038. v15 = out
  4039. out++
  4040. *(*TCARD8)(unsafe.Pointer(v15)) = uint8(r & libc.Uint32FromInt32(0xff))
  4041. v16 = out
  4042. out++
  4043. *(*TCARD8)(unsafe.Pointer(v16)) = uint8(r >> libc.Int32FromInt32(8) & libc.Uint32FromInt32(0xff))
  4044. v17 = out
  4045. out++
  4046. *(*TCARD8)(unsafe.Pointer(v17)) = uint8(r >> libc.Int32FromInt32(16) & libc.Uint32FromInt32(0xff))
  4047. v18 = out
  4048. out++
  4049. *(*TCARD8)(unsafe.Pointer(v18)) = uint8(r >> libc.Int32FromInt32(24) & libc.Uint32FromInt32(0xff))
  4050. return
  4051. }