ccgo_linux_arm64.go 117 KB

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