ccgo_linux_amd64.go 117 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064
  1. // Code generated for linux/amd64 by 'generator -no-main-minimize -DHAVE_LIBBSD --prefix-enumerator=_ --prefix-external=x_ --prefix-field=F --prefix-macro=m_ --prefix-static-internal=_ --prefix-static-none=_ --prefix-tagged-enum=_ --prefix-tagged-struct=T --prefix-tagged-union=T --prefix-typename=T --prefix-undefined=_ -extended-errors -ignore-unsupported-alignment -ignore-link-errors -I /home/jnml/src/modernc.org/builder/.exclude/modernc.org/libbsd/include/linux/amd64 -lbsd -o libxdmcp.go --package-name libxdmcp .libs/libXdmcp.a', DO NOT EDIT.
  2. //go:build linux && amd64
  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 = 040000
  354. const m_O_DIRECTORY = 0200000
  355. const m_O_DSYNC = 010000
  356. const m_O_EXCL = 0200
  357. const m_O_EXEC = "O_PATH"
  358. const m_O_LARGEFILE = 0100000
  359. const m_O_NDELAY = "O_NONBLOCK"
  360. const m_O_NOATIME = 01000000
  361. const m_O_NOCTTY = 0400
  362. const m_O_NOFOLLOW = 0400000
  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 = 020200000
  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___ATOMIC_ACQUIRE = 2
  791. const m___ATOMIC_ACQ_REL = 4
  792. const m___ATOMIC_CONSUME = 1
  793. const m___ATOMIC_HLE_ACQUIRE = 65536
  794. const m___ATOMIC_HLE_RELEASE = 131072
  795. const m___ATOMIC_RELAXED = 0
  796. const m___ATOMIC_RELEASE = 3
  797. const m___ATOMIC_SEQ_CST = 5
  798. const m___BIGGEST_ALIGNMENT__ = 16
  799. const m___BIG_ENDIAN = 4321
  800. const m___BYTE_ORDER = 1234
  801. const m___BYTE_ORDER__ = "__ORDER_LITTLE_ENDIAN__"
  802. const m___CCGO__ = 1
  803. const m___CHAR_BIT__ = 8
  804. const m___DBL_DECIMAL_DIG__ = 17
  805. const m___DBL_DIG__ = 15
  806. const m___DBL_HAS_DENORM__ = 1
  807. const m___DBL_HAS_INFINITY__ = 1
  808. const m___DBL_HAS_QUIET_NAN__ = 1
  809. const m___DBL_IS_IEC_60559__ = 2
  810. const m___DBL_MANT_DIG__ = 53
  811. const m___DBL_MAX_10_EXP__ = 308
  812. const m___DBL_MAX_EXP__ = 1024
  813. const m___DEC128_EPSILON__ = 1e-33
  814. const m___DEC128_MANT_DIG__ = 34
  815. const m___DEC128_MAX_EXP__ = 6145
  816. const m___DEC128_MAX__ = "9.999999999999999999999999999999999E6144"
  817. const m___DEC128_MIN__ = 1e-6143
  818. const m___DEC128_SUBNORMAL_MIN__ = 0.000000000000000000000000000000001e-6143
  819. const m___DEC32_EPSILON__ = 1e-6
  820. const m___DEC32_MANT_DIG__ = 7
  821. const m___DEC32_MAX_EXP__ = 97
  822. const m___DEC32_MAX__ = 9.999999e96
  823. const m___DEC32_MIN__ = 1e-95
  824. const m___DEC32_SUBNORMAL_MIN__ = 0.000001e-95
  825. const m___DEC64_EPSILON__ = 1e-15
  826. const m___DEC64_MANT_DIG__ = 16
  827. const m___DEC64_MAX_EXP__ = 385
  828. const m___DEC64_MAX__ = "9.999999999999999E384"
  829. const m___DEC64_MIN__ = 1e-383
  830. const m___DEC64_SUBNORMAL_MIN__ = 0.000000000000001e-383
  831. const m___DECIMAL_BID_FORMAT__ = 1
  832. const m___DECIMAL_DIG__ = 17
  833. const m___DEC_EVAL_METHOD__ = 2
  834. const m___ELF__ = 1
  835. const m___EXTENSIONS__ = 1
  836. const m___FINITE_MATH_ONLY__ = 0
  837. const m___FLOAT_WORD_ORDER__ = "__ORDER_LITTLE_ENDIAN__"
  838. const m___FLT128_DECIMAL_DIG__ = 36
  839. const m___FLT128_DENORM_MIN__ = 6.47517511943802511092443895822764655e-4966
  840. const m___FLT128_DIG__ = 33
  841. const m___FLT128_EPSILON__ = 1.92592994438723585305597794258492732e-34
  842. const m___FLT128_HAS_DENORM__ = 1
  843. const m___FLT128_HAS_INFINITY__ = 1
  844. const m___FLT128_HAS_QUIET_NAN__ = 1
  845. const m___FLT128_IS_IEC_60559__ = 2
  846. const m___FLT128_MANT_DIG__ = 113
  847. const m___FLT128_MAX_10_EXP__ = 4932
  848. const m___FLT128_MAX_EXP__ = 16384
  849. const m___FLT128_MAX__ = "1.18973149535723176508575932662800702e+4932"
  850. const m___FLT128_MIN__ = 3.36210314311209350626267781732175260e-4932
  851. const m___FLT128_NORM_MAX__ = "1.18973149535723176508575932662800702e+4932"
  852. const m___FLT16_DECIMAL_DIG__ = 5
  853. const m___FLT16_DENORM_MIN__ = 5.96046447753906250000000000000000000e-8
  854. const m___FLT16_DIG__ = 3
  855. const m___FLT16_EPSILON__ = 9.76562500000000000000000000000000000e-4
  856. const m___FLT16_HAS_DENORM__ = 1
  857. const m___FLT16_HAS_INFINITY__ = 1
  858. const m___FLT16_HAS_QUIET_NAN__ = 1
  859. const m___FLT16_IS_IEC_60559__ = 2
  860. const m___FLT16_MANT_DIG__ = 11
  861. const m___FLT16_MAX_10_EXP__ = 4
  862. const m___FLT16_MAX_EXP__ = 16
  863. const m___FLT16_MAX__ = 6.55040000000000000000000000000000000e+4
  864. const m___FLT16_MIN__ = 6.10351562500000000000000000000000000e-5
  865. const m___FLT16_NORM_MAX__ = 6.55040000000000000000000000000000000e+4
  866. const m___FLT32X_DECIMAL_DIG__ = 17
  867. const m___FLT32X_DENORM_MIN__ = 4.94065645841246544176568792868221372e-324
  868. const m___FLT32X_DIG__ = 15
  869. const m___FLT32X_EPSILON__ = 2.22044604925031308084726333618164062e-16
  870. const m___FLT32X_HAS_DENORM__ = 1
  871. const m___FLT32X_HAS_INFINITY__ = 1
  872. const m___FLT32X_HAS_QUIET_NAN__ = 1
  873. const m___FLT32X_IS_IEC_60559__ = 2
  874. const m___FLT32X_MANT_DIG__ = 53
  875. const m___FLT32X_MAX_10_EXP__ = 308
  876. const m___FLT32X_MAX_EXP__ = 1024
  877. const m___FLT32X_MAX__ = 1.79769313486231570814527423731704357e+308
  878. const m___FLT32X_MIN__ = 2.22507385850720138309023271733240406e-308
  879. const m___FLT32X_NORM_MAX__ = 1.79769313486231570814527423731704357e+308
  880. const m___FLT32_DECIMAL_DIG__ = 9
  881. const m___FLT32_DENORM_MIN__ = 1.40129846432481707092372958328991613e-45
  882. const m___FLT32_DIG__ = 6
  883. const m___FLT32_EPSILON__ = 1.19209289550781250000000000000000000e-7
  884. const m___FLT32_HAS_DENORM__ = 1
  885. const m___FLT32_HAS_INFINITY__ = 1
  886. const m___FLT32_HAS_QUIET_NAN__ = 1
  887. const m___FLT32_IS_IEC_60559__ = 2
  888. const m___FLT32_MANT_DIG__ = 24
  889. const m___FLT32_MAX_10_EXP__ = 38
  890. const m___FLT32_MAX_EXP__ = 128
  891. const m___FLT32_MAX__ = 3.40282346638528859811704183484516925e+38
  892. const m___FLT32_MIN__ = 1.17549435082228750796873653722224568e-38
  893. const m___FLT32_NORM_MAX__ = 3.40282346638528859811704183484516925e+38
  894. const m___FLT64X_DECIMAL_DIG__ = 36
  895. const m___FLT64X_DENORM_MIN__ = 6.47517511943802511092443895822764655e-4966
  896. const m___FLT64X_DIG__ = 33
  897. const m___FLT64X_EPSILON__ = 1.92592994438723585305597794258492732e-34
  898. const m___FLT64X_HAS_DENORM__ = 1
  899. const m___FLT64X_HAS_INFINITY__ = 1
  900. const m___FLT64X_HAS_QUIET_NAN__ = 1
  901. const m___FLT64X_IS_IEC_60559__ = 2
  902. const m___FLT64X_MANT_DIG__ = 113
  903. const m___FLT64X_MAX_10_EXP__ = 4932
  904. const m___FLT64X_MAX_EXP__ = 16384
  905. const m___FLT64X_MAX__ = "1.18973149535723176508575932662800702e+4932"
  906. const m___FLT64X_MIN__ = 3.36210314311209350626267781732175260e-4932
  907. const m___FLT64X_NORM_MAX__ = "1.18973149535723176508575932662800702e+4932"
  908. const m___FLT64_DECIMAL_DIG__ = 17
  909. const m___FLT64_DENORM_MIN__ = 4.94065645841246544176568792868221372e-324
  910. const m___FLT64_DIG__ = 15
  911. const m___FLT64_EPSILON__ = 2.22044604925031308084726333618164062e-16
  912. const m___FLT64_HAS_DENORM__ = 1
  913. const m___FLT64_HAS_INFINITY__ = 1
  914. const m___FLT64_HAS_QUIET_NAN__ = 1
  915. const m___FLT64_IS_IEC_60559__ = 2
  916. const m___FLT64_MANT_DIG__ = 53
  917. const m___FLT64_MAX_10_EXP__ = 308
  918. const m___FLT64_MAX_EXP__ = 1024
  919. const m___FLT64_MAX__ = 1.79769313486231570814527423731704357e+308
  920. const m___FLT64_MIN__ = 2.22507385850720138309023271733240406e-308
  921. const m___FLT64_NORM_MAX__ = 1.79769313486231570814527423731704357e+308
  922. const m___FLT_DECIMAL_DIG__ = 9
  923. const m___FLT_DENORM_MIN__ = 1.40129846432481707092372958328991613e-45
  924. const m___FLT_DIG__ = 6
  925. const m___FLT_EPSILON__ = 1.19209289550781250000000000000000000e-7
  926. const m___FLT_EVAL_METHOD_TS_18661_3__ = 0
  927. const m___FLT_EVAL_METHOD__ = 0
  928. const m___FLT_HAS_DENORM__ = 1
  929. const m___FLT_HAS_INFINITY__ = 1
  930. const m___FLT_HAS_QUIET_NAN__ = 1
  931. const m___FLT_IS_IEC_60559__ = 2
  932. const m___FLT_MANT_DIG__ = 24
  933. const m___FLT_MAX_10_EXP__ = 38
  934. const m___FLT_MAX_EXP__ = 128
  935. const m___FLT_MAX__ = 3.40282346638528859811704183484516925e+38
  936. const m___FLT_MIN__ = 1.17549435082228750796873653722224568e-38
  937. const m___FLT_NORM_MAX__ = 3.40282346638528859811704183484516925e+38
  938. const m___FLT_RADIX__ = 2
  939. const m___FUNCTION__ = "__func__"
  940. const m___FXSR__ = 1
  941. const m___GCC_ASM_FLAG_OUTPUTS__ = 1
  942. const m___GCC_ATOMIC_BOOL_LOCK_FREE = 2
  943. const m___GCC_ATOMIC_CHAR16_T_LOCK_FREE = 2
  944. const m___GCC_ATOMIC_CHAR32_T_LOCK_FREE = 2
  945. const m___GCC_ATOMIC_CHAR_LOCK_FREE = 2
  946. const m___GCC_ATOMIC_INT_LOCK_FREE = 2
  947. const m___GCC_ATOMIC_LLONG_LOCK_FREE = 2
  948. const m___GCC_ATOMIC_LONG_LOCK_FREE = 2
  949. const m___GCC_ATOMIC_POINTER_LOCK_FREE = 2
  950. const m___GCC_ATOMIC_SHORT_LOCK_FREE = 2
  951. const m___GCC_ATOMIC_TEST_AND_SET_TRUEVAL = 1
  952. const m___GCC_ATOMIC_WCHAR_T_LOCK_FREE = 2
  953. const m___GCC_CONSTRUCTIVE_SIZE = 64
  954. const m___GCC_DESTRUCTIVE_SIZE = 64
  955. const m___GCC_HAVE_DWARF2_CFI_ASM = 1
  956. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_1 = 1
  957. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_2 = 1
  958. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 = 1
  959. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 = 1
  960. const m___GCC_IEC_559 = 2
  961. const m___GCC_IEC_559_COMPLEX = 2
  962. const m___GNUC_EXECUTION_CHARSET_NAME = "UTF-8"
  963. const m___GNUC_MINOR__ = 2
  964. const m___GNUC_PATCHLEVEL__ = 0
  965. const m___GNUC_STDC_INLINE__ = 1
  966. const m___GNUC_WIDE_EXECUTION_CHARSET_NAME = "UTF-32LE"
  967. const m___GNUC__ = 12
  968. const m___GXX_ABI_VERSION = 1017
  969. const m___HAVE_SPECULATION_SAFE_VALUE = 1
  970. const m___INT16_MAX__ = 0x7fff
  971. const m___INT32_MAX__ = 0x7fffffff
  972. const m___INT32_TYPE__ = "int"
  973. const m___INT64_MAX__ = 0x7fffffffffffffff
  974. const m___INT8_MAX__ = 0x7f
  975. const m___INTMAX_MAX__ = 0x7fffffffffffffff
  976. const m___INTMAX_WIDTH__ = 64
  977. const m___INTPTR_MAX__ = 0x7fffffffffffffff
  978. const m___INTPTR_WIDTH__ = 64
  979. const m___INT_FAST16_MAX__ = 0x7fffffffffffffff
  980. const m___INT_FAST16_WIDTH__ = 64
  981. const m___INT_FAST32_MAX__ = 0x7fffffffffffffff
  982. const m___INT_FAST32_WIDTH__ = 64
  983. const m___INT_FAST64_MAX__ = 0x7fffffffffffffff
  984. const m___INT_FAST64_WIDTH__ = 64
  985. const m___INT_FAST8_MAX__ = 0x7f
  986. const m___INT_FAST8_WIDTH__ = 8
  987. const m___INT_LEAST16_MAX__ = 0x7fff
  988. const m___INT_LEAST16_WIDTH__ = 16
  989. const m___INT_LEAST32_MAX__ = 0x7fffffff
  990. const m___INT_LEAST32_TYPE__ = "int"
  991. const m___INT_LEAST32_WIDTH__ = 32
  992. const m___INT_LEAST64_MAX__ = 0x7fffffffffffffff
  993. const m___INT_LEAST64_WIDTH__ = 64
  994. const m___INT_LEAST8_MAX__ = 0x7f
  995. const m___INT_LEAST8_WIDTH__ = 8
  996. const m___INT_MAX__ = 0x7fffffff
  997. const m___INT_WIDTH__ = 32
  998. const m___LDBL_DECIMAL_DIG__ = 17
  999. const m___LDBL_DENORM_MIN__ = 4.94065645841246544176568792868221372e-324
  1000. const m___LDBL_DIG__ = 15
  1001. const m___LDBL_EPSILON__ = 2.22044604925031308084726333618164062e-16
  1002. const m___LDBL_HAS_DENORM__ = 1
  1003. const m___LDBL_HAS_INFINITY__ = 1
  1004. const m___LDBL_HAS_QUIET_NAN__ = 1
  1005. const m___LDBL_IS_IEC_60559__ = 2
  1006. const m___LDBL_MANT_DIG__ = 53
  1007. const m___LDBL_MAX_10_EXP__ = 308
  1008. const m___LDBL_MAX_EXP__ = 1024
  1009. const m___LDBL_MAX__ = 1.79769313486231570814527423731704357e+308
  1010. const m___LDBL_MIN__ = 2.22507385850720138309023271733240406e-308
  1011. const m___LDBL_NORM_MAX__ = 1.79769313486231570814527423731704357e+308
  1012. const m___LITTLE_ENDIAN = 1234
  1013. const m___LONG_DOUBLE_64__ = 1
  1014. const m___LONG_LONG_MAX__ = 0x7fffffffffffffff
  1015. const m___LONG_LONG_WIDTH__ = 64
  1016. const m___LONG_MAX = 0x7fffffffffffffff
  1017. const m___LONG_MAX__ = 0x7fffffffffffffff
  1018. const m___LONG_WIDTH__ = 64
  1019. const m___LP64__ = 1
  1020. const m___MMX_WITH_SSE__ = 1
  1021. const m___MMX__ = 1
  1022. const m___NO_INLINE__ = 1
  1023. const m___ORDER_BIG_ENDIAN__ = 4321
  1024. const m___ORDER_LITTLE_ENDIAN__ = 1234
  1025. const m___ORDER_PDP_ENDIAN__ = 3412
  1026. const m___PDP_ENDIAN = 3412
  1027. const m___PIC__ = 2
  1028. const m___PIE__ = 2
  1029. const m___PRAGMA_REDEFINE_EXTNAME = 1
  1030. const m___PRETTY_FUNCTION__ = "__func__"
  1031. const m___PTRDIFF_MAX__ = 0x7fffffffffffffff
  1032. const m___PTRDIFF_WIDTH__ = 64
  1033. const m___SCHAR_MAX__ = 0x7f
  1034. const m___SCHAR_WIDTH__ = 8
  1035. const m___SEG_FS = 1
  1036. const m___SEG_GS = 1
  1037. const m___SHRT_MAX__ = 0x7fff
  1038. const m___SHRT_WIDTH__ = 16
  1039. const m___SIG_ATOMIC_MAX__ = 0x7fffffff
  1040. const m___SIG_ATOMIC_TYPE__ = "int"
  1041. const m___SIG_ATOMIC_WIDTH__ = 32
  1042. const m___SIZEOF_DOUBLE__ = 8
  1043. const m___SIZEOF_FLOAT128__ = 16
  1044. const m___SIZEOF_FLOAT80__ = 16
  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___SSE2_MATH__ = 1
  1060. const m___SSE2__ = 1
  1061. const m___SSE_MATH__ = 1
  1062. const m___SSE__ = 1
  1063. const m___STDC_HOSTED__ = 1
  1064. const m___STDC_IEC_559_COMPLEX__ = 1
  1065. const m___STDC_IEC_559__ = 1
  1066. const m___STDC_IEC_60559_BFP__ = 201404
  1067. const m___STDC_IEC_60559_COMPLEX__ = 201404
  1068. const m___STDC_ISO_10646__ = 201706
  1069. const m___STDC_UTF_16__ = 1
  1070. const m___STDC_UTF_32__ = 1
  1071. const m___STDC_VERSION__ = 201710
  1072. const m___STDC__ = 1
  1073. const m___UINT16_MAX__ = 0xffff
  1074. const m___UINT32_MAX__ = 0xffffffff
  1075. const m___UINT64_MAX__ = 0xffffffffffffffff
  1076. const m___UINT8_MAX__ = 0xff
  1077. const m___UINTMAX_MAX__ = 0xffffffffffffffff
  1078. const m___UINTPTR_MAX__ = 0xffffffffffffffff
  1079. const m___UINT_FAST16_MAX__ = 0xffffffffffffffff
  1080. const m___UINT_FAST32_MAX__ = 0xffffffffffffffff
  1081. const m___UINT_FAST64_MAX__ = 0xffffffffffffffff
  1082. const m___UINT_FAST8_MAX__ = 0xff
  1083. const m___UINT_LEAST16_MAX__ = 0xffff
  1084. const m___UINT_LEAST32_MAX__ = 0xffffffff
  1085. const m___UINT_LEAST64_MAX__ = 0xffffffffffffffff
  1086. const m___UINT_LEAST8_MAX__ = 0xff
  1087. const m___USE_TIME_BITS64 = 1
  1088. const m___VERSION__ = "12.2.0"
  1089. const m___WCHAR_MAX__ = 0x7fffffff
  1090. const m___WCHAR_TYPE__ = "int"
  1091. const m___WCHAR_WIDTH__ = 32
  1092. const m___WINT_MAX__ = 0xffffffff
  1093. const m___WINT_MIN__ = 0
  1094. const m___WINT_WIDTH__ = 32
  1095. const m___amd64 = 1
  1096. const m___amd64__ = 1
  1097. const m___code_model_small__ = 1
  1098. const m___gnu_linux__ = 1
  1099. const m___inline = "inline"
  1100. const m___k8 = 1
  1101. const m___k8__ = 1
  1102. const m___linux = 1
  1103. const m___linux__ = 1
  1104. const m___pic__ = 2
  1105. const m___pie__ = 2
  1106. const m___restrict = "restrict"
  1107. const m___restrict_arr = "restrict"
  1108. const m___tm_gmtoff = "tm_gmtoff"
  1109. const m___tm_zone = "tm_zone"
  1110. const m___unix = 1
  1111. const m___unix__ = 1
  1112. const m___x86_64 = 1
  1113. const m___x86_64__ = 1
  1114. const m_alloca = "__builtin_alloca"
  1115. const m_linux = 1
  1116. const m_loff_t = "off_t"
  1117. const m_unix = 1
  1118. type t__builtin_va_list = uintptr
  1119. type t__predefined_size_t = uint64
  1120. type t__predefined_wchar_t = int32
  1121. type t__predefined_ptrdiff_t = int64
  1122. type Tsize_t = uint64
  1123. type Tssize_t = int64
  1124. type Tregister_t = int64
  1125. type Ttime_t = int64
  1126. type Tsuseconds_t = int64
  1127. type Tint8_t = int8
  1128. type Tint16_t = int16
  1129. type Tint32_t = int32
  1130. type Tint64_t = int64
  1131. type Tu_int64_t = uint64
  1132. type Tmode_t = uint32
  1133. type Tnlink_t = uint64
  1134. type Toff_t = int64
  1135. type Tino_t = uint64
  1136. type Tdev_t = uint64
  1137. type Tblksize_t = int64
  1138. type Tblkcnt_t = int64
  1139. type Tfsblkcnt_t = uint64
  1140. type Tfsfilcnt_t = uint64
  1141. type Ttimer_t = uintptr
  1142. type Tclockid_t = int32
  1143. type Tclock_t = int64
  1144. type Tpid_t = int32
  1145. type Tid_t = uint32
  1146. type Tuid_t = uint32
  1147. type Tgid_t = uint32
  1148. type Tkey_t = int32
  1149. type Tuseconds_t = uint32
  1150. type Tpthread_t = uintptr
  1151. type Tpthread_once_t = int32
  1152. type Tpthread_key_t = uint32
  1153. type Tpthread_spinlock_t = int32
  1154. type Tpthread_mutexattr_t = struct {
  1155. F__attr uint32
  1156. }
  1157. type Tpthread_condattr_t = struct {
  1158. F__attr uint32
  1159. }
  1160. type Tpthread_barrierattr_t = struct {
  1161. F__attr uint32
  1162. }
  1163. type Tpthread_rwlockattr_t = struct {
  1164. F__attr [2]uint32
  1165. }
  1166. type Tpthread_attr_t = struct {
  1167. F__u struct {
  1168. F__vi [0][14]int32
  1169. F__s [0][7]uint64
  1170. F__i [14]int32
  1171. }
  1172. }
  1173. type Tpthread_mutex_t = struct {
  1174. F__u struct {
  1175. F__vi [0][10]int32
  1176. F__p [0][5]uintptr
  1177. F__i [10]int32
  1178. }
  1179. }
  1180. type Tpthread_cond_t = struct {
  1181. F__u struct {
  1182. F__vi [0][12]int32
  1183. F__p [0][6]uintptr
  1184. F__i [12]int32
  1185. }
  1186. }
  1187. type Tpthread_rwlock_t = struct {
  1188. F__u struct {
  1189. F__vi [0][14]int32
  1190. F__p [0][7]uintptr
  1191. F__i [14]int32
  1192. }
  1193. }
  1194. type Tpthread_barrier_t = struct {
  1195. F__u struct {
  1196. F__vi [0][8]int32
  1197. F__p [0][4]uintptr
  1198. F__i [8]int32
  1199. }
  1200. }
  1201. type Tu_int8_t = uint8
  1202. type Tu_int16_t = uint16
  1203. type Tu_int32_t = uint32
  1204. type Tcaddr_t = uintptr
  1205. type Tu_char = uint8
  1206. type Tu_short = uint16
  1207. type Tushort = uint16
  1208. type Tu_int = uint32
  1209. type Tuint = uint32
  1210. type Tu_long = uint64
  1211. type Tulong = uint64
  1212. type Tquad_t = int64
  1213. type Tu_quad_t = uint64
  1214. type Tuint16_t = uint16
  1215. type Tuint32_t = uint32
  1216. type Tuint64_t = uint64
  1217. type Ttimeval = struct {
  1218. Ftv_sec Ttime_t
  1219. Ftv_usec Tsuseconds_t
  1220. }
  1221. type Ttimespec = struct {
  1222. Ftv_sec Ttime_t
  1223. Ftv_nsec int64
  1224. }
  1225. type Tsigset_t = struct {
  1226. F__bits [16]uint64
  1227. }
  1228. type t__sigset_t = Tsigset_t
  1229. type Tfd_mask = uint64
  1230. type Tfd_set = struct {
  1231. Ffds_bits [16]uint64
  1232. }
  1233. type Tlocale_t = uintptr
  1234. type Tiovec = struct {
  1235. Fiov_base uintptr
  1236. Fiov_len Tsize_t
  1237. }
  1238. type Tflock = struct {
  1239. Fl_type int16
  1240. Fl_whence int16
  1241. Fl_start Toff_t
  1242. Fl_len Toff_t
  1243. Fl_pid Tpid_t
  1244. }
  1245. type Tfile_handle = struct {
  1246. Fhandle_bytes uint32
  1247. Fhandle_type int32
  1248. }
  1249. type Tf_owner_ex = struct {
  1250. Ftype1 int32
  1251. Fpid Tpid_t
  1252. }
  1253. type Tintptr_t = int64
  1254. type Titimerval = struct {
  1255. Fit_interval Ttimeval
  1256. Fit_value Ttimeval
  1257. }
  1258. type Ttimezone = struct {
  1259. Ftz_minuteswest int32
  1260. Ftz_dsttime int32
  1261. }
  1262. type Ttm = struct {
  1263. Ftm_sec int32
  1264. Ftm_min int32
  1265. Ftm_hour int32
  1266. Ftm_mday int32
  1267. Ftm_mon int32
  1268. Ftm_year int32
  1269. Ftm_wday int32
  1270. Ftm_yday int32
  1271. Ftm_isdst int32
  1272. Ftm_gmtoff int64
  1273. Ftm_zone uintptr
  1274. }
  1275. type Titimerspec = struct {
  1276. Fit_interval Ttimespec
  1277. Fit_value Ttimespec
  1278. }
  1279. type TXID = uint64
  1280. type TMask = uint64
  1281. type TAtom = uint64
  1282. type TVisualID = uint64
  1283. type TTime = uint64
  1284. type TWindow = uint64
  1285. type TDrawable = uint64
  1286. type TFont = uint64
  1287. type TPixmap = uint64
  1288. type TCursor = uint64
  1289. type TColormap = uint64
  1290. type TGContext = uint64
  1291. type TKeySym = uint64
  1292. type TKeyCode = uint8
  1293. type TINT64 = int64
  1294. type TINT32 = int32
  1295. type TINT16 = int16
  1296. type TINT8 = int8
  1297. type TCARD64 = uint64
  1298. type TCARD32 = uint32
  1299. type TCARD16 = uint16
  1300. type TCARD8 = uint8
  1301. type TBITS32 = uint32
  1302. type TBITS16 = uint16
  1303. type TBYTE = uint8
  1304. type TBOOL = uint8
  1305. type TxdmOpCode = int32
  1306. const _BROADCAST_QUERY = 1
  1307. const _QUERY = 2
  1308. const _INDIRECT_QUERY = 3
  1309. const _FORWARD_QUERY = 4
  1310. const _WILLING = 5
  1311. const _UNWILLING = 6
  1312. const _REQUEST = 7
  1313. const _ACCEPT = 8
  1314. const _DECLINE = 9
  1315. const _MANAGE = 10
  1316. const _REFUSE = 11
  1317. const _FAILED = 12
  1318. const _KEEPALIVE = 13
  1319. const _ALIVE = 14
  1320. type Txdmcp_states = int32
  1321. const _XDM_QUERY = 0
  1322. const _XDM_BROADCAST = 1
  1323. const _XDM_INDIRECT = 2
  1324. const _XDM_COLLECT_QUERY = 3
  1325. const _XDM_COLLECT_BROADCAST_QUERY = 4
  1326. const _XDM_COLLECT_INDIRECT_QUERY = 5
  1327. const _XDM_START_CONNECTION = 6
  1328. const _XDM_AWAIT_REQUEST_RESPONSE = 7
  1329. const _XDM_AWAIT_MANAGE_RESPONSE = 8
  1330. const _XDM_MANAGE = 9
  1331. const _XDM_RUN_SESSION = 10
  1332. const _XDM_OFF = 11
  1333. const _XDM_AWAIT_USER_INPUT = 12
  1334. const _XDM_KEEPALIVE = 13
  1335. const _XDM_AWAIT_ALIVE_RESPONSE = 14
  1336. const _XDM_KEEP_ME_LAST = 15
  1337. type TCARD8Ptr = uintptr
  1338. type TCARD16Ptr = uintptr
  1339. type TCARD32Ptr = uintptr
  1340. type TARRAY8 = struct {
  1341. Flength TCARD16
  1342. Fdata TCARD8Ptr
  1343. }
  1344. type T_ARRAY8 = TARRAY8
  1345. type TARRAY8Ptr = uintptr
  1346. type TARRAY16 = struct {
  1347. Flength TCARD8
  1348. Fdata TCARD16Ptr
  1349. }
  1350. type T_ARRAY16 = TARRAY16
  1351. type TARRAY16Ptr = uintptr
  1352. type TARRAY32 = struct {
  1353. Flength TCARD8
  1354. Fdata TCARD32Ptr
  1355. }
  1356. type T_ARRAY32 = TARRAY32
  1357. type TARRAY32Ptr = uintptr
  1358. type TARRAYofARRAY8 = struct {
  1359. Flength TCARD8
  1360. Fdata TARRAY8Ptr
  1361. }
  1362. type T_ARRAYofARRAY8 = TARRAYofARRAY8
  1363. type TARRAYofARRAY8Ptr = uintptr
  1364. type TXdmcpHeader = struct {
  1365. Fversion TCARD16
  1366. Fopcode TCARD16
  1367. Flength TCARD16
  1368. }
  1369. type T_XdmcpHeader = TXdmcpHeader
  1370. type TXdmcpHeaderPtr = uintptr
  1371. type TXdmcpBuffer = struct {
  1372. Fdata uintptr
  1373. Fsize int32
  1374. Fpointer int32
  1375. Fcount int32
  1376. }
  1377. type T_XdmcpBuffer = TXdmcpBuffer
  1378. type TXdmcpBufferPtr = uintptr
  1379. type TXdmAuthKeyRec = struct {
  1380. Fdata [8]TBYTE
  1381. }
  1382. type T_XdmAuthKey = TXdmAuthKeyRec
  1383. type TXdmAuthKeyPtr = uintptr
  1384. type TXdmcpNetaddr = uintptr
  1385. type Tuintptr_t = uint64
  1386. type Tintmax_t = int64
  1387. type Tuint8_t = uint8
  1388. type Tuintmax_t = uint64
  1389. type Tint_fast8_t = int8
  1390. type Tint_fast64_t = int64
  1391. type Tint_least8_t = int8
  1392. type Tint_least16_t = int16
  1393. type Tint_least32_t = int32
  1394. type Tint_least64_t = int64
  1395. type Tuint_fast8_t = uint8
  1396. type Tuint_fast64_t = uint64
  1397. type Tuint_least8_t = uint8
  1398. type Tuint_least16_t = uint16
  1399. type Tuint_least32_t = uint32
  1400. type Tuint_least64_t = uint64
  1401. type Tint_fast16_t = int32
  1402. type Tint_fast32_t = int32
  1403. type Tuint_fast16_t = uint32
  1404. type Tuint_fast32_t = uint32
  1405. type Twchar_t = int32
  1406. type Tdiv_t = struct {
  1407. Fquot int32
  1408. Frem int32
  1409. }
  1410. type Tldiv_t = struct {
  1411. Fquot int64
  1412. Frem int64
  1413. }
  1414. type Tlldiv_t = struct {
  1415. Fquot int64
  1416. Frem int64
  1417. }
  1418. // C documentation
  1419. //
  1420. // /*
  1421. // * This variant of malloc does not return NULL if zero size is passed into.
  1422. // */
  1423. func _xmalloc(tls *libc.TLS, size Tsize_t) (r uintptr) {
  1424. var v1 uint64
  1425. _ = v1
  1426. if size != 0 {
  1427. v1 = size
  1428. } else {
  1429. v1 = uint64(1)
  1430. }
  1431. return libc.Xmalloc(tls, v1)
  1432. }
  1433. // C documentation
  1434. //
  1435. // /*
  1436. // * This variant of calloc does not return NULL if zero count is passed into.
  1437. // */
  1438. func _xcalloc(tls *libc.TLS, n Tsize_t, size Tsize_t) (r uintptr) {
  1439. var v1 uint64
  1440. _ = v1
  1441. if n != 0 {
  1442. v1 = n
  1443. } else {
  1444. v1 = uint64(1)
  1445. }
  1446. return libc.Xcalloc(tls, v1, size)
  1447. }
  1448. // C documentation
  1449. //
  1450. // /*
  1451. // * This variant of realloc does not return NULL if zero size is passed into
  1452. // */
  1453. func _xrealloc(tls *libc.TLS, ptr uintptr, size Tsize_t) (r uintptr) {
  1454. var v1 uint64
  1455. _ = v1
  1456. if size != 0 {
  1457. v1 = size
  1458. } else {
  1459. v1 = uint64(1)
  1460. }
  1461. return libc.Xrealloc(tls, ptr, v1)
  1462. }
  1463. func XXdmcpAllocARRAY8(tls *libc.TLS, array TARRAY8Ptr, length int32) (r int32) {
  1464. /* length defined in ARRAY8 struct is a CARD16 (not CARD8 like the rest) */
  1465. if length > int32(m_UINT16_MAX) || length < 0 {
  1466. (*T_ARRAY8)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  1467. } else {
  1468. (*T_ARRAY8)(unsafe.Pointer(array)).Fdata = _xmalloc(tls, libc.Uint64FromInt32(length)*uint64(1))
  1469. }
  1470. if (*T_ARRAY8)(unsafe.Pointer(array)).Fdata == libc.UintptrFromInt32(0) {
  1471. (*T_ARRAY8)(unsafe.Pointer(array)).Flength = uint16(0)
  1472. return m_FALSE
  1473. }
  1474. (*T_ARRAY8)(unsafe.Pointer(array)).Flength = libc.Uint16FromInt32(length)
  1475. return int32(m_TRUE)
  1476. }
  1477. func XXdmcpAllocARRAY16(tls *libc.TLS, array TARRAY16Ptr, length int32) (r int32) {
  1478. /* length defined in ARRAY16 struct is a CARD8 */
  1479. if length > int32(m_UINT8_MAX) || length < 0 {
  1480. (*T_ARRAY16)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  1481. } else {
  1482. (*T_ARRAY16)(unsafe.Pointer(array)).Fdata = _xmalloc(tls, libc.Uint64FromInt32(length)*uint64(2))
  1483. }
  1484. if (*T_ARRAY16)(unsafe.Pointer(array)).Fdata == libc.UintptrFromInt32(0) {
  1485. (*T_ARRAY16)(unsafe.Pointer(array)).Flength = uint8(0)
  1486. return m_FALSE
  1487. }
  1488. (*T_ARRAY16)(unsafe.Pointer(array)).Flength = libc.Uint8FromInt32(length)
  1489. return int32(m_TRUE)
  1490. }
  1491. func XXdmcpAllocARRAY32(tls *libc.TLS, array TARRAY32Ptr, length int32) (r int32) {
  1492. /* length defined in ARRAY32 struct is a CARD8 */
  1493. if length > int32(m_UINT8_MAX) || length < 0 {
  1494. (*T_ARRAY32)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  1495. } else {
  1496. (*T_ARRAY32)(unsafe.Pointer(array)).Fdata = _xmalloc(tls, libc.Uint64FromInt32(length)*uint64(4))
  1497. }
  1498. if (*T_ARRAY32)(unsafe.Pointer(array)).Fdata == libc.UintptrFromInt32(0) {
  1499. (*T_ARRAY32)(unsafe.Pointer(array)).Flength = uint8(0)
  1500. return m_FALSE
  1501. }
  1502. (*T_ARRAY32)(unsafe.Pointer(array)).Flength = libc.Uint8FromInt32(length)
  1503. return int32(m_TRUE)
  1504. }
  1505. func XXdmcpAllocARRAYofARRAY8(tls *libc.TLS, array TARRAYofARRAY8Ptr, length int32) (r int32) {
  1506. /* length defined in ARRAYofARRAY8 struct is a CARD8 */
  1507. if length > int32(m_UINT8_MAX) || length < 0 {
  1508. (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  1509. } else {
  1510. /*
  1511. * Use calloc to ensure the pointers are cleared out so we
  1512. * don't try to free garbage if XdmcpDisposeARRAYofARRAY8()
  1513. * is called before the caller sets them to valid pointers.
  1514. */
  1515. (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata = _xcalloc(tls, libc.Uint64FromInt32(length), uint64(16))
  1516. }
  1517. if (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata == libc.UintptrFromInt32(0) {
  1518. (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength = uint8(0)
  1519. return m_FALSE
  1520. }
  1521. (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength = libc.Uint8FromInt32(length)
  1522. return int32(m_TRUE)
  1523. }
  1524. func XXdmcpARRAY8Equal(tls *libc.TLS, array1 TARRAY8Ptr, array2 TARRAY8Ptr) (r int32) {
  1525. if libc.Int32FromUint16((*T_ARRAY8)(unsafe.Pointer(array1)).Flength) != libc.Int32FromUint16((*T_ARRAY8)(unsafe.Pointer(array2)).Flength) {
  1526. return m_FALSE
  1527. }
  1528. if libc.Xmemcmp(tls, (*T_ARRAY8)(unsafe.Pointer(array1)).Fdata, (*T_ARRAY8)(unsafe.Pointer(array2)).Fdata, uint64((*T_ARRAY8)(unsafe.Pointer(array1)).Flength)) != 0 {
  1529. return m_FALSE
  1530. }
  1531. return int32(m_TRUE)
  1532. }
  1533. func XXdmcpCopyARRAY8(tls *libc.TLS, src TARRAY8Ptr, dst TARRAY8Ptr) (r int32) {
  1534. if !(XXdmcpAllocARRAY8(tls, dst, libc.Int32FromUint16((*T_ARRAY8)(unsafe.Pointer(src)).Flength)) != 0) {
  1535. return m_FALSE
  1536. }
  1537. libc.Xmemmove(tls, (*T_ARRAY8)(unsafe.Pointer(dst)).Fdata, (*T_ARRAY8)(unsafe.Pointer(src)).Fdata, uint64((*T_ARRAY8)(unsafe.Pointer(src)).Flength)*uint64(1))
  1538. return int32(m_TRUE)
  1539. }
  1540. func XXdmcpReallocARRAY8(tls *libc.TLS, array TARRAY8Ptr, length int32) (r int32) {
  1541. var newData TCARD8Ptr
  1542. _ = newData
  1543. /* length defined in ARRAY8 struct is a CARD16 (not CARD8 like the rest) */
  1544. if length > int32(m_UINT16_MAX) || length < 0 {
  1545. return m_FALSE
  1546. }
  1547. newData = _xrealloc(tls, (*T_ARRAY8)(unsafe.Pointer(array)).Fdata, libc.Uint64FromInt32(length)*uint64(1))
  1548. if !(newData != 0) {
  1549. return m_FALSE
  1550. }
  1551. (*T_ARRAY8)(unsafe.Pointer(array)).Flength = libc.Uint16FromInt32(length)
  1552. (*T_ARRAY8)(unsafe.Pointer(array)).Fdata = newData
  1553. return int32(m_TRUE)
  1554. }
  1555. func XXdmcpReallocARRAYofARRAY8(tls *libc.TLS, array TARRAYofARRAY8Ptr, length int32) (r int32) {
  1556. var newData TARRAY8Ptr
  1557. _ = newData
  1558. /* length defined in ARRAYofARRAY8 struct is a CARD8 */
  1559. if length > int32(m_UINT8_MAX) || length < 0 {
  1560. return m_FALSE
  1561. }
  1562. newData = _xrealloc(tls, (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata, libc.Uint64FromInt32(length)*uint64(16))
  1563. if !(newData != 0) {
  1564. return m_FALSE
  1565. }
  1566. if length > libc.Int32FromUint8((*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength) {
  1567. 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))
  1568. }
  1569. (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength = libc.Uint8FromInt32(length)
  1570. (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata = newData
  1571. return int32(m_TRUE)
  1572. }
  1573. func XXdmcpReallocARRAY16(tls *libc.TLS, array TARRAY16Ptr, length int32) (r int32) {
  1574. var newData TCARD16Ptr
  1575. _ = newData
  1576. /* length defined in ARRAY16 struct is a CARD8 */
  1577. if length > int32(m_UINT8_MAX) || length < 0 {
  1578. return m_FALSE
  1579. }
  1580. newData = _xrealloc(tls, (*T_ARRAY16)(unsafe.Pointer(array)).Fdata, libc.Uint64FromInt32(length)*uint64(2))
  1581. if !(newData != 0) {
  1582. return m_FALSE
  1583. }
  1584. (*T_ARRAY16)(unsafe.Pointer(array)).Flength = libc.Uint8FromInt32(length)
  1585. (*T_ARRAY16)(unsafe.Pointer(array)).Fdata = newData
  1586. return int32(m_TRUE)
  1587. }
  1588. func XXdmcpReallocARRAY32(tls *libc.TLS, array TARRAY32Ptr, length int32) (r int32) {
  1589. var newData TCARD32Ptr
  1590. _ = newData
  1591. /* length defined in ARRAY32 struct is a CARD8 */
  1592. if length > int32(m_UINT8_MAX) || length < 0 {
  1593. return m_FALSE
  1594. }
  1595. newData = _xrealloc(tls, (*T_ARRAY32)(unsafe.Pointer(array)).Fdata, libc.Uint64FromInt32(length)*uint64(4))
  1596. if !(newData != 0) {
  1597. return m_FALSE
  1598. }
  1599. (*T_ARRAY32)(unsafe.Pointer(array)).Flength = libc.Uint8FromInt32(length)
  1600. (*T_ARRAY32)(unsafe.Pointer(array)).Fdata = newData
  1601. return int32(m_TRUE)
  1602. }
  1603. func XXdmcpDisposeARRAY8(tls *libc.TLS, array TARRAY8Ptr) {
  1604. libc.Xfree(tls, (*T_ARRAY8)(unsafe.Pointer(array)).Fdata)
  1605. (*T_ARRAY8)(unsafe.Pointer(array)).Flength = uint16(0)
  1606. (*T_ARRAY8)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  1607. }
  1608. func XXdmcpDisposeARRAY16(tls *libc.TLS, array TARRAY16Ptr) {
  1609. libc.Xfree(tls, (*T_ARRAY16)(unsafe.Pointer(array)).Fdata)
  1610. (*T_ARRAY16)(unsafe.Pointer(array)).Flength = uint8(0)
  1611. (*T_ARRAY16)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  1612. }
  1613. func XXdmcpDisposeARRAY32(tls *libc.TLS, array TARRAY32Ptr) {
  1614. libc.Xfree(tls, (*T_ARRAY32)(unsafe.Pointer(array)).Fdata)
  1615. (*T_ARRAY32)(unsafe.Pointer(array)).Flength = uint8(0)
  1616. (*T_ARRAY32)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  1617. }
  1618. func XXdmcpDisposeARRAYofARRAY8(tls *libc.TLS, array TARRAYofARRAY8Ptr) {
  1619. var i int32
  1620. _ = i
  1621. if (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata != libc.UintptrFromInt32(0) {
  1622. i = 0
  1623. for {
  1624. if !(i < libc.Int32FromUint8((*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength)) {
  1625. break
  1626. }
  1627. XXdmcpDisposeARRAY8(tls, (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata+uintptr(i)*16)
  1628. goto _1
  1629. _1:
  1630. ;
  1631. i++
  1632. }
  1633. libc.Xfree(tls, (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata)
  1634. }
  1635. (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength = uint8(0)
  1636. (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  1637. }
  1638. const m_AF_ALG = "PF_ALG"
  1639. const m_AF_APPLETALK = "PF_APPLETALK"
  1640. const m_AF_ASH = "PF_ASH"
  1641. const m_AF_ATMPVC = "PF_ATMPVC"
  1642. const m_AF_ATMSVC = "PF_ATMSVC"
  1643. const m_AF_AX25 = "PF_AX25"
  1644. const m_AF_BLUETOOTH = "PF_BLUETOOTH"
  1645. const m_AF_BRIDGE = "PF_BRIDGE"
  1646. const m_AF_CAIF = "PF_CAIF"
  1647. const m_AF_CAN = "PF_CAN"
  1648. const m_AF_DECnet = "PF_DECnet"
  1649. const m_AF_ECONET = "PF_ECONET"
  1650. const m_AF_FILE = "AF_LOCAL"
  1651. const m_AF_IB = "PF_IB"
  1652. const m_AF_IEEE802154 = "PF_IEEE802154"
  1653. const m_AF_INET = "PF_INET"
  1654. const m_AF_INET6 = "PF_INET6"
  1655. const m_AF_IPX = "PF_IPX"
  1656. const m_AF_IRDA = "PF_IRDA"
  1657. const m_AF_ISDN = "PF_ISDN"
  1658. const m_AF_IUCV = "PF_IUCV"
  1659. const m_AF_KCM = "PF_KCM"
  1660. const m_AF_KEY = "PF_KEY"
  1661. const m_AF_LLC = "PF_LLC"
  1662. const m_AF_LOCAL = "PF_LOCAL"
  1663. const m_AF_MAX = "PF_MAX"
  1664. const m_AF_MPLS = "PF_MPLS"
  1665. const m_AF_NETBEUI = "PF_NETBEUI"
  1666. const m_AF_NETLINK = "PF_NETLINK"
  1667. const m_AF_NETROM = "PF_NETROM"
  1668. const m_AF_NFC = "PF_NFC"
  1669. const m_AF_PACKET = "PF_PACKET"
  1670. const m_AF_PHONET = "PF_PHONET"
  1671. const m_AF_PPPOX = "PF_PPPOX"
  1672. const m_AF_QIPCRTR = "PF_QIPCRTR"
  1673. const m_AF_RDS = "PF_RDS"
  1674. const m_AF_ROSE = "PF_ROSE"
  1675. const m_AF_ROUTE = "PF_ROUTE"
  1676. const m_AF_RXRPC = "PF_RXRPC"
  1677. const m_AF_SECURITY = "PF_SECURITY"
  1678. const m_AF_SMC = "PF_SMC"
  1679. const m_AF_SNA = "PF_SNA"
  1680. const m_AF_TIPC = "PF_TIPC"
  1681. const m_AF_UNIX = "AF_LOCAL"
  1682. const m_AF_UNSPEC = "PF_UNSPEC"
  1683. const m_AF_VSOCK = "PF_VSOCK"
  1684. const m_AF_WANPIPE = "PF_WANPIPE"
  1685. const m_AF_X25 = "PF_X25"
  1686. const m_AF_XDP = "PF_XDP"
  1687. const m_MSG_BATCH = 0x40000
  1688. const m_MSG_CMSG_CLOEXEC = 0x40000000
  1689. const m_MSG_CONFIRM = 0x0800
  1690. const m_MSG_CTRUNC = 0x0008
  1691. const m_MSG_DONTROUTE = 0x0004
  1692. const m_MSG_DONTWAIT = 0x0040
  1693. const m_MSG_EOR = 0x0080
  1694. const m_MSG_ERRQUEUE = 0x2000
  1695. const m_MSG_FASTOPEN = 0x20000000
  1696. const m_MSG_FIN = 0x0200
  1697. const m_MSG_MORE = 0x8000
  1698. const m_MSG_NOSIGNAL = 0x4000
  1699. const m_MSG_OOB = 0x0001
  1700. const m_MSG_PEEK = 0x0002
  1701. const m_MSG_PROXY = 0x0010
  1702. const m_MSG_RST = 0x1000
  1703. const m_MSG_SYN = 0x0400
  1704. const m_MSG_TRUNC = 0x0020
  1705. const m_MSG_WAITALL = 0x0100
  1706. const m_MSG_WAITFORONE = 0x10000
  1707. const m_MSG_ZEROCOPY = 0x4000000
  1708. const m_PF_ALG = 38
  1709. const m_PF_APPLETALK = 5
  1710. const m_PF_ASH = 18
  1711. const m_PF_ATMPVC = 8
  1712. const m_PF_ATMSVC = 20
  1713. const m_PF_AX25 = 3
  1714. const m_PF_BLUETOOTH = 31
  1715. const m_PF_BRIDGE = 7
  1716. const m_PF_CAIF = 37
  1717. const m_PF_CAN = 29
  1718. const m_PF_DECnet = 12
  1719. const m_PF_ECONET = 19
  1720. const m_PF_FILE = "PF_LOCAL"
  1721. const m_PF_IB = 27
  1722. const m_PF_IEEE802154 = 36
  1723. const m_PF_INET = 2
  1724. const m_PF_INET6 = 10
  1725. const m_PF_IPX = 4
  1726. const m_PF_IRDA = 23
  1727. const m_PF_ISDN = 34
  1728. const m_PF_IUCV = 32
  1729. const m_PF_KCM = 41
  1730. const m_PF_KEY = 15
  1731. const m_PF_LLC = 26
  1732. const m_PF_LOCAL = 1
  1733. const m_PF_MAX = 45
  1734. const m_PF_MPLS = 28
  1735. const m_PF_NETBEUI = 13
  1736. const m_PF_NETLINK = 16
  1737. const m_PF_NETROM = 6
  1738. const m_PF_NFC = 39
  1739. const m_PF_PACKET = 17
  1740. const m_PF_PHONET = 35
  1741. const m_PF_PPPOX = 24
  1742. const m_PF_QIPCRTR = 42
  1743. const m_PF_RDS = 21
  1744. const m_PF_ROSE = 11
  1745. const m_PF_ROUTE = "PF_NETLINK"
  1746. const m_PF_RXRPC = 33
  1747. const m_PF_SECURITY = 14
  1748. const m_PF_SMC = 43
  1749. const m_PF_SNA = 22
  1750. const m_PF_TIPC = 30
  1751. const m_PF_UNIX = "PF_LOCAL"
  1752. const m_PF_UNSPEC = 0
  1753. const m_PF_VSOCK = 40
  1754. const m_PF_WANPIPE = 25
  1755. const m_PF_X25 = 9
  1756. const m_PF_XDP = 44
  1757. const m_SCM_CREDENTIALS = 0x02
  1758. const m_SCM_RIGHTS = 0x01
  1759. const m_SCM_TIMESTAMP = "SO_TIMESTAMP"
  1760. const m_SCM_TIMESTAMPING = "SO_TIMESTAMPING"
  1761. const m_SCM_TIMESTAMPING_OPT_STATS = 54
  1762. const m_SCM_TIMESTAMPING_PKTINFO = 58
  1763. const m_SCM_TIMESTAMPNS = "SO_TIMESTAMPNS"
  1764. const m_SCM_TXTIME = "SO_TXTIME"
  1765. const m_SCM_WIFI_STATUS = "SO_WIFI_STATUS"
  1766. const m_SHUT_RD = 0
  1767. const m_SHUT_RDWR = 2
  1768. const m_SHUT_WR = 1
  1769. const m_SOCK_CLOEXEC = 02000000
  1770. const m_SOCK_DCCP = 6
  1771. const m_SOCK_DGRAM = 2
  1772. const m_SOCK_NONBLOCK = 04000
  1773. const m_SOCK_PACKET = 10
  1774. const m_SOCK_RAW = 3
  1775. const m_SOCK_RDM = 4
  1776. const m_SOCK_SEQPACKET = 5
  1777. const m_SOCK_STREAM = 1
  1778. const m_SOL_AAL = 265
  1779. const m_SOL_ALG = 279
  1780. const m_SOL_ATM = 264
  1781. const m_SOL_BLUETOOTH = 274
  1782. const m_SOL_CAIF = 278
  1783. const m_SOL_DCCP = 269
  1784. const m_SOL_DECNET = 261
  1785. const m_SOL_ICMPV6 = 58
  1786. const m_SOL_IP = 0
  1787. const m_SOL_IPV6 = 41
  1788. const m_SOL_IRDA = 266
  1789. const m_SOL_IUCV = 277
  1790. const m_SOL_KCM = 281
  1791. const m_SOL_LLC = 268
  1792. const m_SOL_NETBEUI = 267
  1793. const m_SOL_NETLINK = 270
  1794. const m_SOL_NFC = 280
  1795. const m_SOL_PACKET = 263
  1796. const m_SOL_PNPIPE = 275
  1797. const m_SOL_PPPOL2TP = 273
  1798. const m_SOL_RAW = 255
  1799. const m_SOL_RDS = 276
  1800. const m_SOL_RXRPC = 272
  1801. const m_SOL_SOCKET = 1
  1802. const m_SOL_TIPC = 271
  1803. const m_SOL_TLS = 282
  1804. const m_SOL_X25 = 262
  1805. const m_SOL_XDP = 283
  1806. const m_SOMAXCONN = 128
  1807. const m_SO_ACCEPTCONN = 30
  1808. const m_SO_ATTACH_BPF = 50
  1809. const m_SO_ATTACH_FILTER = 26
  1810. const m_SO_ATTACH_REUSEPORT_CBPF = 51
  1811. const m_SO_ATTACH_REUSEPORT_EBPF = 52
  1812. const m_SO_BINDTODEVICE = 25
  1813. const m_SO_BINDTOIFINDEX = 62
  1814. const m_SO_BPF_EXTENSIONS = 48
  1815. const m_SO_BROADCAST = 6
  1816. const m_SO_BSDCOMPAT = 14
  1817. const m_SO_BUSY_POLL = 46
  1818. const m_SO_BUSY_POLL_BUDGET = 70
  1819. const m_SO_CNX_ADVICE = 53
  1820. const m_SO_COOKIE = 57
  1821. const m_SO_DEBUG = 1
  1822. const m_SO_DETACH_BPF = "SO_DETACH_FILTER"
  1823. const m_SO_DETACH_FILTER = 27
  1824. const m_SO_DETACH_REUSEPORT_BPF = 68
  1825. const m_SO_DOMAIN = 39
  1826. const m_SO_DONTROUTE = 5
  1827. const m_SO_ERROR = 4
  1828. const m_SO_GET_FILTER = "SO_ATTACH_FILTER"
  1829. const m_SO_INCOMING_CPU = 49
  1830. const m_SO_INCOMING_NAPI_ID = 56
  1831. const m_SO_KEEPALIVE = 9
  1832. const m_SO_LINGER = 13
  1833. const m_SO_LOCK_FILTER = 44
  1834. const m_SO_MARK = 36
  1835. const m_SO_MAX_PACING_RATE = 47
  1836. const m_SO_MEMINFO = 55
  1837. const m_SO_NOFCS = 43
  1838. const m_SO_NO_CHECK = 11
  1839. const m_SO_OOBINLINE = 10
  1840. const m_SO_PASSCRED = 16
  1841. const m_SO_PASSSEC = 34
  1842. const m_SO_PEEK_OFF = 42
  1843. const m_SO_PEERCRED = 17
  1844. const m_SO_PEERGROUPS = 59
  1845. const m_SO_PEERNAME = 28
  1846. const m_SO_PEERSEC = 31
  1847. const m_SO_PREFER_BUSY_POLL = 69
  1848. const m_SO_PRIORITY = 12
  1849. const m_SO_PROTOCOL = 38
  1850. const m_SO_RCVBUF = 8
  1851. const m_SO_RCVBUFFORCE = 33
  1852. const m_SO_RCVLOWAT = 18
  1853. const m_SO_RCVTIMEO = 20
  1854. const m_SO_REUSEADDR = 2
  1855. const m_SO_REUSEPORT = 15
  1856. const m_SO_RXQ_OVFL = 40
  1857. const m_SO_SECURITY_AUTHENTICATION = 22
  1858. const m_SO_SECURITY_ENCRYPTION_NETWORK = 24
  1859. const m_SO_SECURITY_ENCRYPTION_TRANSPORT = 23
  1860. const m_SO_SELECT_ERR_QUEUE = 45
  1861. const m_SO_SNDBUF = 7
  1862. const m_SO_SNDBUFFORCE = 32
  1863. const m_SO_SNDLOWAT = 19
  1864. const m_SO_SNDTIMEO = 21
  1865. const m_SO_TIMESTAMP = 29
  1866. const m_SO_TIMESTAMPING = 37
  1867. const m_SO_TIMESTAMPNS = 35
  1868. const m_SO_TXTIME = 61
  1869. const m_SO_TYPE = 3
  1870. const m_SO_WIFI_STATUS = 41
  1871. const m_SO_ZEROCOPY = 60
  1872. type Tsocklen_t = uint32
  1873. type Tsa_family_t = uint16
  1874. type Tmsghdr = struct {
  1875. Fmsg_name uintptr
  1876. Fmsg_namelen Tsocklen_t
  1877. Fmsg_iov uintptr
  1878. Fmsg_iovlen int32
  1879. F__pad1 int32
  1880. Fmsg_control uintptr
  1881. Fmsg_controllen Tsocklen_t
  1882. F__pad2 int32
  1883. Fmsg_flags int32
  1884. }
  1885. type Tcmsghdr = struct {
  1886. Fcmsg_len Tsocklen_t
  1887. F__pad1 int32
  1888. Fcmsg_level int32
  1889. Fcmsg_type int32
  1890. }
  1891. type Tucred = struct {
  1892. Fpid Tpid_t
  1893. Fuid Tuid_t
  1894. Fgid Tgid_t
  1895. }
  1896. type Tmmsghdr = struct {
  1897. Fmsg_hdr Tmsghdr
  1898. Fmsg_len uint32
  1899. }
  1900. type Tlinger = struct {
  1901. Fl_onoff int32
  1902. Fl_linger int32
  1903. }
  1904. type Tsockaddr = struct {
  1905. Fsa_family Tsa_family_t
  1906. Fsa_data [14]int8
  1907. }
  1908. type Tsockaddr_storage = struct {
  1909. Fss_family Tsa_family_t
  1910. F__ss_padding [118]int8
  1911. F__ss_align uint64
  1912. }
  1913. func XXdmcpFill(tls *libc.TLS, fd int32, buffer TXdmcpBufferPtr, from TXdmcpNetaddr, fromlen uintptr) (r int32) {
  1914. var newBuf uintptr
  1915. _ = newBuf
  1916. if (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fsize < int32(m_XDM_MAX_MSGLEN) {
  1917. newBuf = libc.Xmalloc(tls, uint64(m_XDM_MAX_MSGLEN))
  1918. if newBuf != 0 {
  1919. libc.Xfree(tls, (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fdata)
  1920. (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fdata = newBuf
  1921. (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fsize = int32(m_XDM_MAX_MSGLEN)
  1922. }
  1923. }
  1924. (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fpointer = 0
  1925. (*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))
  1926. if (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fcount < int32(6) {
  1927. (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fcount = 0
  1928. return m_FALSE
  1929. }
  1930. return int32(m_TRUE)
  1931. }
  1932. func XXdmcpFlush(tls *libc.TLS, fd int32, buffer TXdmcpBufferPtr, to TXdmcpNetaddr, tolen int32) (r int32) {
  1933. var result int32
  1934. _ = result
  1935. 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)))
  1936. if result != (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fpointer {
  1937. return m_FALSE
  1938. }
  1939. return int32(m_TRUE)
  1940. }
  1941. const m_Time_t = "time_t"
  1942. const m_random = "lrand48"
  1943. const m_srandom = "srand48"
  1944. func XXdmcpGenerateKey(tls *libc.TLS, key TXdmAuthKeyPtr) {
  1945. libbsd.Xarc4random_buf(tls, key, libc.Uint64FromInt32(8))
  1946. }
  1947. func XXdmcpCompareKeys(tls *libc.TLS, a TXdmAuthKeyPtr, b TXdmAuthKeyPtr) (r int32) {
  1948. var i int32
  1949. _ = i
  1950. i = 0
  1951. for {
  1952. if !(i < int32(8)) {
  1953. break
  1954. }
  1955. if libc.Int32FromUint8(*(*TBYTE)(unsafe.Pointer(a + uintptr(i)))) != libc.Int32FromUint8(*(*TBYTE)(unsafe.Pointer(b + uintptr(i)))) {
  1956. return m_FALSE
  1957. }
  1958. goto _1
  1959. _1:
  1960. ;
  1961. i++
  1962. }
  1963. return int32(m_TRUE)
  1964. }
  1965. func XXdmcpIncrementKey(tls *libc.TLS, key TXdmAuthKeyPtr) {
  1966. var i, v3 int32
  1967. var v1 TBYTE
  1968. var v2 uintptr
  1969. _, _, _, _ = i, v1, v2, v3
  1970. i = int32(7)
  1971. for {
  1972. v2 = key + uintptr(i)
  1973. *(*TBYTE)(unsafe.Pointer(v2))++
  1974. v1 = *(*TBYTE)(unsafe.Pointer(v2))
  1975. if !(libc.Int32FromUint8(v1) == 0) {
  1976. break
  1977. }
  1978. i--
  1979. v3 = i
  1980. if v3 < 0 {
  1981. break
  1982. }
  1983. }
  1984. }
  1985. func XXdmcpDecrementKey(tls *libc.TLS, key TXdmAuthKeyPtr) {
  1986. var i, v3 int32
  1987. var v1 TBYTE
  1988. var v2 uintptr
  1989. _, _, _, _ = i, v1, v2, v3
  1990. i = int32(7)
  1991. for {
  1992. v2 = key + uintptr(i)
  1993. v1 = *(*TBYTE)(unsafe.Pointer(v2))
  1994. *(*TBYTE)(unsafe.Pointer(v2))--
  1995. if !(libc.Int32FromUint8(v1) == 0) {
  1996. break
  1997. }
  1998. i--
  1999. v3 = i
  2000. if v3 < 0 {
  2001. break
  2002. }
  2003. }
  2004. }
  2005. func XXdmcpReadHeader(tls *libc.TLS, buffer TXdmcpBufferPtr, header TXdmcpHeaderPtr) (r int32) {
  2006. if XXdmcpReadCARD16(tls, buffer, header) != 0 && XXdmcpReadCARD16(tls, buffer, header+2) != 0 && XXdmcpReadCARD16(tls, buffer, header+4) != 0 {
  2007. return int32(m_TRUE)
  2008. }
  2009. return m_FALSE
  2010. }
  2011. func XXdmcpReadRemaining(tls *libc.TLS, buffer TXdmcpBufferPtr) (r int32) {
  2012. return (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fcount - (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fpointer
  2013. }
  2014. func XXdmcpReadARRAY8(tls *libc.TLS, buffer TXdmcpBufferPtr, array TARRAY8Ptr) (r int32) {
  2015. var i int32
  2016. _ = i
  2017. /*
  2018. * When returning FALSE, guarantee that array->data = 0.
  2019. * This allows the user to safely call XdmcpDisposeARRAY8(array)
  2020. * regardless of the return value below.
  2021. * Note that XdmcpDisposeARRAY*(array) will call free(array->data),
  2022. * so we must guarantee that array->data is NULL or a malloced pointer.
  2023. */
  2024. if !(XXdmcpReadCARD16(tls, buffer, array) != 0) {
  2025. (*T_ARRAY8)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  2026. return m_FALSE
  2027. }
  2028. if !((*T_ARRAY8)(unsafe.Pointer(array)).Flength != 0) {
  2029. (*T_ARRAY8)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  2030. return int32(m_TRUE)
  2031. }
  2032. (*T_ARRAY8)(unsafe.Pointer(array)).Fdata = libc.Xmalloc(tls, uint64((*T_ARRAY8)(unsafe.Pointer(array)).Flength)*uint64(1))
  2033. if !((*T_ARRAY8)(unsafe.Pointer(array)).Fdata != 0) {
  2034. return m_FALSE
  2035. }
  2036. i = 0
  2037. for {
  2038. if !(i < libc.Int32FromUint16((*T_ARRAY8)(unsafe.Pointer(array)).Flength)) {
  2039. break
  2040. }
  2041. if !(XXdmcpReadCARD8(tls, buffer, (*T_ARRAY8)(unsafe.Pointer(array)).Fdata+uintptr(i)) != 0) {
  2042. libc.Xfree(tls, (*T_ARRAY8)(unsafe.Pointer(array)).Fdata)
  2043. (*T_ARRAY8)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  2044. (*T_ARRAY8)(unsafe.Pointer(array)).Flength = uint16(0)
  2045. return m_FALSE
  2046. }
  2047. goto _1
  2048. _1:
  2049. ;
  2050. i++
  2051. }
  2052. return int32(m_TRUE)
  2053. }
  2054. func XXdmcpReadARRAY16(tls *libc.TLS, buffer TXdmcpBufferPtr, array TARRAY16Ptr) (r int32) {
  2055. var i int32
  2056. _ = i
  2057. /*
  2058. * When returning FALSE, guarantee that array->data = 0.
  2059. * This allows the user to safely call XdmcpDisposeARRAY16(array)
  2060. * regardless of the return value below.
  2061. * Note that XdmcpDisposeARRAY*(array) will call free(array->data),
  2062. * so we must guarantee that array->data is NULL or a malloced pointer.
  2063. */
  2064. if !(XXdmcpReadCARD8(tls, buffer, array) != 0) {
  2065. (*T_ARRAY16)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  2066. return m_FALSE
  2067. }
  2068. if !((*T_ARRAY16)(unsafe.Pointer(array)).Flength != 0) {
  2069. (*T_ARRAY16)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  2070. return int32(m_TRUE)
  2071. }
  2072. (*T_ARRAY16)(unsafe.Pointer(array)).Fdata = libc.Xmalloc(tls, uint64((*T_ARRAY16)(unsafe.Pointer(array)).Flength)*uint64(2))
  2073. if !((*T_ARRAY16)(unsafe.Pointer(array)).Fdata != 0) {
  2074. return m_FALSE
  2075. }
  2076. i = 0
  2077. for {
  2078. if !(i < libc.Int32FromUint8((*T_ARRAY16)(unsafe.Pointer(array)).Flength)) {
  2079. break
  2080. }
  2081. if !(XXdmcpReadCARD16(tls, buffer, (*T_ARRAY16)(unsafe.Pointer(array)).Fdata+uintptr(i)*2) != 0) {
  2082. libc.Xfree(tls, (*T_ARRAY16)(unsafe.Pointer(array)).Fdata)
  2083. (*T_ARRAY16)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  2084. (*T_ARRAY16)(unsafe.Pointer(array)).Flength = uint8(0)
  2085. return m_FALSE
  2086. }
  2087. goto _1
  2088. _1:
  2089. ;
  2090. i++
  2091. }
  2092. return int32(m_TRUE)
  2093. }
  2094. func XXdmcpReadARRAY32(tls *libc.TLS, buffer TXdmcpBufferPtr, array TARRAY32Ptr) (r int32) {
  2095. var i int32
  2096. _ = i
  2097. /*
  2098. * When returning FALSE, guarantee that array->data = 0.
  2099. * This allows the user to safely call XdmcpDisposeARRAY32(array)
  2100. * regardless of the return value below.
  2101. * Note that XdmcpDisposeARRAY*(array) will call free(array->data),
  2102. * so we must guarantee that array->data is NULL or a malloced pointer.
  2103. */
  2104. if !(XXdmcpReadCARD8(tls, buffer, array) != 0) {
  2105. (*T_ARRAY32)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  2106. return m_FALSE
  2107. }
  2108. if !((*T_ARRAY32)(unsafe.Pointer(array)).Flength != 0) {
  2109. (*T_ARRAY32)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  2110. return int32(m_TRUE)
  2111. }
  2112. (*T_ARRAY32)(unsafe.Pointer(array)).Fdata = libc.Xmalloc(tls, uint64((*T_ARRAY32)(unsafe.Pointer(array)).Flength)*uint64(4))
  2113. if !((*T_ARRAY32)(unsafe.Pointer(array)).Fdata != 0) {
  2114. return m_FALSE
  2115. }
  2116. i = 0
  2117. for {
  2118. if !(i < libc.Int32FromUint8((*T_ARRAY32)(unsafe.Pointer(array)).Flength)) {
  2119. break
  2120. }
  2121. if !(XXdmcpReadCARD32(tls, buffer, (*T_ARRAY32)(unsafe.Pointer(array)).Fdata+uintptr(i)*4) != 0) {
  2122. libc.Xfree(tls, (*T_ARRAY32)(unsafe.Pointer(array)).Fdata)
  2123. (*T_ARRAY32)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  2124. (*T_ARRAY32)(unsafe.Pointer(array)).Flength = uint8(0)
  2125. return m_FALSE
  2126. }
  2127. goto _1
  2128. _1:
  2129. ;
  2130. i++
  2131. }
  2132. return int32(m_TRUE)
  2133. }
  2134. func XXdmcpReadARRAYofARRAY8(tls *libc.TLS, buffer TXdmcpBufferPtr, array TARRAYofARRAY8Ptr) (r int32) {
  2135. var i TCARD8
  2136. _ = i
  2137. /*
  2138. * When returning FALSE, guarantee that array->data = 0.
  2139. * This allows the user to safely call XdmcpDisposeARRAYofARRAY8(array)
  2140. * regardless of the return value below.
  2141. * Note that XdmcpDisposeARRAY*(array) will call free(array->data),
  2142. * so we must guarantee that array->data is NULL or a malloced pointer.
  2143. */
  2144. if !(XXdmcpReadCARD8(tls, buffer, array) != 0) {
  2145. (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  2146. return m_FALSE
  2147. }
  2148. if !((*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength != 0) {
  2149. (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  2150. return int32(m_TRUE)
  2151. }
  2152. (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata = libc.Xmalloc(tls, uint64((*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength)*uint64(16))
  2153. if !((*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata != 0) {
  2154. return m_FALSE
  2155. }
  2156. i = uint8(0)
  2157. for {
  2158. if !(libc.Int32FromUint8(i) < libc.Int32FromUint8((*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength)) {
  2159. break
  2160. }
  2161. if !(XXdmcpReadARRAY8(tls, buffer, (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata+uintptr(i)*16) != 0) {
  2162. /*
  2163. * We must free all of the arrays allocated thus far in the loop
  2164. * and free array->data and finally set array->data = 0;
  2165. * The easiest way to do this is to reset the length and call
  2166. * XdmcpDisposeARRAYofARRAY8(array).
  2167. */
  2168. (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength = i
  2169. XXdmcpDisposeARRAYofARRAY8(tls, array)
  2170. return m_FALSE
  2171. }
  2172. goto _1
  2173. _1:
  2174. ;
  2175. i++
  2176. }
  2177. return int32(m_TRUE)
  2178. }
  2179. func XXdmcpReadCARD8(tls *libc.TLS, buffer TXdmcpBufferPtr, valuep TCARD8Ptr) (r int32) {
  2180. var v1 int32
  2181. var v2 uintptr
  2182. _, _ = v1, v2
  2183. if (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fpointer >= (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fcount {
  2184. return m_FALSE
  2185. }
  2186. v2 = buffer + 12
  2187. v1 = *(*int32)(unsafe.Pointer(v2))
  2188. *(*int32)(unsafe.Pointer(v2))++
  2189. *(*TCARD8)(unsafe.Pointer(valuep)) = *(*TBYTE)(unsafe.Pointer((*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fdata + uintptr(v1)))
  2190. return int32(m_TRUE)
  2191. }
  2192. func XXdmcpReadCARD16(tls *libc.TLS, buffer TXdmcpBufferPtr, valuep TCARD16Ptr) (r int32) {
  2193. bp := tls.Alloc(16)
  2194. defer tls.Free(16)
  2195. var _ /* high at bp+0 */ TCARD8
  2196. var _ /* low at bp+1 */ TCARD8
  2197. if XXdmcpReadCARD8(tls, buffer, bp) != 0 && XXdmcpReadCARD8(tls, buffer, bp+1) != 0 {
  2198. *(*TCARD16)(unsafe.Pointer(valuep)) = libc.Uint16FromInt32(libc.Int32FromUint16(uint16(*(*TCARD8)(unsafe.Pointer(bp))))<<int32(8) | libc.Int32FromUint16(uint16(*(*TCARD8)(unsafe.Pointer(bp + 1)))))
  2199. return int32(m_TRUE)
  2200. }
  2201. return m_FALSE
  2202. }
  2203. func XXdmcpReadCARD32(tls *libc.TLS, buffer TXdmcpBufferPtr, valuep TCARD32Ptr) (r int32) {
  2204. bp := tls.Alloc(16)
  2205. defer tls.Free(16)
  2206. var _ /* byte0 at bp+0 */ TCARD8
  2207. var _ /* byte1 at bp+1 */ TCARD8
  2208. var _ /* byte2 at bp+2 */ TCARD8
  2209. var _ /* byte3 at bp+3 */ TCARD8
  2210. if XXdmcpReadCARD8(tls, buffer, bp) != 0 && XXdmcpReadCARD8(tls, buffer, bp+1) != 0 && XXdmcpReadCARD8(tls, buffer, bp+2) != 0 && XXdmcpReadCARD8(tls, buffer, bp+3) != 0 {
  2211. *(*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)))
  2212. return int32(m_TRUE)
  2213. }
  2214. return m_FALSE
  2215. }
  2216. type Tauth_cblock = [8]uint8
  2217. type Tauth_wrapper_schedule = [16]Tauth_ks_struct
  2218. type Tauth_ks_struct = struct {
  2219. F_1 Tauth_cblock
  2220. }
  2221. func XXdmcpUnwrap(tls *libc.TLS, input uintptr, wrapper uintptr, output uintptr, bytes int32) {
  2222. bp := tls.Alloc(160)
  2223. defer tls.Free(160)
  2224. var i, j, k, v3 int32
  2225. var _ /* blocks at bp+8 */ [2][8]uint8
  2226. var _ /* expand_wrapper at bp+24 */ [8]uint8
  2227. var _ /* schedule at bp+32 */ Tauth_wrapper_schedule
  2228. var _ /* tmp at bp+0 */ [8]uint8
  2229. _, _, _, _ = i, j, k, v3
  2230. X_XdmcpWrapperToOddParity(tls, wrapper, bp+24)
  2231. X_XdmcpAuthSetup(tls, bp+24, bp+32)
  2232. k = 0
  2233. j = 0
  2234. for {
  2235. if !(j < bytes) {
  2236. break
  2237. }
  2238. if bytes-j < int32(8) {
  2239. return
  2240. } /* bad input length */
  2241. i = 0
  2242. for {
  2243. if !(i < int32(8)) {
  2244. break
  2245. }
  2246. *(*uint8)(unsafe.Pointer(bp + 8 + uintptr(k)*8 + uintptr(i))) = *(*uint8)(unsafe.Pointer(input + uintptr(j+i)))
  2247. goto _2
  2248. _2:
  2249. ;
  2250. i++
  2251. }
  2252. X_XdmcpAuthDoIt(tls, input+uintptr(j), bp, bp+32, 0)
  2253. /* block chaining */
  2254. if k == 0 {
  2255. v3 = int32(1)
  2256. } else {
  2257. v3 = 0
  2258. }
  2259. k = v3
  2260. i = 0
  2261. for {
  2262. if !(i < int32(8)) {
  2263. break
  2264. }
  2265. if j == 0 {
  2266. *(*uint8)(unsafe.Pointer(output + uintptr(j+i))) = (*(*[8]uint8)(unsafe.Pointer(bp)))[i]
  2267. } else {
  2268. *(*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)))))
  2269. }
  2270. goto _4
  2271. _4:
  2272. ;
  2273. i++
  2274. }
  2275. goto _1
  2276. _1:
  2277. ;
  2278. j += int32(8)
  2279. }
  2280. }
  2281. func XXdmcpWrap(tls *libc.TLS, input uintptr, wrapper uintptr, output uintptr, bytes int32) {
  2282. bp := tls.Alloc(144)
  2283. defer tls.Free(144)
  2284. var i, j, len1 int32
  2285. var _ /* expand_wrapper at bp+8 */ [8]uint8
  2286. var _ /* schedule at bp+16 */ Tauth_wrapper_schedule
  2287. var _ /* tmp at bp+0 */ [8]uint8
  2288. _, _, _ = i, j, len1
  2289. X_XdmcpWrapperToOddParity(tls, wrapper, bp+8)
  2290. X_XdmcpAuthSetup(tls, bp+8, bp+16)
  2291. j = 0
  2292. for {
  2293. if !(j < bytes) {
  2294. break
  2295. }
  2296. len1 = int32(8)
  2297. if bytes-j < len1 {
  2298. len1 = bytes - j
  2299. }
  2300. /* block chaining */
  2301. i = 0
  2302. for {
  2303. if !(i < len1) {
  2304. break
  2305. }
  2306. if j == 0 {
  2307. (*(*[8]uint8)(unsafe.Pointer(bp)))[i] = *(*uint8)(unsafe.Pointer(input + uintptr(i)))
  2308. } else {
  2309. (*(*[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)))))
  2310. }
  2311. goto _2
  2312. _2:
  2313. ;
  2314. i++
  2315. }
  2316. for {
  2317. if !(i < int32(8)) {
  2318. break
  2319. }
  2320. if j == 0 {
  2321. (*(*[8]uint8)(unsafe.Pointer(bp)))[i] = uint8(0)
  2322. } else {
  2323. (*(*[8]uint8)(unsafe.Pointer(bp)))[i] = libc.Uint8FromInt32(0 ^ libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(output + uintptr(j-int32(8)+i)))))
  2324. }
  2325. goto _3
  2326. _3:
  2327. ;
  2328. i++
  2329. }
  2330. X_XdmcpAuthDoIt(tls, bp, output+uintptr(j), bp+16, int32(1))
  2331. goto _1
  2332. _1:
  2333. ;
  2334. j += int32(8)
  2335. }
  2336. }
  2337. /*
  2338. * Given a 56 bit wrapper in XDMCP format, create a 56
  2339. * bit wrapper in 7-bits + odd parity format
  2340. */
  2341. func _OddParity(tls *libc.TLS, c uint8) (r int32) {
  2342. c = libc.Uint8FromInt32(libc.Int32FromUint8(c) ^ libc.Int32FromUint8(c)>>int32(4))
  2343. c = libc.Uint8FromInt32(libc.Int32FromUint8(c) ^ libc.Int32FromUint8(c)>>int32(2))
  2344. c = libc.Uint8FromInt32(libc.Int32FromUint8(c) ^ libc.Int32FromUint8(c)>>int32(1))
  2345. return ^libc.Int32FromUint8(c) & int32(0x1)
  2346. }
  2347. /*
  2348. * Spread the 56 bit wrapper among 8 bytes, using the upper 7 bits
  2349. * of each byte, and storing an odd parity bit in the low bit
  2350. */
  2351. func X_XdmcpWrapperToOddParity(tls *libc.TLS, in uintptr, out uintptr) {
  2352. var ashift, bshift, i int32
  2353. var c uint8
  2354. _, _, _, _ = ashift, bshift, c, i
  2355. ashift = int32(7)
  2356. bshift = int32(1)
  2357. i = 0
  2358. for {
  2359. if !(i < int32(7)) {
  2360. break
  2361. }
  2362. 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))
  2363. *(*uint8)(unsafe.Pointer(out + uintptr(i))) = libc.Uint8FromInt32(libc.Int32FromUint8(c)<<int32(1) | _OddParity(tls, c))
  2364. ashift--
  2365. bshift++
  2366. goto _1
  2367. _1:
  2368. ;
  2369. i++
  2370. }
  2371. c = *(*uint8)(unsafe.Pointer(in + uintptr(i)))
  2372. *(*uint8)(unsafe.Pointer(out + uintptr(i))) = libc.Uint8FromInt32(libc.Int32FromUint8(c)<<int32(1) | _OddParity(tls, c))
  2373. }
  2374. func XXdmcpWriteHeader(tls *libc.TLS, buffer TXdmcpBufferPtr, header TXdmcpHeaderPtr) (r int32) {
  2375. var newData uintptr
  2376. _ = newData
  2377. if (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fsize < int32(6)+libc.Int32FromUint16((*T_XdmcpHeader)(unsafe.Pointer(header)).Flength) {
  2378. newData = libc.Xmalloc(tls, libc.Uint64FromInt32(m_XDM_MAX_MSGLEN)*libc.Uint64FromInt64(1))
  2379. if !(newData != 0) {
  2380. return m_FALSE
  2381. }
  2382. libc.Xfree(tls, (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fdata)
  2383. (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fdata = newData
  2384. (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fsize = int32(m_XDM_MAX_MSGLEN)
  2385. }
  2386. (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fpointer = 0
  2387. if !(XXdmcpWriteCARD16(tls, buffer, uint32((*T_XdmcpHeader)(unsafe.Pointer(header)).Fversion)) != 0) {
  2388. return m_FALSE
  2389. }
  2390. if !(XXdmcpWriteCARD16(tls, buffer, uint32((*T_XdmcpHeader)(unsafe.Pointer(header)).Fopcode)) != 0) {
  2391. return m_FALSE
  2392. }
  2393. if !(XXdmcpWriteCARD16(tls, buffer, uint32((*T_XdmcpHeader)(unsafe.Pointer(header)).Flength)) != 0) {
  2394. return m_FALSE
  2395. }
  2396. return int32(m_TRUE)
  2397. }
  2398. func XXdmcpWriteARRAY8(tls *libc.TLS, buffer TXdmcpBufferPtr, array TARRAY8Ptr) (r int32) {
  2399. var i int32
  2400. _ = i
  2401. if !(XXdmcpWriteCARD16(tls, buffer, uint32((*T_ARRAY8)(unsafe.Pointer(array)).Flength)) != 0) {
  2402. return m_FALSE
  2403. }
  2404. i = 0
  2405. for {
  2406. if !(i < libc.Int32FromUint16((*T_ARRAY8)(unsafe.Pointer(array)).Flength)) {
  2407. break
  2408. }
  2409. if !(XXdmcpWriteCARD8(tls, buffer, uint32(*(*TCARD8)(unsafe.Pointer((*T_ARRAY8)(unsafe.Pointer(array)).Fdata + uintptr(i))))) != 0) {
  2410. return m_FALSE
  2411. }
  2412. goto _1
  2413. _1:
  2414. ;
  2415. i++
  2416. }
  2417. return int32(m_TRUE)
  2418. }
  2419. func XXdmcpWriteARRAY16(tls *libc.TLS, buffer TXdmcpBufferPtr, array TARRAY16Ptr) (r int32) {
  2420. var i int32
  2421. _ = i
  2422. if !(XXdmcpWriteCARD8(tls, buffer, uint32((*T_ARRAY16)(unsafe.Pointer(array)).Flength)) != 0) {
  2423. return m_FALSE
  2424. }
  2425. i = 0
  2426. for {
  2427. if !(i < libc.Int32FromUint8((*T_ARRAY16)(unsafe.Pointer(array)).Flength)) {
  2428. break
  2429. }
  2430. if !(XXdmcpWriteCARD16(tls, buffer, uint32(*(*TCARD16)(unsafe.Pointer((*T_ARRAY16)(unsafe.Pointer(array)).Fdata + uintptr(i)*2)))) != 0) {
  2431. return m_FALSE
  2432. }
  2433. goto _1
  2434. _1:
  2435. ;
  2436. i++
  2437. }
  2438. return int32(m_TRUE)
  2439. }
  2440. func XXdmcpWriteARRAY32(tls *libc.TLS, buffer TXdmcpBufferPtr, array TARRAY32Ptr) (r int32) {
  2441. var i int32
  2442. _ = i
  2443. if !(XXdmcpWriteCARD8(tls, buffer, uint32((*T_ARRAY32)(unsafe.Pointer(array)).Flength)) != 0) {
  2444. return m_FALSE
  2445. }
  2446. i = 0
  2447. for {
  2448. if !(i < libc.Int32FromUint8((*T_ARRAY32)(unsafe.Pointer(array)).Flength)) {
  2449. break
  2450. }
  2451. if !(XXdmcpWriteCARD32(tls, buffer, *(*TCARD32)(unsafe.Pointer((*T_ARRAY32)(unsafe.Pointer(array)).Fdata + uintptr(i)*4))) != 0) {
  2452. return m_FALSE
  2453. }
  2454. goto _1
  2455. _1:
  2456. ;
  2457. i++
  2458. }
  2459. return int32(m_TRUE)
  2460. }
  2461. func XXdmcpWriteARRAYofARRAY8(tls *libc.TLS, buffer TXdmcpBufferPtr, array TARRAYofARRAY8Ptr) (r int32) {
  2462. var i int32
  2463. _ = i
  2464. if !(XXdmcpWriteCARD8(tls, buffer, uint32((*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength)) != 0) {
  2465. return m_FALSE
  2466. }
  2467. i = 0
  2468. for {
  2469. if !(i < libc.Int32FromUint8((*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength)) {
  2470. break
  2471. }
  2472. if !(XXdmcpWriteARRAY8(tls, buffer, (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata+uintptr(i)*16) != 0) {
  2473. return m_FALSE
  2474. }
  2475. goto _1
  2476. _1:
  2477. ;
  2478. i++
  2479. }
  2480. return int32(m_TRUE)
  2481. }
  2482. func XXdmcpWriteCARD8(tls *libc.TLS, buffer TXdmcpBufferPtr, value uint32) (r int32) {
  2483. var v1 int32
  2484. var v2 uintptr
  2485. _, _ = v1, v2
  2486. if (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fpointer >= (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fsize {
  2487. return m_FALSE
  2488. }
  2489. v2 = buffer + 12
  2490. v1 = *(*int32)(unsafe.Pointer(v2))
  2491. *(*int32)(unsafe.Pointer(v2))++
  2492. *(*TBYTE)(unsafe.Pointer((*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fdata + uintptr(v1))) = uint8(value)
  2493. return int32(m_TRUE)
  2494. }
  2495. func XXdmcpWriteCARD16(tls *libc.TLS, buffer TXdmcpBufferPtr, value uint32) (r int32) {
  2496. if !(XXdmcpWriteCARD8(tls, buffer, value>>int32(8)) != 0) {
  2497. return m_FALSE
  2498. }
  2499. if !(XXdmcpWriteCARD8(tls, buffer, value&uint32(0xff)) != 0) {
  2500. return m_FALSE
  2501. }
  2502. return int32(m_TRUE)
  2503. }
  2504. func XXdmcpWriteCARD32(tls *libc.TLS, buffer TXdmcpBufferPtr, value uint32) (r int32) {
  2505. if !(XXdmcpWriteCARD8(tls, buffer, value>>int32(24)) != 0) {
  2506. return m_FALSE
  2507. }
  2508. if !(XXdmcpWriteCARD8(tls, buffer, value>>int32(16)&uint32(0xff)) != 0) {
  2509. return m_FALSE
  2510. }
  2511. if !(XXdmcpWriteCARD8(tls, buffer, value>>int32(8)&uint32(0xff)) != 0) {
  2512. return m_FALSE
  2513. }
  2514. if !(XXdmcpWriteCARD8(tls, buffer, value&uint32(0xff)) != 0) {
  2515. return m_FALSE
  2516. }
  2517. return int32(m_TRUE)
  2518. }
  2519. const m_HALF_ITERATIONS = 8
  2520. const m_ITERATIONS = 16
  2521. /* des routines for non-usa - eay 10/9/1991 eay@psych.psy.uq.oz.au
  2522. * These routines were written for speed not size so they are bigger than
  2523. * needed. I have removed some of the loop unrolling, this will reduce
  2524. * code size at the expense of some speed.
  2525. * 25/9/1991 eay - much faster _XdmcpAuthSetup (4 times faster).
  2526. * 19/9/1991 eay - cleaned up the IP and FP code.
  2527. * 10/9/1991 eay - first release.
  2528. * The des routines this file has been made from can be found in
  2529. * ftp.psy.uq.oz.au /pub/DES
  2530. * This particular version derived from OpenBSD Revsion 1.3.
  2531. */
  2532. /*
  2533. *
  2534. * Export Requirements.
  2535. * You may not export or re-export this software or any copy or
  2536. * adaptation in violation of any applicable laws or regulations.
  2537. *
  2538. * Without limiting the generality of the foregoing, hardware, software,
  2539. * technology or services provided under this license agreement may not
  2540. * be exported, reexported, transferred or downloaded to or within (or to
  2541. * a national resident of) countries under U.S. economic embargo
  2542. * including the following countries:
  2543. *
  2544. * Cuba, Iran, Libya, North Korea, Sudan and Syria. This list is subject
  2545. * to change.
  2546. *
  2547. * Hardware, software, technology or services may not be exported,
  2548. * reexported, transferred or downloaded to persons or entities listed on
  2549. * the U.S. Department of Commerce Denied Persons List, Entity List of
  2550. * proliferation concern or on any U.S. Treasury Department Designated
  2551. * Nationals exclusion list, or to parties directly or indirectly
  2552. * involved in the development or production of nuclear, chemical,
  2553. * biological weapons or in missile technology programs as specified in
  2554. * the U.S. Export Administration Regulations (15 CFR 744).
  2555. *
  2556. * By accepting this license agreement you confirm that you are not
  2557. * located in (or a national resident of) any country under U.S. economic
  2558. * embargo, not identified on any U.S. Department of Commerce Denied
  2559. * Persons List, Entity List or Treasury Department Designated Nationals
  2560. * exclusion list, and not directly or indirectly involved in the
  2561. * development or production of nuclear, chemical, biological weapons or
  2562. * in missile technology programs as specified in the U.S. Export
  2563. * Administration Regulations.
  2564. *
  2565. *
  2566. * Local Country Import Requirements. The software you are about to
  2567. * download contains cryptography technology. Some countries regulate the
  2568. * import, use and/or export of certain products with cryptography. The
  2569. * X.org Foundation makes no claims as to the applicability of local
  2570. * country import, use and/or export regulations in relation to the
  2571. * download of this product. If you are located outside the U.S. and
  2572. * Canada you are advised to consult your local country regulations to
  2573. * insure compliance.
  2574. */
  2575. var _skb = [8][64]TCARD32{
  2576. 0: {
  2577. 1: uint32(0x00000010),
  2578. 2: uint32(0x20000000),
  2579. 3: uint32(0x20000010),
  2580. 4: uint32(0x00010000),
  2581. 5: uint32(0x00010010),
  2582. 6: uint32(0x20010000),
  2583. 7: uint32(0x20010010),
  2584. 8: uint32(0x00000800),
  2585. 9: uint32(0x00000810),
  2586. 10: uint32(0x20000800),
  2587. 11: uint32(0x20000810),
  2588. 12: uint32(0x00010800),
  2589. 13: uint32(0x00010810),
  2590. 14: uint32(0x20010800),
  2591. 15: uint32(0x20010810),
  2592. 16: uint32(0x00000020),
  2593. 17: uint32(0x00000030),
  2594. 18: uint32(0x20000020),
  2595. 19: uint32(0x20000030),
  2596. 20: uint32(0x00010020),
  2597. 21: uint32(0x00010030),
  2598. 22: uint32(0x20010020),
  2599. 23: uint32(0x20010030),
  2600. 24: uint32(0x00000820),
  2601. 25: uint32(0x00000830),
  2602. 26: uint32(0x20000820),
  2603. 27: uint32(0x20000830),
  2604. 28: uint32(0x00010820),
  2605. 29: uint32(0x00010830),
  2606. 30: uint32(0x20010820),
  2607. 31: uint32(0x20010830),
  2608. 32: uint32(0x00080000),
  2609. 33: uint32(0x00080010),
  2610. 34: uint32(0x20080000),
  2611. 35: uint32(0x20080010),
  2612. 36: uint32(0x00090000),
  2613. 37: uint32(0x00090010),
  2614. 38: uint32(0x20090000),
  2615. 39: uint32(0x20090010),
  2616. 40: uint32(0x00080800),
  2617. 41: uint32(0x00080810),
  2618. 42: uint32(0x20080800),
  2619. 43: uint32(0x20080810),
  2620. 44: uint32(0x00090800),
  2621. 45: uint32(0x00090810),
  2622. 46: uint32(0x20090800),
  2623. 47: uint32(0x20090810),
  2624. 48: uint32(0x00080020),
  2625. 49: uint32(0x00080030),
  2626. 50: uint32(0x20080020),
  2627. 51: uint32(0x20080030),
  2628. 52: uint32(0x00090020),
  2629. 53: uint32(0x00090030),
  2630. 54: uint32(0x20090020),
  2631. 55: uint32(0x20090030),
  2632. 56: uint32(0x00080820),
  2633. 57: uint32(0x00080830),
  2634. 58: uint32(0x20080820),
  2635. 59: uint32(0x20080830),
  2636. 60: uint32(0x00090820),
  2637. 61: uint32(0x00090830),
  2638. 62: uint32(0x20090820),
  2639. 63: uint32(0x20090830),
  2640. },
  2641. 1: {
  2642. 1: uint32(0x02000000),
  2643. 2: uint32(0x00002000),
  2644. 3: uint32(0x02002000),
  2645. 4: uint32(0x00200000),
  2646. 5: uint32(0x02200000),
  2647. 6: uint32(0x00202000),
  2648. 7: uint32(0x02202000),
  2649. 8: uint32(0x00000004),
  2650. 9: uint32(0x02000004),
  2651. 10: uint32(0x00002004),
  2652. 11: uint32(0x02002004),
  2653. 12: uint32(0x00200004),
  2654. 13: uint32(0x02200004),
  2655. 14: uint32(0x00202004),
  2656. 15: uint32(0x02202004),
  2657. 16: uint32(0x00000400),
  2658. 17: uint32(0x02000400),
  2659. 18: uint32(0x00002400),
  2660. 19: uint32(0x02002400),
  2661. 20: uint32(0x00200400),
  2662. 21: uint32(0x02200400),
  2663. 22: uint32(0x00202400),
  2664. 23: uint32(0x02202400),
  2665. 24: uint32(0x00000404),
  2666. 25: uint32(0x02000404),
  2667. 26: uint32(0x00002404),
  2668. 27: uint32(0x02002404),
  2669. 28: uint32(0x00200404),
  2670. 29: uint32(0x02200404),
  2671. 30: uint32(0x00202404),
  2672. 31: uint32(0x02202404),
  2673. 32: uint32(0x10000000),
  2674. 33: uint32(0x12000000),
  2675. 34: uint32(0x10002000),
  2676. 35: uint32(0x12002000),
  2677. 36: uint32(0x10200000),
  2678. 37: uint32(0x12200000),
  2679. 38: uint32(0x10202000),
  2680. 39: uint32(0x12202000),
  2681. 40: uint32(0x10000004),
  2682. 41: uint32(0x12000004),
  2683. 42: uint32(0x10002004),
  2684. 43: uint32(0x12002004),
  2685. 44: uint32(0x10200004),
  2686. 45: uint32(0x12200004),
  2687. 46: uint32(0x10202004),
  2688. 47: uint32(0x12202004),
  2689. 48: uint32(0x10000400),
  2690. 49: uint32(0x12000400),
  2691. 50: uint32(0x10002400),
  2692. 51: uint32(0x12002400),
  2693. 52: uint32(0x10200400),
  2694. 53: uint32(0x12200400),
  2695. 54: uint32(0x10202400),
  2696. 55: uint32(0x12202400),
  2697. 56: uint32(0x10000404),
  2698. 57: uint32(0x12000404),
  2699. 58: uint32(0x10002404),
  2700. 59: uint32(0x12002404),
  2701. 60: uint32(0x10200404),
  2702. 61: uint32(0x12200404),
  2703. 62: uint32(0x10202404),
  2704. 63: uint32(0x12202404),
  2705. },
  2706. 2: {
  2707. 1: uint32(0x00000001),
  2708. 2: uint32(0x00040000),
  2709. 3: uint32(0x00040001),
  2710. 4: uint32(0x01000000),
  2711. 5: uint32(0x01000001),
  2712. 6: uint32(0x01040000),
  2713. 7: uint32(0x01040001),
  2714. 8: uint32(0x00000002),
  2715. 9: uint32(0x00000003),
  2716. 10: uint32(0x00040002),
  2717. 11: uint32(0x00040003),
  2718. 12: uint32(0x01000002),
  2719. 13: uint32(0x01000003),
  2720. 14: uint32(0x01040002),
  2721. 15: uint32(0x01040003),
  2722. 16: uint32(0x00000200),
  2723. 17: uint32(0x00000201),
  2724. 18: uint32(0x00040200),
  2725. 19: uint32(0x00040201),
  2726. 20: uint32(0x01000200),
  2727. 21: uint32(0x01000201),
  2728. 22: uint32(0x01040200),
  2729. 23: uint32(0x01040201),
  2730. 24: uint32(0x00000202),
  2731. 25: uint32(0x00000203),
  2732. 26: uint32(0x00040202),
  2733. 27: uint32(0x00040203),
  2734. 28: uint32(0x01000202),
  2735. 29: uint32(0x01000203),
  2736. 30: uint32(0x01040202),
  2737. 31: uint32(0x01040203),
  2738. 32: uint32(0x08000000),
  2739. 33: uint32(0x08000001),
  2740. 34: uint32(0x08040000),
  2741. 35: uint32(0x08040001),
  2742. 36: uint32(0x09000000),
  2743. 37: uint32(0x09000001),
  2744. 38: uint32(0x09040000),
  2745. 39: uint32(0x09040001),
  2746. 40: uint32(0x08000002),
  2747. 41: uint32(0x08000003),
  2748. 42: uint32(0x08040002),
  2749. 43: uint32(0x08040003),
  2750. 44: uint32(0x09000002),
  2751. 45: uint32(0x09000003),
  2752. 46: uint32(0x09040002),
  2753. 47: uint32(0x09040003),
  2754. 48: uint32(0x08000200),
  2755. 49: uint32(0x08000201),
  2756. 50: uint32(0x08040200),
  2757. 51: uint32(0x08040201),
  2758. 52: uint32(0x09000200),
  2759. 53: uint32(0x09000201),
  2760. 54: uint32(0x09040200),
  2761. 55: uint32(0x09040201),
  2762. 56: uint32(0x08000202),
  2763. 57: uint32(0x08000203),
  2764. 58: uint32(0x08040202),
  2765. 59: uint32(0x08040203),
  2766. 60: uint32(0x09000202),
  2767. 61: uint32(0x09000203),
  2768. 62: uint32(0x09040202),
  2769. 63: uint32(0x09040203),
  2770. },
  2771. 3: {
  2772. 1: uint32(0x00100000),
  2773. 2: uint32(0x00000100),
  2774. 3: uint32(0x00100100),
  2775. 4: uint32(0x00000008),
  2776. 5: uint32(0x00100008),
  2777. 6: uint32(0x00000108),
  2778. 7: uint32(0x00100108),
  2779. 8: uint32(0x00001000),
  2780. 9: uint32(0x00101000),
  2781. 10: uint32(0x00001100),
  2782. 11: uint32(0x00101100),
  2783. 12: uint32(0x00001008),
  2784. 13: uint32(0x00101008),
  2785. 14: uint32(0x00001108),
  2786. 15: uint32(0x00101108),
  2787. 16: uint32(0x04000000),
  2788. 17: uint32(0x04100000),
  2789. 18: uint32(0x04000100),
  2790. 19: uint32(0x04100100),
  2791. 20: uint32(0x04000008),
  2792. 21: uint32(0x04100008),
  2793. 22: uint32(0x04000108),
  2794. 23: uint32(0x04100108),
  2795. 24: uint32(0x04001000),
  2796. 25: uint32(0x04101000),
  2797. 26: uint32(0x04001100),
  2798. 27: uint32(0x04101100),
  2799. 28: uint32(0x04001008),
  2800. 29: uint32(0x04101008),
  2801. 30: uint32(0x04001108),
  2802. 31: uint32(0x04101108),
  2803. 32: uint32(0x00020000),
  2804. 33: uint32(0x00120000),
  2805. 34: uint32(0x00020100),
  2806. 35: uint32(0x00120100),
  2807. 36: uint32(0x00020008),
  2808. 37: uint32(0x00120008),
  2809. 38: uint32(0x00020108),
  2810. 39: uint32(0x00120108),
  2811. 40: uint32(0x00021000),
  2812. 41: uint32(0x00121000),
  2813. 42: uint32(0x00021100),
  2814. 43: uint32(0x00121100),
  2815. 44: uint32(0x00021008),
  2816. 45: uint32(0x00121008),
  2817. 46: uint32(0x00021108),
  2818. 47: uint32(0x00121108),
  2819. 48: uint32(0x04020000),
  2820. 49: uint32(0x04120000),
  2821. 50: uint32(0x04020100),
  2822. 51: uint32(0x04120100),
  2823. 52: uint32(0x04020008),
  2824. 53: uint32(0x04120008),
  2825. 54: uint32(0x04020108),
  2826. 55: uint32(0x04120108),
  2827. 56: uint32(0x04021000),
  2828. 57: uint32(0x04121000),
  2829. 58: uint32(0x04021100),
  2830. 59: uint32(0x04121100),
  2831. 60: uint32(0x04021008),
  2832. 61: uint32(0x04121008),
  2833. 62: uint32(0x04021108),
  2834. 63: uint32(0x04121108),
  2835. },
  2836. 4: {
  2837. 1: uint32(0x10000000),
  2838. 2: uint32(0x00010000),
  2839. 3: uint32(0x10010000),
  2840. 4: uint32(0x00000004),
  2841. 5: uint32(0x10000004),
  2842. 6: uint32(0x00010004),
  2843. 7: uint32(0x10010004),
  2844. 8: uint32(0x20000000),
  2845. 9: uint32(0x30000000),
  2846. 10: uint32(0x20010000),
  2847. 11: uint32(0x30010000),
  2848. 12: uint32(0x20000004),
  2849. 13: uint32(0x30000004),
  2850. 14: uint32(0x20010004),
  2851. 15: uint32(0x30010004),
  2852. 16: uint32(0x00100000),
  2853. 17: uint32(0x10100000),
  2854. 18: uint32(0x00110000),
  2855. 19: uint32(0x10110000),
  2856. 20: uint32(0x00100004),
  2857. 21: uint32(0x10100004),
  2858. 22: uint32(0x00110004),
  2859. 23: uint32(0x10110004),
  2860. 24: uint32(0x20100000),
  2861. 25: uint32(0x30100000),
  2862. 26: uint32(0x20110000),
  2863. 27: uint32(0x30110000),
  2864. 28: uint32(0x20100004),
  2865. 29: uint32(0x30100004),
  2866. 30: uint32(0x20110004),
  2867. 31: uint32(0x30110004),
  2868. 32: uint32(0x00001000),
  2869. 33: uint32(0x10001000),
  2870. 34: uint32(0x00011000),
  2871. 35: uint32(0x10011000),
  2872. 36: uint32(0x00001004),
  2873. 37: uint32(0x10001004),
  2874. 38: uint32(0x00011004),
  2875. 39: uint32(0x10011004),
  2876. 40: uint32(0x20001000),
  2877. 41: uint32(0x30001000),
  2878. 42: uint32(0x20011000),
  2879. 43: uint32(0x30011000),
  2880. 44: uint32(0x20001004),
  2881. 45: uint32(0x30001004),
  2882. 46: uint32(0x20011004),
  2883. 47: uint32(0x30011004),
  2884. 48: uint32(0x00101000),
  2885. 49: uint32(0x10101000),
  2886. 50: uint32(0x00111000),
  2887. 51: uint32(0x10111000),
  2888. 52: uint32(0x00101004),
  2889. 53: uint32(0x10101004),
  2890. 54: uint32(0x00111004),
  2891. 55: uint32(0x10111004),
  2892. 56: uint32(0x20101000),
  2893. 57: uint32(0x30101000),
  2894. 58: uint32(0x20111000),
  2895. 59: uint32(0x30111000),
  2896. 60: uint32(0x20101004),
  2897. 61: uint32(0x30101004),
  2898. 62: uint32(0x20111004),
  2899. 63: uint32(0x30111004),
  2900. },
  2901. 5: {
  2902. 1: uint32(0x08000000),
  2903. 2: uint32(0x00000008),
  2904. 3: uint32(0x08000008),
  2905. 4: uint32(0x00000400),
  2906. 5: uint32(0x08000400),
  2907. 6: uint32(0x00000408),
  2908. 7: uint32(0x08000408),
  2909. 8: uint32(0x00020000),
  2910. 9: uint32(0x08020000),
  2911. 10: uint32(0x00020008),
  2912. 11: uint32(0x08020008),
  2913. 12: uint32(0x00020400),
  2914. 13: uint32(0x08020400),
  2915. 14: uint32(0x00020408),
  2916. 15: uint32(0x08020408),
  2917. 16: uint32(0x00000001),
  2918. 17: uint32(0x08000001),
  2919. 18: uint32(0x00000009),
  2920. 19: uint32(0x08000009),
  2921. 20: uint32(0x00000401),
  2922. 21: uint32(0x08000401),
  2923. 22: uint32(0x00000409),
  2924. 23: uint32(0x08000409),
  2925. 24: uint32(0x00020001),
  2926. 25: uint32(0x08020001),
  2927. 26: uint32(0x00020009),
  2928. 27: uint32(0x08020009),
  2929. 28: uint32(0x00020401),
  2930. 29: uint32(0x08020401),
  2931. 30: uint32(0x00020409),
  2932. 31: uint32(0x08020409),
  2933. 32: uint32(0x02000000),
  2934. 33: uint32(0x0A000000),
  2935. 34: uint32(0x02000008),
  2936. 35: uint32(0x0A000008),
  2937. 36: uint32(0x02000400),
  2938. 37: uint32(0x0A000400),
  2939. 38: uint32(0x02000408),
  2940. 39: uint32(0x0A000408),
  2941. 40: uint32(0x02020000),
  2942. 41: uint32(0x0A020000),
  2943. 42: uint32(0x02020008),
  2944. 43: uint32(0x0A020008),
  2945. 44: uint32(0x02020400),
  2946. 45: uint32(0x0A020400),
  2947. 46: uint32(0x02020408),
  2948. 47: uint32(0x0A020408),
  2949. 48: uint32(0x02000001),
  2950. 49: uint32(0x0A000001),
  2951. 50: uint32(0x02000009),
  2952. 51: uint32(0x0A000009),
  2953. 52: uint32(0x02000401),
  2954. 53: uint32(0x0A000401),
  2955. 54: uint32(0x02000409),
  2956. 55: uint32(0x0A000409),
  2957. 56: uint32(0x02020001),
  2958. 57: uint32(0x0A020001),
  2959. 58: uint32(0x02020009),
  2960. 59: uint32(0x0A020009),
  2961. 60: uint32(0x02020401),
  2962. 61: uint32(0x0A020401),
  2963. 62: uint32(0x02020409),
  2964. 63: uint32(0x0A020409),
  2965. },
  2966. 6: {
  2967. 1: uint32(0x00000100),
  2968. 2: uint32(0x00080000),
  2969. 3: uint32(0x00080100),
  2970. 4: uint32(0x01000000),
  2971. 5: uint32(0x01000100),
  2972. 6: uint32(0x01080000),
  2973. 7: uint32(0x01080100),
  2974. 8: uint32(0x00000010),
  2975. 9: uint32(0x00000110),
  2976. 10: uint32(0x00080010),
  2977. 11: uint32(0x00080110),
  2978. 12: uint32(0x01000010),
  2979. 13: uint32(0x01000110),
  2980. 14: uint32(0x01080010),
  2981. 15: uint32(0x01080110),
  2982. 16: uint32(0x00200000),
  2983. 17: uint32(0x00200100),
  2984. 18: uint32(0x00280000),
  2985. 19: uint32(0x00280100),
  2986. 20: uint32(0x01200000),
  2987. 21: uint32(0x01200100),
  2988. 22: uint32(0x01280000),
  2989. 23: uint32(0x01280100),
  2990. 24: uint32(0x00200010),
  2991. 25: uint32(0x00200110),
  2992. 26: uint32(0x00280010),
  2993. 27: uint32(0x00280110),
  2994. 28: uint32(0x01200010),
  2995. 29: uint32(0x01200110),
  2996. 30: uint32(0x01280010),
  2997. 31: uint32(0x01280110),
  2998. 32: uint32(0x00000200),
  2999. 33: uint32(0x00000300),
  3000. 34: uint32(0x00080200),
  3001. 35: uint32(0x00080300),
  3002. 36: uint32(0x01000200),
  3003. 37: uint32(0x01000300),
  3004. 38: uint32(0x01080200),
  3005. 39: uint32(0x01080300),
  3006. 40: uint32(0x00000210),
  3007. 41: uint32(0x00000310),
  3008. 42: uint32(0x00080210),
  3009. 43: uint32(0x00080310),
  3010. 44: uint32(0x01000210),
  3011. 45: uint32(0x01000310),
  3012. 46: uint32(0x01080210),
  3013. 47: uint32(0x01080310),
  3014. 48: uint32(0x00200200),
  3015. 49: uint32(0x00200300),
  3016. 50: uint32(0x00280200),
  3017. 51: uint32(0x00280300),
  3018. 52: uint32(0x01200200),
  3019. 53: uint32(0x01200300),
  3020. 54: uint32(0x01280200),
  3021. 55: uint32(0x01280300),
  3022. 56: uint32(0x00200210),
  3023. 57: uint32(0x00200310),
  3024. 58: uint32(0x00280210),
  3025. 59: uint32(0x00280310),
  3026. 60: uint32(0x01200210),
  3027. 61: uint32(0x01200310),
  3028. 62: uint32(0x01280210),
  3029. 63: uint32(0x01280310),
  3030. },
  3031. 7: {
  3032. 1: uint32(0x04000000),
  3033. 2: uint32(0x00040000),
  3034. 3: uint32(0x04040000),
  3035. 4: uint32(0x00000002),
  3036. 5: uint32(0x04000002),
  3037. 6: uint32(0x00040002),
  3038. 7: uint32(0x04040002),
  3039. 8: uint32(0x00002000),
  3040. 9: uint32(0x04002000),
  3041. 10: uint32(0x00042000),
  3042. 11: uint32(0x04042000),
  3043. 12: uint32(0x00002002),
  3044. 13: uint32(0x04002002),
  3045. 14: uint32(0x00042002),
  3046. 15: uint32(0x04042002),
  3047. 16: uint32(0x00000020),
  3048. 17: uint32(0x04000020),
  3049. 18: uint32(0x00040020),
  3050. 19: uint32(0x04040020),
  3051. 20: uint32(0x00000022),
  3052. 21: uint32(0x04000022),
  3053. 22: uint32(0x00040022),
  3054. 23: uint32(0x04040022),
  3055. 24: uint32(0x00002020),
  3056. 25: uint32(0x04002020),
  3057. 26: uint32(0x00042020),
  3058. 27: uint32(0x04042020),
  3059. 28: uint32(0x00002022),
  3060. 29: uint32(0x04002022),
  3061. 30: uint32(0x00042022),
  3062. 31: uint32(0x04042022),
  3063. 32: uint32(0x00000800),
  3064. 33: uint32(0x04000800),
  3065. 34: uint32(0x00040800),
  3066. 35: uint32(0x04040800),
  3067. 36: uint32(0x00000802),
  3068. 37: uint32(0x04000802),
  3069. 38: uint32(0x00040802),
  3070. 39: uint32(0x04040802),
  3071. 40: uint32(0x00002800),
  3072. 41: uint32(0x04002800),
  3073. 42: uint32(0x00042800),
  3074. 43: uint32(0x04042800),
  3075. 44: uint32(0x00002802),
  3076. 45: uint32(0x04002802),
  3077. 46: uint32(0x00042802),
  3078. 47: uint32(0x04042802),
  3079. 48: uint32(0x00000820),
  3080. 49: uint32(0x04000820),
  3081. 50: uint32(0x00040820),
  3082. 51: uint32(0x04040820),
  3083. 52: uint32(0x00000822),
  3084. 53: uint32(0x04000822),
  3085. 54: uint32(0x00040822),
  3086. 55: uint32(0x04040822),
  3087. 56: uint32(0x00002820),
  3088. 57: uint32(0x04002820),
  3089. 58: uint32(0x00042820),
  3090. 59: uint32(0x04042820),
  3091. 60: uint32(0x00002822),
  3092. 61: uint32(0x04002822),
  3093. 62: uint32(0x00042822),
  3094. 63: uint32(0x04042822),
  3095. },
  3096. }
  3097. var _SPtrans = [8][64]TCARD32{
  3098. 0: {
  3099. 0: uint32(0x00410100),
  3100. 1: uint32(0x00010000),
  3101. 2: uint32(0x40400000),
  3102. 3: uint32(0x40410100),
  3103. 4: uint32(0x00400000),
  3104. 5: uint32(0x40010100),
  3105. 6: uint32(0x40010000),
  3106. 7: uint32(0x40400000),
  3107. 8: uint32(0x40010100),
  3108. 9: uint32(0x00410100),
  3109. 10: uint32(0x00410000),
  3110. 11: uint32(0x40000100),
  3111. 12: uint32(0x40400100),
  3112. 13: uint32(0x00400000),
  3113. 15: uint32(0x40010000),
  3114. 16: uint32(0x00010000),
  3115. 17: uint32(0x40000000),
  3116. 18: uint32(0x00400100),
  3117. 19: uint32(0x00010100),
  3118. 20: uint32(0x40410100),
  3119. 21: uint32(0x00410000),
  3120. 22: uint32(0x40000100),
  3121. 23: uint32(0x00400100),
  3122. 24: uint32(0x40000000),
  3123. 25: uint32(0x00000100),
  3124. 26: uint32(0x00010100),
  3125. 27: uint32(0x40410000),
  3126. 28: uint32(0x00000100),
  3127. 29: uint32(0x40400100),
  3128. 30: uint32(0x40410000),
  3129. 33: uint32(0x40410100),
  3130. 34: uint32(0x00400100),
  3131. 35: uint32(0x40010000),
  3132. 36: uint32(0x00410100),
  3133. 37: uint32(0x00010000),
  3134. 38: uint32(0x40000100),
  3135. 39: uint32(0x00400100),
  3136. 40: uint32(0x40410000),
  3137. 41: uint32(0x00000100),
  3138. 42: uint32(0x00010100),
  3139. 43: uint32(0x40400000),
  3140. 44: uint32(0x40010100),
  3141. 45: uint32(0x40000000),
  3142. 46: uint32(0x40400000),
  3143. 47: uint32(0x00410000),
  3144. 48: uint32(0x40410100),
  3145. 49: uint32(0x00010100),
  3146. 50: uint32(0x00410000),
  3147. 51: uint32(0x40400100),
  3148. 52: uint32(0x00400000),
  3149. 53: uint32(0x40000100),
  3150. 54: uint32(0x40010000),
  3151. 56: uint32(0x00010000),
  3152. 57: uint32(0x00400000),
  3153. 58: uint32(0x40400100),
  3154. 59: uint32(0x00410100),
  3155. 60: uint32(0x40000000),
  3156. 61: uint32(0x40410000),
  3157. 62: uint32(0x00000100),
  3158. 63: uint32(0x40010100),
  3159. },
  3160. 1: {
  3161. 0: uint32(0x08021002),
  3162. 2: uint32(0x00021000),
  3163. 3: uint32(0x08020000),
  3164. 4: uint32(0x08000002),
  3165. 5: uint32(0x00001002),
  3166. 6: uint32(0x08001000),
  3167. 7: uint32(0x00021000),
  3168. 8: uint32(0x00001000),
  3169. 9: uint32(0x08020002),
  3170. 10: uint32(0x00000002),
  3171. 11: uint32(0x08001000),
  3172. 12: uint32(0x00020002),
  3173. 13: uint32(0x08021000),
  3174. 14: uint32(0x08020000),
  3175. 15: uint32(0x00000002),
  3176. 16: uint32(0x00020000),
  3177. 17: uint32(0x08001002),
  3178. 18: uint32(0x08020002),
  3179. 19: uint32(0x00001000),
  3180. 20: uint32(0x00021002),
  3181. 21: uint32(0x08000000),
  3182. 23: uint32(0x00020002),
  3183. 24: uint32(0x08001002),
  3184. 25: uint32(0x00021002),
  3185. 26: uint32(0x08021000),
  3186. 27: uint32(0x08000002),
  3187. 28: uint32(0x08000000),
  3188. 29: uint32(0x00020000),
  3189. 30: uint32(0x00001002),
  3190. 31: uint32(0x08021002),
  3191. 32: uint32(0x00020002),
  3192. 33: uint32(0x08021000),
  3193. 34: uint32(0x08001000),
  3194. 35: uint32(0x00021002),
  3195. 36: uint32(0x08021002),
  3196. 37: uint32(0x00020002),
  3197. 38: uint32(0x08000002),
  3198. 40: uint32(0x08000000),
  3199. 41: uint32(0x00001002),
  3200. 42: uint32(0x00020000),
  3201. 43: uint32(0x08020002),
  3202. 44: uint32(0x00001000),
  3203. 45: uint32(0x08000000),
  3204. 46: uint32(0x00021002),
  3205. 47: uint32(0x08001002),
  3206. 48: uint32(0x08021000),
  3207. 49: uint32(0x00001000),
  3208. 51: uint32(0x08000002),
  3209. 52: uint32(0x00000002),
  3210. 53: uint32(0x08021002),
  3211. 54: uint32(0x00021000),
  3212. 55: uint32(0x08020000),
  3213. 56: uint32(0x08020002),
  3214. 57: uint32(0x00020000),
  3215. 58: uint32(0x00001002),
  3216. 59: uint32(0x08001000),
  3217. 60: uint32(0x08001002),
  3218. 61: uint32(0x00000002),
  3219. 62: uint32(0x08020000),
  3220. 63: uint32(0x00021000),
  3221. },
  3222. 2: {
  3223. 0: uint32(0x20800000),
  3224. 1: uint32(0x00808020),
  3225. 2: uint32(0x00000020),
  3226. 3: uint32(0x20800020),
  3227. 4: uint32(0x20008000),
  3228. 5: uint32(0x00800000),
  3229. 6: uint32(0x20800020),
  3230. 7: uint32(0x00008020),
  3231. 8: uint32(0x00800020),
  3232. 9: uint32(0x00008000),
  3233. 10: uint32(0x00808000),
  3234. 11: uint32(0x20000000),
  3235. 12: uint32(0x20808020),
  3236. 13: uint32(0x20000020),
  3237. 14: uint32(0x20000000),
  3238. 15: uint32(0x20808000),
  3239. 17: uint32(0x20008000),
  3240. 18: uint32(0x00808020),
  3241. 19: uint32(0x00000020),
  3242. 20: uint32(0x20000020),
  3243. 21: uint32(0x20808020),
  3244. 22: uint32(0x00008000),
  3245. 23: uint32(0x20800000),
  3246. 24: uint32(0x20808000),
  3247. 25: uint32(0x00800020),
  3248. 26: uint32(0x20008020),
  3249. 27: uint32(0x00808000),
  3250. 28: uint32(0x00008020),
  3251. 30: uint32(0x00800000),
  3252. 31: uint32(0x20008020),
  3253. 32: uint32(0x00808020),
  3254. 33: uint32(0x00000020),
  3255. 34: uint32(0x20000000),
  3256. 35: uint32(0x00008000),
  3257. 36: uint32(0x20000020),
  3258. 37: uint32(0x20008000),
  3259. 38: uint32(0x00808000),
  3260. 39: uint32(0x20800020),
  3261. 41: uint32(0x00808020),
  3262. 42: uint32(0x00008020),
  3263. 43: uint32(0x20808000),
  3264. 44: uint32(0x20008000),
  3265. 45: uint32(0x00800000),
  3266. 46: uint32(0x20808020),
  3267. 47: uint32(0x20000000),
  3268. 48: uint32(0x20008020),
  3269. 49: uint32(0x20800000),
  3270. 50: uint32(0x00800000),
  3271. 51: uint32(0x20808020),
  3272. 52: uint32(0x00008000),
  3273. 53: uint32(0x00800020),
  3274. 54: uint32(0x20800020),
  3275. 55: uint32(0x00008020),
  3276. 56: uint32(0x00800020),
  3277. 58: uint32(0x20808000),
  3278. 59: uint32(0x20000020),
  3279. 60: uint32(0x20800000),
  3280. 61: uint32(0x20008020),
  3281. 62: uint32(0x00000020),
  3282. 63: uint32(0x00808000),
  3283. },
  3284. 3: {
  3285. 0: uint32(0x00080201),
  3286. 1: uint32(0x02000200),
  3287. 2: uint32(0x00000001),
  3288. 3: uint32(0x02080201),
  3289. 5: uint32(0x02080000),
  3290. 6: uint32(0x02000201),
  3291. 7: uint32(0x00080001),
  3292. 8: uint32(0x02080200),
  3293. 9: uint32(0x02000001),
  3294. 10: uint32(0x02000000),
  3295. 11: uint32(0x00000201),
  3296. 12: uint32(0x02000001),
  3297. 13: uint32(0x00080201),
  3298. 14: uint32(0x00080000),
  3299. 15: uint32(0x02000000),
  3300. 16: uint32(0x02080001),
  3301. 17: uint32(0x00080200),
  3302. 18: uint32(0x00000200),
  3303. 19: uint32(0x00000001),
  3304. 20: uint32(0x00080200),
  3305. 21: uint32(0x02000201),
  3306. 22: uint32(0x02080000),
  3307. 23: uint32(0x00000200),
  3308. 24: uint32(0x00000201),
  3309. 26: uint32(0x00080001),
  3310. 27: uint32(0x02080200),
  3311. 28: uint32(0x02000200),
  3312. 29: uint32(0x02080001),
  3313. 30: uint32(0x02080201),
  3314. 31: uint32(0x00080000),
  3315. 32: uint32(0x02080001),
  3316. 33: uint32(0x00000201),
  3317. 34: uint32(0x00080000),
  3318. 35: uint32(0x02000001),
  3319. 36: uint32(0x00080200),
  3320. 37: uint32(0x02000200),
  3321. 38: uint32(0x00000001),
  3322. 39: uint32(0x02080000),
  3323. 40: uint32(0x02000201),
  3324. 42: uint32(0x00000200),
  3325. 43: uint32(0x00080001),
  3326. 45: uint32(0x02080001),
  3327. 46: uint32(0x02080200),
  3328. 47: uint32(0x00000200),
  3329. 48: uint32(0x02000000),
  3330. 49: uint32(0x02080201),
  3331. 50: uint32(0x00080201),
  3332. 51: uint32(0x00080000),
  3333. 52: uint32(0x02080201),
  3334. 53: uint32(0x00000001),
  3335. 54: uint32(0x02000200),
  3336. 55: uint32(0x00080201),
  3337. 56: uint32(0x00080001),
  3338. 57: uint32(0x00080200),
  3339. 58: uint32(0x02080000),
  3340. 59: uint32(0x02000201),
  3341. 60: uint32(0x00000201),
  3342. 61: uint32(0x02000000),
  3343. 62: uint32(0x02000001),
  3344. 63: uint32(0x02080200),
  3345. },
  3346. 4: {
  3347. 0: uint32(0x01000000),
  3348. 1: uint32(0x00002000),
  3349. 2: uint32(0x00000080),
  3350. 3: uint32(0x01002084),
  3351. 4: uint32(0x01002004),
  3352. 5: uint32(0x01000080),
  3353. 6: uint32(0x00002084),
  3354. 7: uint32(0x01002000),
  3355. 8: uint32(0x00002000),
  3356. 9: uint32(0x00000004),
  3357. 10: uint32(0x01000004),
  3358. 11: uint32(0x00002080),
  3359. 12: uint32(0x01000084),
  3360. 13: uint32(0x01002004),
  3361. 14: uint32(0x01002080),
  3362. 16: uint32(0x00002080),
  3363. 17: uint32(0x01000000),
  3364. 18: uint32(0x00002004),
  3365. 19: uint32(0x00000084),
  3366. 20: uint32(0x01000080),
  3367. 21: uint32(0x00002084),
  3368. 23: uint32(0x01000004),
  3369. 24: uint32(0x00000004),
  3370. 25: uint32(0x01000084),
  3371. 26: uint32(0x01002084),
  3372. 27: uint32(0x00002004),
  3373. 28: uint32(0x01002000),
  3374. 29: uint32(0x00000080),
  3375. 30: uint32(0x00000084),
  3376. 31: uint32(0x01002080),
  3377. 32: uint32(0x01002080),
  3378. 33: uint32(0x01000084),
  3379. 34: uint32(0x00002004),
  3380. 35: uint32(0x01002000),
  3381. 36: uint32(0x00002000),
  3382. 37: uint32(0x00000004),
  3383. 38: uint32(0x01000004),
  3384. 39: uint32(0x01000080),
  3385. 40: uint32(0x01000000),
  3386. 41: uint32(0x00002080),
  3387. 42: uint32(0x01002084),
  3388. 44: uint32(0x00002084),
  3389. 45: uint32(0x01000000),
  3390. 46: uint32(0x00000080),
  3391. 47: uint32(0x00002004),
  3392. 48: uint32(0x01000084),
  3393. 49: uint32(0x00000080),
  3394. 51: uint32(0x01002084),
  3395. 52: uint32(0x01002004),
  3396. 53: uint32(0x01002080),
  3397. 54: uint32(0x00000084),
  3398. 55: uint32(0x00002000),
  3399. 56: uint32(0x00002080),
  3400. 57: uint32(0x01002004),
  3401. 58: uint32(0x01000080),
  3402. 59: uint32(0x00000084),
  3403. 60: uint32(0x00000004),
  3404. 61: uint32(0x00002084),
  3405. 62: uint32(0x01002000),
  3406. 63: uint32(0x01000004),
  3407. },
  3408. 5: {
  3409. 0: uint32(0x10000008),
  3410. 1: uint32(0x00040008),
  3411. 3: uint32(0x10040400),
  3412. 4: uint32(0x00040008),
  3413. 5: uint32(0x00000400),
  3414. 6: uint32(0x10000408),
  3415. 7: uint32(0x00040000),
  3416. 8: uint32(0x00000408),
  3417. 9: uint32(0x10040408),
  3418. 10: uint32(0x00040400),
  3419. 11: uint32(0x10000000),
  3420. 12: uint32(0x10000400),
  3421. 13: uint32(0x10000008),
  3422. 14: uint32(0x10040000),
  3423. 15: uint32(0x00040408),
  3424. 16: uint32(0x00040000),
  3425. 17: uint32(0x10000408),
  3426. 18: uint32(0x10040008),
  3427. 20: uint32(0x00000400),
  3428. 21: uint32(0x00000008),
  3429. 22: uint32(0x10040400),
  3430. 23: uint32(0x10040008),
  3431. 24: uint32(0x10040408),
  3432. 25: uint32(0x10040000),
  3433. 26: uint32(0x10000000),
  3434. 27: uint32(0x00000408),
  3435. 28: uint32(0x00000008),
  3436. 29: uint32(0x00040400),
  3437. 30: uint32(0x00040408),
  3438. 31: uint32(0x10000400),
  3439. 32: uint32(0x00000408),
  3440. 33: uint32(0x10000000),
  3441. 34: uint32(0x10000400),
  3442. 35: uint32(0x00040408),
  3443. 36: uint32(0x10040400),
  3444. 37: uint32(0x00040008),
  3445. 39: uint32(0x10000400),
  3446. 40: uint32(0x10000000),
  3447. 41: uint32(0x00000400),
  3448. 42: uint32(0x10040008),
  3449. 43: uint32(0x00040000),
  3450. 44: uint32(0x00040008),
  3451. 45: uint32(0x10040408),
  3452. 46: uint32(0x00040400),
  3453. 47: uint32(0x00000008),
  3454. 48: uint32(0x10040408),
  3455. 49: uint32(0x00040400),
  3456. 50: uint32(0x00040000),
  3457. 51: uint32(0x10000408),
  3458. 52: uint32(0x10000008),
  3459. 53: uint32(0x10040000),
  3460. 54: uint32(0x00040408),
  3461. 56: uint32(0x00000400),
  3462. 57: uint32(0x10000008),
  3463. 58: uint32(0x10000408),
  3464. 59: uint32(0x10040400),
  3465. 60: uint32(0x10040000),
  3466. 61: uint32(0x00000408),
  3467. 62: uint32(0x00000008),
  3468. 63: uint32(0x10040008),
  3469. },
  3470. 6: {
  3471. 0: uint32(0x00000800),
  3472. 1: uint32(0x00000040),
  3473. 2: uint32(0x00200040),
  3474. 3: uint32(0x80200000),
  3475. 4: uint32(0x80200840),
  3476. 5: uint32(0x80000800),
  3477. 6: uint32(0x00000840),
  3478. 8: uint32(0x00200000),
  3479. 9: uint32(0x80200040),
  3480. 10: uint32(0x80000040),
  3481. 11: uint32(0x00200800),
  3482. 12: uint32(0x80000000),
  3483. 13: uint32(0x00200840),
  3484. 14: uint32(0x00200800),
  3485. 15: uint32(0x80000040),
  3486. 16: uint32(0x80200040),
  3487. 17: uint32(0x00000800),
  3488. 18: uint32(0x80000800),
  3489. 19: uint32(0x80200840),
  3490. 21: uint32(0x00200040),
  3491. 22: uint32(0x80200000),
  3492. 23: uint32(0x00000840),
  3493. 24: uint32(0x80200800),
  3494. 25: uint32(0x80000840),
  3495. 26: uint32(0x00200840),
  3496. 27: uint32(0x80000000),
  3497. 28: uint32(0x80000840),
  3498. 29: uint32(0x80200800),
  3499. 30: uint32(0x00000040),
  3500. 31: uint32(0x00200000),
  3501. 32: uint32(0x80000840),
  3502. 33: uint32(0x00200800),
  3503. 34: uint32(0x80200800),
  3504. 35: uint32(0x80000040),
  3505. 36: uint32(0x00000800),
  3506. 37: uint32(0x00000040),
  3507. 38: uint32(0x00200000),
  3508. 39: uint32(0x80200800),
  3509. 40: uint32(0x80200040),
  3510. 41: uint32(0x80000840),
  3511. 42: uint32(0x00000840),
  3512. 44: uint32(0x00000040),
  3513. 45: uint32(0x80200000),
  3514. 46: uint32(0x80000000),
  3515. 47: uint32(0x00200040),
  3516. 49: uint32(0x80200040),
  3517. 50: uint32(0x00200040),
  3518. 51: uint32(0x00000840),
  3519. 52: uint32(0x80000040),
  3520. 53: uint32(0x00000800),
  3521. 54: uint32(0x80200840),
  3522. 55: uint32(0x00200000),
  3523. 56: uint32(0x00200840),
  3524. 57: uint32(0x80000000),
  3525. 58: uint32(0x80000800),
  3526. 59: uint32(0x80200840),
  3527. 60: uint32(0x80200000),
  3528. 61: uint32(0x00200840),
  3529. 62: uint32(0x00200800),
  3530. 63: uint32(0x80000800),
  3531. },
  3532. 7: {
  3533. 0: uint32(0x04100010),
  3534. 1: uint32(0x04104000),
  3535. 2: uint32(0x00004010),
  3536. 4: uint32(0x04004000),
  3537. 5: uint32(0x00100010),
  3538. 6: uint32(0x04100000),
  3539. 7: uint32(0x04104010),
  3540. 8: uint32(0x00000010),
  3541. 9: uint32(0x04000000),
  3542. 10: uint32(0x00104000),
  3543. 11: uint32(0x00004010),
  3544. 12: uint32(0x00104010),
  3545. 13: uint32(0x04004010),
  3546. 14: uint32(0x04000010),
  3547. 15: uint32(0x04100000),
  3548. 16: uint32(0x00004000),
  3549. 17: uint32(0x00104010),
  3550. 18: uint32(0x00100010),
  3551. 19: uint32(0x04004000),
  3552. 20: uint32(0x04104010),
  3553. 21: uint32(0x04000010),
  3554. 23: uint32(0x00104000),
  3555. 24: uint32(0x04000000),
  3556. 25: uint32(0x00100000),
  3557. 26: uint32(0x04004010),
  3558. 27: uint32(0x04100010),
  3559. 28: uint32(0x00100000),
  3560. 29: uint32(0x00004000),
  3561. 30: uint32(0x04104000),
  3562. 31: uint32(0x00000010),
  3563. 32: uint32(0x00100000),
  3564. 33: uint32(0x00004000),
  3565. 34: uint32(0x04000010),
  3566. 35: uint32(0x04104010),
  3567. 36: uint32(0x00004010),
  3568. 37: uint32(0x04000000),
  3569. 39: uint32(0x00104000),
  3570. 40: uint32(0x04100010),
  3571. 41: uint32(0x04004010),
  3572. 42: uint32(0x04004000),
  3573. 43: uint32(0x00100010),
  3574. 44: uint32(0x04104000),
  3575. 45: uint32(0x00000010),
  3576. 46: uint32(0x00100010),
  3577. 47: uint32(0x04004000),
  3578. 48: uint32(0x04104010),
  3579. 49: uint32(0x00100000),
  3580. 50: uint32(0x04100000),
  3581. 51: uint32(0x04000010),
  3582. 52: uint32(0x00104000),
  3583. 53: uint32(0x00004010),
  3584. 54: uint32(0x04004010),
  3585. 55: uint32(0x04100000),
  3586. 56: uint32(0x00000010),
  3587. 57: uint32(0x04104000),
  3588. 58: uint32(0x00104010),
  3589. 60: uint32(0x04000000),
  3590. 61: uint32(0x04100010),
  3591. 62: uint32(0x00004000),
  3592. 63: uint32(0x00104010),
  3593. },
  3594. }
  3595. var _shifts2 = [16]int8{
  3596. 2: int8(1),
  3597. 3: int8(1),
  3598. 4: int8(1),
  3599. 5: int8(1),
  3600. 6: int8(1),
  3601. 7: int8(1),
  3602. 9: int8(1),
  3603. 10: int8(1),
  3604. 11: int8(1),
  3605. 12: int8(1),
  3606. 13: int8(1),
  3607. 14: int8(1),
  3608. }
  3609. func X_XdmcpAuthSetup(tls *libc.TLS, key uintptr, schedule uintptr) {
  3610. var c, d, s, t TCARD32
  3611. var i int32
  3612. var in, k, v1, v10, v11, v2, v3, v4, v5, v6, v7, v8 uintptr
  3613. _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = c, d, i, in, k, s, t, v1, v10, v11, v2, v3, v4, v5, v6, v7, v8
  3614. k = schedule
  3615. in = key
  3616. v1 = in
  3617. in++
  3618. c = uint32(*(*TCARD8)(unsafe.Pointer(v1)))
  3619. v2 = in
  3620. in++
  3621. c |= uint32(*(*TCARD8)(unsafe.Pointer(v2))) << int32(8)
  3622. v3 = in
  3623. in++
  3624. c |= uint32(*(*TCARD8)(unsafe.Pointer(v3))) << int32(16)
  3625. v4 = in
  3626. in++
  3627. c |= uint32(*(*TCARD8)(unsafe.Pointer(v4))) << int32(24)
  3628. v5 = in
  3629. in++
  3630. d = uint32(*(*TCARD8)(unsafe.Pointer(v5)))
  3631. v6 = in
  3632. in++
  3633. d |= uint32(*(*TCARD8)(unsafe.Pointer(v6))) << int32(8)
  3634. v7 = in
  3635. in++
  3636. d |= uint32(*(*TCARD8)(unsafe.Pointer(v7))) << int32(16)
  3637. v8 = in
  3638. in++
  3639. d |= uint32(*(*TCARD8)(unsafe.Pointer(v8))) << int32(24)
  3640. /* do PC1 in 60 simple operations */
  3641. t = (d>>libc.Int32FromInt32(4) ^ c) & libc.Uint32FromInt32(libc.Int32FromInt32(0x0f0f0f0f))
  3642. c ^= t
  3643. d ^= t << libc.Int32FromInt32(4)
  3644. t = (c<<(libc.Int32FromInt32(16) - -libc.Int32FromInt32(2)) ^ c) & libc.Uint32FromUint32(0xcccc0000)
  3645. c = c ^ t ^ t>>(libc.Int32FromInt32(16) - -libc.Int32FromInt32(2))
  3646. t = (c<<(libc.Int32FromInt32(16) - -libc.Int32FromInt32(1)) ^ c) & libc.Uint32FromUint32(0xaaaa0000)
  3647. c = c ^ t ^ t>>(libc.Int32FromInt32(16) - -libc.Int32FromInt32(1))
  3648. t = (c<<(libc.Int32FromInt32(16)-libc.Int32FromInt32(8)) ^ c) & libc.Uint32FromInt32(libc.Int32FromInt32(0x00ff0000))
  3649. c = c ^ t ^ t>>(libc.Int32FromInt32(16)-libc.Int32FromInt32(8))
  3650. t = (c<<(libc.Int32FromInt32(16) - -libc.Int32FromInt32(1)) ^ c) & libc.Uint32FromUint32(0xaaaa0000)
  3651. c = c ^ t ^ t>>(libc.Int32FromInt32(16) - -libc.Int32FromInt32(1))
  3652. t = (d<<(libc.Int32FromInt32(16) - -libc.Int32FromInt32(8)) ^ d) & libc.Uint32FromUint32(0xff000000)
  3653. d = d ^ t ^ t>>(libc.Int32FromInt32(16) - -libc.Int32FromInt32(8))
  3654. t = (d<<(libc.Int32FromInt32(16)-libc.Int32FromInt32(8)) ^ d) & libc.Uint32FromInt32(libc.Int32FromInt32(0x00ff0000))
  3655. d = d ^ t ^ t>>(libc.Int32FromInt32(16)-libc.Int32FromInt32(8))
  3656. t = (d<<(libc.Int32FromInt32(16)-libc.Int32FromInt32(2)) ^ d) & libc.Uint32FromInt32(libc.Int32FromInt32(0x33330000))
  3657. d = d ^ t ^ t>>(libc.Int32FromInt32(16)-libc.Int32FromInt32(2))
  3658. d = d&uint32(0x00aa00aa)<<int32(7) | d&uint32(0x55005500)>>int32(7) | d&uint32(0xaa55aa55)
  3659. d = d>>libc.Int32FromInt32(8) | c&uint32(0xf0000000)>>int32(4)
  3660. c &= uint32(0x0fffffff)
  3661. i = 0
  3662. for {
  3663. if !(i < int32(m_ITERATIONS)) {
  3664. break
  3665. }
  3666. if _shifts2[i] != 0 {
  3667. c = c>>libc.Int32FromInt32(2) | c<<libc.Int32FromInt32(26)
  3668. d = d>>libc.Int32FromInt32(2) | d<<libc.Int32FromInt32(26)
  3669. } else {
  3670. c = c>>libc.Int32FromInt32(1) | c<<libc.Int32FromInt32(27)
  3671. d = d>>libc.Int32FromInt32(1) | d<<libc.Int32FromInt32(27)
  3672. }
  3673. c &= uint32(0x0fffffff)
  3674. d &= uint32(0x0fffffff)
  3675. /* could be a few less shifts but I am to lazy at this
  3676. * point in time to investigate */
  3677. 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))
  3678. 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))
  3679. /* table contained 0213 4657 */
  3680. v10 = k
  3681. k += 4
  3682. *(*TCARD32)(unsafe.Pointer(v10)) = t<<libc.Int32FromInt32(16) | s&libc.Uint32FromInt32(0x0000ffff)
  3683. s = s>>libc.Int32FromInt32(16) | t&libc.Uint32FromUint32(0xffff0000)
  3684. s = s<<libc.Int32FromInt32(4) | s>>libc.Int32FromInt32(28)
  3685. v11 = k
  3686. k += 4
  3687. *(*TCARD32)(unsafe.Pointer(v11)) = s
  3688. goto _9
  3689. _9:
  3690. ;
  3691. i++
  3692. }
  3693. return
  3694. }
  3695. func X_XdmcpAuthDoIt(tls *libc.TLS, input uintptr, output uintptr, ks uintptr, encrypt int32) {
  3696. var i int32
  3697. var in, out, s, v1, v11, v12, v13, v14, v15, v16, v17, v18, v2, v3, v4, v5, v6, v7, v8 uintptr
  3698. var l, r, t, u TCARD32
  3699. _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = i, in, l, out, r, s, t, u, v1, v11, v12, v13, v14, v15, v16, v17, v18, v2, v3, v4, v5, v6, v7, v8
  3700. in = input
  3701. out = output
  3702. v1 = in
  3703. in++
  3704. l = uint32(*(*TCARD8)(unsafe.Pointer(v1)))
  3705. v2 = in
  3706. in++
  3707. l |= uint32(*(*TCARD8)(unsafe.Pointer(v2))) << int32(8)
  3708. v3 = in
  3709. in++
  3710. l |= uint32(*(*TCARD8)(unsafe.Pointer(v3))) << int32(16)
  3711. v4 = in
  3712. in++
  3713. l |= uint32(*(*TCARD8)(unsafe.Pointer(v4))) << int32(24)
  3714. v5 = in
  3715. in++
  3716. r = uint32(*(*TCARD8)(unsafe.Pointer(v5)))
  3717. v6 = in
  3718. in++
  3719. r |= uint32(*(*TCARD8)(unsafe.Pointer(v6))) << int32(8)
  3720. v7 = in
  3721. in++
  3722. r |= uint32(*(*TCARD8)(unsafe.Pointer(v7))) << int32(16)
  3723. v8 = in
  3724. in++
  3725. r |= uint32(*(*TCARD8)(unsafe.Pointer(v8))) << int32(24)
  3726. /* do IP */
  3727. t = (r>>libc.Int32FromInt32(4) ^ l) & libc.Uint32FromInt32(libc.Int32FromInt32(0x0f0f0f0f))
  3728. l ^= t
  3729. r ^= t << libc.Int32FromInt32(4)
  3730. t = (l>>libc.Int32FromInt32(16) ^ r) & libc.Uint32FromInt32(libc.Int32FromInt32(0x0000ffff))
  3731. r ^= t
  3732. l ^= t << libc.Int32FromInt32(16)
  3733. t = (r>>libc.Int32FromInt32(2) ^ l) & libc.Uint32FromInt32(libc.Int32FromInt32(0x33333333))
  3734. l ^= t
  3735. r ^= t << libc.Int32FromInt32(2)
  3736. t = (l>>libc.Int32FromInt32(8) ^ r) & libc.Uint32FromInt32(libc.Int32FromInt32(0x00ff00ff))
  3737. r ^= t
  3738. l ^= t << libc.Int32FromInt32(8)
  3739. t = (r>>libc.Int32FromInt32(1) ^ l) & libc.Uint32FromInt32(libc.Int32FromInt32(0x55555555))
  3740. l ^= t
  3741. r ^= t << libc.Int32FromInt32(1)
  3742. /* r and l are reversed - remember that :-) */
  3743. t = l
  3744. l = r
  3745. r = t
  3746. s = ks
  3747. if encrypt != 0 {
  3748. i = 0
  3749. for {
  3750. if !(i < libc.Int32FromInt32(m_ITERATIONS)*libc.Int32FromInt32(2)) {
  3751. break
  3752. }
  3753. t = r<<libc.Int32FromInt32(1) | r>>libc.Int32FromInt32(31)
  3754. u = t ^ *(*TCARD32)(unsafe.Pointer(s + uintptr(i)*4))
  3755. t = t ^ *(*TCARD32)(unsafe.Pointer(s + uintptr(i+int32(1))*4))
  3756. t = t>>libc.Int32FromInt32(4) | t<<libc.Int32FromInt32(28)
  3757. 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 */
  3758. t = l<<libc.Int32FromInt32(1) | l>>libc.Int32FromInt32(31)
  3759. u = t ^ *(*TCARD32)(unsafe.Pointer(s + uintptr(i+int32(2))*4))
  3760. t = t ^ *(*TCARD32)(unsafe.Pointer(s + uintptr(i+int32(2)+int32(1))*4))
  3761. t = t>>libc.Int32FromInt32(4) | t<<libc.Int32FromInt32(28)
  3762. 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 */
  3763. goto _9
  3764. _9:
  3765. ;
  3766. i += int32(4)
  3767. }
  3768. } else {
  3769. i = libc.Int32FromInt32(m_ITERATIONS)*libc.Int32FromInt32(2) - libc.Int32FromInt32(2)
  3770. for {
  3771. if !(i >= 0) {
  3772. break
  3773. }
  3774. t = r<<libc.Int32FromInt32(1) | r>>libc.Int32FromInt32(31)
  3775. u = t ^ *(*TCARD32)(unsafe.Pointer(s + uintptr(i)*4))
  3776. t = t ^ *(*TCARD32)(unsafe.Pointer(s + uintptr(i+int32(1))*4))
  3777. t = t>>libc.Int32FromInt32(4) | t<<libc.Int32FromInt32(28)
  3778. 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 */
  3779. t = l<<libc.Int32FromInt32(1) | l>>libc.Int32FromInt32(31)
  3780. u = t ^ *(*TCARD32)(unsafe.Pointer(s + uintptr(i-int32(2))*4))
  3781. t = t ^ *(*TCARD32)(unsafe.Pointer(s + uintptr(i-int32(2)+int32(1))*4))
  3782. t = t>>libc.Int32FromInt32(4) | t<<libc.Int32FromInt32(28)
  3783. 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 */
  3784. goto _10
  3785. _10:
  3786. ;
  3787. i -= int32(4)
  3788. }
  3789. }
  3790. /* swap l and r
  3791. * we will not do the swap so just remember they are
  3792. * reversed for the rest of the subroutine
  3793. * luckily by FP fixes this problem :-) */
  3794. t = (r>>libc.Int32FromInt32(1) ^ l) & libc.Uint32FromInt32(libc.Int32FromInt32(0x55555555))
  3795. l ^= t
  3796. r ^= t << libc.Int32FromInt32(1)
  3797. t = (l>>libc.Int32FromInt32(8) ^ r) & libc.Uint32FromInt32(libc.Int32FromInt32(0x00ff00ff))
  3798. r ^= t
  3799. l ^= t << libc.Int32FromInt32(8)
  3800. t = (r>>libc.Int32FromInt32(2) ^ l) & libc.Uint32FromInt32(libc.Int32FromInt32(0x33333333))
  3801. l ^= t
  3802. r ^= t << libc.Int32FromInt32(2)
  3803. t = (l>>libc.Int32FromInt32(16) ^ r) & libc.Uint32FromInt32(libc.Int32FromInt32(0x0000ffff))
  3804. r ^= t
  3805. l ^= t << libc.Int32FromInt32(16)
  3806. t = (r>>libc.Int32FromInt32(4) ^ l) & libc.Uint32FromInt32(libc.Int32FromInt32(0x0f0f0f0f))
  3807. l ^= t
  3808. r ^= t << libc.Int32FromInt32(4)
  3809. v11 = out
  3810. out++
  3811. *(*TCARD8)(unsafe.Pointer(v11)) = uint8(l & libc.Uint32FromInt32(0xff))
  3812. v12 = out
  3813. out++
  3814. *(*TCARD8)(unsafe.Pointer(v12)) = uint8(l >> libc.Int32FromInt32(8) & libc.Uint32FromInt32(0xff))
  3815. v13 = out
  3816. out++
  3817. *(*TCARD8)(unsafe.Pointer(v13)) = uint8(l >> libc.Int32FromInt32(16) & libc.Uint32FromInt32(0xff))
  3818. v14 = out
  3819. out++
  3820. *(*TCARD8)(unsafe.Pointer(v14)) = uint8(l >> libc.Int32FromInt32(24) & libc.Uint32FromInt32(0xff))
  3821. v15 = out
  3822. out++
  3823. *(*TCARD8)(unsafe.Pointer(v15)) = uint8(r & libc.Uint32FromInt32(0xff))
  3824. v16 = out
  3825. out++
  3826. *(*TCARD8)(unsafe.Pointer(v16)) = uint8(r >> libc.Int32FromInt32(8) & libc.Uint32FromInt32(0xff))
  3827. v17 = out
  3828. out++
  3829. *(*TCARD8)(unsafe.Pointer(v17)) = uint8(r >> libc.Int32FromInt32(16) & libc.Uint32FromInt32(0xff))
  3830. v18 = out
  3831. out++
  3832. *(*TCARD8)(unsafe.Pointer(v18)) = uint8(r >> libc.Int32FromInt32(24) & libc.Uint32FromInt32(0xff))
  3833. return
  3834. }