ccgo_darwin_arm64.go 165 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784
  1. // Code generated for darwin/arm64 by 'generator -no-main-minimize -DHAVE_LIBBSD --prefix-enumerator=_ --prefix-external=x_ --prefix-field=F --prefix-macro=m_ --prefix-static-internal=_ --prefix-static-none=_ --prefix-tagged-enum=_ --prefix-tagged-struct=T --prefix-tagged-union=T --prefix-typename=T --prefix-undefined=_ -extended-errors -ignore-unsupported-alignment -ignore-link-errors -I /Users/jnml/src/modernc.org/builder/.exclude/modernc.org/libbsd/include/darwin/arm64 -lbsd -o libxdmcp.go --package-name libxdmcp .libs/libXdmcp.a', DO NOT EDIT.
  2. //go:build darwin && arm64
  3. package libxdmcp
  4. import (
  5. "reflect"
  6. "unsafe"
  7. "modernc.org/libc"
  8. )
  9. var _ reflect.Type
  10. var _ unsafe.Pointer
  11. const m_ACCESSX_MAX_DESCRIPTORS = 100
  12. const m_ATTRIBUTION_NAME_MAX = 255
  13. const m_AT_EACCESS = 0x0010
  14. const m_AT_FDONLY = 0x0400
  15. const m_AT_REALDEV = 0x0200
  16. const m_AT_REMOVEDIR = 0x0080
  17. const m_AT_SYMLINK_FOLLOW = 0x0040
  18. const m_AT_SYMLINK_NOFOLLOW = 0x0020
  19. const m_AT_SYMLINK_NOFOLLOW_ANY = 0x0800
  20. const m_Above = 0
  21. const m_AllTemporary = 0
  22. const m_AllocAll = 1
  23. const m_AllocNone = 0
  24. const m_AllowExposures = 1
  25. const m_AlreadyGrabbed = 1
  26. const m_Always = 2
  27. const m_AnyButton = 0
  28. const m_AnyKey = 0
  29. const m_AnyPropertyType = 0
  30. const m_ArcChord = 0
  31. const m_ArcPieSlice = 1
  32. const m_AsyncBoth = 6
  33. const m_AsyncKeyboard = 3
  34. const m_AsyncPointer = 0
  35. const m_AutoRepeatModeDefault = 2
  36. const m_AutoRepeatModeOff = 0
  37. const m_AutoRepeatModeOn = 1
  38. const m_BADSIG = "SIG_ERR"
  39. const m_BC_BASE_MAX = 99
  40. const m_BC_DIM_MAX = 2048
  41. const m_BC_SCALE_MAX = 99
  42. const m_BC_STRING_MAX = 1000
  43. const m_BIG_ENDIAN = "__DARWIN_BIG_ENDIAN"
  44. const m_BUS_ADRALN = 1
  45. const m_BUS_ADRERR = 2
  46. const m_BUS_NOOP = 0
  47. const m_BUS_OBJERR = 3
  48. const m_BYTE_ORDER = "__DARWIN_BYTE_ORDER"
  49. const m_BadAccess = 10
  50. const m_BadAlloc = 11
  51. const m_BadAtom = 5
  52. const m_BadColor = 12
  53. const m_BadCursor = 6
  54. const m_BadDrawable = 9
  55. const m_BadFont = 7
  56. const m_BadGC = 13
  57. const m_BadIDChoice = 14
  58. const m_BadImplementation = 17
  59. const m_BadLength = 16
  60. const m_BadMatch = 8
  61. const m_BadName = 15
  62. const m_BadPixmap = 4
  63. const m_BadRequest = 1
  64. const m_BadValue = 2
  65. const m_BadWindow = 3
  66. const m_Below = 1
  67. const m_BottomIf = 3
  68. const m_Button1 = 1
  69. const m_Button2 = 2
  70. const m_Button3 = 3
  71. const m_Button4 = 4
  72. const m_Button5 = 5
  73. const m_ButtonPress = 4
  74. const m_ButtonRelease = 5
  75. const m_CHARCLASS_NAME_MAX = 14
  76. const m_CHILD_MAX = 266
  77. const m_CLD_CONTINUED = 6
  78. const m_CLD_DUMPED = 3
  79. const m_CLD_EXITED = 1
  80. const m_CLD_KILLED = 2
  81. const m_CLD_NOOP = 0
  82. const m_CLD_STOPPED = 5
  83. const m_CLD_TRAPPED = 4
  84. const m_CLOCK_MONOTONIC = "_CLOCK_MONOTONIC"
  85. const m_CLOCK_MONOTONIC_RAW = "_CLOCK_MONOTONIC_RAW"
  86. const m_CLOCK_MONOTONIC_RAW_APPROX = "_CLOCK_MONOTONIC_RAW_APPROX"
  87. const m_CLOCK_PROCESS_CPUTIME_ID = "_CLOCK_PROCESS_CPUTIME_ID"
  88. const m_CLOCK_REALTIME = "_CLOCK_REALTIME"
  89. const m_CLOCK_THREAD_CPUTIME_ID = "_CLOCK_THREAD_CPUTIME_ID"
  90. const m_CLOCK_UPTIME_RAW = "_CLOCK_UPTIME_RAW"
  91. const m_CLOCK_UPTIME_RAW_APPROX = "_CLOCK_UPTIME_RAW_APPROX"
  92. const m_COLL_WEIGHTS_MAX = 2
  93. const m_CPF_IGNORE_MODE = 0x0002
  94. const m_CPF_OVERWRITE = 0x0001
  95. const m_CPUMON_MAKE_FATAL = 0x1000
  96. const m_CapButt = 1
  97. const m_CapNotLast = 0
  98. const m_CapProjecting = 3
  99. const m_CapRound = 2
  100. const m_CenterGravity = 5
  101. const m_CirculateNotify = 26
  102. const m_CirculateRequest = 27
  103. const m_ClientMessage = 33
  104. const m_ClipByChildren = 0
  105. const m_ColormapInstalled = 1
  106. const m_ColormapNotify = 32
  107. const m_ColormapUninstalled = 0
  108. const m_Complex = 0
  109. const m_ConfigureNotify = 22
  110. const m_ConfigureRequest = 23
  111. const m_ControlMapIndex = 2
  112. const m_Convex = 2
  113. const m_CoordModeOrigin = 0
  114. const m_CoordModePrevious = 1
  115. const m_CopyFromParent = 0
  116. const m_CreateNotify = 16
  117. const m_CurrentTime = 0
  118. const m_CursorShape = 0
  119. const m_DST_AUST = 2
  120. const m_DST_CAN = 6
  121. const m_DST_EET = 5
  122. const m_DST_MET = 4
  123. const m_DST_NONE = 0
  124. const m_DST_USA = 1
  125. const m_DST_WET = 3
  126. const m_DefaultBlanking = 2
  127. const m_DefaultExposures = 2
  128. const m_DestroyAll = 0
  129. const m_DestroyNotify = 17
  130. const m_DirectColor = 5
  131. const m_DisableAccess = 0
  132. const m_DisableScreenInterval = 0
  133. const m_DisableScreenSaver = 0
  134. const m_DontAllowExposures = 0
  135. const m_DontPreferBlanking = 0
  136. const m_EQUIV_CLASS_MAX = 2
  137. const m_EXIT_FAILURE = 1
  138. const m_EXIT_SUCCESS = 0
  139. const m_EXPR_NEST_MAX = 32
  140. const m_EastGravity = 6
  141. const m_EnableAccess = 1
  142. const m_EnterNotify = 7
  143. const m_EvenOddRule = 0
  144. const m_Expose = 12
  145. const m_FALSE = 0
  146. const m_FAPPEND = "O_APPEND"
  147. const m_FASYNC = "O_ASYNC"
  148. const m_FCNTL_FS_SPECIFIC_BASE = 0x00010000
  149. const m_FD_CLOEXEC = 1
  150. const m_FD_SETSIZE = "__DARWIN_FD_SETSIZE"
  151. const m_FFDSYNC = "O_DSYNC"
  152. const m_FFSYNC = "O_FSYNC"
  153. const m_FILESEC_GUID = "FILESEC_UUID"
  154. const m_FNDELAY = "O_NONBLOCK"
  155. const m_FNONBLOCK = "O_NONBLOCK"
  156. const m_FOOTPRINT_INTERVAL_RESET = 0x1
  157. const m_FPE_FLTDIV = 1
  158. const m_FPE_FLTINV = 5
  159. const m_FPE_FLTOVF = 2
  160. const m_FPE_FLTRES = 4
  161. const m_FPE_FLTSUB = 6
  162. const m_FPE_FLTUND = 3
  163. const m_FPE_INTDIV = 7
  164. const m_FPE_INTOVF = 8
  165. const m_FPE_NOOP = 0
  166. const m_FREAD = 0x00000001
  167. const m_FUNCPROTO = 15
  168. const m_FWRITE = 0x00000002
  169. const m_F_ADDFILESIGS = 61
  170. const m_F_ADDFILESIGS_FOR_DYLD_SIM = 83
  171. const m_F_ADDFILESIGS_INFO = 103
  172. const m_F_ADDFILESIGS_RETURN = 97
  173. const m_F_ADDFILESUPPL = 104
  174. const m_F_ADDSIGS = 59
  175. const m_F_ADDSIGS_MAIN_BINARY = 113
  176. const m_F_ALLOCATEALL = 0x00000004
  177. const m_F_ALLOCATECONTIG = 0x00000002
  178. const m_F_ALLOCATEPERSIST = 0x00000008
  179. const m_F_ATTRIBUTION_TAG = 111
  180. const m_F_BARRIERFSYNC = 85
  181. const m_F_CHECK_LV = 98
  182. const m_F_CHKCLEAN = 41
  183. const m_F_CREATE_TAG = 0x00000001
  184. const m_F_DELETE_TAG = 0x00000002
  185. const m_F_DUPFD = 0
  186. const m_F_DUPFD_CLOEXEC = 67
  187. const m_F_FINDSIGS = 78
  188. const m_F_FLUSH_DATA = 40
  189. const m_F_FREEZE_FS = 53
  190. const m_F_FULLFSYNC = 51
  191. const m_F_GETCODEDIR = 72
  192. const m_F_GETFD = 1
  193. const m_F_GETFL = 3
  194. const m_F_GETLEASE = 107
  195. const m_F_GETLK = 7
  196. const m_F_GETLKPID = 66
  197. const m_F_GETNOSIGPIPE = 74
  198. const m_F_GETOWN = 5
  199. const m_F_GETPATH = 50
  200. const m_F_GETPATH_MTMINFO = 71
  201. const m_F_GETPATH_NOFIRMLINK = 102
  202. const m_F_GETPROTECTIONCLASS = 63
  203. const m_F_GETPROTECTIONLEVEL = 77
  204. const m_F_GETSIGSINFO = 105
  205. const m_F_GLOBAL_NOCACHE = 55
  206. const m_F_LOCK = 1
  207. const m_F_LOG2PHYS = 49
  208. const m_F_LOG2PHYS_EXT = 65
  209. const m_F_NOCACHE = 48
  210. const m_F_NODIRECT = 62
  211. const m_F_OFD_GETLK = 92
  212. const m_F_OFD_SETLK = 90
  213. const m_F_OFD_SETLKW = 91
  214. const m_F_OFD_SETLKWTIMEOUT = 93
  215. const m_F_OK = 0
  216. const m_F_PATHPKG_CHECK = 52
  217. const m_F_PEOFPOSMODE = 3
  218. const m_F_PREALLOCATE = 42
  219. const m_F_PUNCHHOLE = 99
  220. const m_F_QUERY_TAG = 0x00000004
  221. const m_F_RDADVISE = 44
  222. const m_F_RDAHEAD = 45
  223. const m_F_RDLCK = 1
  224. const m_F_SETBACKINGSTORE = 70
  225. const m_F_SETFD = 2
  226. const m_F_SETFL = 4
  227. const m_F_SETLEASE = 106
  228. const m_F_SETLK = 8
  229. const m_F_SETLKW = 9
  230. const m_F_SETLKWTIMEOUT = 10
  231. const m_F_SETNOSIGPIPE = 73
  232. const m_F_SETOWN = 6
  233. const m_F_SETPROTECTIONCLASS = 64
  234. const m_F_SETSIZE = 43
  235. const m_F_SINGLE_WRITER = 76
  236. const m_F_SPECULATIVE_READ = 101
  237. const m_F_TEST = 3
  238. const m_F_THAW_FS = 54
  239. const m_F_TLOCK = 2
  240. const m_F_TRANSCODEKEY = 75
  241. const m_F_TRANSFEREXTENTS = 110
  242. const m_F_TRIM_ACTIVE_FILE = 100
  243. const m_F_ULOCK = 0
  244. const m_F_UNLCK = 2
  245. const m_F_VOLPOSMODE = 4
  246. const m_F_WRLCK = 3
  247. const m_FamilyChaos = 2
  248. const m_FamilyDECnet = 1
  249. const m_FamilyInternet = 0
  250. const m_FamilyInternet6 = 6
  251. const m_FamilyServerInterpreted = 5
  252. const m_FillOpaqueStippled = 3
  253. const m_FillSolid = 0
  254. const m_FillStippled = 2
  255. const m_FillTiled = 1
  256. const m_FirstExtensionError = 128
  257. const m_FocusIn = 9
  258. const m_FocusOut = 10
  259. const m_FontChange = 255
  260. const m_FontLeftToRight = 0
  261. const m_FontRightToLeft = 1
  262. const m_ForgetGravity = 0
  263. const m_GCLastBit = 22
  264. const m_GETSIGSINFO_PLATFORM_BINARY = 1
  265. const m_GID_MAX = 2147483647
  266. const m_GXand = 0x1
  267. const m_GXandInverted = 0x4
  268. const m_GXandReverse = 0x2
  269. const m_GXclear = 0x0
  270. const m_GXcopy = 0x3
  271. const m_GXcopyInverted = 0xc
  272. const m_GXequiv = 0x9
  273. const m_GXinvert = 0xa
  274. const m_GXnand = 0xe
  275. const m_GXnoop = 0x5
  276. const m_GXnor = 0x8
  277. const m_GXor = 0x7
  278. const m_GXorInverted = 0xd
  279. const m_GXorReverse = 0xb
  280. const m_GXset = 0xf
  281. const m_GXxor = 0x6
  282. const m_GenericEvent = 35
  283. const m_GrabFrozen = 4
  284. const m_GrabInvalidTime = 2
  285. const m_GrabModeAsync = 1
  286. const m_GrabModeSync = 0
  287. const m_GrabNotViewable = 3
  288. const m_GrabSuccess = 0
  289. const m_GraphicsExpose = 13
  290. const m_GravityNotify = 24
  291. const m_GrayScale = 1
  292. const m_HASXDMAUTH = 1
  293. const m_HAVE_ARC4RANDOM_BUF = 1
  294. const m_HAVE_CONFIG_H = 1
  295. const m_HAVE_DLFCN_H = 1
  296. const m_HAVE_GETENTROPY = 1
  297. const m_HAVE_INTTYPES_H = 1
  298. const m_HAVE_LIBBSD = 1
  299. const m_HAVE_LRAND48 = 1
  300. const m_HAVE_SRAND48 = 1
  301. const m_HAVE_STDINT_H = 1
  302. const m_HAVE_STDIO_H = 1
  303. const m_HAVE_STDLIB_H = 1
  304. const m_HAVE_STRINGS_H = 1
  305. const m_HAVE_STRING_H = 1
  306. const m_HAVE_SYS_RANDOM_H = 1
  307. const m_HAVE_SYS_STAT_H = 1
  308. const m_HAVE_SYS_TYPES_H = 1
  309. const m_HAVE_UNISTD_H = 1
  310. const m_HAVE_WCHAR_H = 1
  311. const m_HostDelete = 1
  312. const m_HostInsert = 0
  313. const m_ILL_BADSTK = 8
  314. const m_ILL_COPROC = 7
  315. const m_ILL_ILLADR = 5
  316. const m_ILL_ILLOPC = 1
  317. const m_ILL_ILLOPN = 4
  318. const m_ILL_ILLTRP = 2
  319. const m_ILL_NOOP = 0
  320. const m_ILL_PRVOPC = 3
  321. const m_ILL_PRVREG = 6
  322. const m_INTMAX_MAX = "__INTMAX_MAX__"
  323. const m_INTPTR_MAX = "__INTPTR_MAX__"
  324. const m_INT_FAST16_MAX = "__INT_LEAST16_MAX"
  325. const m_INT_FAST16_MIN = "__INT_LEAST16_MIN"
  326. const m_INT_FAST32_MAX = "__INT_LEAST32_MAX"
  327. const m_INT_FAST32_MIN = "__INT_LEAST32_MIN"
  328. const m_INT_FAST64_MAX = "__INT_LEAST64_MAX"
  329. const m_INT_FAST64_MIN = "__INT_LEAST64_MIN"
  330. const m_INT_FAST8_MAX = "__INT_LEAST8_MAX"
  331. const m_INT_FAST8_MIN = "__INT_LEAST8_MIN"
  332. const m_INT_LEAST16_MAX = "__INT_LEAST16_MAX"
  333. const m_INT_LEAST16_MIN = "__INT_LEAST16_MIN"
  334. const m_INT_LEAST32_MAX = "__INT_LEAST32_MAX"
  335. const m_INT_LEAST32_MIN = "__INT_LEAST32_MIN"
  336. const m_INT_LEAST64_MAX = "__INT_LEAST64_MAX"
  337. const m_INT_LEAST64_MIN = "__INT_LEAST64_MIN"
  338. const m_INT_LEAST8_MAX = "__INT_LEAST8_MAX"
  339. const m_INT_LEAST8_MIN = "__INT_LEAST8_MIN"
  340. const m_IOPOL_APPLICATION = "IOPOL_STANDARD"
  341. const m_IOPOL_ATIME_UPDATES_DEFAULT = 0
  342. const m_IOPOL_ATIME_UPDATES_OFF = 1
  343. const m_IOPOL_DEFAULT = 0
  344. const m_IOPOL_IMPORTANT = 1
  345. const m_IOPOL_MATERIALIZE_DATALESS_FILES_DEFAULT = 0
  346. const m_IOPOL_MATERIALIZE_DATALESS_FILES_OFF = 1
  347. const m_IOPOL_MATERIALIZE_DATALESS_FILES_ON = 2
  348. const m_IOPOL_NORMAL = "IOPOL_IMPORTANT"
  349. const m_IOPOL_PASSIVE = 2
  350. const m_IOPOL_SCOPE_DARWIN_BG = 2
  351. const m_IOPOL_SCOPE_PROCESS = 0
  352. const m_IOPOL_SCOPE_THREAD = 1
  353. const m_IOPOL_STANDARD = 5
  354. const m_IOPOL_THROTTLE = 3
  355. const m_IOPOL_TYPE_DISK = 0
  356. const m_IOPOL_TYPE_VFS_ALLOW_LOW_SPACE_WRITES = 9
  357. const m_IOPOL_TYPE_VFS_ATIME_UPDATES = 2
  358. const m_IOPOL_TYPE_VFS_DISALLOW_RW_FOR_O_EVTONLY = 10
  359. const m_IOPOL_TYPE_VFS_IGNORE_CONTENT_PROTECTION = 6
  360. const m_IOPOL_TYPE_VFS_IGNORE_PERMISSIONS = 7
  361. const m_IOPOL_TYPE_VFS_MATERIALIZE_DATALESS_FILES = 3
  362. const m_IOPOL_TYPE_VFS_SKIP_MTIME_UPDATE = 8
  363. const m_IOPOL_TYPE_VFS_STATFS_NO_DATA_VOLUME = 4
  364. const m_IOPOL_TYPE_VFS_TRIGGER_RESOLVE = 5
  365. const m_IOPOL_UTILITY = 4
  366. const m_IOPOL_VFS_ALLOW_LOW_SPACE_WRITES_OFF = 0
  367. const m_IOPOL_VFS_ALLOW_LOW_SPACE_WRITES_ON = 1
  368. const m_IOPOL_VFS_CONTENT_PROTECTION_DEFAULT = 0
  369. const m_IOPOL_VFS_CONTENT_PROTECTION_IGNORE = 1
  370. const m_IOPOL_VFS_DISALLOW_RW_FOR_O_EVTONLY_DEFAULT = 0
  371. const m_IOPOL_VFS_DISALLOW_RW_FOR_O_EVTONLY_ON = 1
  372. const m_IOPOL_VFS_IGNORE_PERMISSIONS_OFF = 0
  373. const m_IOPOL_VFS_IGNORE_PERMISSIONS_ON = 1
  374. const m_IOPOL_VFS_NOCACHE_WRITE_FS_BLKSIZE_DEFAULT = 0
  375. const m_IOPOL_VFS_NOCACHE_WRITE_FS_BLKSIZE_ON = 1
  376. const m_IOPOL_VFS_SKIP_MTIME_UPDATE_IGNORE = 2
  377. const m_IOPOL_VFS_SKIP_MTIME_UPDATE_OFF = 0
  378. const m_IOPOL_VFS_SKIP_MTIME_UPDATE_ON = 1
  379. const m_IOPOL_VFS_STATFS_FORCE_NO_DATA_VOLUME = 1
  380. const m_IOPOL_VFS_STATFS_NO_DATA_VOLUME_DEFAULT = 0
  381. const m_IOPOL_VFS_TRIGGER_RESOLVE_DEFAULT = 0
  382. const m_IOPOL_VFS_TRIGGER_RESOLVE_OFF = 1
  383. const m_ITIMER_PROF = 2
  384. const m_ITIMER_REAL = 0
  385. const m_ITIMER_VIRTUAL = 1
  386. const m_IncludeInferiors = 1
  387. const m_InputFocus = 1
  388. const m_InputOnly = 2
  389. const m_InputOutput = 1
  390. const m_IsUnmapped = 0
  391. const m_IsUnviewable = 1
  392. const m_IsViewable = 2
  393. const m_JoinBevel = 2
  394. const m_JoinMiter = 0
  395. const m_JoinRound = 1
  396. const m_KeyPress = 2
  397. const m_KeyRelease = 3
  398. const m_KeymapNotify = 11
  399. const m_LASTEvent = 36
  400. const m_LINE_MAX = 2048
  401. const m_LINK_MAX = 32767
  402. const m_LITTLE_ENDIAN = "__DARWIN_LITTLE_ENDIAN"
  403. const m_LOCK_EX = 0x02
  404. const m_LOCK_NB = 0x04
  405. const m_LOCK_SH = 0x01
  406. const m_LOCK_UN = 0x08
  407. const m_LSBFirst = 0
  408. const m_LT_OBJDIR = ".libs/"
  409. const m_L_INCR = "SEEK_CUR"
  410. const m_L_SET = "SEEK_SET"
  411. const m_L_XTND = "SEEK_END"
  412. const m_L_ctermid = 1024
  413. const m_LastExtensionError = 255
  414. const m_LeaveNotify = 8
  415. const m_LedModeOff = 0
  416. const m_LedModeOn = 1
  417. const m_LineDoubleDash = 2
  418. const m_LineOnOffDash = 1
  419. const m_LineSolid = 0
  420. const m_LockMapIndex = 1
  421. const m_LowerHighest = 1
  422. const m_MAC_OS_VERSION_11_0 = "__MAC_11_0"
  423. const m_MAC_OS_VERSION_11_1 = "__MAC_11_1"
  424. const m_MAC_OS_VERSION_11_3 = "__MAC_11_3"
  425. const m_MAC_OS_VERSION_11_4 = "__MAC_11_4"
  426. const m_MAC_OS_VERSION_11_5 = "__MAC_11_5"
  427. const m_MAC_OS_VERSION_11_6 = "__MAC_11_6"
  428. const m_MAC_OS_VERSION_12_0 = "__MAC_12_0"
  429. const m_MAC_OS_VERSION_12_1 = "__MAC_12_1"
  430. const m_MAC_OS_VERSION_12_2 = "__MAC_12_2"
  431. const m_MAC_OS_VERSION_12_3 = "__MAC_12_3"
  432. const m_MAC_OS_VERSION_12_4 = "__MAC_12_4"
  433. const m_MAC_OS_VERSION_12_5 = "__MAC_12_5"
  434. const m_MAC_OS_VERSION_12_6 = "__MAC_12_6"
  435. const m_MAC_OS_VERSION_12_7 = "__MAC_12_7"
  436. const m_MAC_OS_VERSION_13_0 = "__MAC_13_0"
  437. const m_MAC_OS_VERSION_13_1 = "__MAC_13_1"
  438. const m_MAC_OS_VERSION_13_2 = "__MAC_13_2"
  439. const m_MAC_OS_VERSION_13_3 = "__MAC_13_3"
  440. const m_MAC_OS_VERSION_13_4 = "__MAC_13_4"
  441. const m_MAC_OS_VERSION_13_5 = "__MAC_13_5"
  442. const m_MAC_OS_VERSION_13_6 = "__MAC_13_6"
  443. const m_MAC_OS_VERSION_13_7 = "__MAC_13_7"
  444. const m_MAC_OS_VERSION_14_0 = "__MAC_14_0"
  445. const m_MAC_OS_VERSION_14_1 = "__MAC_14_1"
  446. const m_MAC_OS_VERSION_14_2 = "__MAC_14_2"
  447. const m_MAC_OS_VERSION_14_3 = "__MAC_14_3"
  448. const m_MAC_OS_VERSION_14_4 = "__MAC_14_4"
  449. const m_MAC_OS_VERSION_14_5 = "__MAC_14_5"
  450. const m_MAC_OS_VERSION_14_6 = "__MAC_14_6"
  451. const m_MAC_OS_VERSION_14_7 = "__MAC_14_7"
  452. const m_MAC_OS_VERSION_15_0 = "__MAC_15_0"
  453. const m_MAC_OS_VERSION_15_1 = "__MAC_15_1"
  454. const m_MAC_OS_VERSION_15_2 = "__MAC_15_2"
  455. const m_MAC_OS_VERSION_15_3 = "__MAC_15_3"
  456. const m_MAC_OS_VERSION_15_4 = "__MAC_15_4"
  457. const m_MAC_OS_X_VERSION_10_0 = "__MAC_10_0"
  458. const m_MAC_OS_X_VERSION_10_1 = "__MAC_10_1"
  459. const m_MAC_OS_X_VERSION_10_10 = "__MAC_10_10"
  460. const m_MAC_OS_X_VERSION_10_10_2 = "__MAC_10_10_2"
  461. const m_MAC_OS_X_VERSION_10_10_3 = "__MAC_10_10_3"
  462. const m_MAC_OS_X_VERSION_10_11 = "__MAC_10_11"
  463. const m_MAC_OS_X_VERSION_10_11_2 = "__MAC_10_11_2"
  464. const m_MAC_OS_X_VERSION_10_11_3 = "__MAC_10_11_3"
  465. const m_MAC_OS_X_VERSION_10_11_4 = "__MAC_10_11_4"
  466. const m_MAC_OS_X_VERSION_10_12 = "__MAC_10_12"
  467. const m_MAC_OS_X_VERSION_10_12_1 = "__MAC_10_12_1"
  468. const m_MAC_OS_X_VERSION_10_12_2 = "__MAC_10_12_2"
  469. const m_MAC_OS_X_VERSION_10_12_4 = "__MAC_10_12_4"
  470. const m_MAC_OS_X_VERSION_10_13 = "__MAC_10_13"
  471. const m_MAC_OS_X_VERSION_10_13_1 = "__MAC_10_13_1"
  472. const m_MAC_OS_X_VERSION_10_13_2 = "__MAC_10_13_2"
  473. const m_MAC_OS_X_VERSION_10_13_4 = "__MAC_10_13_4"
  474. const m_MAC_OS_X_VERSION_10_14 = "__MAC_10_14"
  475. const m_MAC_OS_X_VERSION_10_14_1 = "__MAC_10_14_1"
  476. const m_MAC_OS_X_VERSION_10_14_4 = "__MAC_10_14_4"
  477. const m_MAC_OS_X_VERSION_10_14_5 = "__MAC_10_14_5"
  478. const m_MAC_OS_X_VERSION_10_14_6 = "__MAC_10_14_6"
  479. const m_MAC_OS_X_VERSION_10_15 = "__MAC_10_15"
  480. const m_MAC_OS_X_VERSION_10_15_1 = "__MAC_10_15_1"
  481. const m_MAC_OS_X_VERSION_10_15_4 = "__MAC_10_15_4"
  482. const m_MAC_OS_X_VERSION_10_16 = "__MAC_10_16"
  483. const m_MAC_OS_X_VERSION_10_2 = "__MAC_10_2"
  484. const m_MAC_OS_X_VERSION_10_3 = "__MAC_10_3"
  485. const m_MAC_OS_X_VERSION_10_4 = "__MAC_10_4"
  486. const m_MAC_OS_X_VERSION_10_5 = "__MAC_10_5"
  487. const m_MAC_OS_X_VERSION_10_6 = "__MAC_10_6"
  488. const m_MAC_OS_X_VERSION_10_7 = "__MAC_10_7"
  489. const m_MAC_OS_X_VERSION_10_8 = "__MAC_10_8"
  490. const m_MAC_OS_X_VERSION_10_9 = "__MAC_10_9"
  491. const m_MAX_CANON = 1024
  492. const m_MAX_INPUT = 1024
  493. const m_MB_CUR_MAX = "__mb_cur_max"
  494. const m_MINSIGSTKSZ = 32768
  495. const m_MSBFirst = 1
  496. const m_MapNotify = 19
  497. const m_MapRequest = 20
  498. const m_MappingBusy = 1
  499. const m_MappingFailed = 2
  500. const m_MappingKeyboard = 1
  501. const m_MappingModifier = 0
  502. const m_MappingNotify = 34
  503. const m_MappingPointer = 2
  504. const m_MappingSuccess = 0
  505. const m_Mod1MapIndex = 3
  506. const m_Mod2MapIndex = 4
  507. const m_Mod3MapIndex = 5
  508. const m_Mod4MapIndex = 6
  509. const m_Mod5MapIndex = 7
  510. const m_MotionNotify = 6
  511. const m_NAME_MAX = 255
  512. const m_NBBY = "__DARWIN_NBBY"
  513. const m_NDEBUG = 1
  514. const m_NFDBITS = "__DARWIN_NFDBITS"
  515. const m_NGROUPS_MAX = 16
  516. const m_NSIG = "__DARWIN_NSIG"
  517. const m_NULL = "__DARWIN_NULL"
  518. const m_NZERO = 20
  519. const m_NeedFunctionPrototypes = 1
  520. const m_NeedNestedPrototypes = 1
  521. const m_NeedVarargsPrototypes = 1
  522. const m_NeedWidePrototypes = 1
  523. const m_NoEventMask = 0
  524. const m_NoExpose = 14
  525. const m_NoSymbol = 0
  526. const m_Nonconvex = 1
  527. const m_None = 0
  528. const m_NorthEastGravity = 3
  529. const m_NorthGravity = 2
  530. const m_NorthWestGravity = 1
  531. const m_NotUseful = 0
  532. const m_NotifyAncestor = 0
  533. const m_NotifyDetailNone = 7
  534. const m_NotifyGrab = 1
  535. const m_NotifyHint = 1
  536. const m_NotifyInferior = 2
  537. const m_NotifyNonlinear = 3
  538. const m_NotifyNonlinearVirtual = 4
  539. const m_NotifyNormal = 0
  540. const m_NotifyPointer = 5
  541. const m_NotifyPointerRoot = 6
  542. const m_NotifyUngrab = 2
  543. const m_NotifyVirtual = 1
  544. const m_NotifyWhileGrabbed = 3
  545. const m_OPEN_MAX = 10240
  546. const m_O_ACCMODE = 0x0003
  547. const m_O_ALERT = 0x20000000
  548. const m_O_APPEND = 0x00000008
  549. const m_O_ASYNC = 0x00000040
  550. const m_O_CLOEXEC = 0x01000000
  551. const m_O_CREAT = 0x00000200
  552. const m_O_DIRECTORY = 0x00100000
  553. const m_O_DP_AUTHENTICATE = 0x0004
  554. const m_O_DP_GETRAWENCRYPTED = 0x0001
  555. const m_O_DP_GETRAWUNENCRYPTED = 0x0002
  556. const m_O_DSYNC = 0x400000
  557. const m_O_EVTONLY = 0x00008000
  558. const m_O_EXCL = 0x00000800
  559. const m_O_EXEC = 0x40000000
  560. const m_O_EXLOCK = 0x00000020
  561. const m_O_FSYNC = "O_SYNC"
  562. const m_O_NDELAY = "O_NONBLOCK"
  563. const m_O_NOCTTY = 0x00020000
  564. const m_O_NOFOLLOW = 0x00000100
  565. const m_O_NOFOLLOW_ANY = 0x20000000
  566. const m_O_NONBLOCK = 0x00000004
  567. const m_O_POPUP = 0x80000000
  568. const m_O_RDONLY = 0x0000
  569. const m_O_RDWR = 0x0002
  570. const m_O_RESOLVE_BENEATH = 0x00001000
  571. const m_O_SHLOCK = 0x00000010
  572. const m_O_SYMLINK = 0x00200000
  573. const m_O_SYNC = 0x0080
  574. const m_O_TRUNC = 0x00000400
  575. const m_O_WRONLY = 0x0001
  576. const m_Opposite = 4
  577. const m_PACKAGE = "libXdmcp"
  578. const m_PACKAGE_BUGREPORT = "https://gitlab.freedesktop.org/xorg/lib/libxdmcp/-/issues"
  579. const m_PACKAGE_NAME = "libXdmcp"
  580. const m_PACKAGE_STRING = "libXdmcp 1.1.5"
  581. const m_PACKAGE_TARNAME = "libXdmcp"
  582. const m_PACKAGE_URL = ""
  583. const m_PACKAGE_VERSION = "1.1.5"
  584. const m_PACKAGE_VERSION_MAJOR = 1
  585. const m_PACKAGE_VERSION_MINOR = 1
  586. const m_PACKAGE_VERSION_PATCHLEVEL = 5
  587. const m_PATH_MAX = 1024
  588. const m_PDP_ENDIAN = "__DARWIN_PDP_ENDIAN"
  589. const m_PIPE_BUF = 512
  590. const m_POLL_ERR = 4
  591. const m_POLL_HUP = 6
  592. const m_POLL_IN = 1
  593. const m_POLL_MSG = 3
  594. const m_POLL_OUT = 2
  595. const m_POLL_PRI = 5
  596. const m_PRIO_DARWIN_BG = 0x1000
  597. const m_PRIO_DARWIN_NONUI = 0x1001
  598. const m_PRIO_DARWIN_PROCESS = 4
  599. const m_PRIO_DARWIN_THREAD = 3
  600. const m_PRIO_MAX = 20
  601. const m_PRIO_PGRP = 1
  602. const m_PRIO_PROCESS = 0
  603. const m_PRIO_USER = 2
  604. const m_PTRDIFF_MAX = "__PTRDIFF_MAX__"
  605. const m_ParentRelative = 1
  606. const m_PlaceOnBottom = 1
  607. const m_PlaceOnTop = 0
  608. const m_PointerRoot = 1
  609. const m_PointerWindow = 0
  610. const m_PreferBlanking = 1
  611. const m_PropModeAppend = 2
  612. const m_PropModePrepend = 1
  613. const m_PropModeReplace = 0
  614. const m_PropertyDelete = 1
  615. const m_PropertyNewValue = 0
  616. const m_PropertyNotify = 28
  617. const m_PseudoColor = 3
  618. const m_RAND_MAX = 0x7fffffff
  619. const m_RE_DUP_MAX = 255
  620. const m_RLIMIT_AS = 5
  621. const m_RLIMIT_CORE = 4
  622. const m_RLIMIT_CPU = 0
  623. const m_RLIMIT_CPU_USAGE_MONITOR = 0x2
  624. const m_RLIMIT_DATA = 2
  625. const m_RLIMIT_FOOTPRINT_INTERVAL = 0x4
  626. const m_RLIMIT_FSIZE = 1
  627. const m_RLIMIT_MEMLOCK = 6
  628. const m_RLIMIT_NOFILE = 8
  629. const m_RLIMIT_NPROC = 7
  630. const m_RLIMIT_RSS = "RLIMIT_AS"
  631. const m_RLIMIT_STACK = 3
  632. const m_RLIMIT_THREAD_CPULIMITS = 0x3
  633. const m_RLIMIT_WAKEUPS_MONITOR = 0x1
  634. const m_RLIM_NLIMITS = 9
  635. const m_RLIM_SAVED_CUR = "RLIM_INFINITY"
  636. const m_RLIM_SAVED_MAX = "RLIM_INFINITY"
  637. const m_RUSAGE_INFO_CURRENT = "RUSAGE_INFO_V6"
  638. const m_RUSAGE_INFO_V0 = 0
  639. const m_RUSAGE_INFO_V1 = 1
  640. const m_RUSAGE_INFO_V2 = 2
  641. const m_RUSAGE_INFO_V3 = 3
  642. const m_RUSAGE_INFO_V4 = 4
  643. const m_RUSAGE_INFO_V5 = 5
  644. const m_RUSAGE_INFO_V6 = 6
  645. const m_RUSAGE_SELF = 0
  646. const m_RU_PROC_RUNS_RESLIDE = 0x00000001
  647. const m_RaiseLowest = 0
  648. const m_ReparentNotify = 21
  649. const m_ReplayKeyboard = 5
  650. const m_ReplayPointer = 2
  651. const m_ResizeRequest = 25
  652. const m_RetainPermanent = 1
  653. const m_RetainTemporary = 2
  654. const m_RevertToParent = 2
  655. const m_SA_64REGSET = 0x0200
  656. const m_SA_NOCLDSTOP = 0x0008
  657. const m_SA_NOCLDWAIT = 0x0020
  658. const m_SA_NODEFER = 0x0010
  659. const m_SA_ONSTACK = 0x0001
  660. const m_SA_RESETHAND = 0x0004
  661. const m_SA_RESTART = 0x0002
  662. const m_SA_SIGINFO = 0x0040
  663. const m_SA_USERTRAMP = 0x0100
  664. const m_SEEK_CUR = 1
  665. const m_SEEK_DATA = 4
  666. const m_SEEK_END = 2
  667. const m_SEEK_HOLE = 3
  668. const m_SEEK_SET = 0
  669. const m_SEGV_ACCERR = 2
  670. const m_SEGV_MAPERR = 1
  671. const m_SEGV_NOOP = 0
  672. const m_SIGABRT = 6
  673. const m_SIGALRM = 14
  674. const m_SIGBUS = 10
  675. const m_SIGCHLD = 20
  676. const m_SIGCONT = 19
  677. const m_SIGEMT = 7
  678. const m_SIGEV_NONE = 0
  679. const m_SIGEV_SIGNAL = 1
  680. const m_SIGEV_THREAD = 3
  681. const m_SIGFPE = 8
  682. const m_SIGHUP = 1
  683. const m_SIGILL = 4
  684. const m_SIGINFO = 29
  685. const m_SIGINT = 2
  686. const m_SIGIO = 23
  687. const m_SIGIOT = "SIGABRT"
  688. const m_SIGKILL = 9
  689. const m_SIGPIPE = 13
  690. const m_SIGPROF = 27
  691. const m_SIGQUIT = 3
  692. const m_SIGSEGV = 11
  693. const m_SIGSTKSZ = 131072
  694. const m_SIGSTOP = 17
  695. const m_SIGSYS = 12
  696. const m_SIGTERM = 15
  697. const m_SIGTRAP = 5
  698. const m_SIGTSTP = 18
  699. const m_SIGTTIN = 21
  700. const m_SIGTTOU = 22
  701. const m_SIGURG = 16
  702. const m_SIGUSR1 = 30
  703. const m_SIGUSR2 = 31
  704. const m_SIGVTALRM = 26
  705. const m_SIGWINCH = 28
  706. const m_SIGXCPU = 24
  707. const m_SIGXFSZ = 25
  708. const m_SIG_BLOCK = 1
  709. const m_SIG_SETMASK = 3
  710. const m_SIG_UNBLOCK = 2
  711. const m_SIZE_MAX = "__SIZE_MAX__"
  712. const m_SI_ASYNCIO = 0x10004
  713. const m_SI_MESGQ = 0x10005
  714. const m_SI_QUEUE = 0x10002
  715. const m_SI_TIMER = 0x10003
  716. const m_SI_USER = 0x10001
  717. const m_SS_DISABLE = 0x0004
  718. const m_SS_ONSTACK = 0x0001
  719. const m_STDC_HEADERS = 1
  720. const m_STDERR_FILENO = 2
  721. const m_STDIN_FILENO = 0
  722. const m_STDOUT_FILENO = 1
  723. const m_SV_INTERRUPT = "SA_RESTART"
  724. const m_SV_NOCLDSTOP = "SA_NOCLDSTOP"
  725. const m_SV_NODEFER = "SA_NODEFER"
  726. const m_SV_ONSTACK = "SA_ONSTACK"
  727. const m_SV_RESETHAND = "SA_RESETHAND"
  728. const m_SV_SIGINFO = "SA_SIGINFO"
  729. const m_SYNC_VOLUME_FULLSYNC = 0x01
  730. const m_SYNC_VOLUME_WAIT = 0x02
  731. const m_S_IEXEC = "S_IXUSR"
  732. const m_S_IFBLK = 0060000
  733. const m_S_IFCHR = 0020000
  734. const m_S_IFDIR = 0040000
  735. const m_S_IFIFO = 0010000
  736. const m_S_IFLNK = 0120000
  737. const m_S_IFMT = 0170000
  738. const m_S_IFREG = 0100000
  739. const m_S_IFSOCK = 0140000
  740. const m_S_IFWHT = 0160000
  741. const m_S_IREAD = "S_IRUSR"
  742. const m_S_IRGRP = 0000040
  743. const m_S_IROTH = 0000004
  744. const m_S_IRUSR = 0000400
  745. const m_S_IRWXG = 0000070
  746. const m_S_IRWXO = 0000007
  747. const m_S_IRWXU = 0000700
  748. const m_S_ISGID = 0002000
  749. const m_S_ISTXT = "S_ISVTX"
  750. const m_S_ISUID = 0004000
  751. const m_S_ISVTX = 0001000
  752. const m_S_IWGRP = 0000020
  753. const m_S_IWOTH = 0000002
  754. const m_S_IWRITE = "S_IWUSR"
  755. const m_S_IWUSR = 0000200
  756. const m_S_IXGRP = 0000010
  757. const m_S_IXOTH = 0000001
  758. const m_S_IXUSR = 0000100
  759. const m_ScreenSaverActive = 1
  760. const m_ScreenSaverReset = 0
  761. const m_SelectionClear = 29
  762. const m_SelectionNotify = 31
  763. const m_SelectionRequest = 30
  764. const m_SetModeDelete = 1
  765. const m_SetModeInsert = 0
  766. const m_ShiftMapIndex = 0
  767. const m_SouthEastGravity = 9
  768. const m_SouthGravity = 8
  769. const m_SouthWestGravity = 7
  770. const m_StaticColor = 2
  771. const m_StaticGravity = 10
  772. const m_StaticGray = 0
  773. const m_StippleShape = 2
  774. const m_Success = 0
  775. const m_SyncBoth = 7
  776. const m_SyncKeyboard = 4
  777. const m_SyncPointer = 1
  778. const m_TARGET_IPHONE_SIMULATOR = 0
  779. const m_TARGET_OS_ARROW = 1
  780. const m_TARGET_OS_BRIDGE = 0
  781. const m_TARGET_OS_DRIVERKIT = 0
  782. const m_TARGET_OS_EMBEDDED = 0
  783. const m_TARGET_OS_IOS = 0
  784. const m_TARGET_OS_IOSMAC = 0
  785. const m_TARGET_OS_IPHONE = 0
  786. const m_TARGET_OS_LINUX = 0
  787. const m_TARGET_OS_MAC = 1
  788. const m_TARGET_OS_MACCATALYST = 0
  789. const m_TARGET_OS_NANO = 0
  790. const m_TARGET_OS_OSX = 1
  791. const m_TARGET_OS_SIMULATOR = 0
  792. const m_TARGET_OS_TV = 0
  793. const m_TARGET_OS_UIKITFORMAC = 0
  794. const m_TARGET_OS_UNIX = 0
  795. const m_TARGET_OS_VISION = 0
  796. const m_TARGET_OS_WATCH = 0
  797. const m_TARGET_OS_WIN32 = 0
  798. const m_TARGET_OS_WINDOWS = 0
  799. const m_TARGET_OS_XR = 0
  800. const m_TIME_UTC = 1
  801. const m_TRAP_BRKPT = 1
  802. const m_TRAP_TRACE = 2
  803. const m_TRUE = 1
  804. const m_TileShape = 1
  805. const m_TopIf = 2
  806. const m_TrueColor = 4
  807. const m_UID_MAX = 2147483647
  808. const m_UINTMAX_MAX = "__UINTMAX_MAX__"
  809. const m_UINTPTR_MAX = "__UINTPTR_MAX__"
  810. const m_UINT_FAST16_MAX = "__UINT_LEAST16_MAX"
  811. const m_UINT_FAST32_MAX = "__UINT_LEAST32_MAX"
  812. const m_UINT_FAST64_MAX = "__UINT_LEAST64_MAX"
  813. const m_UINT_FAST8_MAX = "__UINT_LEAST8_MAX"
  814. const m_UINT_LEAST16_MAX = "__UINT_LEAST16_MAX"
  815. const m_UINT_LEAST32_MAX = "__UINT_LEAST32_MAX"
  816. const m_UINT_LEAST64_MAX = "__UINT_LEAST64_MAX"
  817. const m_UINT_LEAST8_MAX = "__UINT_LEAST8_MAX"
  818. const m_USER_FSIGNATURES_CDHASH_LEN = 20
  819. const m_UnmapGravity = 0
  820. const m_UnmapNotify = 18
  821. const m_Unsorted = 0
  822. const m_VERSION = "1.1.5"
  823. const m_VisibilityFullyObscured = 2
  824. const m_VisibilityNotify = 15
  825. const m_VisibilityPartiallyObscured = 1
  826. const m_VisibilityUnobscured = 0
  827. const m_WAIT_MYPGRP = 0
  828. const m_WAKEMON_DISABLE = 0x02
  829. const m_WAKEMON_ENABLE = 0x01
  830. const m_WAKEMON_GET_PARAMS = 0x04
  831. const m_WAKEMON_MAKE_FATAL = 0x10
  832. const m_WAKEMON_SET_DEFAULTS = 0x08
  833. const m_WCHAR_MAX = "__WCHAR_MAX__"
  834. const m_WCONTINUED = 0x00000010
  835. const m_WCOREFLAG = 0200
  836. const m_WEXITED = 0x00000004
  837. const m_WNOHANG = 0x00000001
  838. const m_WNOWAIT = 0x00000020
  839. const m_WSTOPPED = 0x00000008
  840. const m_WUNTRACED = 0x00000002
  841. const m_WestGravity = 4
  842. const m_WhenMapped = 1
  843. const m_WindingRule = 1
  844. const m_XDM_DEFAULT_MCAST_ADDR6 = "ff02:0:0:0:0:0:0:12b"
  845. const m_XDM_KA_RTX_LIMIT = 4
  846. const m_XDM_MAX_MSGLEN = 8192
  847. const m_XDM_MAX_RTX = 32
  848. const m_XDM_MIN_RTX = 2
  849. const m_XDM_PROTOCOL_VERSION = 1
  850. const m_XDM_RTX_LIMIT = 7
  851. const m_XDM_UDP_PORT = 177
  852. const m_XMD_H = 1
  853. const m_XYBitmap = 0
  854. const m_XYPixmap = 1
  855. const m_X_BIG_ENDIAN = "BIG_ENDIAN"
  856. const m_X_BYTE_ORDER = "BYTE_ORDER"
  857. const m_X_LITTLE_ENDIAN = "LITTLE_ENDIAN"
  858. const m_X_PROTOCOL = 11
  859. const m_X_PROTOCOL_REVISION = 0
  860. const m_YSorted = 1
  861. const m_YXBanded = 3
  862. const m_YXSorted = 2
  863. const m_ZPixmap = 2
  864. const m__ALL_SOURCE = 1
  865. const m__ARM_SIGNAL_ = 1
  866. const m__CS_DARWIN_USER_CACHE_DIR = 65538
  867. const m__CS_DARWIN_USER_DIR = 65536
  868. const m__CS_DARWIN_USER_TEMP_DIR = 65537
  869. const m__CS_PATH = 1
  870. const m__CS_POSIX_V6_ILP32_OFF32_CFLAGS = 2
  871. const m__CS_POSIX_V6_ILP32_OFF32_LDFLAGS = 3
  872. const m__CS_POSIX_V6_ILP32_OFF32_LIBS = 4
  873. const m__CS_POSIX_V6_ILP32_OFFBIG_CFLAGS = 5
  874. const m__CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS = 6
  875. const m__CS_POSIX_V6_ILP32_OFFBIG_LIBS = 7
  876. const m__CS_POSIX_V6_LP64_OFF64_CFLAGS = 8
  877. const m__CS_POSIX_V6_LP64_OFF64_LDFLAGS = 9
  878. const m__CS_POSIX_V6_LP64_OFF64_LIBS = 10
  879. const m__CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS = 11
  880. const m__CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS = 12
  881. const m__CS_POSIX_V6_LPBIG_OFFBIG_LIBS = 13
  882. const m__CS_POSIX_V6_WIDTH_RESTRICTED_ENVS = 14
  883. const m__CS_XBS5_ILP32_OFF32_CFLAGS = 20
  884. const m__CS_XBS5_ILP32_OFF32_LDFLAGS = 21
  885. const m__CS_XBS5_ILP32_OFF32_LIBS = 22
  886. const m__CS_XBS5_ILP32_OFF32_LINTFLAGS = 23
  887. const m__CS_XBS5_ILP32_OFFBIG_CFLAGS = 24
  888. const m__CS_XBS5_ILP32_OFFBIG_LDFLAGS = 25
  889. const m__CS_XBS5_ILP32_OFFBIG_LIBS = 26
  890. const m__CS_XBS5_ILP32_OFFBIG_LINTFLAGS = 27
  891. const m__CS_XBS5_LP64_OFF64_CFLAGS = 28
  892. const m__CS_XBS5_LP64_OFF64_LDFLAGS = 29
  893. const m__CS_XBS5_LP64_OFF64_LIBS = 30
  894. const m__CS_XBS5_LP64_OFF64_LINTFLAGS = 31
  895. const m__CS_XBS5_LPBIG_OFFBIG_CFLAGS = 32
  896. const m__CS_XBS5_LPBIG_OFFBIG_LDFLAGS = 33
  897. const m__CS_XBS5_LPBIG_OFFBIG_LIBS = 34
  898. const m__CS_XBS5_LPBIG_OFFBIG_LINTFLAGS = 35
  899. const m__DARWIN_C_SOURCE = 1
  900. const m__DARWIN_FEATURE_64_BIT_INODE = 1
  901. const m__DARWIN_FEATURE_ONLY_64_BIT_INODE = 1
  902. const m__DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE = 1
  903. const m__DARWIN_FEATURE_ONLY_VERS_1050 = 1
  904. const m__DARWIN_FEATURE_UNIX_CONFORMANCE = 3
  905. const m__FORTIFY_SOURCE = 2
  906. const m__GNU_SOURCE = 1
  907. const m__HPUX_ALT_XOPEN_SOCKET_API = 1
  908. const m__LIBC_COUNT__MB_LEN_MAX = "_LIBC_UNSAFE_INDEXABLE"
  909. const m__LIBC_COUNT__PATH_MAX = "_LIBC_UNSAFE_INDEXABLE"
  910. const m__LP64 = 1
  911. const m__NETBSD_SOURCE = 1
  912. const m__OPENBSD_SOURCE = 1
  913. const m__PC_2_SYMLINKS = 15
  914. const m__PC_ALLOC_SIZE_MIN = 16
  915. const m__PC_ASYNC_IO = 17
  916. const m__PC_AUTH_OPAQUE_NP = 14
  917. const m__PC_CASE_PRESERVING = 12
  918. const m__PC_CASE_SENSITIVE = 11
  919. const m__PC_CHOWN_RESTRICTED = 7
  920. const m__PC_EXTENDED_SECURITY_NP = 13
  921. const m__PC_FILESIZEBITS = 18
  922. const m__PC_LINK_MAX = 1
  923. const m__PC_MAX_CANON = 2
  924. const m__PC_MAX_INPUT = 3
  925. const m__PC_MIN_HOLE_SIZE = 27
  926. const m__PC_NAME_CHARS_MAX = 10
  927. const m__PC_NAME_MAX = 4
  928. const m__PC_NO_TRUNC = 8
  929. const m__PC_PATH_MAX = 5
  930. const m__PC_PIPE_BUF = 6
  931. const m__PC_PRIO_IO = 19
  932. const m__PC_REC_INCR_XFER_SIZE = 20
  933. const m__PC_REC_MAX_XFER_SIZE = 21
  934. const m__PC_REC_MIN_XFER_SIZE = 22
  935. const m__PC_REC_XFER_ALIGN = 23
  936. const m__PC_SYMLINK_MAX = 24
  937. const m__PC_SYNC_IO = 25
  938. const m__PC_VDISABLE = 9
  939. const m__PC_XATTR_SIZE_BITS = 26
  940. const m__POSIX2_CHAR_TERM = 200112
  941. const m__POSIX2_C_BIND = 200112
  942. const m__POSIX2_C_DEV = 200112
  943. const m__POSIX2_FORT_RUN = 200112
  944. const m__POSIX2_LOCALEDEF = 200112
  945. const m__POSIX2_SW_DEV = 200112
  946. const m__POSIX2_UPE = 200112
  947. const m__POSIX2_VERSION = 200112
  948. const m__POSIX_CHOWN_RESTRICTED = 200112
  949. const m__POSIX_FSYNC = 200112
  950. const m__POSIX_IPV6 = 200112
  951. const m__POSIX_JOB_CONTROL = 200112
  952. const m__POSIX_MAPPED_FILES = 200112
  953. const m__POSIX_MEMORY_PROTECTION = 200112
  954. const m__POSIX_NO_TRUNC = 200112
  955. const m__POSIX_PTHREAD_SEMANTICS = 1
  956. const m__POSIX_READER_WRITER_LOCKS = 200112
  957. const m__POSIX_REGEXP = 200112
  958. const m__POSIX_SAVED_IDS = 200112
  959. const m__POSIX_SHELL = 200112
  960. const m__POSIX_SPAWN = 200112
  961. const m__POSIX_THREADS = 200112
  962. const m__POSIX_THREAD_ATTR_STACKADDR = 200112
  963. const m__POSIX_THREAD_ATTR_STACKSIZE = 200112
  964. const m__POSIX_THREAD_KEYS_MAX = 128
  965. const m__POSIX_THREAD_PROCESS_SHARED = 200112
  966. const m__POSIX_THREAD_SAFE_FUNCTIONS = 200112
  967. const m__POSIX_V6_ILP32_OFF32 = "__ILP32_OFF32"
  968. const m__POSIX_V6_ILP32_OFFBIG = "__ILP32_OFFBIG"
  969. const m__POSIX_V6_LP64_OFF64 = "__LP64_OFF64"
  970. const m__POSIX_V6_LPBIG_OFFBIG = "__LPBIG_OFFBIG"
  971. const m__POSIX_V7_ILP32_OFF32 = "__ILP32_OFF32"
  972. const m__POSIX_V7_ILP32_OFFBIG = "__ILP32_OFFBIG"
  973. const m__POSIX_V7_LP64_OFF64 = "__LP64_OFF64"
  974. const m__POSIX_V7_LPBIG_OFFBIG = "__LPBIG_OFFBIG"
  975. const m__POSIX_VERSION = 200112
  976. const m__QUAD_HIGHWORD = 1
  977. const m__QUAD_LOWWORD = 0
  978. const m__RLIMIT_POSIX_FLAG = 0x1000
  979. const m__SC_2_CHAR_TERM = 20
  980. const m__SC_2_C_BIND = 18
  981. const m__SC_2_C_DEV = 19
  982. const m__SC_2_FORT_DEV = 21
  983. const m__SC_2_FORT_RUN = 22
  984. const m__SC_2_LOCALEDEF = 23
  985. const m__SC_2_PBS = 59
  986. const m__SC_2_PBS_ACCOUNTING = 60
  987. const m__SC_2_PBS_CHECKPOINT = 61
  988. const m__SC_2_PBS_LOCATE = 62
  989. const m__SC_2_PBS_MESSAGE = 63
  990. const m__SC_2_PBS_TRACK = 64
  991. const m__SC_2_SW_DEV = 24
  992. const m__SC_2_UPE = 25
  993. const m__SC_2_VERSION = 17
  994. const m__SC_ADVISORY_INFO = 65
  995. const m__SC_AIO_LISTIO_MAX = 42
  996. const m__SC_AIO_MAX = 43
  997. const m__SC_AIO_PRIO_DELTA_MAX = 44
  998. const m__SC_ARG_MAX = 1
  999. const m__SC_ASYNCHRONOUS_IO = 28
  1000. const m__SC_ATEXIT_MAX = 107
  1001. const m__SC_BARRIERS = 66
  1002. const m__SC_BC_BASE_MAX = 9
  1003. const m__SC_BC_DIM_MAX = 10
  1004. const m__SC_BC_SCALE_MAX = 11
  1005. const m__SC_BC_STRING_MAX = 12
  1006. const m__SC_CHILD_MAX = 2
  1007. const m__SC_CLK_TCK = 3
  1008. const m__SC_CLOCK_SELECTION = 67
  1009. const m__SC_COLL_WEIGHTS_MAX = 13
  1010. const m__SC_CPUTIME = 68
  1011. const m__SC_DELAYTIMER_MAX = 45
  1012. const m__SC_EXPR_NEST_MAX = 14
  1013. const m__SC_FILE_LOCKING = 69
  1014. const m__SC_FSYNC = 38
  1015. const m__SC_GETGR_R_SIZE_MAX = 70
  1016. const m__SC_GETPW_R_SIZE_MAX = 71
  1017. const m__SC_HOST_NAME_MAX = 72
  1018. const m__SC_IOV_MAX = 56
  1019. const m__SC_IPV6 = 118
  1020. const m__SC_JOB_CONTROL = 6
  1021. const m__SC_LINE_MAX = 15
  1022. const m__SC_LOGIN_NAME_MAX = 73
  1023. const m__SC_MAPPED_FILES = 47
  1024. const m__SC_MEMLOCK = 30
  1025. const m__SC_MEMLOCK_RANGE = 31
  1026. const m__SC_MEMORY_PROTECTION = 32
  1027. const m__SC_MESSAGE_PASSING = 33
  1028. const m__SC_MONOTONIC_CLOCK = 74
  1029. const m__SC_MQ_OPEN_MAX = 46
  1030. const m__SC_MQ_PRIO_MAX = 75
  1031. const m__SC_NGROUPS_MAX = 4
  1032. const m__SC_NPROCESSORS_CONF = 57
  1033. const m__SC_NPROCESSORS_ONLN = 58
  1034. const m__SC_OPEN_MAX = 5
  1035. const m__SC_PAGESIZE = 29
  1036. const m__SC_PAGE_SIZE = "_SC_PAGESIZE"
  1037. const m__SC_PASS_MAX = 131
  1038. const m__SC_PHYS_PAGES = 200
  1039. const m__SC_PRIORITIZED_IO = 34
  1040. const m__SC_PRIORITY_SCHEDULING = 35
  1041. const m__SC_RAW_SOCKETS = 119
  1042. const m__SC_READER_WRITER_LOCKS = 76
  1043. const m__SC_REALTIME_SIGNALS = 36
  1044. const m__SC_REGEXP = 77
  1045. const m__SC_RE_DUP_MAX = 16
  1046. const m__SC_RTSIG_MAX = 48
  1047. const m__SC_SAVED_IDS = 7
  1048. const m__SC_SEMAPHORES = 37
  1049. const m__SC_SEM_NSEMS_MAX = 49
  1050. const m__SC_SEM_VALUE_MAX = 50
  1051. const m__SC_SHARED_MEMORY_OBJECTS = 39
  1052. const m__SC_SHELL = 78
  1053. const m__SC_SIGQUEUE_MAX = 51
  1054. const m__SC_SPAWN = 79
  1055. const m__SC_SPIN_LOCKS = 80
  1056. const m__SC_SPORADIC_SERVER = 81
  1057. const m__SC_SS_REPL_MAX = 126
  1058. const m__SC_STREAM_MAX = 26
  1059. const m__SC_SYMLOOP_MAX = 120
  1060. const m__SC_SYNCHRONIZED_IO = 40
  1061. const m__SC_THREADS = 96
  1062. const m__SC_THREAD_ATTR_STACKADDR = 82
  1063. const m__SC_THREAD_ATTR_STACKSIZE = 83
  1064. const m__SC_THREAD_CPUTIME = 84
  1065. const m__SC_THREAD_DESTRUCTOR_ITERATIONS = 85
  1066. const m__SC_THREAD_KEYS_MAX = 86
  1067. const m__SC_THREAD_PRIORITY_SCHEDULING = 89
  1068. const m__SC_THREAD_PRIO_INHERIT = 87
  1069. const m__SC_THREAD_PRIO_PROTECT = 88
  1070. const m__SC_THREAD_PROCESS_SHARED = 90
  1071. const m__SC_THREAD_SAFE_FUNCTIONS = 91
  1072. const m__SC_THREAD_SPORADIC_SERVER = 92
  1073. const m__SC_THREAD_STACK_MIN = 93
  1074. const m__SC_THREAD_THREADS_MAX = 94
  1075. const m__SC_TIMEOUTS = 95
  1076. const m__SC_TIMERS = 41
  1077. const m__SC_TIMER_MAX = 52
  1078. const m__SC_TRACE = 97
  1079. const m__SC_TRACE_EVENT_FILTER = 98
  1080. const m__SC_TRACE_EVENT_NAME_MAX = 127
  1081. const m__SC_TRACE_INHERIT = 99
  1082. const m__SC_TRACE_LOG = 100
  1083. const m__SC_TRACE_NAME_MAX = 128
  1084. const m__SC_TRACE_SYS_MAX = 129
  1085. const m__SC_TRACE_USER_EVENT_MAX = 130
  1086. const m__SC_TTY_NAME_MAX = 101
  1087. const m__SC_TYPED_MEMORY_OBJECTS = 102
  1088. const m__SC_TZNAME_MAX = 27
  1089. const m__SC_V6_ILP32_OFF32 = 103
  1090. const m__SC_V6_ILP32_OFFBIG = 104
  1091. const m__SC_V6_LP64_OFF64 = 105
  1092. const m__SC_V6_LPBIG_OFFBIG = 106
  1093. const m__SC_VERSION = 8
  1094. const m__SC_XBS5_ILP32_OFF32 = 122
  1095. const m__SC_XBS5_ILP32_OFFBIG = 123
  1096. const m__SC_XBS5_LP64_OFF64 = 124
  1097. const m__SC_XBS5_LPBIG_OFFBIG = 125
  1098. const m__SC_XOPEN_CRYPT = 108
  1099. const m__SC_XOPEN_ENH_I18N = 109
  1100. const m__SC_XOPEN_LEGACY = 110
  1101. const m__SC_XOPEN_REALTIME = 111
  1102. const m__SC_XOPEN_REALTIME_THREADS = 112
  1103. const m__SC_XOPEN_SHM = 113
  1104. const m__SC_XOPEN_STREAMS = 114
  1105. const m__SC_XOPEN_UNIX = 115
  1106. const m__SC_XOPEN_VERSION = 116
  1107. const m__SC_XOPEN_XCU_VERSION = 121
  1108. const m__STRUCT_MCONTEXT = "_STRUCT_MCONTEXT64"
  1109. const m__TANDEM_SOURCE = 1
  1110. const m__V6_ILP32_OFF32 = "__ILP32_OFF32"
  1111. const m__V6_ILP32_OFFBIG = "__ILP32_OFFBIG"
  1112. const m__V6_LP64_OFF64 = "__LP64_OFF64"
  1113. const m__V6_LPBIG_OFFBIG = "__LPBIG_OFFBIG"
  1114. const m__WSTOPPED = 0177
  1115. const m__XBS5_ILP32_OFF32 = "__ILP32_OFF32"
  1116. const m__XBS5_ILP32_OFFBIG = "__ILP32_OFFBIG"
  1117. const m__XBS5_LP64_OFF64 = "__LP64_OFF64"
  1118. const m__XBS5_LPBIG_OFFBIG = "__LPBIG_OFFBIG"
  1119. const m__XOPEN_CRYPT = 1
  1120. const m__XOPEN_ENH_I18N = 1
  1121. const m__XOPEN_SHM = 1
  1122. const m__XOPEN_UNIX = 1
  1123. const m__XOPEN_VERSION = 600
  1124. const m__XOPEN_XCU_VERSION = 4
  1125. const m__X_INLINE = "inline"
  1126. const m__X_RESTRICT_KYWD = "restrict"
  1127. const m__Xconst = "const"
  1128. const m___AARCH64EL__ = 1
  1129. const m___AARCH64_CMODEL_SMALL__ = 1
  1130. const m___AARCH64_SIMD__ = 1
  1131. const m___API_TO_BE_DEPRECATED = 100000
  1132. const m___API_TO_BE_DEPRECATED_DRIVERKIT = 100000
  1133. const m___API_TO_BE_DEPRECATED_IOS = 100000
  1134. const m___API_TO_BE_DEPRECATED_IOSAPPLICATIONEXTENSION = 100000
  1135. const m___API_TO_BE_DEPRECATED_KERNELKIT = 100000
  1136. const m___API_TO_BE_DEPRECATED_MACCATALYST = 100000
  1137. const m___API_TO_BE_DEPRECATED_MACCATALYSTAPPLICATIONEXTENSION = 100000
  1138. const m___API_TO_BE_DEPRECATED_MACOS = 100000
  1139. const m___API_TO_BE_DEPRECATED_MACOSAPPLICATIONEXTENSION = 100000
  1140. const m___API_TO_BE_DEPRECATED_TVOS = 100000
  1141. const m___API_TO_BE_DEPRECATED_TVOSAPPLICATIONEXTENSION = 100000
  1142. const m___API_TO_BE_DEPRECATED_VISIONOS = 100000
  1143. const m___API_TO_BE_DEPRECATED_VISIONOSAPPLICATIONEXTENSION = 100000
  1144. const m___API_TO_BE_DEPRECATED_WATCHOS = 100000
  1145. const m___API_TO_BE_DEPRECATED_WATCHOSAPPLICATIONEXTENSION = 100000
  1146. const m___APPLE_CC__ = 6000
  1147. const m___APPLE__ = 1
  1148. const m___ARM64_ARCH_8__ = 1
  1149. const m___ARM_64BIT_STATE = 1
  1150. const m___ARM_ACLE = 200
  1151. const m___ARM_ALIGN_MAX_STACK_PWR = 4
  1152. const m___ARM_ARCH = 8
  1153. const m___ARM_ARCH_8_3__ = 1
  1154. const m___ARM_ARCH_8_4__ = 1
  1155. const m___ARM_ARCH_8_5__ = 1
  1156. const m___ARM_ARCH_ISA_A64 = 1
  1157. const m___ARM_ARCH_PROFILE = 'A'
  1158. const m___ARM_FEATURE_AES = 1
  1159. const m___ARM_FEATURE_ATOMICS = 1
  1160. const m___ARM_FEATURE_BTI = 1
  1161. const m___ARM_FEATURE_CLZ = 1
  1162. const m___ARM_FEATURE_COMPLEX = 1
  1163. const m___ARM_FEATURE_CRC32 = 1
  1164. const m___ARM_FEATURE_CRYPTO = 1
  1165. const m___ARM_FEATURE_DIRECTED_ROUNDING = 1
  1166. const m___ARM_FEATURE_DIV = 1
  1167. const m___ARM_FEATURE_DOTPROD = 1
  1168. const m___ARM_FEATURE_FMA = 1
  1169. const m___ARM_FEATURE_FP16_FML = 1
  1170. const m___ARM_FEATURE_FP16_SCALAR_ARITHMETIC = 1
  1171. const m___ARM_FEATURE_FP16_VECTOR_ARITHMETIC = 1
  1172. const m___ARM_FEATURE_FRINT = 1
  1173. const m___ARM_FEATURE_IDIV = 1
  1174. const m___ARM_FEATURE_JCVT = 1
  1175. const m___ARM_FEATURE_LDREX = 0xF
  1176. const m___ARM_FEATURE_NUMERIC_MAXMIN = 1
  1177. const m___ARM_FEATURE_PAUTH = 1
  1178. const m___ARM_FEATURE_QRDMX = 1
  1179. const m___ARM_FEATURE_RCPC = 1
  1180. const m___ARM_FEATURE_SHA2 = 1
  1181. const m___ARM_FEATURE_SHA3 = 1
  1182. const m___ARM_FEATURE_SHA512 = 1
  1183. const m___ARM_FEATURE_UNALIGNED = 1
  1184. const m___ARM_FP = 0xE
  1185. const m___ARM_FP16_ARGS = 1
  1186. const m___ARM_FP16_FORMAT_IEEE = 1
  1187. const m___ARM_NEON = 1
  1188. const m___ARM_NEON_FP = 0xE
  1189. const m___ARM_NEON__ = 1
  1190. const m___ARM_PCS_AAPCS64 = 1
  1191. const m___ARM_SIZEOF_MINIMAL_ENUM = 4
  1192. const m___ARM_SIZEOF_WCHAR_T = 4
  1193. const m___ARM_STATE_ZA = 1
  1194. const m___ARM_STATE_ZT0 = 1
  1195. const m___ATOMIC_ACQUIRE = 2
  1196. const m___ATOMIC_ACQ_REL = 4
  1197. const m___ATOMIC_CONSUME = 1
  1198. const m___ATOMIC_RELAXED = 0
  1199. const m___ATOMIC_RELEASE = 3
  1200. const m___ATOMIC_SEQ_CST = 5
  1201. const m___AVAILABILITY_FILE = "AvailabilityVersions.h"
  1202. const m___AVAILABILITY_VERSIONS_VERSION_HASH = 93585900
  1203. const m___AVAILABILITY_VERSIONS_VERSION_STRING = "Local"
  1204. const m___BIGGEST_ALIGNMENT__ = 8
  1205. const m___BITINT_MAXWIDTH__ = 128
  1206. const m___BLOCKS__ = 1
  1207. const m___BOOL_WIDTH__ = 8
  1208. const m___BRIDGEOS_2_0 = 20000
  1209. const m___BRIDGEOS_3_0 = 30000
  1210. const m___BRIDGEOS_3_1 = 30100
  1211. const m___BRIDGEOS_3_4 = 30400
  1212. const m___BRIDGEOS_4_0 = 40000
  1213. const m___BRIDGEOS_4_1 = 40100
  1214. const m___BRIDGEOS_5_0 = 50000
  1215. const m___BRIDGEOS_5_1 = 50100
  1216. const m___BRIDGEOS_5_3 = 50300
  1217. const m___BRIDGEOS_6_0 = 60000
  1218. const m___BRIDGEOS_6_2 = 60200
  1219. const m___BRIDGEOS_6_4 = 60400
  1220. const m___BRIDGEOS_6_5 = 60500
  1221. const m___BRIDGEOS_6_6 = 60600
  1222. const m___BRIDGEOS_7_0 = 70000
  1223. const m___BRIDGEOS_7_1 = 70100
  1224. const m___BRIDGEOS_7_2 = 70200
  1225. const m___BRIDGEOS_7_3 = 70300
  1226. const m___BRIDGEOS_7_4 = 70400
  1227. const m___BRIDGEOS_7_6 = 70600
  1228. const m___BRIDGEOS_8_0 = 80000
  1229. const m___BRIDGEOS_8_1 = 80100
  1230. const m___BRIDGEOS_8_2 = 80200
  1231. const m___BRIDGEOS_8_3 = 80300
  1232. const m___BRIDGEOS_8_4 = 80400
  1233. const m___BRIDGEOS_8_5 = 80500
  1234. const m___BRIDGEOS_8_6 = 80600
  1235. const m___BRIDGEOS_9_0 = 90000
  1236. const m___BRIDGEOS_9_1 = 90100
  1237. const m___BRIDGEOS_9_2 = 90200
  1238. const m___BRIDGEOS_9_3 = 90300
  1239. const m___BRIDGEOS_9_4 = 90400
  1240. const m___BYTE_ORDER__ = "__ORDER_LITTLE_ENDIAN__"
  1241. const m___CCGO__ = 1
  1242. const m___CHAR_BIT__ = 8
  1243. const m___CLANG_ATOMIC_BOOL_LOCK_FREE = 2
  1244. const m___CLANG_ATOMIC_CHAR16_T_LOCK_FREE = 2
  1245. const m___CLANG_ATOMIC_CHAR32_T_LOCK_FREE = 2
  1246. const m___CLANG_ATOMIC_CHAR_LOCK_FREE = 2
  1247. const m___CLANG_ATOMIC_INT_LOCK_FREE = 2
  1248. const m___CLANG_ATOMIC_LLONG_LOCK_FREE = 2
  1249. const m___CLANG_ATOMIC_LONG_LOCK_FREE = 2
  1250. const m___CLANG_ATOMIC_POINTER_LOCK_FREE = 2
  1251. const m___CLANG_ATOMIC_SHORT_LOCK_FREE = 2
  1252. const m___CLANG_ATOMIC_WCHAR_T_LOCK_FREE = 2
  1253. const m___CONSTANT_CFSTRINGS__ = 1
  1254. const m___DARWIN_64_BIT_INO_T = 1
  1255. const m___DARWIN_BIG_ENDIAN = 4321
  1256. const m___DARWIN_BYTE_ORDER = "__DARWIN_LITTLE_ENDIAN"
  1257. const m___DARWIN_C_ANSI = 010000
  1258. const m___DARWIN_C_FULL = 900000
  1259. const m___DARWIN_C_LEVEL = "__DARWIN_C_FULL"
  1260. const m___DARWIN_FD_SETSIZE = 1024
  1261. const m___DARWIN_LITTLE_ENDIAN = 1234
  1262. const m___DARWIN_NBBY = 8
  1263. const m___DARWIN_NON_CANCELABLE = 0
  1264. const m___DARWIN_NO_LONG_LONG = 0
  1265. const m___DARWIN_NSIG = 32
  1266. const m___DARWIN_ONLY_64_BIT_INO_T = 1
  1267. const m___DARWIN_ONLY_UNIX_CONFORMANCE = 1
  1268. const m___DARWIN_ONLY_VERS_1050 = 1
  1269. const m___DARWIN_OPAQUE_ARM_THREAD_STATE64 = 0
  1270. const m___DARWIN_PDP_ENDIAN = 3412
  1271. const m___DARWIN_SUF_EXTSN = "$DARWIN_EXTSN"
  1272. const m___DARWIN_UNIX03 = 1
  1273. const m___DARWIN_VERS_1050 = 1
  1274. const m___DARWIN_WCHAR_MAX = "__WCHAR_MAX__"
  1275. const m___DBL_DECIMAL_DIG__ = 17
  1276. const m___DBL_DENORM_MIN__ = 4.9406564584124654e-324
  1277. const m___DBL_DIG__ = 15
  1278. const m___DBL_EPSILON__ = 2.2204460492503131e-16
  1279. const m___DBL_HAS_DENORM__ = 1
  1280. const m___DBL_HAS_INFINITY__ = 1
  1281. const m___DBL_HAS_QUIET_NAN__ = 1
  1282. const m___DBL_MANT_DIG__ = 53
  1283. const m___DBL_MAX_10_EXP__ = 308
  1284. const m___DBL_MAX_EXP__ = 1024
  1285. const m___DBL_MAX__ = 1.7976931348623157e+308
  1286. const m___DBL_MIN__ = 2.2250738585072014e-308
  1287. const m___DBL_NORM_MAX__ = 1.7976931348623157e+308
  1288. const m___DECIMAL_DIG__ = "__LDBL_DECIMAL_DIG__"
  1289. const m___DRIVERKIT_19_0 = 190000
  1290. const m___DRIVERKIT_20_0 = 200000
  1291. const m___DRIVERKIT_21_0 = 210000
  1292. const m___DRIVERKIT_22_0 = 220000
  1293. const m___DRIVERKIT_22_4 = 220400
  1294. const m___DRIVERKIT_22_5 = 220500
  1295. const m___DRIVERKIT_22_6 = 220600
  1296. const m___DRIVERKIT_23_0 = 230000
  1297. const m___DRIVERKIT_23_1 = 230100
  1298. const m___DRIVERKIT_23_2 = 230200
  1299. const m___DRIVERKIT_23_3 = 230300
  1300. const m___DRIVERKIT_23_4 = 230400
  1301. const m___DRIVERKIT_23_5 = 230500
  1302. const m___DRIVERKIT_23_6 = 230600
  1303. const m___DRIVERKIT_24_0 = 240000
  1304. const m___DRIVERKIT_24_1 = 240100
  1305. const m___DRIVERKIT_24_2 = 240200
  1306. const m___DRIVERKIT_24_3 = 240300
  1307. const m___DRIVERKIT_24_4 = 240400
  1308. const m___DYNAMIC__ = 1
  1309. const m___ENABLE_LEGACY_MAC_AVAILABILITY = 1
  1310. const m___ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ = 150000
  1311. const m___ENVIRONMENT_OS_VERSION_MIN_REQUIRED__ = 150000
  1312. const m___EXTENSIONS__ = 1
  1313. const m___FINITE_MATH_ONLY__ = 0
  1314. const m___FLT16_DECIMAL_DIG__ = 5
  1315. const m___FLT16_DENORM_MIN__ = 5.9604644775390625e-8
  1316. const m___FLT16_DIG__ = 3
  1317. const m___FLT16_EPSILON__ = 9.765625e-4
  1318. const m___FLT16_HAS_DENORM__ = 1
  1319. const m___FLT16_HAS_INFINITY__ = 1
  1320. const m___FLT16_HAS_QUIET_NAN__ = 1
  1321. const m___FLT16_MANT_DIG__ = 11
  1322. const m___FLT16_MAX_10_EXP__ = 4
  1323. const m___FLT16_MAX_EXP__ = 16
  1324. const m___FLT16_MAX__ = 6.5504e+4
  1325. const m___FLT16_MIN__ = 6.103515625e-5
  1326. const m___FLT16_NORM_MAX__ = 6.5504e+4
  1327. const m___FLT_DECIMAL_DIG__ = 9
  1328. const m___FLT_DENORM_MIN__ = 1.40129846e-45
  1329. const m___FLT_DIG__ = 6
  1330. const m___FLT_EPSILON__ = 1.19209290e-7
  1331. const m___FLT_HAS_DENORM__ = 1
  1332. const m___FLT_HAS_INFINITY__ = 1
  1333. const m___FLT_HAS_QUIET_NAN__ = 1
  1334. const m___FLT_MANT_DIG__ = 24
  1335. const m___FLT_MAX_10_EXP__ = 38
  1336. const m___FLT_MAX_EXP__ = 128
  1337. const m___FLT_MAX__ = 3.40282347e+38
  1338. const m___FLT_MIN__ = 1.17549435e-38
  1339. const m___FLT_NORM_MAX__ = 3.40282347e+38
  1340. const m___FLT_RADIX__ = 2
  1341. const m___FPCLASS_NEGINF = 0x0004
  1342. const m___FPCLASS_NEGNORMAL = 0x0008
  1343. const m___FPCLASS_NEGSUBNORMAL = 0x0010
  1344. const m___FPCLASS_NEGZERO = 0x0020
  1345. const m___FPCLASS_POSINF = 0x0200
  1346. const m___FPCLASS_POSNORMAL = 0x0100
  1347. const m___FPCLASS_POSSUBNORMAL = 0x0080
  1348. const m___FPCLASS_POSZERO = 0x0040
  1349. const m___FPCLASS_QNAN = 0x0002
  1350. const m___FPCLASS_SNAN = 0x0001
  1351. const m___FP_FAST_FMA = 1
  1352. const m___FP_FAST_FMAF = 1
  1353. const m___FUNCTION__ = "__func__"
  1354. const m___GCC_ASM_FLAG_OUTPUTS__ = 1
  1355. const m___GCC_ATOMIC_BOOL_LOCK_FREE = 2
  1356. const m___GCC_ATOMIC_CHAR16_T_LOCK_FREE = 2
  1357. const m___GCC_ATOMIC_CHAR32_T_LOCK_FREE = 2
  1358. const m___GCC_ATOMIC_CHAR_LOCK_FREE = 2
  1359. const m___GCC_ATOMIC_INT_LOCK_FREE = 2
  1360. const m___GCC_ATOMIC_LLONG_LOCK_FREE = 2
  1361. const m___GCC_ATOMIC_LONG_LOCK_FREE = 2
  1362. const m___GCC_ATOMIC_POINTER_LOCK_FREE = 2
  1363. const m___GCC_ATOMIC_SHORT_LOCK_FREE = 2
  1364. const m___GCC_ATOMIC_TEST_AND_SET_TRUEVAL = 1
  1365. const m___GCC_ATOMIC_WCHAR_T_LOCK_FREE = 2
  1366. const m___GCC_CONSTRUCTIVE_SIZE = 64
  1367. const m___GCC_DESTRUCTIVE_SIZE = 64
  1368. const m___GCC_HAVE_DWARF2_CFI_ASM = 1
  1369. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_1 = 1
  1370. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_16 = 1
  1371. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_2 = 1
  1372. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 = 1
  1373. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 = 1
  1374. const m___GNUC_MINOR__ = 2
  1375. const m___GNUC_PATCHLEVEL__ = 1
  1376. const m___GNUC_STDC_INLINE__ = 1
  1377. const m___GNUC__ = 4
  1378. const m___GXX_ABI_VERSION = 1002
  1379. const m___HAVE_FUNCTION_MULTI_VERSIONING = 1
  1380. const m___INT16_FMTd__ = "hd"
  1381. const m___INT16_FMTi__ = "hi"
  1382. const m___INT16_MAX__ = 32767
  1383. const m___INT16_TYPE__ = "short"
  1384. const m___INT32_FMTd__ = "d"
  1385. const m___INT32_FMTi__ = "i"
  1386. const m___INT32_MAX__ = 2147483647
  1387. const m___INT32_TYPE__ = "int"
  1388. const m___INT64_C_SUFFIX__ = "LL"
  1389. const m___INT64_FMTd__ = "lld"
  1390. const m___INT64_FMTi__ = "lli"
  1391. const m___INT64_MAX__ = 9223372036854775807
  1392. const m___INT8_FMTd__ = "hhd"
  1393. const m___INT8_FMTi__ = "hhi"
  1394. const m___INT8_MAX__ = 127
  1395. const m___INTMAX_C_SUFFIX__ = "L"
  1396. const m___INTMAX_FMTd__ = "ld"
  1397. const m___INTMAX_FMTi__ = "li"
  1398. const m___INTMAX_MAX__ = 9223372036854775807
  1399. const m___INTMAX_WIDTH__ = 64
  1400. const m___INTPTR_FMTd__ = "ld"
  1401. const m___INTPTR_FMTi__ = "li"
  1402. const m___INTPTR_MAX__ = 9223372036854775807
  1403. const m___INTPTR_WIDTH__ = 64
  1404. const m___INT_FAST16_FMTd__ = "hd"
  1405. const m___INT_FAST16_FMTi__ = "hi"
  1406. const m___INT_FAST16_MAX__ = 32767
  1407. const m___INT_FAST16_TYPE__ = "short"
  1408. const m___INT_FAST16_WIDTH__ = 16
  1409. const m___INT_FAST32_FMTd__ = "d"
  1410. const m___INT_FAST32_FMTi__ = "i"
  1411. const m___INT_FAST32_MAX__ = 2147483647
  1412. const m___INT_FAST32_TYPE__ = "int"
  1413. const m___INT_FAST32_WIDTH__ = 32
  1414. const m___INT_FAST64_FMTd__ = "lld"
  1415. const m___INT_FAST64_FMTi__ = "lli"
  1416. const m___INT_FAST64_MAX__ = 9223372036854775807
  1417. const m___INT_FAST64_WIDTH__ = 64
  1418. const m___INT_FAST8_FMTd__ = "hhd"
  1419. const m___INT_FAST8_FMTi__ = "hhi"
  1420. const m___INT_FAST8_MAX__ = 127
  1421. const m___INT_FAST8_WIDTH__ = 8
  1422. const m___INT_LEAST16_FMTd__ = "hd"
  1423. const m___INT_LEAST16_FMTi__ = "hi"
  1424. const m___INT_LEAST16_MAX__ = 32767
  1425. const m___INT_LEAST16_TYPE__ = "short"
  1426. const m___INT_LEAST16_WIDTH__ = 16
  1427. const m___INT_LEAST32_FMTd__ = "d"
  1428. const m___INT_LEAST32_FMTi__ = "i"
  1429. const m___INT_LEAST32_MAX__ = 2147483647
  1430. const m___INT_LEAST32_TYPE__ = "int"
  1431. const m___INT_LEAST32_WIDTH__ = 32
  1432. const m___INT_LEAST64_FMTd__ = "lld"
  1433. const m___INT_LEAST64_FMTi__ = "lli"
  1434. const m___INT_LEAST64_MAX = "INT64_MAX"
  1435. const m___INT_LEAST64_MAX__ = 9223372036854775807
  1436. const m___INT_LEAST64_MIN = "INT64_MIN"
  1437. const m___INT_LEAST64_WIDTH__ = 64
  1438. const m___INT_LEAST8_FMTd__ = "hhd"
  1439. const m___INT_LEAST8_FMTi__ = "hhi"
  1440. const m___INT_LEAST8_MAX__ = 127
  1441. const m___INT_LEAST8_WIDTH__ = 8
  1442. const m___INT_MAX__ = 2147483647
  1443. const m___INT_WIDTH__ = 32
  1444. const m___IPHONE_10_0 = 100000
  1445. const m___IPHONE_10_1 = 100100
  1446. const m___IPHONE_10_2 = 100200
  1447. const m___IPHONE_10_3 = 100300
  1448. const m___IPHONE_11_0 = 110000
  1449. const m___IPHONE_11_1 = 110100
  1450. const m___IPHONE_11_2 = 110200
  1451. const m___IPHONE_11_3 = 110300
  1452. const m___IPHONE_11_4 = 110400
  1453. const m___IPHONE_12_0 = 120000
  1454. const m___IPHONE_12_1 = 120100
  1455. const m___IPHONE_12_2 = 120200
  1456. const m___IPHONE_12_3 = 120300
  1457. const m___IPHONE_12_4 = 120400
  1458. const m___IPHONE_13_0 = 130000
  1459. const m___IPHONE_13_1 = 130100
  1460. const m___IPHONE_13_2 = 130200
  1461. const m___IPHONE_13_3 = 130300
  1462. const m___IPHONE_13_4 = 130400
  1463. const m___IPHONE_13_5 = 130500
  1464. const m___IPHONE_13_6 = 130600
  1465. const m___IPHONE_13_7 = 130700
  1466. const m___IPHONE_14_0 = 140000
  1467. const m___IPHONE_14_1 = 140100
  1468. const m___IPHONE_14_2 = 140200
  1469. const m___IPHONE_14_3 = 140300
  1470. const m___IPHONE_14_4 = 140400
  1471. const m___IPHONE_14_5 = 140500
  1472. const m___IPHONE_14_6 = 140600
  1473. const m___IPHONE_14_7 = 140700
  1474. const m___IPHONE_14_8 = 140800
  1475. const m___IPHONE_15_0 = 150000
  1476. const m___IPHONE_15_1 = 150100
  1477. const m___IPHONE_15_2 = 150200
  1478. const m___IPHONE_15_3 = 150300
  1479. const m___IPHONE_15_4 = 150400
  1480. const m___IPHONE_15_5 = 150500
  1481. const m___IPHONE_15_6 = 150600
  1482. const m___IPHONE_15_7 = 150700
  1483. const m___IPHONE_15_8 = 150800
  1484. const m___IPHONE_16_0 = 160000
  1485. const m___IPHONE_16_1 = 160100
  1486. const m___IPHONE_16_2 = 160200
  1487. const m___IPHONE_16_3 = 160300
  1488. const m___IPHONE_16_4 = 160400
  1489. const m___IPHONE_16_5 = 160500
  1490. const m___IPHONE_16_6 = 160600
  1491. const m___IPHONE_16_7 = 160700
  1492. const m___IPHONE_17_0 = 170000
  1493. const m___IPHONE_17_1 = 170100
  1494. const m___IPHONE_17_2 = 170200
  1495. const m___IPHONE_17_3 = 170300
  1496. const m___IPHONE_17_4 = 170400
  1497. const m___IPHONE_17_5 = 170500
  1498. const m___IPHONE_17_6 = 170600
  1499. const m___IPHONE_17_7 = 170700
  1500. const m___IPHONE_18_0 = 180000
  1501. const m___IPHONE_18_1 = 180100
  1502. const m___IPHONE_18_2 = 180200
  1503. const m___IPHONE_18_3 = 180300
  1504. const m___IPHONE_18_4 = 180400
  1505. const m___IPHONE_2_0 = 20000
  1506. const m___IPHONE_2_1 = 20100
  1507. const m___IPHONE_2_2 = 20200
  1508. const m___IPHONE_3_0 = 30000
  1509. const m___IPHONE_3_1 = 30100
  1510. const m___IPHONE_3_2 = 30200
  1511. const m___IPHONE_4_0 = 40000
  1512. const m___IPHONE_4_1 = 40100
  1513. const m___IPHONE_4_2 = 40200
  1514. const m___IPHONE_4_3 = 40300
  1515. const m___IPHONE_5_0 = 50000
  1516. const m___IPHONE_5_1 = 50100
  1517. const m___IPHONE_6_0 = 60000
  1518. const m___IPHONE_6_1 = 60100
  1519. const m___IPHONE_7_0 = 70000
  1520. const m___IPHONE_7_1 = 70100
  1521. const m___IPHONE_8_0 = 80000
  1522. const m___IPHONE_8_1 = 80100
  1523. const m___IPHONE_8_2 = 80200
  1524. const m___IPHONE_8_3 = 80300
  1525. const m___IPHONE_8_4 = 80400
  1526. const m___IPHONE_9_0 = 90000
  1527. const m___IPHONE_9_1 = 90100
  1528. const m___IPHONE_9_2 = 90200
  1529. const m___IPHONE_9_3 = 90300
  1530. const m___LDBL_DECIMAL_DIG__ = 17
  1531. const m___LDBL_DENORM_MIN__ = 4.9406564584124654e-324
  1532. const m___LDBL_DIG__ = 15
  1533. const m___LDBL_EPSILON__ = 2.2204460492503131e-16
  1534. const m___LDBL_HAS_DENORM__ = 1
  1535. const m___LDBL_HAS_INFINITY__ = 1
  1536. const m___LDBL_HAS_QUIET_NAN__ = 1
  1537. const m___LDBL_MANT_DIG__ = 53
  1538. const m___LDBL_MAX_10_EXP__ = 308
  1539. const m___LDBL_MAX_EXP__ = 1024
  1540. const m___LDBL_MAX__ = 1.7976931348623157e+308
  1541. const m___LDBL_MIN__ = 2.2250738585072014e-308
  1542. const m___LDBL_NORM_MAX__ = 1.7976931348623157e+308
  1543. const m___LITTLE_ENDIAN__ = 1
  1544. const m___LLONG_WIDTH__ = 64
  1545. const m___LONG_LONG_MAX__ = 9223372036854775807
  1546. const m___LONG_MAX__ = 9223372036854775807
  1547. const m___LONG_WIDTH__ = 64
  1548. const m___LP64_OFF64 = 1
  1549. const m___LP64__ = 1
  1550. const m___LPBIG_OFFBIG = 1
  1551. const m___MACH__ = 1
  1552. const m___MAC_10_0 = 1000
  1553. const m___MAC_10_1 = 1010
  1554. const m___MAC_10_10 = 101000
  1555. const m___MAC_10_10_2 = 101002
  1556. const m___MAC_10_10_3 = 101003
  1557. const m___MAC_10_11 = 101100
  1558. const m___MAC_10_11_2 = 101102
  1559. const m___MAC_10_11_3 = 101103
  1560. const m___MAC_10_11_4 = 101104
  1561. const m___MAC_10_12 = 101200
  1562. const m___MAC_10_12_1 = 101201
  1563. const m___MAC_10_12_2 = 101202
  1564. const m___MAC_10_12_4 = 101204
  1565. const m___MAC_10_13 = 101300
  1566. const m___MAC_10_13_1 = 101301
  1567. const m___MAC_10_13_2 = 101302
  1568. const m___MAC_10_13_4 = 101304
  1569. const m___MAC_10_14 = 101400
  1570. const m___MAC_10_14_1 = 101401
  1571. const m___MAC_10_14_4 = 101404
  1572. const m___MAC_10_14_5 = 101405
  1573. const m___MAC_10_14_6 = 101406
  1574. const m___MAC_10_15 = 101500
  1575. const m___MAC_10_15_1 = 101501
  1576. const m___MAC_10_15_4 = 101504
  1577. const m___MAC_10_16 = 101600
  1578. const m___MAC_10_2 = 1020
  1579. const m___MAC_10_3 = 1030
  1580. const m___MAC_10_4 = 1040
  1581. const m___MAC_10_5 = 1050
  1582. const m___MAC_10_6 = 1060
  1583. const m___MAC_10_7 = 1070
  1584. const m___MAC_10_8 = 1080
  1585. const m___MAC_10_9 = 1090
  1586. const m___MAC_11_0 = 110000
  1587. const m___MAC_11_1 = 110100
  1588. const m___MAC_11_3 = 110300
  1589. const m___MAC_11_4 = 110400
  1590. const m___MAC_11_5 = 110500
  1591. const m___MAC_11_6 = 110600
  1592. const m___MAC_12_0 = 120000
  1593. const m___MAC_12_1 = 120100
  1594. const m___MAC_12_2 = 120200
  1595. const m___MAC_12_3 = 120300
  1596. const m___MAC_12_4 = 120400
  1597. const m___MAC_12_5 = 120500
  1598. const m___MAC_12_6 = 120600
  1599. const m___MAC_12_7 = 120700
  1600. const m___MAC_13_0 = 130000
  1601. const m___MAC_13_1 = 130100
  1602. const m___MAC_13_2 = 130200
  1603. const m___MAC_13_3 = 130300
  1604. const m___MAC_13_4 = 130400
  1605. const m___MAC_13_5 = 130500
  1606. const m___MAC_13_6 = 130600
  1607. const m___MAC_13_7 = 130700
  1608. const m___MAC_14_0 = 140000
  1609. const m___MAC_14_1 = 140100
  1610. const m___MAC_14_2 = 140200
  1611. const m___MAC_14_3 = 140300
  1612. const m___MAC_14_4 = 140400
  1613. const m___MAC_14_5 = 140500
  1614. const m___MAC_14_6 = 140600
  1615. const m___MAC_14_7 = 140700
  1616. const m___MAC_15_0 = 150000
  1617. const m___MAC_15_1 = 150100
  1618. const m___MAC_15_2 = 150200
  1619. const m___MAC_15_3 = 150300
  1620. const m___MAC_15_4 = 150400
  1621. const m___MAC_OS_X_VERSION_MAX_ALLOWED = "__MAC_15_4"
  1622. const m___MAC_OS_X_VERSION_MIN_REQUIRED = "__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__"
  1623. const m___MEMORY_SCOPE_DEVICE = 1
  1624. const m___MEMORY_SCOPE_SINGLE = 4
  1625. const m___MEMORY_SCOPE_SYSTEM = 0
  1626. const m___MEMORY_SCOPE_WRKGRP = 2
  1627. const m___MEMORY_SCOPE_WVFRNT = 3
  1628. const m___NO_INLINE__ = 1
  1629. const m___NO_MATH_ERRNO__ = 1
  1630. const m___OBJC_BOOL_IS_BOOL = 1
  1631. const m___OPENCL_MEMORY_SCOPE_ALL_SVM_DEVICES = 3
  1632. const m___OPENCL_MEMORY_SCOPE_DEVICE = 2
  1633. const m___OPENCL_MEMORY_SCOPE_SUB_GROUP = 4
  1634. const m___OPENCL_MEMORY_SCOPE_WORK_GROUP = 1
  1635. const m___OPENCL_MEMORY_SCOPE_WORK_ITEM = 0
  1636. const m___ORDER_BIG_ENDIAN__ = 4321
  1637. const m___ORDER_LITTLE_ENDIAN__ = 1234
  1638. const m___ORDER_PDP_ENDIAN__ = 3412
  1639. const m___PIC__ = 2
  1640. const m___POINTER_WIDTH__ = 64
  1641. const m___PRAGMA_REDEFINE_EXTNAME = 1
  1642. const m___PRETTY_FUNCTION__ = "__func__"
  1643. const m___PTHREAD_ATTR_SIZE__ = 56
  1644. const m___PTHREAD_CONDATTR_SIZE__ = 8
  1645. const m___PTHREAD_COND_SIZE__ = 40
  1646. const m___PTHREAD_MUTEXATTR_SIZE__ = 8
  1647. const m___PTHREAD_MUTEX_SIZE__ = 56
  1648. const m___PTHREAD_ONCE_SIZE__ = 8
  1649. const m___PTHREAD_RWLOCKATTR_SIZE__ = 16
  1650. const m___PTHREAD_RWLOCK_SIZE__ = 192
  1651. const m___PTHREAD_SIZE__ = 8176
  1652. const m___PTRDIFF_FMTd__ = "ld"
  1653. const m___PTRDIFF_FMTi__ = "li"
  1654. const m___PTRDIFF_MAX__ = 9223372036854775807
  1655. const m___PTRDIFF_WIDTH__ = 64
  1656. const m___SCHAR_MAX__ = 127
  1657. const m___SHRT_MAX__ = 32767
  1658. const m___SHRT_WIDTH__ = 16
  1659. const m___SIG_ATOMIC_MAX__ = 2147483647
  1660. const m___SIG_ATOMIC_WIDTH__ = 32
  1661. const m___SIZEOF_DOUBLE__ = 8
  1662. const m___SIZEOF_FLOAT__ = 4
  1663. const m___SIZEOF_INT128__ = 16
  1664. const m___SIZEOF_INT__ = 4
  1665. const m___SIZEOF_LONG_DOUBLE__ = 8
  1666. const m___SIZEOF_LONG_LONG__ = 8
  1667. const m___SIZEOF_LONG__ = 8
  1668. const m___SIZEOF_POINTER__ = 8
  1669. const m___SIZEOF_PTRDIFF_T__ = 8
  1670. const m___SIZEOF_SHORT__ = 2
  1671. const m___SIZEOF_SIZE_T__ = 8
  1672. const m___SIZEOF_WCHAR_T__ = 4
  1673. const m___SIZEOF_WINT_T__ = 4
  1674. const m___SIZE_FMTX__ = "lX"
  1675. const m___SIZE_FMTo__ = "lo"
  1676. const m___SIZE_FMTu__ = "lu"
  1677. const m___SIZE_FMTx__ = "lx"
  1678. const m___SIZE_MAX__ = 18446744073709551615
  1679. const m___SIZE_WIDTH__ = 64
  1680. const m___SSP__ = 1
  1681. const m___STDC_EMBED_EMPTY__ = 2
  1682. const m___STDC_EMBED_FOUND__ = 1
  1683. const m___STDC_EMBED_NOT_FOUND__ = 0
  1684. const m___STDC_HOSTED__ = 1
  1685. const m___STDC_NO_THREADS__ = 1
  1686. const m___STDC_UTF_16__ = 1
  1687. const m___STDC_UTF_32__ = 1
  1688. const m___STDC_VERSION__ = 201710
  1689. const m___STDC_WANT_IEC_60559_ATTRIBS_EXT__ = 1
  1690. const m___STDC_WANT_IEC_60559_BFP_EXT__ = 1
  1691. const m___STDC_WANT_IEC_60559_DFP_EXT__ = 1
  1692. const m___STDC_WANT_IEC_60559_EXT__ = 1
  1693. const m___STDC_WANT_IEC_60559_FUNCS_EXT__ = 1
  1694. const m___STDC_WANT_IEC_60559_TYPES_EXT__ = 1
  1695. const m___STDC_WANT_LIB_EXT1__ = 1
  1696. const m___STDC_WANT_LIB_EXT2__ = 1
  1697. const m___STDC_WANT_MATH_SPEC_FUNCS__ = 1
  1698. const m___STDC__ = 1
  1699. const m___TVOS_10_0 = 100000
  1700. const m___TVOS_10_0_1 = 100001
  1701. const m___TVOS_10_1 = 100100
  1702. const m___TVOS_10_2 = 100200
  1703. const m___TVOS_11_0 = 110000
  1704. const m___TVOS_11_1 = 110100
  1705. const m___TVOS_11_2 = 110200
  1706. const m___TVOS_11_3 = 110300
  1707. const m___TVOS_11_4 = 110400
  1708. const m___TVOS_12_0 = 120000
  1709. const m___TVOS_12_1 = 120100
  1710. const m___TVOS_12_2 = 120200
  1711. const m___TVOS_12_3 = 120300
  1712. const m___TVOS_12_4 = 120400
  1713. const m___TVOS_13_0 = 130000
  1714. const m___TVOS_13_2 = 130200
  1715. const m___TVOS_13_3 = 130300
  1716. const m___TVOS_13_4 = 130400
  1717. const m___TVOS_14_0 = 140000
  1718. const m___TVOS_14_1 = 140100
  1719. const m___TVOS_14_2 = 140200
  1720. const m___TVOS_14_3 = 140300
  1721. const m___TVOS_14_5 = 140500
  1722. const m___TVOS_14_6 = 140600
  1723. const m___TVOS_14_7 = 140700
  1724. const m___TVOS_15_0 = 150000
  1725. const m___TVOS_15_1 = 150100
  1726. const m___TVOS_15_2 = 150200
  1727. const m___TVOS_15_3 = 150300
  1728. const m___TVOS_15_4 = 150400
  1729. const m___TVOS_15_5 = 150500
  1730. const m___TVOS_15_6 = 150600
  1731. const m___TVOS_16_0 = 160000
  1732. const m___TVOS_16_1 = 160100
  1733. const m___TVOS_16_2 = 160200
  1734. const m___TVOS_16_3 = 160300
  1735. const m___TVOS_16_4 = 160400
  1736. const m___TVOS_16_5 = 160500
  1737. const m___TVOS_16_6 = 160600
  1738. const m___TVOS_17_0 = 170000
  1739. const m___TVOS_17_1 = 170100
  1740. const m___TVOS_17_2 = 170200
  1741. const m___TVOS_17_3 = 170300
  1742. const m___TVOS_17_4 = 170400
  1743. const m___TVOS_17_5 = 170500
  1744. const m___TVOS_17_6 = 170600
  1745. const m___TVOS_18_0 = 180000
  1746. const m___TVOS_18_1 = 180100
  1747. const m___TVOS_18_2 = 180200
  1748. const m___TVOS_18_3 = 180300
  1749. const m___TVOS_18_4 = 180400
  1750. const m___TVOS_9_0 = 90000
  1751. const m___TVOS_9_1 = 90100
  1752. const m___TVOS_9_2 = 90200
  1753. const m___UINT16_FMTX__ = "hX"
  1754. const m___UINT16_FMTo__ = "ho"
  1755. const m___UINT16_FMTu__ = "hu"
  1756. const m___UINT16_FMTx__ = "hx"
  1757. const m___UINT16_MAX__ = 65535
  1758. const m___UINT32_C_SUFFIX__ = "U"
  1759. const m___UINT32_FMTX__ = "X"
  1760. const m___UINT32_FMTo__ = "o"
  1761. const m___UINT32_FMTu__ = "u"
  1762. const m___UINT32_FMTx__ = "x"
  1763. const m___UINT32_MAX__ = 4294967295
  1764. const m___UINT64_C_SUFFIX__ = "ULL"
  1765. const m___UINT64_FMTX__ = "llX"
  1766. const m___UINT64_FMTo__ = "llo"
  1767. const m___UINT64_FMTu__ = "llu"
  1768. const m___UINT64_FMTx__ = "llx"
  1769. const m___UINT64_MAX__ = "18446744073709551615U"
  1770. const m___UINT8_FMTX__ = "hhX"
  1771. const m___UINT8_FMTo__ = "hho"
  1772. const m___UINT8_FMTu__ = "hhu"
  1773. const m___UINT8_FMTx__ = "hhx"
  1774. const m___UINT8_MAX__ = 255
  1775. const m___UINTMAX_C_SUFFIX__ = "UL"
  1776. const m___UINTMAX_FMTX__ = "lX"
  1777. const m___UINTMAX_FMTo__ = "lo"
  1778. const m___UINTMAX_FMTu__ = "lu"
  1779. const m___UINTMAX_FMTx__ = "lx"
  1780. const m___UINTMAX_MAX__ = 18446744073709551615
  1781. const m___UINTMAX_WIDTH__ = 64
  1782. const m___UINTPTR_FMTX__ = "lX"
  1783. const m___UINTPTR_FMTo__ = "lo"
  1784. const m___UINTPTR_FMTu__ = "lu"
  1785. const m___UINTPTR_FMTx__ = "lx"
  1786. const m___UINTPTR_MAX__ = 18446744073709551615
  1787. const m___UINTPTR_WIDTH__ = 64
  1788. const m___UINT_FAST16_FMTX__ = "hX"
  1789. const m___UINT_FAST16_FMTo__ = "ho"
  1790. const m___UINT_FAST16_FMTu__ = "hu"
  1791. const m___UINT_FAST16_FMTx__ = "hx"
  1792. const m___UINT_FAST16_MAX__ = 65535
  1793. const m___UINT_FAST32_FMTX__ = "X"
  1794. const m___UINT_FAST32_FMTo__ = "o"
  1795. const m___UINT_FAST32_FMTu__ = "u"
  1796. const m___UINT_FAST32_FMTx__ = "x"
  1797. const m___UINT_FAST32_MAX__ = 4294967295
  1798. const m___UINT_FAST64_FMTX__ = "llX"
  1799. const m___UINT_FAST64_FMTo__ = "llo"
  1800. const m___UINT_FAST64_FMTu__ = "llu"
  1801. const m___UINT_FAST64_FMTx__ = "llx"
  1802. const m___UINT_FAST64_MAX__ = "18446744073709551615U"
  1803. const m___UINT_FAST8_FMTX__ = "hhX"
  1804. const m___UINT_FAST8_FMTo__ = "hho"
  1805. const m___UINT_FAST8_FMTu__ = "hhu"
  1806. const m___UINT_FAST8_FMTx__ = "hhx"
  1807. const m___UINT_FAST8_MAX__ = 255
  1808. const m___UINT_LEAST16_FMTX__ = "hX"
  1809. const m___UINT_LEAST16_FMTo__ = "ho"
  1810. const m___UINT_LEAST16_FMTu__ = "hu"
  1811. const m___UINT_LEAST16_FMTx__ = "hx"
  1812. const m___UINT_LEAST16_MAX__ = 65535
  1813. const m___UINT_LEAST32_FMTX__ = "X"
  1814. const m___UINT_LEAST32_FMTo__ = "o"
  1815. const m___UINT_LEAST32_FMTu__ = "u"
  1816. const m___UINT_LEAST32_FMTx__ = "x"
  1817. const m___UINT_LEAST32_MAX__ = 4294967295
  1818. const m___UINT_LEAST64_FMTX__ = "llX"
  1819. const m___UINT_LEAST64_FMTo__ = "llo"
  1820. const m___UINT_LEAST64_FMTu__ = "llu"
  1821. const m___UINT_LEAST64_FMTx__ = "llx"
  1822. const m___UINT_LEAST64_MAX = "UINT64_MAX"
  1823. const m___UINT_LEAST64_MAX__ = "18446744073709551615U"
  1824. const m___UINT_LEAST8_FMTX__ = "hhX"
  1825. const m___UINT_LEAST8_FMTo__ = "hho"
  1826. const m___UINT_LEAST8_FMTu__ = "hhu"
  1827. const m___UINT_LEAST8_FMTx__ = "hhx"
  1828. const m___UINT_LEAST8_MAX__ = 255
  1829. const m___USER_LABEL_PREFIX__ = "_"
  1830. const m___VERSION__ = "Apple LLVM 17.0.0 (clang-1700.0.13.3)"
  1831. const m___VISIONOS_1_0 = 10000
  1832. const m___VISIONOS_1_1 = 10100
  1833. const m___VISIONOS_1_2 = 10200
  1834. const m___VISIONOS_1_3 = 10300
  1835. const m___VISIONOS_2_0 = 20000
  1836. const m___VISIONOS_2_1 = 20100
  1837. const m___VISIONOS_2_2 = 20200
  1838. const m___VISIONOS_2_3 = 20300
  1839. const m___VISIONOS_2_4 = 20400
  1840. const m___WATCHOS_10_0 = 100000
  1841. const m___WATCHOS_10_1 = 100100
  1842. const m___WATCHOS_10_2 = 100200
  1843. const m___WATCHOS_10_3 = 100300
  1844. const m___WATCHOS_10_4 = 100400
  1845. const m___WATCHOS_10_5 = 100500
  1846. const m___WATCHOS_10_6 = 100600
  1847. const m___WATCHOS_10_7 = 100700
  1848. const m___WATCHOS_11_0 = 110000
  1849. const m___WATCHOS_11_1 = 110100
  1850. const m___WATCHOS_11_2 = 110200
  1851. const m___WATCHOS_11_3 = 110300
  1852. const m___WATCHOS_11_4 = 110400
  1853. const m___WATCHOS_1_0 = 10000
  1854. const m___WATCHOS_2_0 = 20000
  1855. const m___WATCHOS_2_1 = 20100
  1856. const m___WATCHOS_2_2 = 20200
  1857. const m___WATCHOS_3_0 = 30000
  1858. const m___WATCHOS_3_1 = 30100
  1859. const m___WATCHOS_3_1_1 = 30101
  1860. const m___WATCHOS_3_2 = 30200
  1861. const m___WATCHOS_4_0 = 40000
  1862. const m___WATCHOS_4_1 = 40100
  1863. const m___WATCHOS_4_2 = 40200
  1864. const m___WATCHOS_4_3 = 40300
  1865. const m___WATCHOS_5_0 = 50000
  1866. const m___WATCHOS_5_1 = 50100
  1867. const m___WATCHOS_5_2 = 50200
  1868. const m___WATCHOS_5_3 = 50300
  1869. const m___WATCHOS_6_0 = 60000
  1870. const m___WATCHOS_6_1 = 60100
  1871. const m___WATCHOS_6_2 = 60200
  1872. const m___WATCHOS_7_0 = 70000
  1873. const m___WATCHOS_7_1 = 70100
  1874. const m___WATCHOS_7_2 = 70200
  1875. const m___WATCHOS_7_3 = 70300
  1876. const m___WATCHOS_7_4 = 70400
  1877. const m___WATCHOS_7_5 = 70500
  1878. const m___WATCHOS_7_6 = 70600
  1879. const m___WATCHOS_8_0 = 80000
  1880. const m___WATCHOS_8_1 = 80100
  1881. const m___WATCHOS_8_3 = 80300
  1882. const m___WATCHOS_8_4 = 80400
  1883. const m___WATCHOS_8_5 = 80500
  1884. const m___WATCHOS_8_6 = 80600
  1885. const m___WATCHOS_8_7 = 80700
  1886. const m___WATCHOS_8_8 = 80800
  1887. const m___WATCHOS_9_0 = 90000
  1888. const m___WATCHOS_9_1 = 90100
  1889. const m___WATCHOS_9_2 = 90200
  1890. const m___WATCHOS_9_3 = 90300
  1891. const m___WATCHOS_9_4 = 90400
  1892. const m___WATCHOS_9_5 = 90500
  1893. const m___WATCHOS_9_6 = 90600
  1894. const m___WCHAR_MAX__ = 2147483647
  1895. const m___WCHAR_TYPE__ = "int"
  1896. const m___WCHAR_WIDTH__ = 32
  1897. const m___WINT_MAX__ = 2147483647
  1898. const m___WINT_TYPE__ = "int"
  1899. const m___WINT_WIDTH__ = 32
  1900. const m___aarch64__ = 1
  1901. const m___apple_build_version__ = 17000013
  1902. const m___arm64 = 1
  1903. const m___arm64__ = 1
  1904. const m___clang__ = 1
  1905. const m___clang_literal_encoding__ = "UTF-8"
  1906. const m___clang_major__ = 17
  1907. const m___clang_minor__ = 0
  1908. const m___clang_patchlevel__ = 0
  1909. const m___clang_version__ = "17.0.0 (clang-1700.0.13.3)"
  1910. const m___clang_wide_literal_encoding__ = "UTF-32"
  1911. const m___const = "const"
  1912. const m___has_bounds_safety_attributes = 0
  1913. const m___has_ptrcheck = 0
  1914. const m___has_safe_buffers = 0
  1915. const m___header_inline = "inline"
  1916. const m___llvm__ = 1
  1917. const m___nonnull = "_Nonnull"
  1918. const m___null_unspecified = "_Null_unspecified"
  1919. const m___nullable = "_Nullable"
  1920. const m___pic__ = 2
  1921. const m___restrict = "restrict"
  1922. const m___restrict_arr = "restrict"
  1923. const m___signed = "signed"
  1924. const m___volatile = "volatile"
  1925. const m_ru_first = "ru_ixrss"
  1926. const m_ru_last = "ru_nivcsw"
  1927. const m_sv_onstack = "sv_flags"
  1928. type t__builtin_va_list = uintptr
  1929. type t__predefined_size_t = uint64
  1930. type t__predefined_wchar_t = int32
  1931. type t__predefined_ptrdiff_t = int64
  1932. type t__int8_t = int8
  1933. type t__uint8_t = uint8
  1934. type t__int16_t = int16
  1935. type t__uint16_t = uint16
  1936. type t__int32_t = int32
  1937. type t__uint32_t = uint32
  1938. type t__int64_t = int64
  1939. type t__uint64_t = uint64
  1940. type t__darwin_intptr_t = int64
  1941. type t__darwin_natural_t = uint32
  1942. type t__darwin_ct_rune_t = int32
  1943. type t__mbstate_t = struct {
  1944. F_mbstateL [0]int64
  1945. F__mbstate8 [128]int8
  1946. }
  1947. type t__darwin_mbstate_t = struct {
  1948. F_mbstateL [0]int64
  1949. F__mbstate8 [128]int8
  1950. }
  1951. type t__darwin_ptrdiff_t = int64
  1952. type t__darwin_size_t = uint64
  1953. type t__darwin_va_list = uintptr
  1954. type t__darwin_wchar_t = int32
  1955. type t__darwin_rune_t = int32
  1956. type t__darwin_wint_t = int32
  1957. type t__darwin_clock_t = uint64
  1958. type t__darwin_socklen_t = uint32
  1959. type t__darwin_ssize_t = int64
  1960. type t__darwin_time_t = int64
  1961. type Tint8_t = int8
  1962. type Tint16_t = int16
  1963. type Tint32_t = int32
  1964. type Tint64_t = int64
  1965. type Tu_int8_t = uint8
  1966. type Tu_int16_t = uint16
  1967. type Tu_int32_t = uint32
  1968. type Tu_int64_t = uint64
  1969. type Tregister_t = int64
  1970. type Tintptr_t = int64
  1971. type Tuintptr_t = uint64
  1972. type Tuser_addr_t = uint64
  1973. type Tuser_size_t = uint64
  1974. type Tuser_ssize_t = int64
  1975. type Tuser_long_t = int64
  1976. type Tuser_ulong_t = uint64
  1977. type Tuser_time_t = int64
  1978. type Tuser_off_t = int64
  1979. type Tsyscall_arg_t = uint64
  1980. type t__darwin_blkcnt_t = int64
  1981. type t__darwin_blksize_t = int32
  1982. type t__darwin_dev_t = int32
  1983. type t__darwin_fsblkcnt_t = uint32
  1984. type t__darwin_fsfilcnt_t = uint32
  1985. type t__darwin_gid_t = uint32
  1986. type t__darwin_id_t = uint32
  1987. type t__darwin_ino64_t = uint64
  1988. type t__darwin_ino_t = uint64
  1989. type t__darwin_mach_port_name_t = uint32
  1990. type t__darwin_mach_port_t = uint32
  1991. type t__darwin_mode_t = uint16
  1992. type t__darwin_off_t = int64
  1993. type t__darwin_pid_t = int32
  1994. type t__darwin_sigset_t = uint32
  1995. type t__darwin_suseconds_t = int32
  1996. type t__darwin_uid_t = uint32
  1997. type t__darwin_useconds_t = uint32
  1998. type t__darwin_uuid_t = [16]uint8
  1999. type t__darwin_uuid_string_t = [37]int8
  2000. type t__darwin_pthread_handler_rec = struct {
  2001. F__routine uintptr
  2002. F__arg uintptr
  2003. F__next uintptr
  2004. }
  2005. type T_opaque_pthread_attr_t = struct {
  2006. F__sig int64
  2007. F__opaque [56]int8
  2008. }
  2009. type T_opaque_pthread_cond_t = struct {
  2010. F__sig int64
  2011. F__opaque [40]int8
  2012. }
  2013. type T_opaque_pthread_condattr_t = struct {
  2014. F__sig int64
  2015. F__opaque [8]int8
  2016. }
  2017. type T_opaque_pthread_mutex_t = struct {
  2018. F__sig int64
  2019. F__opaque [56]int8
  2020. }
  2021. type T_opaque_pthread_mutexattr_t = struct {
  2022. F__sig int64
  2023. F__opaque [8]int8
  2024. }
  2025. type T_opaque_pthread_once_t = struct {
  2026. F__sig int64
  2027. F__opaque [8]int8
  2028. }
  2029. type T_opaque_pthread_rwlock_t = struct {
  2030. F__sig int64
  2031. F__opaque [192]int8
  2032. }
  2033. type T_opaque_pthread_rwlockattr_t = struct {
  2034. F__sig int64
  2035. F__opaque [16]int8
  2036. }
  2037. type T_opaque_pthread_t = struct {
  2038. F__sig int64
  2039. F__cleanup_stack uintptr
  2040. F__opaque [8176]int8
  2041. }
  2042. type t__darwin_pthread_attr_t = struct {
  2043. F__sig int64
  2044. F__opaque [56]int8
  2045. }
  2046. type t__darwin_pthread_cond_t = struct {
  2047. F__sig int64
  2048. F__opaque [40]int8
  2049. }
  2050. type t__darwin_pthread_condattr_t = struct {
  2051. F__sig int64
  2052. F__opaque [8]int8
  2053. }
  2054. type t__darwin_pthread_key_t = uint64
  2055. type t__darwin_pthread_mutex_t = struct {
  2056. F__sig int64
  2057. F__opaque [56]int8
  2058. }
  2059. type t__darwin_pthread_mutexattr_t = struct {
  2060. F__sig int64
  2061. F__opaque [8]int8
  2062. }
  2063. type t__darwin_pthread_once_t = struct {
  2064. F__sig int64
  2065. F__opaque [8]int8
  2066. }
  2067. type t__darwin_pthread_rwlock_t = struct {
  2068. F__sig int64
  2069. F__opaque [192]int8
  2070. }
  2071. type t__darwin_pthread_rwlockattr_t = struct {
  2072. F__sig int64
  2073. F__opaque [16]int8
  2074. }
  2075. type t__darwin_pthread_t = uintptr
  2076. type Tu_char = uint8
  2077. type Tu_short = uint16
  2078. type Tu_int = uint32
  2079. type Tu_long = uint64
  2080. type Tushort = uint16
  2081. type Tuint = uint32
  2082. type Tu_quad_t = uint64
  2083. type Tquad_t = int64
  2084. type Tqaddr_t = uintptr
  2085. type Tcaddr_t = uintptr
  2086. type Tdaddr_t = int32
  2087. type Tdev_t = int32
  2088. type Tfixpt_t = uint32
  2089. type Tblkcnt_t = int64
  2090. type Tblksize_t = int32
  2091. type Tgid_t = uint32
  2092. type Tin_addr_t = uint32
  2093. type Tin_port_t = uint16
  2094. type Tino_t = uint64
  2095. type Tino64_t = uint64
  2096. type Tkey_t = int32
  2097. type Tmode_t = uint16
  2098. type Tnlink_t = uint16
  2099. type Tid_t = uint32
  2100. type Tpid_t = int32
  2101. type Toff_t = int64
  2102. type Tsegsz_t = int32
  2103. type Tswblk_t = int32
  2104. type Tuid_t = uint32
  2105. type Tclock_t = uint64
  2106. type Tsize_t = uint64
  2107. type Tssize_t = int64
  2108. type Ttime_t = int64
  2109. type Tuseconds_t = uint32
  2110. type Tsuseconds_t = int32
  2111. type Trsize_t = uint64
  2112. type Terrno_t = int32
  2113. type Tfd_set = struct {
  2114. Ffds_bits [32]t__int32_t
  2115. }
  2116. type Tfd_mask = int32
  2117. type Tpthread_attr_t = struct {
  2118. F__sig int64
  2119. F__opaque [56]int8
  2120. }
  2121. type Tpthread_cond_t = struct {
  2122. F__sig int64
  2123. F__opaque [40]int8
  2124. }
  2125. type Tpthread_condattr_t = struct {
  2126. F__sig int64
  2127. F__opaque [8]int8
  2128. }
  2129. type Tpthread_mutex_t = struct {
  2130. F__sig int64
  2131. F__opaque [56]int8
  2132. }
  2133. type Tpthread_mutexattr_t = struct {
  2134. F__sig int64
  2135. F__opaque [8]int8
  2136. }
  2137. type Tpthread_once_t = struct {
  2138. F__sig int64
  2139. F__opaque [8]int8
  2140. }
  2141. type Tpthread_rwlock_t = struct {
  2142. F__sig int64
  2143. F__opaque [192]int8
  2144. }
  2145. type Tpthread_rwlockattr_t = struct {
  2146. F__sig int64
  2147. F__opaque [16]int8
  2148. }
  2149. type Tpthread_t = uintptr
  2150. type Tpthread_key_t = uint64
  2151. type Tfsblkcnt_t = uint32
  2152. type Tfsfilcnt_t = uint32
  2153. type t__darwin_nl_item = int32
  2154. type t__darwin_wctrans_t = int32
  2155. type t__darwin_wctype_t = uint32
  2156. type Tflock = struct {
  2157. Fl_start Toff_t
  2158. Fl_len Toff_t
  2159. Fl_pid Tpid_t
  2160. Fl_type int16
  2161. Fl_whence int16
  2162. }
  2163. type Ttimespec = struct {
  2164. Ftv_sec t__darwin_time_t
  2165. Ftv_nsec int64
  2166. }
  2167. type Tflocktimeout = struct {
  2168. Ffl Tflock
  2169. Ftimeout Ttimespec
  2170. }
  2171. type Tradvisory = struct {
  2172. Fra_offset Toff_t
  2173. Fra_count int32
  2174. }
  2175. type Tfsignatures_t = struct {
  2176. Ffs_file_start Toff_t
  2177. Ffs_blob_start uintptr
  2178. Ffs_blob_size Tsize_t
  2179. Ffs_fsignatures_size Tsize_t
  2180. Ffs_cdhash [20]int8
  2181. Ffs_hash_type int32
  2182. }
  2183. type Tfsignatures = Tfsignatures_t
  2184. type Tfsupplement_t = struct {
  2185. Ffs_file_start Toff_t
  2186. Ffs_blob_start Toff_t
  2187. Ffs_blob_size Tsize_t
  2188. Ffs_orig_fd int32
  2189. }
  2190. type Tfsupplement = Tfsupplement_t
  2191. type Tfchecklv_t = struct {
  2192. Flv_file_start Toff_t
  2193. Flv_error_message_size Tsize_t
  2194. Flv_error_message uintptr
  2195. }
  2196. type Tfchecklv = Tfchecklv_t
  2197. type Tfgetsigsinfo_t = struct {
  2198. Ffg_file_start Toff_t
  2199. Ffg_info_request int32
  2200. Ffg_sig_is_platform int32
  2201. }
  2202. type Tfgetsigsinfo = Tfgetsigsinfo_t
  2203. type Tfstore_t = struct {
  2204. Ffst_flags uint32
  2205. Ffst_posmode int32
  2206. Ffst_offset Toff_t
  2207. Ffst_length Toff_t
  2208. Ffst_bytesalloc Toff_t
  2209. }
  2210. type Tfstore = Tfstore_t
  2211. type Tfpunchhole_t = struct {
  2212. Ffp_flags uint32
  2213. Freserved uint32
  2214. Ffp_offset Toff_t
  2215. Ffp_length Toff_t
  2216. }
  2217. type Tfpunchhole = Tfpunchhole_t
  2218. type Tftrimactivefile_t = struct {
  2219. Ffta_offset Toff_t
  2220. Ffta_length Toff_t
  2221. }
  2222. type Tftrimactivefile = Tftrimactivefile_t
  2223. type Tfspecread_t = struct {
  2224. Ffsr_flags uint32
  2225. Freserved uint32
  2226. Ffsr_offset Toff_t
  2227. Ffsr_length Toff_t
  2228. }
  2229. type Tfspecread = Tfspecread_t
  2230. type Tfattributiontag_t = struct {
  2231. Fft_flags uint32
  2232. Fft_hash uint64
  2233. Fft_attribution_name [255]int8
  2234. }
  2235. type Tfattributiontag = Tfattributiontag_t
  2236. type Tlog2phys = struct {
  2237. Fl2p_flags uint32
  2238. Fl2p_contigbytes Toff_t
  2239. Fl2p_devoffset Toff_t
  2240. }
  2241. type Tfilesec_t = uintptr
  2242. type Tfilesec_property_t = int32
  2243. const _FILESEC_OWNER = 1
  2244. const _FILESEC_GROUP = 2
  2245. const _FILESEC_UUID = 3
  2246. const _FILESEC_MODE = 4
  2247. const _FILESEC_ACL = 5
  2248. const _FILESEC_GRPUUID = 6
  2249. const _FILESEC_ACL_RAW = 100
  2250. const _FILESEC_ACL_ALLOCSIZE = 101
  2251. type Taccessx_descriptor = struct {
  2252. Fad_name_offset uint32
  2253. Fad_flags int32
  2254. Fad_pad [2]int32
  2255. }
  2256. type Tuint64_t = uint64
  2257. type Tuint32_t = uint32
  2258. type Ttimeval = struct {
  2259. Ftv_sec t__darwin_time_t
  2260. Ftv_usec t__darwin_suseconds_t
  2261. }
  2262. type Tsigset_t = uint32
  2263. type Tuuid_t = [16]uint8
  2264. type Ttimeval64 = struct {
  2265. Ftv_sec t__int64_t
  2266. Ftv_usec t__int64_t
  2267. }
  2268. type Titimerval = struct {
  2269. Fit_interval Ttimeval
  2270. Fit_value Ttimeval
  2271. }
  2272. type Ttimezone = struct {
  2273. Ftz_minuteswest int32
  2274. Ftz_dsttime int32
  2275. }
  2276. type Tclockinfo = struct {
  2277. Fhz int32
  2278. Ftick int32
  2279. Ftickadj int32
  2280. Fstathz int32
  2281. Fprofhz int32
  2282. }
  2283. type Ttm = struct {
  2284. Ftm_sec int32
  2285. Ftm_min int32
  2286. Ftm_hour int32
  2287. Ftm_mday int32
  2288. Ftm_mon int32
  2289. Ftm_year int32
  2290. Ftm_wday int32
  2291. Ftm_yday int32
  2292. Ftm_isdst int32
  2293. Ftm_gmtoff int64
  2294. Ftm_zone uintptr
  2295. } //TODO "timezone" // _time.h:106:13:
  2296. type Tclockid_t = int32
  2297. const __CLOCK_REALTIME = 0
  2298. const __CLOCK_MONOTONIC = 6
  2299. const __CLOCK_MONOTONIC_RAW = 4
  2300. const __CLOCK_MONOTONIC_RAW_APPROX = 5
  2301. const __CLOCK_UPTIME_RAW = 8
  2302. const __CLOCK_UPTIME_RAW_APPROX = 9
  2303. const __CLOCK_PROCESS_CPUTIME_ID = 12
  2304. const __CLOCK_THREAD_CPUTIME_ID = 16
  2305. type TXID = uint64
  2306. type TMask = uint64
  2307. type TAtom = uint64
  2308. type TVisualID = uint64
  2309. type TTime = uint64
  2310. type TWindow = uint64
  2311. type TDrawable = uint64
  2312. type TFont = uint64
  2313. type TPixmap = uint64
  2314. type TCursor = uint64
  2315. type TColormap = uint64
  2316. type TGContext = uint64
  2317. type TKeySym = uint64
  2318. type TKeyCode = uint8
  2319. type TINT64 = int64
  2320. type TINT32 = int32
  2321. type TINT16 = int16
  2322. type TINT8 = int8
  2323. type TCARD64 = uint64
  2324. type TCARD32 = uint32
  2325. type TCARD16 = uint16
  2326. type TCARD8 = uint8
  2327. type TBITS32 = uint32
  2328. type TBITS16 = uint16
  2329. type TBYTE = uint8
  2330. type TBOOL = uint8
  2331. type TxdmOpCode = int32
  2332. const _BROADCAST_QUERY = 1
  2333. const _QUERY = 2
  2334. const _INDIRECT_QUERY = 3
  2335. const _FORWARD_QUERY = 4
  2336. const _WILLING = 5
  2337. const _UNWILLING = 6
  2338. const _REQUEST = 7
  2339. const _ACCEPT = 8
  2340. const _DECLINE = 9
  2341. const _MANAGE = 10
  2342. const _REFUSE = 11
  2343. const _FAILED = 12
  2344. const _KEEPALIVE = 13
  2345. const _ALIVE = 14
  2346. type Txdmcp_states = int32
  2347. const _XDM_QUERY = 0
  2348. const _XDM_BROADCAST = 1
  2349. const _XDM_INDIRECT = 2
  2350. const _XDM_COLLECT_QUERY = 3
  2351. const _XDM_COLLECT_BROADCAST_QUERY = 4
  2352. const _XDM_COLLECT_INDIRECT_QUERY = 5
  2353. const _XDM_START_CONNECTION = 6
  2354. const _XDM_AWAIT_REQUEST_RESPONSE = 7
  2355. const _XDM_AWAIT_MANAGE_RESPONSE = 8
  2356. const _XDM_MANAGE = 9
  2357. const _XDM_RUN_SESSION = 10
  2358. const _XDM_OFF = 11
  2359. const _XDM_AWAIT_USER_INPUT = 12
  2360. const _XDM_KEEPALIVE = 13
  2361. const _XDM_AWAIT_ALIVE_RESPONSE = 14
  2362. const _XDM_KEEP_ME_LAST = 15
  2363. type TCARD8Ptr = uintptr
  2364. type TCARD16Ptr = uintptr
  2365. type TCARD32Ptr = uintptr
  2366. type TARRAY8 = struct {
  2367. Flength TCARD16
  2368. Fdata TCARD8Ptr
  2369. }
  2370. type T_ARRAY8 = TARRAY8
  2371. type TARRAY8Ptr = uintptr
  2372. type TARRAY16 = struct {
  2373. Flength TCARD8
  2374. Fdata TCARD16Ptr
  2375. }
  2376. type T_ARRAY16 = TARRAY16
  2377. type TARRAY16Ptr = uintptr
  2378. type TARRAY32 = struct {
  2379. Flength TCARD8
  2380. Fdata TCARD32Ptr
  2381. }
  2382. type T_ARRAY32 = TARRAY32
  2383. type TARRAY32Ptr = uintptr
  2384. type TARRAYofARRAY8 = struct {
  2385. Flength TCARD8
  2386. Fdata TARRAY8Ptr
  2387. }
  2388. type T_ARRAYofARRAY8 = TARRAYofARRAY8
  2389. type TARRAYofARRAY8Ptr = uintptr
  2390. type TXdmcpHeader = struct {
  2391. Fversion TCARD16
  2392. Fopcode TCARD16
  2393. Flength TCARD16
  2394. }
  2395. type T_XdmcpHeader = TXdmcpHeader
  2396. type TXdmcpHeaderPtr = uintptr
  2397. type TXdmcpBuffer = struct {
  2398. Fdata uintptr
  2399. Fsize int32
  2400. Fpointer int32
  2401. Fcount int32
  2402. }
  2403. type T_XdmcpBuffer = TXdmcpBuffer
  2404. type TXdmcpBufferPtr = uintptr
  2405. type TXdmAuthKeyRec = struct {
  2406. Fdata [8]TBYTE
  2407. }
  2408. type T_XdmAuthKey = TXdmAuthKeyRec
  2409. type TXdmAuthKeyPtr = uintptr
  2410. type TXdmcpNetaddr = uintptr
  2411. type Tint_least64_t = int64
  2412. type Tuint_least64_t = uint64
  2413. type Tint_fast64_t = int64
  2414. type Tuint_fast64_t = uint64
  2415. type Tint_least32_t = int32
  2416. type Tuint_least32_t = uint32
  2417. type Tint_fast32_t = int32
  2418. type Tuint_fast32_t = uint32
  2419. type Tuint16_t = uint16
  2420. type Tint_least16_t = int16
  2421. type Tuint_least16_t = uint16
  2422. type Tint_fast16_t = int16
  2423. type Tuint_fast16_t = uint16
  2424. type Tuint8_t = uint8
  2425. type Tint_least8_t = int8
  2426. type Tuint_least8_t = uint8
  2427. type Tint_fast8_t = int8
  2428. type Tuint_fast8_t = uint8
  2429. type Tintmax_t = int64
  2430. type Tuintmax_t = uint64
  2431. type Tidtype_t = int32
  2432. const _P_ALL = 0
  2433. const _P_PID = 1
  2434. const _P_PGID = 2
  2435. type Tsig_atomic_t = int32
  2436. type t__darwin_arm_exception_state = struct {
  2437. F__exception t__uint32_t
  2438. F__fsr t__uint32_t
  2439. F__far t__uint32_t
  2440. }
  2441. type t__darwin_arm_exception_state64 = struct {
  2442. F__far t__uint64_t
  2443. F__esr t__uint32_t
  2444. F__exception t__uint32_t
  2445. }
  2446. type t__darwin_arm_exception_state64_v2 = struct {
  2447. F__far t__uint64_t
  2448. F__esr t__uint64_t
  2449. }
  2450. type t__darwin_arm_thread_state = struct {
  2451. F__r [13]t__uint32_t
  2452. F__sp t__uint32_t
  2453. F__lr t__uint32_t
  2454. F__pc t__uint32_t
  2455. F__cpsr t__uint32_t
  2456. }
  2457. type t__darwin_arm_thread_state64 = struct {
  2458. F__x [29]t__uint64_t
  2459. F__fp t__uint64_t
  2460. F__lr t__uint64_t
  2461. F__sp t__uint64_t
  2462. F__pc t__uint64_t
  2463. F__cpsr t__uint32_t
  2464. F__pad t__uint32_t
  2465. }
  2466. type t__darwin_arm_vfp_state = struct {
  2467. F__r [64]t__uint32_t
  2468. F__fpscr t__uint32_t
  2469. }
  2470. type t__darwin_arm_neon_state64 = struct {
  2471. F__ccgo_align [0]uint64
  2472. F__v [32][2]uint64
  2473. F__fpsr t__uint32_t
  2474. F__fpcr t__uint32_t
  2475. F__ccgo_pad3 [8]byte
  2476. }
  2477. type t__darwin_arm_neon_state = struct {
  2478. F__ccgo_align [0]uint64
  2479. F__v [16][2]uint64
  2480. F__fpsr t__uint32_t
  2481. F__fpcr t__uint32_t
  2482. F__ccgo_pad3 [8]byte
  2483. }
  2484. type t__arm_pagein_state = struct {
  2485. F__pagein_error int32
  2486. }
  2487. type t__darwin_arm_sme_state = struct {
  2488. F__svcr t__uint64_t
  2489. F__tpidr2_el0 t__uint64_t
  2490. F__svl_b t__uint16_t
  2491. }
  2492. type t__darwin_arm_sve_z_state = struct {
  2493. F__ccgo_align [0]uint32
  2494. F__z [16][256]int8
  2495. }
  2496. type t__darwin_arm_sve_p_state = struct {
  2497. F__ccgo_align [0]uint32
  2498. F__p [16][32]int8
  2499. }
  2500. type t__darwin_arm_sme_za_state = struct {
  2501. F__ccgo_align [0]uint32
  2502. F__za [4096]int8
  2503. }
  2504. type t__darwin_arm_sme2_state = struct {
  2505. F__ccgo_align [0]uint32
  2506. F__zt0 [64]int8
  2507. }
  2508. type t__arm_legacy_debug_state = struct {
  2509. F__bvr [16]t__uint32_t
  2510. F__bcr [16]t__uint32_t
  2511. F__wvr [16]t__uint32_t
  2512. F__wcr [16]t__uint32_t
  2513. }
  2514. type t__darwin_arm_debug_state32 = struct {
  2515. F__bvr [16]t__uint32_t
  2516. F__bcr [16]t__uint32_t
  2517. F__wvr [16]t__uint32_t
  2518. F__wcr [16]t__uint32_t
  2519. F__mdscr_el1 t__uint64_t
  2520. }
  2521. type t__darwin_arm_debug_state64 = struct {
  2522. F__bvr [16]t__uint64_t
  2523. F__bcr [16]t__uint64_t
  2524. F__wvr [16]t__uint64_t
  2525. F__wcr [16]t__uint64_t
  2526. F__mdscr_el1 t__uint64_t
  2527. }
  2528. type t__darwin_arm_cpmu_state64 = struct {
  2529. F__ctrs [16]t__uint64_t
  2530. }
  2531. type t__darwin_mcontext32 = struct {
  2532. F__es t__darwin_arm_exception_state
  2533. F__ss t__darwin_arm_thread_state
  2534. F__fs t__darwin_arm_vfp_state
  2535. }
  2536. type t__darwin_mcontext64 = struct {
  2537. F__ccgo_align [0]uint64
  2538. F__es t__darwin_arm_exception_state64
  2539. F__ss t__darwin_arm_thread_state64
  2540. F__ns t__darwin_arm_neon_state64
  2541. }
  2542. type Tmcontext_t = uintptr
  2543. type t__darwin_sigaltstack = struct {
  2544. Fss_sp uintptr
  2545. Fss_size t__darwin_size_t
  2546. Fss_flags int32
  2547. }
  2548. type Tstack_t = struct {
  2549. Fss_sp uintptr
  2550. Fss_size t__darwin_size_t
  2551. Fss_flags int32
  2552. }
  2553. type t__darwin_ucontext = struct {
  2554. Fuc_onstack int32
  2555. Fuc_sigmask t__darwin_sigset_t
  2556. Fuc_stack t__darwin_sigaltstack
  2557. Fuc_link uintptr
  2558. Fuc_mcsize t__darwin_size_t
  2559. Fuc_mcontext uintptr
  2560. }
  2561. type Tucontext_t = struct {
  2562. Fuc_onstack int32
  2563. Fuc_sigmask t__darwin_sigset_t
  2564. Fuc_stack t__darwin_sigaltstack
  2565. Fuc_link uintptr
  2566. Fuc_mcsize t__darwin_size_t
  2567. Fuc_mcontext uintptr
  2568. }
  2569. type Tsigval = struct {
  2570. Fsival_ptr [0]uintptr
  2571. Fsival_int int32
  2572. F__ccgo_pad2 [4]byte
  2573. }
  2574. type Tsigevent = struct {
  2575. Fsigev_notify int32
  2576. Fsigev_signo int32
  2577. Fsigev_value Tsigval
  2578. Fsigev_notify_function uintptr
  2579. Fsigev_notify_attributes uintptr
  2580. }
  2581. type Tsiginfo_t = struct {
  2582. Fsi_signo int32
  2583. Fsi_errno int32
  2584. Fsi_code int32
  2585. Fsi_pid Tpid_t
  2586. Fsi_uid Tuid_t
  2587. Fsi_status int32
  2588. Fsi_addr uintptr
  2589. Fsi_value Tsigval
  2590. Fsi_band int64
  2591. F__pad [7]uint64
  2592. }
  2593. type t__siginfo = Tsiginfo_t
  2594. type t__sigaction_u = struct {
  2595. F__sa_sigaction [0]uintptr
  2596. F__sa_handler uintptr
  2597. }
  2598. type t__sigaction = struct {
  2599. F__sigaction_u t__sigaction_u
  2600. Fsa_tramp uintptr
  2601. Fsa_mask Tsigset_t
  2602. Fsa_flags int32
  2603. }
  2604. type Tsigaction = struct {
  2605. F__sigaction_u t__sigaction_u
  2606. Fsa_mask Tsigset_t
  2607. Fsa_flags int32
  2608. }
  2609. type Tsig_t = uintptr
  2610. type Tsigvec = struct {
  2611. Fsv_handler uintptr
  2612. Fsv_mask int32
  2613. Fsv_flags int32
  2614. }
  2615. type Tsigstack = struct {
  2616. Fss_sp uintptr
  2617. Fss_onstack int32
  2618. }
  2619. type Trlim_t = uint64
  2620. type Trusage = struct {
  2621. Fru_utime Ttimeval
  2622. Fru_stime Ttimeval
  2623. Fru_maxrss int64
  2624. Fru_ixrss int64
  2625. Fru_idrss int64
  2626. Fru_isrss int64
  2627. Fru_minflt int64
  2628. Fru_majflt int64
  2629. Fru_nswap int64
  2630. Fru_inblock int64
  2631. Fru_oublock int64
  2632. Fru_msgsnd int64
  2633. Fru_msgrcv int64
  2634. Fru_nsignals int64
  2635. Fru_nvcsw int64
  2636. Fru_nivcsw int64
  2637. }
  2638. type Trusage_info_t = uintptr
  2639. type Trusage_info_v0 = struct {
  2640. Fri_uuid [16]Tuint8_t
  2641. Fri_user_time Tuint64_t
  2642. Fri_system_time Tuint64_t
  2643. Fri_pkg_idle_wkups Tuint64_t
  2644. Fri_interrupt_wkups Tuint64_t
  2645. Fri_pageins Tuint64_t
  2646. Fri_wired_size Tuint64_t
  2647. Fri_resident_size Tuint64_t
  2648. Fri_phys_footprint Tuint64_t
  2649. Fri_proc_start_abstime Tuint64_t
  2650. Fri_proc_exit_abstime Tuint64_t
  2651. }
  2652. type Trusage_info_v1 = struct {
  2653. Fri_uuid [16]Tuint8_t
  2654. Fri_user_time Tuint64_t
  2655. Fri_system_time Tuint64_t
  2656. Fri_pkg_idle_wkups Tuint64_t
  2657. Fri_interrupt_wkups Tuint64_t
  2658. Fri_pageins Tuint64_t
  2659. Fri_wired_size Tuint64_t
  2660. Fri_resident_size Tuint64_t
  2661. Fri_phys_footprint Tuint64_t
  2662. Fri_proc_start_abstime Tuint64_t
  2663. Fri_proc_exit_abstime Tuint64_t
  2664. Fri_child_user_time Tuint64_t
  2665. Fri_child_system_time Tuint64_t
  2666. Fri_child_pkg_idle_wkups Tuint64_t
  2667. Fri_child_interrupt_wkups Tuint64_t
  2668. Fri_child_pageins Tuint64_t
  2669. Fri_child_elapsed_abstime Tuint64_t
  2670. }
  2671. type Trusage_info_v2 = struct {
  2672. Fri_uuid [16]Tuint8_t
  2673. Fri_user_time Tuint64_t
  2674. Fri_system_time Tuint64_t
  2675. Fri_pkg_idle_wkups Tuint64_t
  2676. Fri_interrupt_wkups Tuint64_t
  2677. Fri_pageins Tuint64_t
  2678. Fri_wired_size Tuint64_t
  2679. Fri_resident_size Tuint64_t
  2680. Fri_phys_footprint Tuint64_t
  2681. Fri_proc_start_abstime Tuint64_t
  2682. Fri_proc_exit_abstime Tuint64_t
  2683. Fri_child_user_time Tuint64_t
  2684. Fri_child_system_time Tuint64_t
  2685. Fri_child_pkg_idle_wkups Tuint64_t
  2686. Fri_child_interrupt_wkups Tuint64_t
  2687. Fri_child_pageins Tuint64_t
  2688. Fri_child_elapsed_abstime Tuint64_t
  2689. Fri_diskio_bytesread Tuint64_t
  2690. Fri_diskio_byteswritten Tuint64_t
  2691. }
  2692. type Trusage_info_v3 = struct {
  2693. Fri_uuid [16]Tuint8_t
  2694. Fri_user_time Tuint64_t
  2695. Fri_system_time Tuint64_t
  2696. Fri_pkg_idle_wkups Tuint64_t
  2697. Fri_interrupt_wkups Tuint64_t
  2698. Fri_pageins Tuint64_t
  2699. Fri_wired_size Tuint64_t
  2700. Fri_resident_size Tuint64_t
  2701. Fri_phys_footprint Tuint64_t
  2702. Fri_proc_start_abstime Tuint64_t
  2703. Fri_proc_exit_abstime Tuint64_t
  2704. Fri_child_user_time Tuint64_t
  2705. Fri_child_system_time Tuint64_t
  2706. Fri_child_pkg_idle_wkups Tuint64_t
  2707. Fri_child_interrupt_wkups Tuint64_t
  2708. Fri_child_pageins Tuint64_t
  2709. Fri_child_elapsed_abstime Tuint64_t
  2710. Fri_diskio_bytesread Tuint64_t
  2711. Fri_diskio_byteswritten Tuint64_t
  2712. Fri_cpu_time_qos_default Tuint64_t
  2713. Fri_cpu_time_qos_maintenance Tuint64_t
  2714. Fri_cpu_time_qos_background Tuint64_t
  2715. Fri_cpu_time_qos_utility Tuint64_t
  2716. Fri_cpu_time_qos_legacy Tuint64_t
  2717. Fri_cpu_time_qos_user_initiated Tuint64_t
  2718. Fri_cpu_time_qos_user_interactive Tuint64_t
  2719. Fri_billed_system_time Tuint64_t
  2720. Fri_serviced_system_time Tuint64_t
  2721. }
  2722. type Trusage_info_v4 = struct {
  2723. Fri_uuid [16]Tuint8_t
  2724. Fri_user_time Tuint64_t
  2725. Fri_system_time Tuint64_t
  2726. Fri_pkg_idle_wkups Tuint64_t
  2727. Fri_interrupt_wkups Tuint64_t
  2728. Fri_pageins Tuint64_t
  2729. Fri_wired_size Tuint64_t
  2730. Fri_resident_size Tuint64_t
  2731. Fri_phys_footprint Tuint64_t
  2732. Fri_proc_start_abstime Tuint64_t
  2733. Fri_proc_exit_abstime Tuint64_t
  2734. Fri_child_user_time Tuint64_t
  2735. Fri_child_system_time Tuint64_t
  2736. Fri_child_pkg_idle_wkups Tuint64_t
  2737. Fri_child_interrupt_wkups Tuint64_t
  2738. Fri_child_pageins Tuint64_t
  2739. Fri_child_elapsed_abstime Tuint64_t
  2740. Fri_diskio_bytesread Tuint64_t
  2741. Fri_diskio_byteswritten Tuint64_t
  2742. Fri_cpu_time_qos_default Tuint64_t
  2743. Fri_cpu_time_qos_maintenance Tuint64_t
  2744. Fri_cpu_time_qos_background Tuint64_t
  2745. Fri_cpu_time_qos_utility Tuint64_t
  2746. Fri_cpu_time_qos_legacy Tuint64_t
  2747. Fri_cpu_time_qos_user_initiated Tuint64_t
  2748. Fri_cpu_time_qos_user_interactive Tuint64_t
  2749. Fri_billed_system_time Tuint64_t
  2750. Fri_serviced_system_time Tuint64_t
  2751. Fri_logical_writes Tuint64_t
  2752. Fri_lifetime_max_phys_footprint Tuint64_t
  2753. Fri_instructions Tuint64_t
  2754. Fri_cycles Tuint64_t
  2755. Fri_billed_energy Tuint64_t
  2756. Fri_serviced_energy Tuint64_t
  2757. Fri_interval_max_phys_footprint Tuint64_t
  2758. Fri_runnable_time Tuint64_t
  2759. }
  2760. type Trusage_info_v5 = struct {
  2761. Fri_uuid [16]Tuint8_t
  2762. Fri_user_time Tuint64_t
  2763. Fri_system_time Tuint64_t
  2764. Fri_pkg_idle_wkups Tuint64_t
  2765. Fri_interrupt_wkups Tuint64_t
  2766. Fri_pageins Tuint64_t
  2767. Fri_wired_size Tuint64_t
  2768. Fri_resident_size Tuint64_t
  2769. Fri_phys_footprint Tuint64_t
  2770. Fri_proc_start_abstime Tuint64_t
  2771. Fri_proc_exit_abstime Tuint64_t
  2772. Fri_child_user_time Tuint64_t
  2773. Fri_child_system_time Tuint64_t
  2774. Fri_child_pkg_idle_wkups Tuint64_t
  2775. Fri_child_interrupt_wkups Tuint64_t
  2776. Fri_child_pageins Tuint64_t
  2777. Fri_child_elapsed_abstime Tuint64_t
  2778. Fri_diskio_bytesread Tuint64_t
  2779. Fri_diskio_byteswritten Tuint64_t
  2780. Fri_cpu_time_qos_default Tuint64_t
  2781. Fri_cpu_time_qos_maintenance Tuint64_t
  2782. Fri_cpu_time_qos_background Tuint64_t
  2783. Fri_cpu_time_qos_utility Tuint64_t
  2784. Fri_cpu_time_qos_legacy Tuint64_t
  2785. Fri_cpu_time_qos_user_initiated Tuint64_t
  2786. Fri_cpu_time_qos_user_interactive Tuint64_t
  2787. Fri_billed_system_time Tuint64_t
  2788. Fri_serviced_system_time Tuint64_t
  2789. Fri_logical_writes Tuint64_t
  2790. Fri_lifetime_max_phys_footprint Tuint64_t
  2791. Fri_instructions Tuint64_t
  2792. Fri_cycles Tuint64_t
  2793. Fri_billed_energy Tuint64_t
  2794. Fri_serviced_energy Tuint64_t
  2795. Fri_interval_max_phys_footprint Tuint64_t
  2796. Fri_runnable_time Tuint64_t
  2797. Fri_flags Tuint64_t
  2798. }
  2799. type Trusage_info_v6 = struct {
  2800. Fri_uuid [16]Tuint8_t
  2801. Fri_user_time Tuint64_t
  2802. Fri_system_time Tuint64_t
  2803. Fri_pkg_idle_wkups Tuint64_t
  2804. Fri_interrupt_wkups Tuint64_t
  2805. Fri_pageins Tuint64_t
  2806. Fri_wired_size Tuint64_t
  2807. Fri_resident_size Tuint64_t
  2808. Fri_phys_footprint Tuint64_t
  2809. Fri_proc_start_abstime Tuint64_t
  2810. Fri_proc_exit_abstime Tuint64_t
  2811. Fri_child_user_time Tuint64_t
  2812. Fri_child_system_time Tuint64_t
  2813. Fri_child_pkg_idle_wkups Tuint64_t
  2814. Fri_child_interrupt_wkups Tuint64_t
  2815. Fri_child_pageins Tuint64_t
  2816. Fri_child_elapsed_abstime Tuint64_t
  2817. Fri_diskio_bytesread Tuint64_t
  2818. Fri_diskio_byteswritten Tuint64_t
  2819. Fri_cpu_time_qos_default Tuint64_t
  2820. Fri_cpu_time_qos_maintenance Tuint64_t
  2821. Fri_cpu_time_qos_background Tuint64_t
  2822. Fri_cpu_time_qos_utility Tuint64_t
  2823. Fri_cpu_time_qos_legacy Tuint64_t
  2824. Fri_cpu_time_qos_user_initiated Tuint64_t
  2825. Fri_cpu_time_qos_user_interactive Tuint64_t
  2826. Fri_billed_system_time Tuint64_t
  2827. Fri_serviced_system_time Tuint64_t
  2828. Fri_logical_writes Tuint64_t
  2829. Fri_lifetime_max_phys_footprint Tuint64_t
  2830. Fri_instructions Tuint64_t
  2831. Fri_cycles Tuint64_t
  2832. Fri_billed_energy Tuint64_t
  2833. Fri_serviced_energy Tuint64_t
  2834. Fri_interval_max_phys_footprint Tuint64_t
  2835. Fri_runnable_time Tuint64_t
  2836. Fri_flags Tuint64_t
  2837. Fri_user_ptime Tuint64_t
  2838. Fri_system_ptime Tuint64_t
  2839. Fri_pinstructions Tuint64_t
  2840. Fri_pcycles Tuint64_t
  2841. Fri_energy_nj Tuint64_t
  2842. Fri_penergy_nj Tuint64_t
  2843. Fri_secure_time_in_system Tuint64_t
  2844. Fri_secure_ptime_in_system Tuint64_t
  2845. Fri_neural_footprint Tuint64_t
  2846. Fri_lifetime_max_neural_footprint Tuint64_t
  2847. Fri_interval_max_neural_footprint Tuint64_t
  2848. Fri_reserved [9]Tuint64_t
  2849. }
  2850. type Trusage_info_current = struct {
  2851. Fri_uuid [16]Tuint8_t
  2852. Fri_user_time Tuint64_t
  2853. Fri_system_time Tuint64_t
  2854. Fri_pkg_idle_wkups Tuint64_t
  2855. Fri_interrupt_wkups Tuint64_t
  2856. Fri_pageins Tuint64_t
  2857. Fri_wired_size Tuint64_t
  2858. Fri_resident_size Tuint64_t
  2859. Fri_phys_footprint Tuint64_t
  2860. Fri_proc_start_abstime Tuint64_t
  2861. Fri_proc_exit_abstime Tuint64_t
  2862. Fri_child_user_time Tuint64_t
  2863. Fri_child_system_time Tuint64_t
  2864. Fri_child_pkg_idle_wkups Tuint64_t
  2865. Fri_child_interrupt_wkups Tuint64_t
  2866. Fri_child_pageins Tuint64_t
  2867. Fri_child_elapsed_abstime Tuint64_t
  2868. Fri_diskio_bytesread Tuint64_t
  2869. Fri_diskio_byteswritten Tuint64_t
  2870. Fri_cpu_time_qos_default Tuint64_t
  2871. Fri_cpu_time_qos_maintenance Tuint64_t
  2872. Fri_cpu_time_qos_background Tuint64_t
  2873. Fri_cpu_time_qos_utility Tuint64_t
  2874. Fri_cpu_time_qos_legacy Tuint64_t
  2875. Fri_cpu_time_qos_user_initiated Tuint64_t
  2876. Fri_cpu_time_qos_user_interactive Tuint64_t
  2877. Fri_billed_system_time Tuint64_t
  2878. Fri_serviced_system_time Tuint64_t
  2879. Fri_logical_writes Tuint64_t
  2880. Fri_lifetime_max_phys_footprint Tuint64_t
  2881. Fri_instructions Tuint64_t
  2882. Fri_cycles Tuint64_t
  2883. Fri_billed_energy Tuint64_t
  2884. Fri_serviced_energy Tuint64_t
  2885. Fri_interval_max_phys_footprint Tuint64_t
  2886. Fri_runnable_time Tuint64_t
  2887. Fri_flags Tuint64_t
  2888. Fri_user_ptime Tuint64_t
  2889. Fri_system_ptime Tuint64_t
  2890. Fri_pinstructions Tuint64_t
  2891. Fri_pcycles Tuint64_t
  2892. Fri_energy_nj Tuint64_t
  2893. Fri_penergy_nj Tuint64_t
  2894. Fri_secure_time_in_system Tuint64_t
  2895. Fri_secure_ptime_in_system Tuint64_t
  2896. Fri_neural_footprint Tuint64_t
  2897. Fri_lifetime_max_neural_footprint Tuint64_t
  2898. Fri_interval_max_neural_footprint Tuint64_t
  2899. Fri_reserved [9]Tuint64_t
  2900. }
  2901. type Trlimit = struct {
  2902. Frlim_cur Trlim_t
  2903. Frlim_max Trlim_t
  2904. }
  2905. type Tproc_rlimit_control_wakeupmon = struct {
  2906. Fwm_flags Tuint32_t
  2907. Fwm_rate Tint32_t
  2908. }
  2909. type Twait = struct {
  2910. Fw_T [0]struct {
  2911. F__ccgo0 uint32
  2912. }
  2913. Fw_S [0]struct {
  2914. F__ccgo0 uint32
  2915. }
  2916. Fw_status int32
  2917. }
  2918. type Tct_rune_t = int32
  2919. type Trune_t = int32
  2920. type Twchar_t = int32
  2921. type Tdiv_t = struct {
  2922. Fquot int32
  2923. Frem int32
  2924. }
  2925. type Tldiv_t = struct {
  2926. Fquot int64
  2927. Frem int64
  2928. }
  2929. type Tlldiv_t = struct {
  2930. Fquot int64
  2931. Frem int64
  2932. }
  2933. type Tmalloc_type_id_t = uint64 /* getsubopt(3) external variable */
  2934. /* valloc is now declared in _malloc.h */
  2935. /* Poison the following routines if -fshort-wchar is set */
  2936. // C documentation
  2937. //
  2938. // /*
  2939. // * This variant of malloc does not return NULL if zero size is passed into.
  2940. // */
  2941. func _xmalloc(tls *libc.TLS, size Tsize_t) (r uintptr) {
  2942. var v1 uint64
  2943. _ = v1
  2944. if size != 0 {
  2945. v1 = size
  2946. } else {
  2947. v1 = uint64(1)
  2948. }
  2949. return libc.Xmalloc(tls, v1)
  2950. }
  2951. // C documentation
  2952. //
  2953. // /*
  2954. // * This variant of calloc does not return NULL if zero count is passed into.
  2955. // */
  2956. func _xcalloc(tls *libc.TLS, n Tsize_t, size Tsize_t) (r uintptr) {
  2957. var v1 uint64
  2958. _ = v1
  2959. if n != 0 {
  2960. v1 = n
  2961. } else {
  2962. v1 = uint64(1)
  2963. }
  2964. return libc.Xcalloc(tls, v1, size)
  2965. }
  2966. // C documentation
  2967. //
  2968. // /*
  2969. // * This variant of realloc does not return NULL if zero size is passed into
  2970. // */
  2971. func _xrealloc(tls *libc.TLS, ptr uintptr, size Tsize_t) (r uintptr) {
  2972. var v1 uint64
  2973. _ = v1
  2974. if size != 0 {
  2975. v1 = size
  2976. } else {
  2977. v1 = uint64(1)
  2978. }
  2979. return libc.Xrealloc(tls, ptr, v1)
  2980. }
  2981. func XXdmcpAllocARRAY8(tls *libc.TLS, array TARRAY8Ptr, length int32) (r int32) {
  2982. /* length defined in ARRAY8 struct is a CARD16 (not CARD8 like the rest) */
  2983. if libc.Uint32FromInt32(length) > uint32(65535) || length < 0 {
  2984. (*T_ARRAY8)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  2985. } else {
  2986. (*T_ARRAY8)(unsafe.Pointer(array)).Fdata = _xmalloc(tls, libc.Uint64FromInt32(length)*uint64(1))
  2987. }
  2988. if (*T_ARRAY8)(unsafe.Pointer(array)).Fdata == libc.UintptrFromInt32(0) {
  2989. (*T_ARRAY8)(unsafe.Pointer(array)).Flength = uint16(0)
  2990. return m_FALSE
  2991. }
  2992. (*T_ARRAY8)(unsafe.Pointer(array)).Flength = libc.Uint16FromInt32(length)
  2993. return int32(m_TRUE)
  2994. }
  2995. func XXdmcpAllocARRAY16(tls *libc.TLS, array TARRAY16Ptr, length int32) (r int32) {
  2996. /* length defined in ARRAY16 struct is a CARD8 */
  2997. if libc.Uint32FromInt32(length) > uint32(255) || length < 0 {
  2998. (*T_ARRAY16)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  2999. } else {
  3000. (*T_ARRAY16)(unsafe.Pointer(array)).Fdata = _xmalloc(tls, libc.Uint64FromInt32(length)*uint64(2))
  3001. }
  3002. if (*T_ARRAY16)(unsafe.Pointer(array)).Fdata == libc.UintptrFromInt32(0) {
  3003. (*T_ARRAY16)(unsafe.Pointer(array)).Flength = uint8(0)
  3004. return m_FALSE
  3005. }
  3006. (*T_ARRAY16)(unsafe.Pointer(array)).Flength = libc.Uint8FromInt32(length)
  3007. return int32(m_TRUE)
  3008. }
  3009. func XXdmcpAllocARRAY32(tls *libc.TLS, array TARRAY32Ptr, length int32) (r int32) {
  3010. /* length defined in ARRAY32 struct is a CARD8 */
  3011. if libc.Uint32FromInt32(length) > uint32(255) || length < 0 {
  3012. (*T_ARRAY32)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  3013. } else {
  3014. (*T_ARRAY32)(unsafe.Pointer(array)).Fdata = _xmalloc(tls, libc.Uint64FromInt32(length)*uint64(4))
  3015. }
  3016. if (*T_ARRAY32)(unsafe.Pointer(array)).Fdata == libc.UintptrFromInt32(0) {
  3017. (*T_ARRAY32)(unsafe.Pointer(array)).Flength = uint8(0)
  3018. return m_FALSE
  3019. }
  3020. (*T_ARRAY32)(unsafe.Pointer(array)).Flength = libc.Uint8FromInt32(length)
  3021. return int32(m_TRUE)
  3022. }
  3023. func XXdmcpAllocARRAYofARRAY8(tls *libc.TLS, array TARRAYofARRAY8Ptr, length int32) (r int32) {
  3024. /* length defined in ARRAYofARRAY8 struct is a CARD8 */
  3025. if libc.Uint32FromInt32(length) > uint32(255) || length < 0 {
  3026. (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  3027. } else {
  3028. /*
  3029. * Use calloc to ensure the pointers are cleared out so we
  3030. * don't try to free garbage if XdmcpDisposeARRAYofARRAY8()
  3031. * is called before the caller sets them to valid pointers.
  3032. */
  3033. (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata = _xcalloc(tls, libc.Uint64FromInt32(length), uint64(16))
  3034. }
  3035. if (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata == libc.UintptrFromInt32(0) {
  3036. (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength = uint8(0)
  3037. return m_FALSE
  3038. }
  3039. (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength = libc.Uint8FromInt32(length)
  3040. return int32(m_TRUE)
  3041. }
  3042. func XXdmcpARRAY8Equal(tls *libc.TLS, array1 TARRAY8Ptr, array2 TARRAY8Ptr) (r int32) {
  3043. if libc.Int32FromUint16((*T_ARRAY8)(unsafe.Pointer(array1)).Flength) != libc.Int32FromUint16((*T_ARRAY8)(unsafe.Pointer(array2)).Flength) {
  3044. return m_FALSE
  3045. }
  3046. if libc.Xmemcmp(tls, (*T_ARRAY8)(unsafe.Pointer(array1)).Fdata, (*T_ARRAY8)(unsafe.Pointer(array2)).Fdata, uint64((*T_ARRAY8)(unsafe.Pointer(array1)).Flength)) != 0 {
  3047. return m_FALSE
  3048. }
  3049. return int32(m_TRUE)
  3050. }
  3051. func XXdmcpCopyARRAY8(tls *libc.TLS, src TARRAY8Ptr, dst TARRAY8Ptr) (r int32) {
  3052. if !(XXdmcpAllocARRAY8(tls, dst, libc.Int32FromUint16((*T_ARRAY8)(unsafe.Pointer(src)).Flength)) != 0) {
  3053. return m_FALSE
  3054. }
  3055. libc.X__builtin___memcpy_chk(tls, (*T_ARRAY8)(unsafe.Pointer(dst)).Fdata, (*T_ARRAY8)(unsafe.Pointer(src)).Fdata, uint64((*T_ARRAY8)(unsafe.Pointer(src)).Flength)*uint64(1), ^t__predefined_size_t(0))
  3056. return int32(m_TRUE)
  3057. }
  3058. func XXdmcpReallocARRAY8(tls *libc.TLS, array TARRAY8Ptr, length int32) (r int32) {
  3059. var newData TCARD8Ptr
  3060. _ = newData
  3061. /* length defined in ARRAY8 struct is a CARD16 (not CARD8 like the rest) */
  3062. if libc.Uint32FromInt32(length) > uint32(65535) || length < 0 {
  3063. return m_FALSE
  3064. }
  3065. newData = _xrealloc(tls, (*T_ARRAY8)(unsafe.Pointer(array)).Fdata, libc.Uint64FromInt32(length)*uint64(1))
  3066. if !(newData != 0) {
  3067. return m_FALSE
  3068. }
  3069. (*T_ARRAY8)(unsafe.Pointer(array)).Flength = libc.Uint16FromInt32(length)
  3070. (*T_ARRAY8)(unsafe.Pointer(array)).Fdata = newData
  3071. return int32(m_TRUE)
  3072. }
  3073. func XXdmcpReallocARRAYofARRAY8(tls *libc.TLS, array TARRAYofARRAY8Ptr, length int32) (r int32) {
  3074. var newData TARRAY8Ptr
  3075. _ = newData
  3076. /* length defined in ARRAYofARRAY8 struct is a CARD8 */
  3077. if libc.Uint32FromInt32(length) > uint32(255) || length < 0 {
  3078. return m_FALSE
  3079. }
  3080. newData = _xrealloc(tls, (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata, libc.Uint64FromInt32(length)*uint64(16))
  3081. if !(newData != 0) {
  3082. return m_FALSE
  3083. }
  3084. if length > libc.Int32FromUint8((*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength) {
  3085. libc.X__builtin___memset_chk(tls, newData+uintptr((*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength)*16, 0, libc.Uint64FromInt32(length-libc.Int32FromUint8((*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength))*uint64(16), ^t__predefined_size_t(0))
  3086. }
  3087. (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength = libc.Uint8FromInt32(length)
  3088. (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata = newData
  3089. return int32(m_TRUE)
  3090. }
  3091. func XXdmcpReallocARRAY16(tls *libc.TLS, array TARRAY16Ptr, length int32) (r int32) {
  3092. var newData TCARD16Ptr
  3093. _ = newData
  3094. /* length defined in ARRAY16 struct is a CARD8 */
  3095. if libc.Uint32FromInt32(length) > uint32(255) || length < 0 {
  3096. return m_FALSE
  3097. }
  3098. newData = _xrealloc(tls, (*T_ARRAY16)(unsafe.Pointer(array)).Fdata, libc.Uint64FromInt32(length)*uint64(2))
  3099. if !(newData != 0) {
  3100. return m_FALSE
  3101. }
  3102. (*T_ARRAY16)(unsafe.Pointer(array)).Flength = libc.Uint8FromInt32(length)
  3103. (*T_ARRAY16)(unsafe.Pointer(array)).Fdata = newData
  3104. return int32(m_TRUE)
  3105. }
  3106. func XXdmcpReallocARRAY32(tls *libc.TLS, array TARRAY32Ptr, length int32) (r int32) {
  3107. var newData TCARD32Ptr
  3108. _ = newData
  3109. /* length defined in ARRAY32 struct is a CARD8 */
  3110. if libc.Uint32FromInt32(length) > uint32(255) || length < 0 {
  3111. return m_FALSE
  3112. }
  3113. newData = _xrealloc(tls, (*T_ARRAY32)(unsafe.Pointer(array)).Fdata, libc.Uint64FromInt32(length)*uint64(4))
  3114. if !(newData != 0) {
  3115. return m_FALSE
  3116. }
  3117. (*T_ARRAY32)(unsafe.Pointer(array)).Flength = libc.Uint8FromInt32(length)
  3118. (*T_ARRAY32)(unsafe.Pointer(array)).Fdata = newData
  3119. return int32(m_TRUE)
  3120. }
  3121. func XXdmcpDisposeARRAY8(tls *libc.TLS, array TARRAY8Ptr) {
  3122. libc.Xfree(tls, (*T_ARRAY8)(unsafe.Pointer(array)).Fdata)
  3123. (*T_ARRAY8)(unsafe.Pointer(array)).Flength = uint16(0)
  3124. (*T_ARRAY8)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  3125. }
  3126. func XXdmcpDisposeARRAY16(tls *libc.TLS, array TARRAY16Ptr) {
  3127. libc.Xfree(tls, (*T_ARRAY16)(unsafe.Pointer(array)).Fdata)
  3128. (*T_ARRAY16)(unsafe.Pointer(array)).Flength = uint8(0)
  3129. (*T_ARRAY16)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  3130. }
  3131. func XXdmcpDisposeARRAY32(tls *libc.TLS, array TARRAY32Ptr) {
  3132. libc.Xfree(tls, (*T_ARRAY32)(unsafe.Pointer(array)).Fdata)
  3133. (*T_ARRAY32)(unsafe.Pointer(array)).Flength = uint8(0)
  3134. (*T_ARRAY32)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  3135. }
  3136. func XXdmcpDisposeARRAYofARRAY8(tls *libc.TLS, array TARRAYofARRAY8Ptr) {
  3137. var i uint32
  3138. _ = i
  3139. if (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata != libc.UintptrFromInt32(0) {
  3140. i = uint32(0)
  3141. for {
  3142. if !(i < uint32((*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength)) {
  3143. break
  3144. }
  3145. XXdmcpDisposeARRAY8(tls, (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata+uintptr(i)*16)
  3146. goto _1
  3147. _1:
  3148. ;
  3149. i++
  3150. }
  3151. libc.Xfree(tls, (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata)
  3152. }
  3153. (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength = uint8(0)
  3154. (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  3155. }
  3156. const m_AF_APPLETALK = 16
  3157. const m_AF_CCITT = 10
  3158. const m_AF_CHAOS = 5
  3159. const m_AF_CNT = 21
  3160. const m_AF_COIP = 20
  3161. const m_AF_DATAKIT = 9
  3162. const m_AF_DECnet = 12
  3163. const m_AF_DLI = 13
  3164. const m_AF_E164 = "AF_ISDN"
  3165. const m_AF_ECMA = 8
  3166. const m_AF_HYLINK = 15
  3167. const m_AF_IEEE80211 = 37
  3168. const m_AF_IMPLINK = 3
  3169. const m_AF_INET = 2
  3170. const m_AF_INET6 = 30
  3171. const m_AF_IPX = 23
  3172. const m_AF_ISDN = 28
  3173. const m_AF_ISO = 7
  3174. const m_AF_LAT = 14
  3175. const m_AF_LINK = 18
  3176. const m_AF_LOCAL = "AF_UNIX"
  3177. const m_AF_MAX = 41
  3178. const m_AF_NATM = 31
  3179. const m_AF_NDRV = 27
  3180. const m_AF_NETBIOS = 33
  3181. const m_AF_NS = 6
  3182. const m_AF_OSI = "AF_ISO"
  3183. const m_AF_PPP = 34
  3184. const m_AF_PUP = 4
  3185. const m_AF_RESERVED_36 = 36
  3186. const m_AF_ROUTE = 17
  3187. const m_AF_SIP = 24
  3188. const m_AF_SNA = 11
  3189. const m_AF_SYSTEM = 32
  3190. const m_AF_UNIX = 1
  3191. const m_AF_UNSPEC = 0
  3192. const m_AF_UTUN = 38
  3193. const m_AF_VSOCK = 40
  3194. const m_CONNECT_DATA_AUTHENTICATED = 0x4
  3195. const m_CONNECT_DATA_IDEMPOTENT = 0x2
  3196. const m_CONNECT_RESUME_ON_READ_WRITE = 0x1
  3197. const m_KEV_DL_ADDMULTI = 7
  3198. const m_KEV_DL_AWDL_RESTRICTED = 26
  3199. const m_KEV_DL_AWDL_UNRESTRICTED = 27
  3200. const m_KEV_DL_DELMULTI = 8
  3201. const m_KEV_DL_IFCAP_CHANGED = 19
  3202. const m_KEV_DL_IFDELEGATE_CHANGED = 25
  3203. const m_KEV_DL_IF_ATTACHED = 9
  3204. const m_KEV_DL_IF_DETACHED = 11
  3205. const m_KEV_DL_IF_DETACHING = 10
  3206. const m_KEV_DL_IF_IDLE_ROUTE_REFCNT = 18
  3207. const m_KEV_DL_ISSUES = 24
  3208. const m_KEV_DL_LINK_ADDRESS_CHANGED = 16
  3209. const m_KEV_DL_LINK_OFF = 12
  3210. const m_KEV_DL_LINK_ON = 13
  3211. const m_KEV_DL_LINK_QUALITY_METRIC_CHANGED = 20
  3212. const m_KEV_DL_LOW_POWER_MODE_CHANGED = 30
  3213. const m_KEV_DL_NODE_ABSENCE = 22
  3214. const m_KEV_DL_NODE_PRESENCE = 21
  3215. const m_KEV_DL_PRIMARY_ELECTED = 23
  3216. const m_KEV_DL_PROTO_ATTACHED = 14
  3217. const m_KEV_DL_PROTO_DETACHED = 15
  3218. const m_KEV_DL_QOS_MODE_CHANGED = 29
  3219. const m_KEV_DL_RRC_STATE_CHANGED = 28
  3220. const m_KEV_DL_SIFFLAGS = 1
  3221. const m_KEV_DL_SIFGENERIC = 6
  3222. const m_KEV_DL_SIFMEDIA = 5
  3223. const m_KEV_DL_SIFMETRICS = 2
  3224. const m_KEV_DL_SIFMTU = 3
  3225. const m_KEV_DL_SIFPHYS = 4
  3226. const m_KEV_DL_SUBCLASS = 2
  3227. const m_KEV_DL_WAKEFLAGS_CHANGED = 17
  3228. const m_KEV_INET6_ADDR_DELETED = 3
  3229. const m_KEV_INET6_CHANGED_ADDR = 2
  3230. const m_KEV_INET6_DEFROUTER = 6
  3231. const m_KEV_INET6_NEW_LL_ADDR = 4
  3232. const m_KEV_INET6_NEW_RTADV_ADDR = 5
  3233. const m_KEV_INET6_NEW_USER_ADDR = 1
  3234. const m_KEV_INET6_REQUEST_NAT64_PREFIX = 7
  3235. const m_KEV_INET6_SUBCLASS = 6
  3236. const m_KEV_INET_ADDR_DELETED = 3
  3237. const m_KEV_INET_ARPCOLLISION = 7
  3238. const m_KEV_INET_ARPRTRALIVE = 10
  3239. const m_KEV_INET_ARPRTRFAILURE = 9
  3240. const m_KEV_INET_CHANGED_ADDR = 2
  3241. const m_KEV_INET_NEW_ADDR = 1
  3242. const m_KEV_INET_PORTINUSE = 8
  3243. const m_KEV_INET_SIFBRDADDR = 5
  3244. const m_KEV_INET_SIFDSTADDR = 4
  3245. const m_KEV_INET_SIFNETMASK = 6
  3246. const m_KEV_INET_SUBCLASS = 1
  3247. const m_MSG_CTRUNC = 0x20
  3248. const m_MSG_DONTROUTE = 0x4
  3249. const m_MSG_DONTWAIT = 0x80
  3250. const m_MSG_EOF = 0x100
  3251. const m_MSG_EOR = 0x8
  3252. const m_MSG_FLUSH = 0x400
  3253. const m_MSG_HAVEMORE = 0x2000
  3254. const m_MSG_HOLD = 0x800
  3255. const m_MSG_NEEDSA = 0x10000
  3256. const m_MSG_NOSIGNAL = 0x80000
  3257. const m_MSG_OOB = 0x1
  3258. const m_MSG_PEEK = 0x2
  3259. const m_MSG_RCVMORE = 0x4000
  3260. const m_MSG_SEND = 0x1000
  3261. const m_MSG_TRUNC = 0x10
  3262. const m_MSG_WAITALL = 0x40
  3263. const m_MSG_WAITSTREAM = 0x200
  3264. const m_NETSVC_MRKNG_LVL_L2 = 1
  3265. const m_NETSVC_MRKNG_LVL_L3L2_ALL = 2
  3266. const m_NETSVC_MRKNG_LVL_L3L2_BK = 3
  3267. const m_NETSVC_MRKNG_UNKNOWN = 0
  3268. const m_NET_MAXID = "AF_MAX"
  3269. const m_NET_RT_DUMP = 1
  3270. const m_NET_RT_DUMP2 = 7
  3271. const m_NET_RT_FLAGS = 2
  3272. const m_NET_RT_FLAGS_PRIV = 10
  3273. const m_NET_RT_IFLIST = 3
  3274. const m_NET_RT_IFLIST2 = 6
  3275. const m_NET_RT_MAXID = 11
  3276. const m_NET_RT_STAT = 4
  3277. const m_NET_RT_TRASH = 5
  3278. const m_NET_SERVICE_TYPE_AV = 6
  3279. const m_NET_SERVICE_TYPE_BE = 0
  3280. const m_NET_SERVICE_TYPE_BK = 1
  3281. const m_NET_SERVICE_TYPE_OAM = 7
  3282. const m_NET_SERVICE_TYPE_RD = 8
  3283. const m_NET_SERVICE_TYPE_RV = 5
  3284. const m_NET_SERVICE_TYPE_SIG = 2
  3285. const m_NET_SERVICE_TYPE_VI = 3
  3286. const m_NET_SERVICE_TYPE_VO = 4
  3287. const m_PF_APPLETALK = "AF_APPLETALK"
  3288. const m_PF_CCITT = "AF_CCITT"
  3289. const m_PF_CHAOS = "AF_CHAOS"
  3290. const m_PF_CNT = "AF_CNT"
  3291. const m_PF_COIP = "AF_COIP"
  3292. const m_PF_DATAKIT = "AF_DATAKIT"
  3293. const m_PF_DECnet = "AF_DECnet"
  3294. const m_PF_DLI = "AF_DLI"
  3295. const m_PF_ECMA = "AF_ECMA"
  3296. const m_PF_HYLINK = "AF_HYLINK"
  3297. const m_PF_IMPLINK = "AF_IMPLINK"
  3298. const m_PF_INET = "AF_INET"
  3299. const m_PF_INET6 = "AF_INET6"
  3300. const m_PF_IPX = "AF_IPX"
  3301. const m_PF_ISDN = "AF_ISDN"
  3302. const m_PF_ISO = "AF_ISO"
  3303. const m_PF_KEY = "pseudo_AF_KEY"
  3304. const m_PF_LAT = "AF_LAT"
  3305. const m_PF_LINK = "AF_LINK"
  3306. const m_PF_LOCAL = "AF_LOCAL"
  3307. const m_PF_MAX = "AF_MAX"
  3308. const m_PF_NATM = "AF_NATM"
  3309. const m_PF_NDRV = "AF_NDRV"
  3310. const m_PF_NETBIOS = "AF_NETBIOS"
  3311. const m_PF_NS = "AF_NS"
  3312. const m_PF_OSI = "AF_ISO"
  3313. const m_PF_PIP = "pseudo_AF_PIP"
  3314. const m_PF_PPP = "AF_PPP"
  3315. const m_PF_PUP = "AF_PUP"
  3316. const m_PF_RESERVED_36 = "AF_RESERVED_36"
  3317. const m_PF_ROUTE = "AF_ROUTE"
  3318. const m_PF_RTIP = "pseudo_AF_RTIP"
  3319. const m_PF_SIP = "AF_SIP"
  3320. const m_PF_SNA = "AF_SNA"
  3321. const m_PF_SYSTEM = "AF_SYSTEM"
  3322. const m_PF_UNIX = "PF_LOCAL"
  3323. const m_PF_UNSPEC = "AF_UNSPEC"
  3324. const m_PF_UTUN = "AF_UTUN"
  3325. const m_PF_VSOCK = "AF_VSOCK"
  3326. const m_PF_XTP = "pseudo_AF_XTP"
  3327. const m_SAE_ASSOCID_ANY = 0
  3328. const m_SAE_CONNID_ANY = 0
  3329. const m_SCM_CREDS = 0x03
  3330. const m_SCM_RIGHTS = 0x01
  3331. const m_SCM_TIMESTAMP = 0x02
  3332. const m_SCM_TIMESTAMP_MONOTONIC = 0x04
  3333. const m_SHUT_RD = 0
  3334. const m_SHUT_RDWR = 2
  3335. const m_SHUT_WR = 1
  3336. const m_SOCK_DGRAM = 2
  3337. const m_SOCK_MAXADDRLEN = 255
  3338. const m_SOCK_RAW = 3
  3339. const m_SOCK_RDM = 4
  3340. const m_SOCK_SEQPACKET = 5
  3341. const m_SOCK_STREAM = 1
  3342. const m_SOL_SOCKET = 0xffff
  3343. const m_SOMAXCONN = 128
  3344. const m_SONPX_SETOPTSHUT = 0x000000001
  3345. const m_SO_ACCEPTCONN = 0x0002
  3346. const m_SO_BINDTODEVICE = 0x1134
  3347. const m_SO_BROADCAST = 0x0020
  3348. const m_SO_DEBUG = 0x0001
  3349. const m_SO_DONTROUTE = 0x0010
  3350. const m_SO_DONTTRUNC = 0x2000
  3351. const m_SO_ERROR = 0x1007
  3352. const m_SO_KEEPALIVE = 0x0008
  3353. const m_SO_LABEL = 0x1010
  3354. const m_SO_LINGER = 0x0080
  3355. const m_SO_LINGER_SEC = 0x1080
  3356. const m_SO_NETSVC_MARKING_LEVEL = 0x1119
  3357. const m_SO_NET_SERVICE_TYPE = 0x1116
  3358. const m_SO_NKE = 0x1021
  3359. const m_SO_NOADDRERR = 0x1023
  3360. const m_SO_NOSIGPIPE = 0x1022
  3361. const m_SO_NOTIFYCONFLICT = 0x1026
  3362. const m_SO_NP_EXTENSIONS = 0x1083
  3363. const m_SO_NREAD = 0x1020
  3364. const m_SO_NUMRCVPKT = 0x1112
  3365. const m_SO_NWRITE = 0x1024
  3366. const m_SO_OOBINLINE = 0x0100
  3367. const m_SO_PEERLABEL = 0x1011
  3368. const m_SO_RANDOMPORT = 0x1082
  3369. const m_SO_RCVBUF = 0x1002
  3370. const m_SO_RCVLOWAT = 0x1004
  3371. const m_SO_RCVTIMEO = 0x1006
  3372. const m_SO_RESOLVER_SIGNATURE = 0x1131
  3373. const m_SO_REUSEADDR = 0x0004
  3374. const m_SO_REUSEPORT = 0x0200
  3375. const m_SO_REUSESHAREUID = 0x1025
  3376. const m_SO_SNDBUF = 0x1001
  3377. const m_SO_SNDLOWAT = 0x1003
  3378. const m_SO_SNDTIMEO = 0x1005
  3379. const m_SO_TIMESTAMP = 0x0400
  3380. const m_SO_TIMESTAMP_MONOTONIC = 0x0800
  3381. const m_SO_TYPE = 0x1008
  3382. const m_SO_UPCALLCLOSEWAIT = 0x1027
  3383. const m_SO_USELOOPBACK = 0x0040
  3384. const m_SO_WANTMORE = 0x4000
  3385. const m_SO_WANTOOBFLAG = 0x8000
  3386. const m__SS_MAXSIZE = 128
  3387. const m_pseudo_AF_HDRCMPLT = 35
  3388. const m_pseudo_AF_KEY = 29
  3389. const m_pseudo_AF_PIP = 25
  3390. const m_pseudo_AF_RTIP = 22
  3391. const m_pseudo_AF_XTP = 19
  3392. type Tsa_family_t = uint8
  3393. type Tsocklen_t = uint32
  3394. type Tiovec = struct {
  3395. Fiov_base uintptr
  3396. Fiov_len Tsize_t
  3397. }
  3398. type Tsae_associd_t = uint32
  3399. type Tsae_connid_t = uint32
  3400. type Tsa_endpoints_t = struct {
  3401. Fsae_srcif uint32
  3402. Fsae_srcaddr uintptr
  3403. Fsae_srcaddrlen Tsocklen_t
  3404. Fsae_dstaddr uintptr
  3405. Fsae_dstaddrlen Tsocklen_t
  3406. }
  3407. type Tsa_endpoints = Tsa_endpoints_t
  3408. type Tlinger = struct {
  3409. Fl_onoff int32
  3410. Fl_linger int32
  3411. }
  3412. type Tso_np_extensions = struct {
  3413. Fnpx_flags Tu_int32_t
  3414. Fnpx_mask Tu_int32_t
  3415. }
  3416. type Tsockaddr = struct {
  3417. Fsa_len t__uint8_t
  3418. Fsa_family Tsa_family_t
  3419. Fsa_data [14]int8
  3420. }
  3421. type t__sockaddr_header = struct {
  3422. Fsa_len t__uint8_t
  3423. Fsa_family Tsa_family_t
  3424. }
  3425. type Tsockproto = struct {
  3426. Fsp_family t__uint16_t
  3427. Fsp_protocol t__uint16_t
  3428. }
  3429. type Tsockaddr_storage = struct {
  3430. Fss_len t__uint8_t
  3431. Fss_family Tsa_family_t
  3432. F__ss_pad1 [6]int8
  3433. F__ss_align t__int64_t
  3434. F__ss_pad2 [112]int8
  3435. }
  3436. type Tmsghdr = struct {
  3437. Fmsg_name uintptr
  3438. Fmsg_namelen Tsocklen_t
  3439. Fmsg_iov uintptr
  3440. Fmsg_iovlen int32
  3441. Fmsg_control uintptr
  3442. Fmsg_controllen Tsocklen_t
  3443. Fmsg_flags int32
  3444. }
  3445. type Tcmsghdr = struct {
  3446. Fcmsg_len Tsocklen_t
  3447. Fcmsg_level int32
  3448. Fcmsg_type int32
  3449. }
  3450. type Tsf_hdtr = struct {
  3451. Fheaders uintptr
  3452. Fhdr_cnt int32
  3453. Ftrailers uintptr
  3454. Ftrl_cnt int32
  3455. }
  3456. func XXdmcpFill(tls *libc.TLS, fd int32, buffer TXdmcpBufferPtr, from TXdmcpNetaddr, fromlen uintptr) (r int32) {
  3457. var newBuf uintptr
  3458. _ = newBuf
  3459. if (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fsize < int32(m_XDM_MAX_MSGLEN) {
  3460. newBuf = libc.Xmalloc(tls, uint64(m_XDM_MAX_MSGLEN))
  3461. if newBuf != 0 {
  3462. libc.Xfree(tls, (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fdata)
  3463. (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fdata = newBuf
  3464. (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fsize = int32(m_XDM_MAX_MSGLEN)
  3465. }
  3466. }
  3467. (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fpointer = 0
  3468. (*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))
  3469. if (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fcount < int32(6) {
  3470. (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fcount = 0
  3471. return m_FALSE
  3472. }
  3473. return int32(m_TRUE)
  3474. }
  3475. func XXdmcpFlush(tls *libc.TLS, fd int32, buffer TXdmcpBufferPtr, to TXdmcpNetaddr, tolen int32) (r int32) {
  3476. var result int32
  3477. _ = result
  3478. 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)))
  3479. if result != (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fpointer {
  3480. return m_FALSE
  3481. }
  3482. return int32(m_TRUE)
  3483. }
  3484. const m_Time_t = "time_t"
  3485. const m_random = "lrand48"
  3486. const m_srandom = "srand48"
  3487. /* valloc is now declared in _malloc.h */
  3488. /* Poison the following routines if -fshort-wchar is set */
  3489. func XXdmcpGenerateKey(tls *libc.TLS, key TXdmAuthKeyPtr) {
  3490. libc.Xarc4random_buf(tls, key, libc.Uint64FromInt32(8))
  3491. }
  3492. func XXdmcpCompareKeys(tls *libc.TLS, a TXdmAuthKeyPtr, b TXdmAuthKeyPtr) (r int32) {
  3493. var i int32
  3494. _ = i
  3495. i = 0
  3496. for {
  3497. if !(i < int32(8)) {
  3498. break
  3499. }
  3500. if libc.Int32FromUint8(*(*TBYTE)(unsafe.Pointer(a + uintptr(i)))) != libc.Int32FromUint8(*(*TBYTE)(unsafe.Pointer(b + uintptr(i)))) {
  3501. return m_FALSE
  3502. }
  3503. goto _1
  3504. _1:
  3505. ;
  3506. i++
  3507. }
  3508. return int32(m_TRUE)
  3509. }
  3510. func XXdmcpIncrementKey(tls *libc.TLS, key TXdmAuthKeyPtr) {
  3511. var i, v3 int32
  3512. var v1 TBYTE
  3513. var v2 uintptr
  3514. _, _, _, _ = i, v1, v2, v3
  3515. i = int32(7)
  3516. for {
  3517. v2 = key + uintptr(i)
  3518. *(*TBYTE)(unsafe.Pointer(v2))++
  3519. v1 = *(*TBYTE)(unsafe.Pointer(v2))
  3520. if !(libc.Int32FromUint8(v1) == 0) {
  3521. break
  3522. }
  3523. i--
  3524. v3 = i
  3525. if v3 < 0 {
  3526. break
  3527. }
  3528. }
  3529. }
  3530. func XXdmcpDecrementKey(tls *libc.TLS, key TXdmAuthKeyPtr) {
  3531. var i, v3 int32
  3532. var v1 TBYTE
  3533. var v2 uintptr
  3534. _, _, _, _ = i, v1, v2, v3
  3535. i = int32(7)
  3536. for {
  3537. v2 = key + uintptr(i)
  3538. v1 = *(*TBYTE)(unsafe.Pointer(v2))
  3539. *(*TBYTE)(unsafe.Pointer(v2))--
  3540. if !(libc.Int32FromUint8(v1) == 0) {
  3541. break
  3542. }
  3543. i--
  3544. v3 = i
  3545. if v3 < 0 {
  3546. break
  3547. }
  3548. }
  3549. }
  3550. /* valloc is now declared in _malloc.h */
  3551. /* Poison the following routines if -fshort-wchar is set */
  3552. func XXdmcpReadHeader(tls *libc.TLS, buffer TXdmcpBufferPtr, header TXdmcpHeaderPtr) (r int32) {
  3553. if XXdmcpReadCARD16(tls, buffer, header) != 0 && XXdmcpReadCARD16(tls, buffer, header+2) != 0 && XXdmcpReadCARD16(tls, buffer, header+4) != 0 {
  3554. return int32(m_TRUE)
  3555. }
  3556. return m_FALSE
  3557. }
  3558. func XXdmcpReadRemaining(tls *libc.TLS, buffer TXdmcpBufferPtr) (r int32) {
  3559. return (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fcount - (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fpointer
  3560. }
  3561. func XXdmcpReadARRAY8(tls *libc.TLS, buffer TXdmcpBufferPtr, array TARRAY8Ptr) (r int32) {
  3562. var i int32
  3563. _ = i
  3564. /*
  3565. * When returning FALSE, guarantee that array->data = 0.
  3566. * This allows the user to safely call XdmcpDisposeARRAY8(array)
  3567. * regardless of the return value below.
  3568. * Note that XdmcpDisposeARRAY*(array) will call free(array->data),
  3569. * so we must guarantee that array->data is NULL or a malloced pointer.
  3570. */
  3571. if !(XXdmcpReadCARD16(tls, buffer, array) != 0) {
  3572. (*T_ARRAY8)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  3573. return m_FALSE
  3574. }
  3575. if !((*T_ARRAY8)(unsafe.Pointer(array)).Flength != 0) {
  3576. (*T_ARRAY8)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  3577. return int32(m_TRUE)
  3578. }
  3579. (*T_ARRAY8)(unsafe.Pointer(array)).Fdata = libc.Xmalloc(tls, uint64((*T_ARRAY8)(unsafe.Pointer(array)).Flength)*uint64(1))
  3580. if !((*T_ARRAY8)(unsafe.Pointer(array)).Fdata != 0) {
  3581. return m_FALSE
  3582. }
  3583. i = 0
  3584. for {
  3585. if !(i < libc.Int32FromUint16((*T_ARRAY8)(unsafe.Pointer(array)).Flength)) {
  3586. break
  3587. }
  3588. if !(XXdmcpReadCARD8(tls, buffer, (*T_ARRAY8)(unsafe.Pointer(array)).Fdata+uintptr(i)) != 0) {
  3589. libc.Xfree(tls, (*T_ARRAY8)(unsafe.Pointer(array)).Fdata)
  3590. (*T_ARRAY8)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  3591. (*T_ARRAY8)(unsafe.Pointer(array)).Flength = uint16(0)
  3592. return m_FALSE
  3593. }
  3594. goto _1
  3595. _1:
  3596. ;
  3597. i++
  3598. }
  3599. return int32(m_TRUE)
  3600. }
  3601. func XXdmcpReadARRAY16(tls *libc.TLS, buffer TXdmcpBufferPtr, array TARRAY16Ptr) (r int32) {
  3602. var i int32
  3603. _ = i
  3604. /*
  3605. * When returning FALSE, guarantee that array->data = 0.
  3606. * This allows the user to safely call XdmcpDisposeARRAY16(array)
  3607. * regardless of the return value below.
  3608. * Note that XdmcpDisposeARRAY*(array) will call free(array->data),
  3609. * so we must guarantee that array->data is NULL or a malloced pointer.
  3610. */
  3611. if !(XXdmcpReadCARD8(tls, buffer, array) != 0) {
  3612. (*T_ARRAY16)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  3613. return m_FALSE
  3614. }
  3615. if !((*T_ARRAY16)(unsafe.Pointer(array)).Flength != 0) {
  3616. (*T_ARRAY16)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  3617. return int32(m_TRUE)
  3618. }
  3619. (*T_ARRAY16)(unsafe.Pointer(array)).Fdata = libc.Xmalloc(tls, uint64((*T_ARRAY16)(unsafe.Pointer(array)).Flength)*uint64(2))
  3620. if !((*T_ARRAY16)(unsafe.Pointer(array)).Fdata != 0) {
  3621. return m_FALSE
  3622. }
  3623. i = 0
  3624. for {
  3625. if !(i < libc.Int32FromUint8((*T_ARRAY16)(unsafe.Pointer(array)).Flength)) {
  3626. break
  3627. }
  3628. if !(XXdmcpReadCARD16(tls, buffer, (*T_ARRAY16)(unsafe.Pointer(array)).Fdata+uintptr(i)*2) != 0) {
  3629. libc.Xfree(tls, (*T_ARRAY16)(unsafe.Pointer(array)).Fdata)
  3630. (*T_ARRAY16)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  3631. (*T_ARRAY16)(unsafe.Pointer(array)).Flength = uint8(0)
  3632. return m_FALSE
  3633. }
  3634. goto _1
  3635. _1:
  3636. ;
  3637. i++
  3638. }
  3639. return int32(m_TRUE)
  3640. }
  3641. func XXdmcpReadARRAY32(tls *libc.TLS, buffer TXdmcpBufferPtr, array TARRAY32Ptr) (r int32) {
  3642. var i int32
  3643. _ = i
  3644. /*
  3645. * When returning FALSE, guarantee that array->data = 0.
  3646. * This allows the user to safely call XdmcpDisposeARRAY32(array)
  3647. * regardless of the return value below.
  3648. * Note that XdmcpDisposeARRAY*(array) will call free(array->data),
  3649. * so we must guarantee that array->data is NULL or a malloced pointer.
  3650. */
  3651. if !(XXdmcpReadCARD8(tls, buffer, array) != 0) {
  3652. (*T_ARRAY32)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  3653. return m_FALSE
  3654. }
  3655. if !((*T_ARRAY32)(unsafe.Pointer(array)).Flength != 0) {
  3656. (*T_ARRAY32)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  3657. return int32(m_TRUE)
  3658. }
  3659. (*T_ARRAY32)(unsafe.Pointer(array)).Fdata = libc.Xmalloc(tls, uint64((*T_ARRAY32)(unsafe.Pointer(array)).Flength)*uint64(4))
  3660. if !((*T_ARRAY32)(unsafe.Pointer(array)).Fdata != 0) {
  3661. return m_FALSE
  3662. }
  3663. i = 0
  3664. for {
  3665. if !(i < libc.Int32FromUint8((*T_ARRAY32)(unsafe.Pointer(array)).Flength)) {
  3666. break
  3667. }
  3668. if !(XXdmcpReadCARD32(tls, buffer, (*T_ARRAY32)(unsafe.Pointer(array)).Fdata+uintptr(i)*4) != 0) {
  3669. libc.Xfree(tls, (*T_ARRAY32)(unsafe.Pointer(array)).Fdata)
  3670. (*T_ARRAY32)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  3671. (*T_ARRAY32)(unsafe.Pointer(array)).Flength = uint8(0)
  3672. return m_FALSE
  3673. }
  3674. goto _1
  3675. _1:
  3676. ;
  3677. i++
  3678. }
  3679. return int32(m_TRUE)
  3680. }
  3681. func XXdmcpReadARRAYofARRAY8(tls *libc.TLS, buffer TXdmcpBufferPtr, array TARRAYofARRAY8Ptr) (r int32) {
  3682. var i TCARD8
  3683. _ = i
  3684. /*
  3685. * When returning FALSE, guarantee that array->data = 0.
  3686. * This allows the user to safely call XdmcpDisposeARRAYofARRAY8(array)
  3687. * regardless of the return value below.
  3688. * Note that XdmcpDisposeARRAY*(array) will call free(array->data),
  3689. * so we must guarantee that array->data is NULL or a malloced pointer.
  3690. */
  3691. if !(XXdmcpReadCARD8(tls, buffer, array) != 0) {
  3692. (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  3693. return m_FALSE
  3694. }
  3695. if !((*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength != 0) {
  3696. (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  3697. return int32(m_TRUE)
  3698. }
  3699. (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata = libc.Xmalloc(tls, uint64((*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength)*uint64(16))
  3700. if !((*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata != 0) {
  3701. return m_FALSE
  3702. }
  3703. i = uint8(0)
  3704. for {
  3705. if !(libc.Int32FromUint8(i) < libc.Int32FromUint8((*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength)) {
  3706. break
  3707. }
  3708. if !(XXdmcpReadARRAY8(tls, buffer, (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata+uintptr(i)*16) != 0) {
  3709. /*
  3710. * We must free all of the arrays allocated thus far in the loop
  3711. * and free array->data and finally set array->data = 0;
  3712. * The easiest way to do this is to reset the length and call
  3713. * XdmcpDisposeARRAYofARRAY8(array).
  3714. */
  3715. (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength = i
  3716. XXdmcpDisposeARRAYofARRAY8(tls, array)
  3717. return m_FALSE
  3718. }
  3719. goto _1
  3720. _1:
  3721. ;
  3722. i++
  3723. }
  3724. return int32(m_TRUE)
  3725. }
  3726. func XXdmcpReadCARD8(tls *libc.TLS, buffer TXdmcpBufferPtr, valuep TCARD8Ptr) (r int32) {
  3727. var v1 int32
  3728. var v2 uintptr
  3729. _, _ = v1, v2
  3730. if (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fpointer >= (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fcount {
  3731. return m_FALSE
  3732. }
  3733. v2 = buffer + 12
  3734. v1 = *(*int32)(unsafe.Pointer(v2))
  3735. *(*int32)(unsafe.Pointer(v2))++
  3736. *(*TCARD8)(unsafe.Pointer(valuep)) = *(*TBYTE)(unsafe.Pointer((*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fdata + uintptr(v1)))
  3737. return int32(m_TRUE)
  3738. }
  3739. func XXdmcpReadCARD16(tls *libc.TLS, buffer TXdmcpBufferPtr, valuep TCARD16Ptr) (r int32) {
  3740. bp := tls.Alloc(16)
  3741. defer tls.Free(16)
  3742. var _ /* high at bp+0 */ TCARD8
  3743. var _ /* low at bp+1 */ TCARD8
  3744. if XXdmcpReadCARD8(tls, buffer, bp) != 0 && XXdmcpReadCARD8(tls, buffer, bp+1) != 0 {
  3745. *(*TCARD16)(unsafe.Pointer(valuep)) = libc.Uint16FromInt32(libc.Int32FromUint16(uint16(*(*TCARD8)(unsafe.Pointer(bp))))<<int32(8) | libc.Int32FromUint16(uint16(*(*TCARD8)(unsafe.Pointer(bp + 1)))))
  3746. return int32(m_TRUE)
  3747. }
  3748. return m_FALSE
  3749. }
  3750. func XXdmcpReadCARD32(tls *libc.TLS, buffer TXdmcpBufferPtr, valuep TCARD32Ptr) (r int32) {
  3751. bp := tls.Alloc(16)
  3752. defer tls.Free(16)
  3753. var _ /* byte0 at bp+0 */ TCARD8
  3754. var _ /* byte1 at bp+1 */ TCARD8
  3755. var _ /* byte2 at bp+2 */ TCARD8
  3756. var _ /* byte3 at bp+3 */ TCARD8
  3757. if XXdmcpReadCARD8(tls, buffer, bp) != 0 && XXdmcpReadCARD8(tls, buffer, bp+1) != 0 && XXdmcpReadCARD8(tls, buffer, bp+2) != 0 && XXdmcpReadCARD8(tls, buffer, bp+3) != 0 {
  3758. *(*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)))
  3759. return int32(m_TRUE)
  3760. }
  3761. return m_FALSE
  3762. }
  3763. type Tauth_cblock = [8]uint8
  3764. type Tauth_wrapper_schedule = [16]Tauth_ks_struct
  3765. type Tauth_ks_struct = struct {
  3766. F_1 Tauth_cblock
  3767. }
  3768. func XXdmcpUnwrap(tls *libc.TLS, input uintptr, wrapper uintptr, output uintptr, bytes int32) {
  3769. bp := tls.Alloc(160)
  3770. defer tls.Free(160)
  3771. var i, j, k, v3 int32
  3772. var _ /* blocks at bp+8 */ [2][8]uint8
  3773. var _ /* expand_wrapper at bp+24 */ [8]uint8
  3774. var _ /* schedule at bp+32 */ Tauth_wrapper_schedule
  3775. var _ /* tmp at bp+0 */ [8]uint8
  3776. _, _, _, _ = i, j, k, v3
  3777. X_XdmcpWrapperToOddParity(tls, wrapper, bp+24)
  3778. X_XdmcpAuthSetup(tls, bp+24, bp+32)
  3779. k = 0
  3780. j = 0
  3781. for {
  3782. if !(j < bytes) {
  3783. break
  3784. }
  3785. if bytes-j < int32(8) {
  3786. return
  3787. } /* bad input length */
  3788. i = 0
  3789. for {
  3790. if !(i < int32(8)) {
  3791. break
  3792. }
  3793. *(*uint8)(unsafe.Pointer(bp + 8 + uintptr(k)*8 + uintptr(i))) = *(*uint8)(unsafe.Pointer(input + uintptr(j+i)))
  3794. goto _2
  3795. _2:
  3796. ;
  3797. i++
  3798. }
  3799. X_XdmcpAuthDoIt(tls, input+uintptr(j), bp, bp+32, 0)
  3800. /* block chaining */
  3801. if k == 0 {
  3802. v3 = int32(1)
  3803. } else {
  3804. v3 = 0
  3805. }
  3806. k = v3
  3807. i = 0
  3808. for {
  3809. if !(i < int32(8)) {
  3810. break
  3811. }
  3812. if j == 0 {
  3813. *(*uint8)(unsafe.Pointer(output + uintptr(j+i))) = (*(*[8]uint8)(unsafe.Pointer(bp)))[i]
  3814. } else {
  3815. *(*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)))))
  3816. }
  3817. goto _4
  3818. _4:
  3819. ;
  3820. i++
  3821. }
  3822. goto _1
  3823. _1:
  3824. ;
  3825. j += int32(8)
  3826. }
  3827. }
  3828. func XXdmcpWrap(tls *libc.TLS, input uintptr, wrapper uintptr, output uintptr, bytes int32) {
  3829. bp := tls.Alloc(144)
  3830. defer tls.Free(144)
  3831. var i, j, len1 int32
  3832. var _ /* expand_wrapper at bp+8 */ [8]uint8
  3833. var _ /* schedule at bp+16 */ Tauth_wrapper_schedule
  3834. var _ /* tmp at bp+0 */ [8]uint8
  3835. _, _, _ = i, j, len1
  3836. X_XdmcpWrapperToOddParity(tls, wrapper, bp+8)
  3837. X_XdmcpAuthSetup(tls, bp+8, bp+16)
  3838. j = 0
  3839. for {
  3840. if !(j < bytes) {
  3841. break
  3842. }
  3843. len1 = int32(8)
  3844. if bytes-j < len1 {
  3845. len1 = bytes - j
  3846. }
  3847. /* block chaining */
  3848. i = 0
  3849. for {
  3850. if !(i < len1) {
  3851. break
  3852. }
  3853. if j == 0 {
  3854. (*(*[8]uint8)(unsafe.Pointer(bp)))[i] = *(*uint8)(unsafe.Pointer(input + uintptr(i)))
  3855. } else {
  3856. (*(*[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)))))
  3857. }
  3858. goto _2
  3859. _2:
  3860. ;
  3861. i++
  3862. }
  3863. for {
  3864. if !(i < int32(8)) {
  3865. break
  3866. }
  3867. if j == 0 {
  3868. (*(*[8]uint8)(unsafe.Pointer(bp)))[i] = uint8(0)
  3869. } else {
  3870. (*(*[8]uint8)(unsafe.Pointer(bp)))[i] = libc.Uint8FromInt32(0 ^ libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(output + uintptr(j-int32(8)+i)))))
  3871. }
  3872. goto _3
  3873. _3:
  3874. ;
  3875. i++
  3876. }
  3877. X_XdmcpAuthDoIt(tls, bp, output+uintptr(j), bp+16, int32(1))
  3878. goto _1
  3879. _1:
  3880. ;
  3881. j += int32(8)
  3882. }
  3883. }
  3884. /*
  3885. * Given a 56 bit wrapper in XDMCP format, create a 56
  3886. * bit wrapper in 7-bits + odd parity format
  3887. */
  3888. func _OddParity(tls *libc.TLS, c uint8) (r int32) {
  3889. c = libc.Uint8FromInt32(libc.Int32FromUint8(c) ^ libc.Int32FromUint8(c)>>int32(4))
  3890. c = libc.Uint8FromInt32(libc.Int32FromUint8(c) ^ libc.Int32FromUint8(c)>>int32(2))
  3891. c = libc.Uint8FromInt32(libc.Int32FromUint8(c) ^ libc.Int32FromUint8(c)>>int32(1))
  3892. return ^libc.Int32FromUint8(c) & int32(0x1)
  3893. }
  3894. /*
  3895. * Spread the 56 bit wrapper among 8 bytes, using the upper 7 bits
  3896. * of each byte, and storing an odd parity bit in the low bit
  3897. */
  3898. func X_XdmcpWrapperToOddParity(tls *libc.TLS, in uintptr, out uintptr) {
  3899. var ashift, bshift, i int32
  3900. var c uint8
  3901. _, _, _, _ = ashift, bshift, c, i
  3902. ashift = int32(7)
  3903. bshift = int32(1)
  3904. i = 0
  3905. for {
  3906. if !(i < int32(7)) {
  3907. break
  3908. }
  3909. 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))
  3910. *(*uint8)(unsafe.Pointer(out + uintptr(i))) = libc.Uint8FromInt32(libc.Int32FromUint8(c)<<int32(1) | _OddParity(tls, c))
  3911. ashift--
  3912. bshift++
  3913. goto _1
  3914. _1:
  3915. ;
  3916. i++
  3917. }
  3918. c = *(*uint8)(unsafe.Pointer(in + uintptr(i)))
  3919. *(*uint8)(unsafe.Pointer(out + uintptr(i))) = libc.Uint8FromInt32(libc.Int32FromUint8(c)<<int32(1) | _OddParity(tls, c))
  3920. }
  3921. /* valloc is now declared in _malloc.h */
  3922. /* Poison the following routines if -fshort-wchar is set */
  3923. func XXdmcpWriteHeader(tls *libc.TLS, buffer TXdmcpBufferPtr, header TXdmcpHeaderPtr) (r int32) {
  3924. var newData uintptr
  3925. _ = newData
  3926. if (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fsize < int32(6)+libc.Int32FromUint16((*T_XdmcpHeader)(unsafe.Pointer(header)).Flength) {
  3927. newData = libc.Xcalloc(tls, uint64(m_XDM_MAX_MSGLEN), uint64(1))
  3928. if !(newData != 0) {
  3929. return m_FALSE
  3930. }
  3931. libc.Xfree(tls, (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fdata)
  3932. (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fdata = newData
  3933. (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fsize = int32(m_XDM_MAX_MSGLEN)
  3934. }
  3935. (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fpointer = 0
  3936. if !(XXdmcpWriteCARD16(tls, buffer, uint32((*T_XdmcpHeader)(unsafe.Pointer(header)).Fversion)) != 0) {
  3937. return m_FALSE
  3938. }
  3939. if !(XXdmcpWriteCARD16(tls, buffer, uint32((*T_XdmcpHeader)(unsafe.Pointer(header)).Fopcode)) != 0) {
  3940. return m_FALSE
  3941. }
  3942. if !(XXdmcpWriteCARD16(tls, buffer, uint32((*T_XdmcpHeader)(unsafe.Pointer(header)).Flength)) != 0) {
  3943. return m_FALSE
  3944. }
  3945. return int32(m_TRUE)
  3946. }
  3947. func XXdmcpWriteARRAY8(tls *libc.TLS, buffer TXdmcpBufferPtr, array TARRAY8Ptr) (r int32) {
  3948. var i int32
  3949. _ = i
  3950. if !(XXdmcpWriteCARD16(tls, buffer, uint32((*T_ARRAY8)(unsafe.Pointer(array)).Flength)) != 0) {
  3951. return m_FALSE
  3952. }
  3953. i = 0
  3954. for {
  3955. if !(i < libc.Int32FromUint16((*T_ARRAY8)(unsafe.Pointer(array)).Flength)) {
  3956. break
  3957. }
  3958. if !(XXdmcpWriteCARD8(tls, buffer, uint32(*(*TCARD8)(unsafe.Pointer((*T_ARRAY8)(unsafe.Pointer(array)).Fdata + uintptr(i))))) != 0) {
  3959. return m_FALSE
  3960. }
  3961. goto _1
  3962. _1:
  3963. ;
  3964. i++
  3965. }
  3966. return int32(m_TRUE)
  3967. }
  3968. func XXdmcpWriteARRAY16(tls *libc.TLS, buffer TXdmcpBufferPtr, array TARRAY16Ptr) (r int32) {
  3969. var i int32
  3970. _ = i
  3971. if !(XXdmcpWriteCARD8(tls, buffer, uint32((*T_ARRAY16)(unsafe.Pointer(array)).Flength)) != 0) {
  3972. return m_FALSE
  3973. }
  3974. i = 0
  3975. for {
  3976. if !(i < libc.Int32FromUint8((*T_ARRAY16)(unsafe.Pointer(array)).Flength)) {
  3977. break
  3978. }
  3979. if !(XXdmcpWriteCARD16(tls, buffer, uint32(*(*TCARD16)(unsafe.Pointer((*T_ARRAY16)(unsafe.Pointer(array)).Fdata + uintptr(i)*2)))) != 0) {
  3980. return m_FALSE
  3981. }
  3982. goto _1
  3983. _1:
  3984. ;
  3985. i++
  3986. }
  3987. return int32(m_TRUE)
  3988. }
  3989. func XXdmcpWriteARRAY32(tls *libc.TLS, buffer TXdmcpBufferPtr, array TARRAY32Ptr) (r int32) {
  3990. var i int32
  3991. _ = i
  3992. if !(XXdmcpWriteCARD8(tls, buffer, uint32((*T_ARRAY32)(unsafe.Pointer(array)).Flength)) != 0) {
  3993. return m_FALSE
  3994. }
  3995. i = 0
  3996. for {
  3997. if !(i < libc.Int32FromUint8((*T_ARRAY32)(unsafe.Pointer(array)).Flength)) {
  3998. break
  3999. }
  4000. if !(XXdmcpWriteCARD32(tls, buffer, *(*TCARD32)(unsafe.Pointer((*T_ARRAY32)(unsafe.Pointer(array)).Fdata + uintptr(i)*4))) != 0) {
  4001. return m_FALSE
  4002. }
  4003. goto _1
  4004. _1:
  4005. ;
  4006. i++
  4007. }
  4008. return int32(m_TRUE)
  4009. }
  4010. func XXdmcpWriteARRAYofARRAY8(tls *libc.TLS, buffer TXdmcpBufferPtr, array TARRAYofARRAY8Ptr) (r int32) {
  4011. var i int32
  4012. _ = i
  4013. if !(XXdmcpWriteCARD8(tls, buffer, uint32((*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength)) != 0) {
  4014. return m_FALSE
  4015. }
  4016. i = 0
  4017. for {
  4018. if !(i < libc.Int32FromUint8((*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength)) {
  4019. break
  4020. }
  4021. if !(XXdmcpWriteARRAY8(tls, buffer, (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata+uintptr(i)*16) != 0) {
  4022. return m_FALSE
  4023. }
  4024. goto _1
  4025. _1:
  4026. ;
  4027. i++
  4028. }
  4029. return int32(m_TRUE)
  4030. }
  4031. func XXdmcpWriteCARD8(tls *libc.TLS, buffer TXdmcpBufferPtr, value uint32) (r int32) {
  4032. var v1 int32
  4033. var v2 uintptr
  4034. _, _ = v1, v2
  4035. if (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fpointer >= (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fsize {
  4036. return m_FALSE
  4037. }
  4038. v2 = buffer + 12
  4039. v1 = *(*int32)(unsafe.Pointer(v2))
  4040. *(*int32)(unsafe.Pointer(v2))++
  4041. *(*TBYTE)(unsafe.Pointer((*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fdata + uintptr(v1))) = uint8(value)
  4042. return int32(m_TRUE)
  4043. }
  4044. func XXdmcpWriteCARD16(tls *libc.TLS, buffer TXdmcpBufferPtr, value uint32) (r int32) {
  4045. if !(XXdmcpWriteCARD8(tls, buffer, value>>int32(8)) != 0) {
  4046. return m_FALSE
  4047. }
  4048. if !(XXdmcpWriteCARD8(tls, buffer, value&uint32(0xff)) != 0) {
  4049. return m_FALSE
  4050. }
  4051. return int32(m_TRUE)
  4052. }
  4053. func XXdmcpWriteCARD32(tls *libc.TLS, buffer TXdmcpBufferPtr, value uint32) (r int32) {
  4054. if !(XXdmcpWriteCARD8(tls, buffer, value>>int32(24)) != 0) {
  4055. return m_FALSE
  4056. }
  4057. if !(XXdmcpWriteCARD8(tls, buffer, value>>int32(16)&uint32(0xff)) != 0) {
  4058. return m_FALSE
  4059. }
  4060. if !(XXdmcpWriteCARD8(tls, buffer, value>>int32(8)&uint32(0xff)) != 0) {
  4061. return m_FALSE
  4062. }
  4063. if !(XXdmcpWriteCARD8(tls, buffer, value&uint32(0xff)) != 0) {
  4064. return m_FALSE
  4065. }
  4066. return int32(m_TRUE)
  4067. }
  4068. const m_HALF_ITERATIONS = 8
  4069. const m_ITERATIONS = 16
  4070. /* des routines for non-usa - eay 10/9/1991 eay@psych.psy.uq.oz.au
  4071. * These routines were written for speed not size so they are bigger than
  4072. * needed. I have removed some of the loop unrolling, this will reduce
  4073. * code size at the expense of some speed.
  4074. * 25/9/1991 eay - much faster _XdmcpAuthSetup (4 times faster).
  4075. * 19/9/1991 eay - cleaned up the IP and FP code.
  4076. * 10/9/1991 eay - first release.
  4077. * The des routines this file has been made from can be found in
  4078. * ftp.psy.uq.oz.au /pub/DES
  4079. * This particular version derived from OpenBSD Revision 1.3.
  4080. */
  4081. /*
  4082. *
  4083. * Export Requirements.
  4084. * You may not export or re-export this software or any copy or
  4085. * adaptation in violation of any applicable laws or regulations.
  4086. *
  4087. * Without limiting the generality of the foregoing, hardware, software,
  4088. * technology or services provided under this license agreement may not
  4089. * be exported, reexported, transferred or downloaded to or within (or to
  4090. * a national resident of) countries under U.S. economic embargo
  4091. * including the following countries:
  4092. *
  4093. * Cuba, Iran, Libya, North Korea, Sudan and Syria. This list is subject
  4094. * to change.
  4095. *
  4096. * Hardware, software, technology or services may not be exported,
  4097. * reexported, transferred or downloaded to persons or entities listed on
  4098. * the U.S. Department of Commerce Denied Persons List, Entity List of
  4099. * proliferation concern or on any U.S. Treasury Department Designated
  4100. * Nationals exclusion list, or to parties directly or indirectly
  4101. * involved in the development or production of nuclear, chemical,
  4102. * biological weapons or in missile technology programs as specified in
  4103. * the U.S. Export Administration Regulations (15 CFR 744).
  4104. *
  4105. * By accepting this license agreement you confirm that you are not
  4106. * located in (or a national resident of) any country under U.S. economic
  4107. * embargo, not identified on any U.S. Department of Commerce Denied
  4108. * Persons List, Entity List or Treasury Department Designated Nationals
  4109. * exclusion list, and not directly or indirectly involved in the
  4110. * development or production of nuclear, chemical, biological weapons or
  4111. * in missile technology programs as specified in the U.S. Export
  4112. * Administration Regulations.
  4113. *
  4114. *
  4115. * Local Country Import Requirements. The software you are about to
  4116. * download contains cryptography technology. Some countries regulate the
  4117. * import, use and/or export of certain products with cryptography. The
  4118. * X.org Foundation makes no claims as to the applicability of local
  4119. * country import, use and/or export regulations in relation to the
  4120. * download of this product. If you are located outside the U.S. and
  4121. * Canada you are advised to consult your local country regulations to
  4122. * insure compliance.
  4123. */
  4124. var _skb = [8][64]TCARD32{
  4125. 0: {
  4126. 1: uint32(0x00000010),
  4127. 2: uint32(0x20000000),
  4128. 3: uint32(0x20000010),
  4129. 4: uint32(0x00010000),
  4130. 5: uint32(0x00010010),
  4131. 6: uint32(0x20010000),
  4132. 7: uint32(0x20010010),
  4133. 8: uint32(0x00000800),
  4134. 9: uint32(0x00000810),
  4135. 10: uint32(0x20000800),
  4136. 11: uint32(0x20000810),
  4137. 12: uint32(0x00010800),
  4138. 13: uint32(0x00010810),
  4139. 14: uint32(0x20010800),
  4140. 15: uint32(0x20010810),
  4141. 16: uint32(0x00000020),
  4142. 17: uint32(0x00000030),
  4143. 18: uint32(0x20000020),
  4144. 19: uint32(0x20000030),
  4145. 20: uint32(0x00010020),
  4146. 21: uint32(0x00010030),
  4147. 22: uint32(0x20010020),
  4148. 23: uint32(0x20010030),
  4149. 24: uint32(0x00000820),
  4150. 25: uint32(0x00000830),
  4151. 26: uint32(0x20000820),
  4152. 27: uint32(0x20000830),
  4153. 28: uint32(0x00010820),
  4154. 29: uint32(0x00010830),
  4155. 30: uint32(0x20010820),
  4156. 31: uint32(0x20010830),
  4157. 32: uint32(0x00080000),
  4158. 33: uint32(0x00080010),
  4159. 34: uint32(0x20080000),
  4160. 35: uint32(0x20080010),
  4161. 36: uint32(0x00090000),
  4162. 37: uint32(0x00090010),
  4163. 38: uint32(0x20090000),
  4164. 39: uint32(0x20090010),
  4165. 40: uint32(0x00080800),
  4166. 41: uint32(0x00080810),
  4167. 42: uint32(0x20080800),
  4168. 43: uint32(0x20080810),
  4169. 44: uint32(0x00090800),
  4170. 45: uint32(0x00090810),
  4171. 46: uint32(0x20090800),
  4172. 47: uint32(0x20090810),
  4173. 48: uint32(0x00080020),
  4174. 49: uint32(0x00080030),
  4175. 50: uint32(0x20080020),
  4176. 51: uint32(0x20080030),
  4177. 52: uint32(0x00090020),
  4178. 53: uint32(0x00090030),
  4179. 54: uint32(0x20090020),
  4180. 55: uint32(0x20090030),
  4181. 56: uint32(0x00080820),
  4182. 57: uint32(0x00080830),
  4183. 58: uint32(0x20080820),
  4184. 59: uint32(0x20080830),
  4185. 60: uint32(0x00090820),
  4186. 61: uint32(0x00090830),
  4187. 62: uint32(0x20090820),
  4188. 63: uint32(0x20090830),
  4189. },
  4190. 1: {
  4191. 1: uint32(0x02000000),
  4192. 2: uint32(0x00002000),
  4193. 3: uint32(0x02002000),
  4194. 4: uint32(0x00200000),
  4195. 5: uint32(0x02200000),
  4196. 6: uint32(0x00202000),
  4197. 7: uint32(0x02202000),
  4198. 8: uint32(0x00000004),
  4199. 9: uint32(0x02000004),
  4200. 10: uint32(0x00002004),
  4201. 11: uint32(0x02002004),
  4202. 12: uint32(0x00200004),
  4203. 13: uint32(0x02200004),
  4204. 14: uint32(0x00202004),
  4205. 15: uint32(0x02202004),
  4206. 16: uint32(0x00000400),
  4207. 17: uint32(0x02000400),
  4208. 18: uint32(0x00002400),
  4209. 19: uint32(0x02002400),
  4210. 20: uint32(0x00200400),
  4211. 21: uint32(0x02200400),
  4212. 22: uint32(0x00202400),
  4213. 23: uint32(0x02202400),
  4214. 24: uint32(0x00000404),
  4215. 25: uint32(0x02000404),
  4216. 26: uint32(0x00002404),
  4217. 27: uint32(0x02002404),
  4218. 28: uint32(0x00200404),
  4219. 29: uint32(0x02200404),
  4220. 30: uint32(0x00202404),
  4221. 31: uint32(0x02202404),
  4222. 32: uint32(0x10000000),
  4223. 33: uint32(0x12000000),
  4224. 34: uint32(0x10002000),
  4225. 35: uint32(0x12002000),
  4226. 36: uint32(0x10200000),
  4227. 37: uint32(0x12200000),
  4228. 38: uint32(0x10202000),
  4229. 39: uint32(0x12202000),
  4230. 40: uint32(0x10000004),
  4231. 41: uint32(0x12000004),
  4232. 42: uint32(0x10002004),
  4233. 43: uint32(0x12002004),
  4234. 44: uint32(0x10200004),
  4235. 45: uint32(0x12200004),
  4236. 46: uint32(0x10202004),
  4237. 47: uint32(0x12202004),
  4238. 48: uint32(0x10000400),
  4239. 49: uint32(0x12000400),
  4240. 50: uint32(0x10002400),
  4241. 51: uint32(0x12002400),
  4242. 52: uint32(0x10200400),
  4243. 53: uint32(0x12200400),
  4244. 54: uint32(0x10202400),
  4245. 55: uint32(0x12202400),
  4246. 56: uint32(0x10000404),
  4247. 57: uint32(0x12000404),
  4248. 58: uint32(0x10002404),
  4249. 59: uint32(0x12002404),
  4250. 60: uint32(0x10200404),
  4251. 61: uint32(0x12200404),
  4252. 62: uint32(0x10202404),
  4253. 63: uint32(0x12202404),
  4254. },
  4255. 2: {
  4256. 1: uint32(0x00000001),
  4257. 2: uint32(0x00040000),
  4258. 3: uint32(0x00040001),
  4259. 4: uint32(0x01000000),
  4260. 5: uint32(0x01000001),
  4261. 6: uint32(0x01040000),
  4262. 7: uint32(0x01040001),
  4263. 8: uint32(0x00000002),
  4264. 9: uint32(0x00000003),
  4265. 10: uint32(0x00040002),
  4266. 11: uint32(0x00040003),
  4267. 12: uint32(0x01000002),
  4268. 13: uint32(0x01000003),
  4269. 14: uint32(0x01040002),
  4270. 15: uint32(0x01040003),
  4271. 16: uint32(0x00000200),
  4272. 17: uint32(0x00000201),
  4273. 18: uint32(0x00040200),
  4274. 19: uint32(0x00040201),
  4275. 20: uint32(0x01000200),
  4276. 21: uint32(0x01000201),
  4277. 22: uint32(0x01040200),
  4278. 23: uint32(0x01040201),
  4279. 24: uint32(0x00000202),
  4280. 25: uint32(0x00000203),
  4281. 26: uint32(0x00040202),
  4282. 27: uint32(0x00040203),
  4283. 28: uint32(0x01000202),
  4284. 29: uint32(0x01000203),
  4285. 30: uint32(0x01040202),
  4286. 31: uint32(0x01040203),
  4287. 32: uint32(0x08000000),
  4288. 33: uint32(0x08000001),
  4289. 34: uint32(0x08040000),
  4290. 35: uint32(0x08040001),
  4291. 36: uint32(0x09000000),
  4292. 37: uint32(0x09000001),
  4293. 38: uint32(0x09040000),
  4294. 39: uint32(0x09040001),
  4295. 40: uint32(0x08000002),
  4296. 41: uint32(0x08000003),
  4297. 42: uint32(0x08040002),
  4298. 43: uint32(0x08040003),
  4299. 44: uint32(0x09000002),
  4300. 45: uint32(0x09000003),
  4301. 46: uint32(0x09040002),
  4302. 47: uint32(0x09040003),
  4303. 48: uint32(0x08000200),
  4304. 49: uint32(0x08000201),
  4305. 50: uint32(0x08040200),
  4306. 51: uint32(0x08040201),
  4307. 52: uint32(0x09000200),
  4308. 53: uint32(0x09000201),
  4309. 54: uint32(0x09040200),
  4310. 55: uint32(0x09040201),
  4311. 56: uint32(0x08000202),
  4312. 57: uint32(0x08000203),
  4313. 58: uint32(0x08040202),
  4314. 59: uint32(0x08040203),
  4315. 60: uint32(0x09000202),
  4316. 61: uint32(0x09000203),
  4317. 62: uint32(0x09040202),
  4318. 63: uint32(0x09040203),
  4319. },
  4320. 3: {
  4321. 1: uint32(0x00100000),
  4322. 2: uint32(0x00000100),
  4323. 3: uint32(0x00100100),
  4324. 4: uint32(0x00000008),
  4325. 5: uint32(0x00100008),
  4326. 6: uint32(0x00000108),
  4327. 7: uint32(0x00100108),
  4328. 8: uint32(0x00001000),
  4329. 9: uint32(0x00101000),
  4330. 10: uint32(0x00001100),
  4331. 11: uint32(0x00101100),
  4332. 12: uint32(0x00001008),
  4333. 13: uint32(0x00101008),
  4334. 14: uint32(0x00001108),
  4335. 15: uint32(0x00101108),
  4336. 16: uint32(0x04000000),
  4337. 17: uint32(0x04100000),
  4338. 18: uint32(0x04000100),
  4339. 19: uint32(0x04100100),
  4340. 20: uint32(0x04000008),
  4341. 21: uint32(0x04100008),
  4342. 22: uint32(0x04000108),
  4343. 23: uint32(0x04100108),
  4344. 24: uint32(0x04001000),
  4345. 25: uint32(0x04101000),
  4346. 26: uint32(0x04001100),
  4347. 27: uint32(0x04101100),
  4348. 28: uint32(0x04001008),
  4349. 29: uint32(0x04101008),
  4350. 30: uint32(0x04001108),
  4351. 31: uint32(0x04101108),
  4352. 32: uint32(0x00020000),
  4353. 33: uint32(0x00120000),
  4354. 34: uint32(0x00020100),
  4355. 35: uint32(0x00120100),
  4356. 36: uint32(0x00020008),
  4357. 37: uint32(0x00120008),
  4358. 38: uint32(0x00020108),
  4359. 39: uint32(0x00120108),
  4360. 40: uint32(0x00021000),
  4361. 41: uint32(0x00121000),
  4362. 42: uint32(0x00021100),
  4363. 43: uint32(0x00121100),
  4364. 44: uint32(0x00021008),
  4365. 45: uint32(0x00121008),
  4366. 46: uint32(0x00021108),
  4367. 47: uint32(0x00121108),
  4368. 48: uint32(0x04020000),
  4369. 49: uint32(0x04120000),
  4370. 50: uint32(0x04020100),
  4371. 51: uint32(0x04120100),
  4372. 52: uint32(0x04020008),
  4373. 53: uint32(0x04120008),
  4374. 54: uint32(0x04020108),
  4375. 55: uint32(0x04120108),
  4376. 56: uint32(0x04021000),
  4377. 57: uint32(0x04121000),
  4378. 58: uint32(0x04021100),
  4379. 59: uint32(0x04121100),
  4380. 60: uint32(0x04021008),
  4381. 61: uint32(0x04121008),
  4382. 62: uint32(0x04021108),
  4383. 63: uint32(0x04121108),
  4384. },
  4385. 4: {
  4386. 1: uint32(0x10000000),
  4387. 2: uint32(0x00010000),
  4388. 3: uint32(0x10010000),
  4389. 4: uint32(0x00000004),
  4390. 5: uint32(0x10000004),
  4391. 6: uint32(0x00010004),
  4392. 7: uint32(0x10010004),
  4393. 8: uint32(0x20000000),
  4394. 9: uint32(0x30000000),
  4395. 10: uint32(0x20010000),
  4396. 11: uint32(0x30010000),
  4397. 12: uint32(0x20000004),
  4398. 13: uint32(0x30000004),
  4399. 14: uint32(0x20010004),
  4400. 15: uint32(0x30010004),
  4401. 16: uint32(0x00100000),
  4402. 17: uint32(0x10100000),
  4403. 18: uint32(0x00110000),
  4404. 19: uint32(0x10110000),
  4405. 20: uint32(0x00100004),
  4406. 21: uint32(0x10100004),
  4407. 22: uint32(0x00110004),
  4408. 23: uint32(0x10110004),
  4409. 24: uint32(0x20100000),
  4410. 25: uint32(0x30100000),
  4411. 26: uint32(0x20110000),
  4412. 27: uint32(0x30110000),
  4413. 28: uint32(0x20100004),
  4414. 29: uint32(0x30100004),
  4415. 30: uint32(0x20110004),
  4416. 31: uint32(0x30110004),
  4417. 32: uint32(0x00001000),
  4418. 33: uint32(0x10001000),
  4419. 34: uint32(0x00011000),
  4420. 35: uint32(0x10011000),
  4421. 36: uint32(0x00001004),
  4422. 37: uint32(0x10001004),
  4423. 38: uint32(0x00011004),
  4424. 39: uint32(0x10011004),
  4425. 40: uint32(0x20001000),
  4426. 41: uint32(0x30001000),
  4427. 42: uint32(0x20011000),
  4428. 43: uint32(0x30011000),
  4429. 44: uint32(0x20001004),
  4430. 45: uint32(0x30001004),
  4431. 46: uint32(0x20011004),
  4432. 47: uint32(0x30011004),
  4433. 48: uint32(0x00101000),
  4434. 49: uint32(0x10101000),
  4435. 50: uint32(0x00111000),
  4436. 51: uint32(0x10111000),
  4437. 52: uint32(0x00101004),
  4438. 53: uint32(0x10101004),
  4439. 54: uint32(0x00111004),
  4440. 55: uint32(0x10111004),
  4441. 56: uint32(0x20101000),
  4442. 57: uint32(0x30101000),
  4443. 58: uint32(0x20111000),
  4444. 59: uint32(0x30111000),
  4445. 60: uint32(0x20101004),
  4446. 61: uint32(0x30101004),
  4447. 62: uint32(0x20111004),
  4448. 63: uint32(0x30111004),
  4449. },
  4450. 5: {
  4451. 1: uint32(0x08000000),
  4452. 2: uint32(0x00000008),
  4453. 3: uint32(0x08000008),
  4454. 4: uint32(0x00000400),
  4455. 5: uint32(0x08000400),
  4456. 6: uint32(0x00000408),
  4457. 7: uint32(0x08000408),
  4458. 8: uint32(0x00020000),
  4459. 9: uint32(0x08020000),
  4460. 10: uint32(0x00020008),
  4461. 11: uint32(0x08020008),
  4462. 12: uint32(0x00020400),
  4463. 13: uint32(0x08020400),
  4464. 14: uint32(0x00020408),
  4465. 15: uint32(0x08020408),
  4466. 16: uint32(0x00000001),
  4467. 17: uint32(0x08000001),
  4468. 18: uint32(0x00000009),
  4469. 19: uint32(0x08000009),
  4470. 20: uint32(0x00000401),
  4471. 21: uint32(0x08000401),
  4472. 22: uint32(0x00000409),
  4473. 23: uint32(0x08000409),
  4474. 24: uint32(0x00020001),
  4475. 25: uint32(0x08020001),
  4476. 26: uint32(0x00020009),
  4477. 27: uint32(0x08020009),
  4478. 28: uint32(0x00020401),
  4479. 29: uint32(0x08020401),
  4480. 30: uint32(0x00020409),
  4481. 31: uint32(0x08020409),
  4482. 32: uint32(0x02000000),
  4483. 33: uint32(0x0A000000),
  4484. 34: uint32(0x02000008),
  4485. 35: uint32(0x0A000008),
  4486. 36: uint32(0x02000400),
  4487. 37: uint32(0x0A000400),
  4488. 38: uint32(0x02000408),
  4489. 39: uint32(0x0A000408),
  4490. 40: uint32(0x02020000),
  4491. 41: uint32(0x0A020000),
  4492. 42: uint32(0x02020008),
  4493. 43: uint32(0x0A020008),
  4494. 44: uint32(0x02020400),
  4495. 45: uint32(0x0A020400),
  4496. 46: uint32(0x02020408),
  4497. 47: uint32(0x0A020408),
  4498. 48: uint32(0x02000001),
  4499. 49: uint32(0x0A000001),
  4500. 50: uint32(0x02000009),
  4501. 51: uint32(0x0A000009),
  4502. 52: uint32(0x02000401),
  4503. 53: uint32(0x0A000401),
  4504. 54: uint32(0x02000409),
  4505. 55: uint32(0x0A000409),
  4506. 56: uint32(0x02020001),
  4507. 57: uint32(0x0A020001),
  4508. 58: uint32(0x02020009),
  4509. 59: uint32(0x0A020009),
  4510. 60: uint32(0x02020401),
  4511. 61: uint32(0x0A020401),
  4512. 62: uint32(0x02020409),
  4513. 63: uint32(0x0A020409),
  4514. },
  4515. 6: {
  4516. 1: uint32(0x00000100),
  4517. 2: uint32(0x00080000),
  4518. 3: uint32(0x00080100),
  4519. 4: uint32(0x01000000),
  4520. 5: uint32(0x01000100),
  4521. 6: uint32(0x01080000),
  4522. 7: uint32(0x01080100),
  4523. 8: uint32(0x00000010),
  4524. 9: uint32(0x00000110),
  4525. 10: uint32(0x00080010),
  4526. 11: uint32(0x00080110),
  4527. 12: uint32(0x01000010),
  4528. 13: uint32(0x01000110),
  4529. 14: uint32(0x01080010),
  4530. 15: uint32(0x01080110),
  4531. 16: uint32(0x00200000),
  4532. 17: uint32(0x00200100),
  4533. 18: uint32(0x00280000),
  4534. 19: uint32(0x00280100),
  4535. 20: uint32(0x01200000),
  4536. 21: uint32(0x01200100),
  4537. 22: uint32(0x01280000),
  4538. 23: uint32(0x01280100),
  4539. 24: uint32(0x00200010),
  4540. 25: uint32(0x00200110),
  4541. 26: uint32(0x00280010),
  4542. 27: uint32(0x00280110),
  4543. 28: uint32(0x01200010),
  4544. 29: uint32(0x01200110),
  4545. 30: uint32(0x01280010),
  4546. 31: uint32(0x01280110),
  4547. 32: uint32(0x00000200),
  4548. 33: uint32(0x00000300),
  4549. 34: uint32(0x00080200),
  4550. 35: uint32(0x00080300),
  4551. 36: uint32(0x01000200),
  4552. 37: uint32(0x01000300),
  4553. 38: uint32(0x01080200),
  4554. 39: uint32(0x01080300),
  4555. 40: uint32(0x00000210),
  4556. 41: uint32(0x00000310),
  4557. 42: uint32(0x00080210),
  4558. 43: uint32(0x00080310),
  4559. 44: uint32(0x01000210),
  4560. 45: uint32(0x01000310),
  4561. 46: uint32(0x01080210),
  4562. 47: uint32(0x01080310),
  4563. 48: uint32(0x00200200),
  4564. 49: uint32(0x00200300),
  4565. 50: uint32(0x00280200),
  4566. 51: uint32(0x00280300),
  4567. 52: uint32(0x01200200),
  4568. 53: uint32(0x01200300),
  4569. 54: uint32(0x01280200),
  4570. 55: uint32(0x01280300),
  4571. 56: uint32(0x00200210),
  4572. 57: uint32(0x00200310),
  4573. 58: uint32(0x00280210),
  4574. 59: uint32(0x00280310),
  4575. 60: uint32(0x01200210),
  4576. 61: uint32(0x01200310),
  4577. 62: uint32(0x01280210),
  4578. 63: uint32(0x01280310),
  4579. },
  4580. 7: {
  4581. 1: uint32(0x04000000),
  4582. 2: uint32(0x00040000),
  4583. 3: uint32(0x04040000),
  4584. 4: uint32(0x00000002),
  4585. 5: uint32(0x04000002),
  4586. 6: uint32(0x00040002),
  4587. 7: uint32(0x04040002),
  4588. 8: uint32(0x00002000),
  4589. 9: uint32(0x04002000),
  4590. 10: uint32(0x00042000),
  4591. 11: uint32(0x04042000),
  4592. 12: uint32(0x00002002),
  4593. 13: uint32(0x04002002),
  4594. 14: uint32(0x00042002),
  4595. 15: uint32(0x04042002),
  4596. 16: uint32(0x00000020),
  4597. 17: uint32(0x04000020),
  4598. 18: uint32(0x00040020),
  4599. 19: uint32(0x04040020),
  4600. 20: uint32(0x00000022),
  4601. 21: uint32(0x04000022),
  4602. 22: uint32(0x00040022),
  4603. 23: uint32(0x04040022),
  4604. 24: uint32(0x00002020),
  4605. 25: uint32(0x04002020),
  4606. 26: uint32(0x00042020),
  4607. 27: uint32(0x04042020),
  4608. 28: uint32(0x00002022),
  4609. 29: uint32(0x04002022),
  4610. 30: uint32(0x00042022),
  4611. 31: uint32(0x04042022),
  4612. 32: uint32(0x00000800),
  4613. 33: uint32(0x04000800),
  4614. 34: uint32(0x00040800),
  4615. 35: uint32(0x04040800),
  4616. 36: uint32(0x00000802),
  4617. 37: uint32(0x04000802),
  4618. 38: uint32(0x00040802),
  4619. 39: uint32(0x04040802),
  4620. 40: uint32(0x00002800),
  4621. 41: uint32(0x04002800),
  4622. 42: uint32(0x00042800),
  4623. 43: uint32(0x04042800),
  4624. 44: uint32(0x00002802),
  4625. 45: uint32(0x04002802),
  4626. 46: uint32(0x00042802),
  4627. 47: uint32(0x04042802),
  4628. 48: uint32(0x00000820),
  4629. 49: uint32(0x04000820),
  4630. 50: uint32(0x00040820),
  4631. 51: uint32(0x04040820),
  4632. 52: uint32(0x00000822),
  4633. 53: uint32(0x04000822),
  4634. 54: uint32(0x00040822),
  4635. 55: uint32(0x04040822),
  4636. 56: uint32(0x00002820),
  4637. 57: uint32(0x04002820),
  4638. 58: uint32(0x00042820),
  4639. 59: uint32(0x04042820),
  4640. 60: uint32(0x00002822),
  4641. 61: uint32(0x04002822),
  4642. 62: uint32(0x00042822),
  4643. 63: uint32(0x04042822),
  4644. },
  4645. }
  4646. var _SPtrans = [8][64]TCARD32{
  4647. 0: {
  4648. 0: uint32(0x00410100),
  4649. 1: uint32(0x00010000),
  4650. 2: uint32(0x40400000),
  4651. 3: uint32(0x40410100),
  4652. 4: uint32(0x00400000),
  4653. 5: uint32(0x40010100),
  4654. 6: uint32(0x40010000),
  4655. 7: uint32(0x40400000),
  4656. 8: uint32(0x40010100),
  4657. 9: uint32(0x00410100),
  4658. 10: uint32(0x00410000),
  4659. 11: uint32(0x40000100),
  4660. 12: uint32(0x40400100),
  4661. 13: uint32(0x00400000),
  4662. 15: uint32(0x40010000),
  4663. 16: uint32(0x00010000),
  4664. 17: uint32(0x40000000),
  4665. 18: uint32(0x00400100),
  4666. 19: uint32(0x00010100),
  4667. 20: uint32(0x40410100),
  4668. 21: uint32(0x00410000),
  4669. 22: uint32(0x40000100),
  4670. 23: uint32(0x00400100),
  4671. 24: uint32(0x40000000),
  4672. 25: uint32(0x00000100),
  4673. 26: uint32(0x00010100),
  4674. 27: uint32(0x40410000),
  4675. 28: uint32(0x00000100),
  4676. 29: uint32(0x40400100),
  4677. 30: uint32(0x40410000),
  4678. 33: uint32(0x40410100),
  4679. 34: uint32(0x00400100),
  4680. 35: uint32(0x40010000),
  4681. 36: uint32(0x00410100),
  4682. 37: uint32(0x00010000),
  4683. 38: uint32(0x40000100),
  4684. 39: uint32(0x00400100),
  4685. 40: uint32(0x40410000),
  4686. 41: uint32(0x00000100),
  4687. 42: uint32(0x00010100),
  4688. 43: uint32(0x40400000),
  4689. 44: uint32(0x40010100),
  4690. 45: uint32(0x40000000),
  4691. 46: uint32(0x40400000),
  4692. 47: uint32(0x00410000),
  4693. 48: uint32(0x40410100),
  4694. 49: uint32(0x00010100),
  4695. 50: uint32(0x00410000),
  4696. 51: uint32(0x40400100),
  4697. 52: uint32(0x00400000),
  4698. 53: uint32(0x40000100),
  4699. 54: uint32(0x40010000),
  4700. 56: uint32(0x00010000),
  4701. 57: uint32(0x00400000),
  4702. 58: uint32(0x40400100),
  4703. 59: uint32(0x00410100),
  4704. 60: uint32(0x40000000),
  4705. 61: uint32(0x40410000),
  4706. 62: uint32(0x00000100),
  4707. 63: uint32(0x40010100),
  4708. },
  4709. 1: {
  4710. 0: uint32(0x08021002),
  4711. 2: uint32(0x00021000),
  4712. 3: uint32(0x08020000),
  4713. 4: uint32(0x08000002),
  4714. 5: uint32(0x00001002),
  4715. 6: uint32(0x08001000),
  4716. 7: uint32(0x00021000),
  4717. 8: uint32(0x00001000),
  4718. 9: uint32(0x08020002),
  4719. 10: uint32(0x00000002),
  4720. 11: uint32(0x08001000),
  4721. 12: uint32(0x00020002),
  4722. 13: uint32(0x08021000),
  4723. 14: uint32(0x08020000),
  4724. 15: uint32(0x00000002),
  4725. 16: uint32(0x00020000),
  4726. 17: uint32(0x08001002),
  4727. 18: uint32(0x08020002),
  4728. 19: uint32(0x00001000),
  4729. 20: uint32(0x00021002),
  4730. 21: uint32(0x08000000),
  4731. 23: uint32(0x00020002),
  4732. 24: uint32(0x08001002),
  4733. 25: uint32(0x00021002),
  4734. 26: uint32(0x08021000),
  4735. 27: uint32(0x08000002),
  4736. 28: uint32(0x08000000),
  4737. 29: uint32(0x00020000),
  4738. 30: uint32(0x00001002),
  4739. 31: uint32(0x08021002),
  4740. 32: uint32(0x00020002),
  4741. 33: uint32(0x08021000),
  4742. 34: uint32(0x08001000),
  4743. 35: uint32(0x00021002),
  4744. 36: uint32(0x08021002),
  4745. 37: uint32(0x00020002),
  4746. 38: uint32(0x08000002),
  4747. 40: uint32(0x08000000),
  4748. 41: uint32(0x00001002),
  4749. 42: uint32(0x00020000),
  4750. 43: uint32(0x08020002),
  4751. 44: uint32(0x00001000),
  4752. 45: uint32(0x08000000),
  4753. 46: uint32(0x00021002),
  4754. 47: uint32(0x08001002),
  4755. 48: uint32(0x08021000),
  4756. 49: uint32(0x00001000),
  4757. 51: uint32(0x08000002),
  4758. 52: uint32(0x00000002),
  4759. 53: uint32(0x08021002),
  4760. 54: uint32(0x00021000),
  4761. 55: uint32(0x08020000),
  4762. 56: uint32(0x08020002),
  4763. 57: uint32(0x00020000),
  4764. 58: uint32(0x00001002),
  4765. 59: uint32(0x08001000),
  4766. 60: uint32(0x08001002),
  4767. 61: uint32(0x00000002),
  4768. 62: uint32(0x08020000),
  4769. 63: uint32(0x00021000),
  4770. },
  4771. 2: {
  4772. 0: uint32(0x20800000),
  4773. 1: uint32(0x00808020),
  4774. 2: uint32(0x00000020),
  4775. 3: uint32(0x20800020),
  4776. 4: uint32(0x20008000),
  4777. 5: uint32(0x00800000),
  4778. 6: uint32(0x20800020),
  4779. 7: uint32(0x00008020),
  4780. 8: uint32(0x00800020),
  4781. 9: uint32(0x00008000),
  4782. 10: uint32(0x00808000),
  4783. 11: uint32(0x20000000),
  4784. 12: uint32(0x20808020),
  4785. 13: uint32(0x20000020),
  4786. 14: uint32(0x20000000),
  4787. 15: uint32(0x20808000),
  4788. 17: uint32(0x20008000),
  4789. 18: uint32(0x00808020),
  4790. 19: uint32(0x00000020),
  4791. 20: uint32(0x20000020),
  4792. 21: uint32(0x20808020),
  4793. 22: uint32(0x00008000),
  4794. 23: uint32(0x20800000),
  4795. 24: uint32(0x20808000),
  4796. 25: uint32(0x00800020),
  4797. 26: uint32(0x20008020),
  4798. 27: uint32(0x00808000),
  4799. 28: uint32(0x00008020),
  4800. 30: uint32(0x00800000),
  4801. 31: uint32(0x20008020),
  4802. 32: uint32(0x00808020),
  4803. 33: uint32(0x00000020),
  4804. 34: uint32(0x20000000),
  4805. 35: uint32(0x00008000),
  4806. 36: uint32(0x20000020),
  4807. 37: uint32(0x20008000),
  4808. 38: uint32(0x00808000),
  4809. 39: uint32(0x20800020),
  4810. 41: uint32(0x00808020),
  4811. 42: uint32(0x00008020),
  4812. 43: uint32(0x20808000),
  4813. 44: uint32(0x20008000),
  4814. 45: uint32(0x00800000),
  4815. 46: uint32(0x20808020),
  4816. 47: uint32(0x20000000),
  4817. 48: uint32(0x20008020),
  4818. 49: uint32(0x20800000),
  4819. 50: uint32(0x00800000),
  4820. 51: uint32(0x20808020),
  4821. 52: uint32(0x00008000),
  4822. 53: uint32(0x00800020),
  4823. 54: uint32(0x20800020),
  4824. 55: uint32(0x00008020),
  4825. 56: uint32(0x00800020),
  4826. 58: uint32(0x20808000),
  4827. 59: uint32(0x20000020),
  4828. 60: uint32(0x20800000),
  4829. 61: uint32(0x20008020),
  4830. 62: uint32(0x00000020),
  4831. 63: uint32(0x00808000),
  4832. },
  4833. 3: {
  4834. 0: uint32(0x00080201),
  4835. 1: uint32(0x02000200),
  4836. 2: uint32(0x00000001),
  4837. 3: uint32(0x02080201),
  4838. 5: uint32(0x02080000),
  4839. 6: uint32(0x02000201),
  4840. 7: uint32(0x00080001),
  4841. 8: uint32(0x02080200),
  4842. 9: uint32(0x02000001),
  4843. 10: uint32(0x02000000),
  4844. 11: uint32(0x00000201),
  4845. 12: uint32(0x02000001),
  4846. 13: uint32(0x00080201),
  4847. 14: uint32(0x00080000),
  4848. 15: uint32(0x02000000),
  4849. 16: uint32(0x02080001),
  4850. 17: uint32(0x00080200),
  4851. 18: uint32(0x00000200),
  4852. 19: uint32(0x00000001),
  4853. 20: uint32(0x00080200),
  4854. 21: uint32(0x02000201),
  4855. 22: uint32(0x02080000),
  4856. 23: uint32(0x00000200),
  4857. 24: uint32(0x00000201),
  4858. 26: uint32(0x00080001),
  4859. 27: uint32(0x02080200),
  4860. 28: uint32(0x02000200),
  4861. 29: uint32(0x02080001),
  4862. 30: uint32(0x02080201),
  4863. 31: uint32(0x00080000),
  4864. 32: uint32(0x02080001),
  4865. 33: uint32(0x00000201),
  4866. 34: uint32(0x00080000),
  4867. 35: uint32(0x02000001),
  4868. 36: uint32(0x00080200),
  4869. 37: uint32(0x02000200),
  4870. 38: uint32(0x00000001),
  4871. 39: uint32(0x02080000),
  4872. 40: uint32(0x02000201),
  4873. 42: uint32(0x00000200),
  4874. 43: uint32(0x00080001),
  4875. 45: uint32(0x02080001),
  4876. 46: uint32(0x02080200),
  4877. 47: uint32(0x00000200),
  4878. 48: uint32(0x02000000),
  4879. 49: uint32(0x02080201),
  4880. 50: uint32(0x00080201),
  4881. 51: uint32(0x00080000),
  4882. 52: uint32(0x02080201),
  4883. 53: uint32(0x00000001),
  4884. 54: uint32(0x02000200),
  4885. 55: uint32(0x00080201),
  4886. 56: uint32(0x00080001),
  4887. 57: uint32(0x00080200),
  4888. 58: uint32(0x02080000),
  4889. 59: uint32(0x02000201),
  4890. 60: uint32(0x00000201),
  4891. 61: uint32(0x02000000),
  4892. 62: uint32(0x02000001),
  4893. 63: uint32(0x02080200),
  4894. },
  4895. 4: {
  4896. 0: uint32(0x01000000),
  4897. 1: uint32(0x00002000),
  4898. 2: uint32(0x00000080),
  4899. 3: uint32(0x01002084),
  4900. 4: uint32(0x01002004),
  4901. 5: uint32(0x01000080),
  4902. 6: uint32(0x00002084),
  4903. 7: uint32(0x01002000),
  4904. 8: uint32(0x00002000),
  4905. 9: uint32(0x00000004),
  4906. 10: uint32(0x01000004),
  4907. 11: uint32(0x00002080),
  4908. 12: uint32(0x01000084),
  4909. 13: uint32(0x01002004),
  4910. 14: uint32(0x01002080),
  4911. 16: uint32(0x00002080),
  4912. 17: uint32(0x01000000),
  4913. 18: uint32(0x00002004),
  4914. 19: uint32(0x00000084),
  4915. 20: uint32(0x01000080),
  4916. 21: uint32(0x00002084),
  4917. 23: uint32(0x01000004),
  4918. 24: uint32(0x00000004),
  4919. 25: uint32(0x01000084),
  4920. 26: uint32(0x01002084),
  4921. 27: uint32(0x00002004),
  4922. 28: uint32(0x01002000),
  4923. 29: uint32(0x00000080),
  4924. 30: uint32(0x00000084),
  4925. 31: uint32(0x01002080),
  4926. 32: uint32(0x01002080),
  4927. 33: uint32(0x01000084),
  4928. 34: uint32(0x00002004),
  4929. 35: uint32(0x01002000),
  4930. 36: uint32(0x00002000),
  4931. 37: uint32(0x00000004),
  4932. 38: uint32(0x01000004),
  4933. 39: uint32(0x01000080),
  4934. 40: uint32(0x01000000),
  4935. 41: uint32(0x00002080),
  4936. 42: uint32(0x01002084),
  4937. 44: uint32(0x00002084),
  4938. 45: uint32(0x01000000),
  4939. 46: uint32(0x00000080),
  4940. 47: uint32(0x00002004),
  4941. 48: uint32(0x01000084),
  4942. 49: uint32(0x00000080),
  4943. 51: uint32(0x01002084),
  4944. 52: uint32(0x01002004),
  4945. 53: uint32(0x01002080),
  4946. 54: uint32(0x00000084),
  4947. 55: uint32(0x00002000),
  4948. 56: uint32(0x00002080),
  4949. 57: uint32(0x01002004),
  4950. 58: uint32(0x01000080),
  4951. 59: uint32(0x00000084),
  4952. 60: uint32(0x00000004),
  4953. 61: uint32(0x00002084),
  4954. 62: uint32(0x01002000),
  4955. 63: uint32(0x01000004),
  4956. },
  4957. 5: {
  4958. 0: uint32(0x10000008),
  4959. 1: uint32(0x00040008),
  4960. 3: uint32(0x10040400),
  4961. 4: uint32(0x00040008),
  4962. 5: uint32(0x00000400),
  4963. 6: uint32(0x10000408),
  4964. 7: uint32(0x00040000),
  4965. 8: uint32(0x00000408),
  4966. 9: uint32(0x10040408),
  4967. 10: uint32(0x00040400),
  4968. 11: uint32(0x10000000),
  4969. 12: uint32(0x10000400),
  4970. 13: uint32(0x10000008),
  4971. 14: uint32(0x10040000),
  4972. 15: uint32(0x00040408),
  4973. 16: uint32(0x00040000),
  4974. 17: uint32(0x10000408),
  4975. 18: uint32(0x10040008),
  4976. 20: uint32(0x00000400),
  4977. 21: uint32(0x00000008),
  4978. 22: uint32(0x10040400),
  4979. 23: uint32(0x10040008),
  4980. 24: uint32(0x10040408),
  4981. 25: uint32(0x10040000),
  4982. 26: uint32(0x10000000),
  4983. 27: uint32(0x00000408),
  4984. 28: uint32(0x00000008),
  4985. 29: uint32(0x00040400),
  4986. 30: uint32(0x00040408),
  4987. 31: uint32(0x10000400),
  4988. 32: uint32(0x00000408),
  4989. 33: uint32(0x10000000),
  4990. 34: uint32(0x10000400),
  4991. 35: uint32(0x00040408),
  4992. 36: uint32(0x10040400),
  4993. 37: uint32(0x00040008),
  4994. 39: uint32(0x10000400),
  4995. 40: uint32(0x10000000),
  4996. 41: uint32(0x00000400),
  4997. 42: uint32(0x10040008),
  4998. 43: uint32(0x00040000),
  4999. 44: uint32(0x00040008),
  5000. 45: uint32(0x10040408),
  5001. 46: uint32(0x00040400),
  5002. 47: uint32(0x00000008),
  5003. 48: uint32(0x10040408),
  5004. 49: uint32(0x00040400),
  5005. 50: uint32(0x00040000),
  5006. 51: uint32(0x10000408),
  5007. 52: uint32(0x10000008),
  5008. 53: uint32(0x10040000),
  5009. 54: uint32(0x00040408),
  5010. 56: uint32(0x00000400),
  5011. 57: uint32(0x10000008),
  5012. 58: uint32(0x10000408),
  5013. 59: uint32(0x10040400),
  5014. 60: uint32(0x10040000),
  5015. 61: uint32(0x00000408),
  5016. 62: uint32(0x00000008),
  5017. 63: uint32(0x10040008),
  5018. },
  5019. 6: {
  5020. 0: uint32(0x00000800),
  5021. 1: uint32(0x00000040),
  5022. 2: uint32(0x00200040),
  5023. 3: uint32(0x80200000),
  5024. 4: uint32(0x80200840),
  5025. 5: uint32(0x80000800),
  5026. 6: uint32(0x00000840),
  5027. 8: uint32(0x00200000),
  5028. 9: uint32(0x80200040),
  5029. 10: uint32(0x80000040),
  5030. 11: uint32(0x00200800),
  5031. 12: uint32(0x80000000),
  5032. 13: uint32(0x00200840),
  5033. 14: uint32(0x00200800),
  5034. 15: uint32(0x80000040),
  5035. 16: uint32(0x80200040),
  5036. 17: uint32(0x00000800),
  5037. 18: uint32(0x80000800),
  5038. 19: uint32(0x80200840),
  5039. 21: uint32(0x00200040),
  5040. 22: uint32(0x80200000),
  5041. 23: uint32(0x00000840),
  5042. 24: uint32(0x80200800),
  5043. 25: uint32(0x80000840),
  5044. 26: uint32(0x00200840),
  5045. 27: uint32(0x80000000),
  5046. 28: uint32(0x80000840),
  5047. 29: uint32(0x80200800),
  5048. 30: uint32(0x00000040),
  5049. 31: uint32(0x00200000),
  5050. 32: uint32(0x80000840),
  5051. 33: uint32(0x00200800),
  5052. 34: uint32(0x80200800),
  5053. 35: uint32(0x80000040),
  5054. 36: uint32(0x00000800),
  5055. 37: uint32(0x00000040),
  5056. 38: uint32(0x00200000),
  5057. 39: uint32(0x80200800),
  5058. 40: uint32(0x80200040),
  5059. 41: uint32(0x80000840),
  5060. 42: uint32(0x00000840),
  5061. 44: uint32(0x00000040),
  5062. 45: uint32(0x80200000),
  5063. 46: uint32(0x80000000),
  5064. 47: uint32(0x00200040),
  5065. 49: uint32(0x80200040),
  5066. 50: uint32(0x00200040),
  5067. 51: uint32(0x00000840),
  5068. 52: uint32(0x80000040),
  5069. 53: uint32(0x00000800),
  5070. 54: uint32(0x80200840),
  5071. 55: uint32(0x00200000),
  5072. 56: uint32(0x00200840),
  5073. 57: uint32(0x80000000),
  5074. 58: uint32(0x80000800),
  5075. 59: uint32(0x80200840),
  5076. 60: uint32(0x80200000),
  5077. 61: uint32(0x00200840),
  5078. 62: uint32(0x00200800),
  5079. 63: uint32(0x80000800),
  5080. },
  5081. 7: {
  5082. 0: uint32(0x04100010),
  5083. 1: uint32(0x04104000),
  5084. 2: uint32(0x00004010),
  5085. 4: uint32(0x04004000),
  5086. 5: uint32(0x00100010),
  5087. 6: uint32(0x04100000),
  5088. 7: uint32(0x04104010),
  5089. 8: uint32(0x00000010),
  5090. 9: uint32(0x04000000),
  5091. 10: uint32(0x00104000),
  5092. 11: uint32(0x00004010),
  5093. 12: uint32(0x00104010),
  5094. 13: uint32(0x04004010),
  5095. 14: uint32(0x04000010),
  5096. 15: uint32(0x04100000),
  5097. 16: uint32(0x00004000),
  5098. 17: uint32(0x00104010),
  5099. 18: uint32(0x00100010),
  5100. 19: uint32(0x04004000),
  5101. 20: uint32(0x04104010),
  5102. 21: uint32(0x04000010),
  5103. 23: uint32(0x00104000),
  5104. 24: uint32(0x04000000),
  5105. 25: uint32(0x00100000),
  5106. 26: uint32(0x04004010),
  5107. 27: uint32(0x04100010),
  5108. 28: uint32(0x00100000),
  5109. 29: uint32(0x00004000),
  5110. 30: uint32(0x04104000),
  5111. 31: uint32(0x00000010),
  5112. 32: uint32(0x00100000),
  5113. 33: uint32(0x00004000),
  5114. 34: uint32(0x04000010),
  5115. 35: uint32(0x04104010),
  5116. 36: uint32(0x00004010),
  5117. 37: uint32(0x04000000),
  5118. 39: uint32(0x00104000),
  5119. 40: uint32(0x04100010),
  5120. 41: uint32(0x04004010),
  5121. 42: uint32(0x04004000),
  5122. 43: uint32(0x00100010),
  5123. 44: uint32(0x04104000),
  5124. 45: uint32(0x00000010),
  5125. 46: uint32(0x00100010),
  5126. 47: uint32(0x04004000),
  5127. 48: uint32(0x04104010),
  5128. 49: uint32(0x00100000),
  5129. 50: uint32(0x04100000),
  5130. 51: uint32(0x04000010),
  5131. 52: uint32(0x00104000),
  5132. 53: uint32(0x00004010),
  5133. 54: uint32(0x04004010),
  5134. 55: uint32(0x04100000),
  5135. 56: uint32(0x00000010),
  5136. 57: uint32(0x04104000),
  5137. 58: uint32(0x00104010),
  5138. 60: uint32(0x04000000),
  5139. 61: uint32(0x04100010),
  5140. 62: uint32(0x00004000),
  5141. 63: uint32(0x00104010),
  5142. },
  5143. }
  5144. var _shifts2 = [16]int8{
  5145. 2: int8(1),
  5146. 3: int8(1),
  5147. 4: int8(1),
  5148. 5: int8(1),
  5149. 6: int8(1),
  5150. 7: int8(1),
  5151. 9: int8(1),
  5152. 10: int8(1),
  5153. 11: int8(1),
  5154. 12: int8(1),
  5155. 13: int8(1),
  5156. 14: int8(1),
  5157. }
  5158. func X_XdmcpAuthSetup(tls *libc.TLS, key uintptr, schedule uintptr) {
  5159. var c, d, s, t TCARD32
  5160. var i int32
  5161. var in, k, v1, v10, v11, v2, v3, v4, v5, v6, v7, v8 uintptr
  5162. _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = c, d, i, in, k, s, t, v1, v10, v11, v2, v3, v4, v5, v6, v7, v8
  5163. k = schedule
  5164. in = key
  5165. v1 = in
  5166. in++
  5167. c = uint32(*(*TCARD8)(unsafe.Pointer(v1)))
  5168. v2 = in
  5169. in++
  5170. c |= uint32(*(*TCARD8)(unsafe.Pointer(v2))) << int32(8)
  5171. v3 = in
  5172. in++
  5173. c |= uint32(*(*TCARD8)(unsafe.Pointer(v3))) << int32(16)
  5174. v4 = in
  5175. in++
  5176. c |= uint32(*(*TCARD8)(unsafe.Pointer(v4))) << int32(24)
  5177. v5 = in
  5178. in++
  5179. d = uint32(*(*TCARD8)(unsafe.Pointer(v5)))
  5180. v6 = in
  5181. in++
  5182. d |= uint32(*(*TCARD8)(unsafe.Pointer(v6))) << int32(8)
  5183. v7 = in
  5184. in++
  5185. d |= uint32(*(*TCARD8)(unsafe.Pointer(v7))) << int32(16)
  5186. v8 = in
  5187. in++
  5188. d |= uint32(*(*TCARD8)(unsafe.Pointer(v8))) << int32(24)
  5189. /* do PC1 in 60 simple operations */
  5190. t = (d>>libc.Int32FromInt32(4) ^ c) & libc.Uint32FromInt32(libc.Int32FromInt32(0x0f0f0f0f))
  5191. c ^= t
  5192. d ^= t << libc.Int32FromInt32(4)
  5193. t = (c<<(libc.Int32FromInt32(16) - -libc.Int32FromInt32(2)) ^ c) & libc.Uint32FromUint32(0xcccc0000)
  5194. c = c ^ t ^ t>>(libc.Int32FromInt32(16) - -libc.Int32FromInt32(2))
  5195. t = (c<<(libc.Int32FromInt32(16) - -libc.Int32FromInt32(1)) ^ c) & libc.Uint32FromUint32(0xaaaa0000)
  5196. c = c ^ t ^ t>>(libc.Int32FromInt32(16) - -libc.Int32FromInt32(1))
  5197. t = (c<<(libc.Int32FromInt32(16)-libc.Int32FromInt32(8)) ^ c) & libc.Uint32FromInt32(libc.Int32FromInt32(0x00ff0000))
  5198. c = c ^ t ^ t>>(libc.Int32FromInt32(16)-libc.Int32FromInt32(8))
  5199. t = (c<<(libc.Int32FromInt32(16) - -libc.Int32FromInt32(1)) ^ c) & libc.Uint32FromUint32(0xaaaa0000)
  5200. c = c ^ t ^ t>>(libc.Int32FromInt32(16) - -libc.Int32FromInt32(1))
  5201. t = (d<<(libc.Int32FromInt32(16) - -libc.Int32FromInt32(8)) ^ d) & libc.Uint32FromUint32(0xff000000)
  5202. d = d ^ t ^ t>>(libc.Int32FromInt32(16) - -libc.Int32FromInt32(8))
  5203. t = (d<<(libc.Int32FromInt32(16)-libc.Int32FromInt32(8)) ^ d) & libc.Uint32FromInt32(libc.Int32FromInt32(0x00ff0000))
  5204. d = d ^ t ^ t>>(libc.Int32FromInt32(16)-libc.Int32FromInt32(8))
  5205. t = (d<<(libc.Int32FromInt32(16)-libc.Int32FromInt32(2)) ^ d) & libc.Uint32FromInt32(libc.Int32FromInt32(0x33330000))
  5206. d = d ^ t ^ t>>(libc.Int32FromInt32(16)-libc.Int32FromInt32(2))
  5207. d = d&uint32(0x00aa00aa)<<int32(7) | d&uint32(0x55005500)>>int32(7) | d&uint32(0xaa55aa55)
  5208. d = d>>libc.Int32FromInt32(8) | c&uint32(0xf0000000)>>int32(4)
  5209. c &= uint32(0x0fffffff)
  5210. i = 0
  5211. for {
  5212. if !(i < int32(m_ITERATIONS)) {
  5213. break
  5214. }
  5215. if _shifts2[i] != 0 {
  5216. c = c>>libc.Int32FromInt32(2) | c<<libc.Int32FromInt32(26)
  5217. d = d>>libc.Int32FromInt32(2) | d<<libc.Int32FromInt32(26)
  5218. } else {
  5219. c = c>>libc.Int32FromInt32(1) | c<<libc.Int32FromInt32(27)
  5220. d = d>>libc.Int32FromInt32(1) | d<<libc.Int32FromInt32(27)
  5221. }
  5222. c &= uint32(0x0fffffff)
  5223. d &= uint32(0x0fffffff)
  5224. /* could be a few less shifts but I am to lazy at this
  5225. * point in time to investigate */
  5226. 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))
  5227. 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))
  5228. /* table contained 0213 4657 */
  5229. v10 = k
  5230. k += 4
  5231. *(*TCARD32)(unsafe.Pointer(v10)) = t<<libc.Int32FromInt32(16) | s&libc.Uint32FromInt32(0x0000ffff)
  5232. s = s>>libc.Int32FromInt32(16) | t&libc.Uint32FromUint32(0xffff0000)
  5233. s = s<<libc.Int32FromInt32(4) | s>>libc.Int32FromInt32(28)
  5234. v11 = k
  5235. k += 4
  5236. *(*TCARD32)(unsafe.Pointer(v11)) = s
  5237. goto _9
  5238. _9:
  5239. ;
  5240. i++
  5241. }
  5242. return
  5243. }
  5244. func X_XdmcpAuthDoIt(tls *libc.TLS, input uintptr, output uintptr, ks uintptr, encrypt int32) {
  5245. var i int32
  5246. var in, out, s, v1, v11, v12, v13, v14, v15, v16, v17, v18, v2, v3, v4, v5, v6, v7, v8 uintptr
  5247. var l, r, t, u TCARD32
  5248. _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = i, in, l, out, r, s, t, u, v1, v11, v12, v13, v14, v15, v16, v17, v18, v2, v3, v4, v5, v6, v7, v8
  5249. in = input
  5250. out = output
  5251. v1 = in
  5252. in++
  5253. l = uint32(*(*TCARD8)(unsafe.Pointer(v1)))
  5254. v2 = in
  5255. in++
  5256. l |= uint32(*(*TCARD8)(unsafe.Pointer(v2))) << int32(8)
  5257. v3 = in
  5258. in++
  5259. l |= uint32(*(*TCARD8)(unsafe.Pointer(v3))) << int32(16)
  5260. v4 = in
  5261. in++
  5262. l |= uint32(*(*TCARD8)(unsafe.Pointer(v4))) << int32(24)
  5263. v5 = in
  5264. in++
  5265. r = uint32(*(*TCARD8)(unsafe.Pointer(v5)))
  5266. v6 = in
  5267. in++
  5268. r |= uint32(*(*TCARD8)(unsafe.Pointer(v6))) << int32(8)
  5269. v7 = in
  5270. in++
  5271. r |= uint32(*(*TCARD8)(unsafe.Pointer(v7))) << int32(16)
  5272. v8 = in
  5273. in++
  5274. r |= uint32(*(*TCARD8)(unsafe.Pointer(v8))) << int32(24)
  5275. /* do IP */
  5276. t = (r>>libc.Int32FromInt32(4) ^ l) & libc.Uint32FromInt32(libc.Int32FromInt32(0x0f0f0f0f))
  5277. l ^= t
  5278. r ^= t << libc.Int32FromInt32(4)
  5279. t = (l>>libc.Int32FromInt32(16) ^ r) & libc.Uint32FromInt32(libc.Int32FromInt32(0x0000ffff))
  5280. r ^= t
  5281. l ^= t << libc.Int32FromInt32(16)
  5282. t = (r>>libc.Int32FromInt32(2) ^ l) & libc.Uint32FromInt32(libc.Int32FromInt32(0x33333333))
  5283. l ^= t
  5284. r ^= t << libc.Int32FromInt32(2)
  5285. t = (l>>libc.Int32FromInt32(8) ^ r) & libc.Uint32FromInt32(libc.Int32FromInt32(0x00ff00ff))
  5286. r ^= t
  5287. l ^= t << libc.Int32FromInt32(8)
  5288. t = (r>>libc.Int32FromInt32(1) ^ l) & libc.Uint32FromInt32(libc.Int32FromInt32(0x55555555))
  5289. l ^= t
  5290. r ^= t << libc.Int32FromInt32(1)
  5291. /* r and l are reversed - remember that :-) */
  5292. t = l
  5293. l = r
  5294. r = t
  5295. s = ks
  5296. if encrypt != 0 {
  5297. i = 0
  5298. for {
  5299. if !(i < libc.Int32FromInt32(m_ITERATIONS)*libc.Int32FromInt32(2)) {
  5300. break
  5301. }
  5302. t = r<<libc.Int32FromInt32(1) | r>>libc.Int32FromInt32(31)
  5303. u = t ^ *(*TCARD32)(unsafe.Pointer(s + uintptr(i)*4))
  5304. t = t ^ *(*TCARD32)(unsafe.Pointer(s + uintptr(i+int32(1))*4))
  5305. t = t>>libc.Int32FromInt32(4) | t<<libc.Int32FromInt32(28)
  5306. 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 */
  5307. t = l<<libc.Int32FromInt32(1) | l>>libc.Int32FromInt32(31)
  5308. u = t ^ *(*TCARD32)(unsafe.Pointer(s + uintptr(i+int32(2))*4))
  5309. t = t ^ *(*TCARD32)(unsafe.Pointer(s + uintptr(i+int32(2)+int32(1))*4))
  5310. t = t>>libc.Int32FromInt32(4) | t<<libc.Int32FromInt32(28)
  5311. 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 */
  5312. goto _9
  5313. _9:
  5314. ;
  5315. i += int32(4)
  5316. }
  5317. } else {
  5318. i = libc.Int32FromInt32(m_ITERATIONS)*libc.Int32FromInt32(2) - libc.Int32FromInt32(2)
  5319. for {
  5320. if !(i >= 0) {
  5321. break
  5322. }
  5323. t = r<<libc.Int32FromInt32(1) | r>>libc.Int32FromInt32(31)
  5324. u = t ^ *(*TCARD32)(unsafe.Pointer(s + uintptr(i)*4))
  5325. t = t ^ *(*TCARD32)(unsafe.Pointer(s + uintptr(i+int32(1))*4))
  5326. t = t>>libc.Int32FromInt32(4) | t<<libc.Int32FromInt32(28)
  5327. 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 */
  5328. t = l<<libc.Int32FromInt32(1) | l>>libc.Int32FromInt32(31)
  5329. u = t ^ *(*TCARD32)(unsafe.Pointer(s + uintptr(i-int32(2))*4))
  5330. t = t ^ *(*TCARD32)(unsafe.Pointer(s + uintptr(i-int32(2)+int32(1))*4))
  5331. t = t>>libc.Int32FromInt32(4) | t<<libc.Int32FromInt32(28)
  5332. 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 */
  5333. goto _10
  5334. _10:
  5335. ;
  5336. i -= int32(4)
  5337. }
  5338. }
  5339. /* swap l and r
  5340. * we will not do the swap so just remember they are
  5341. * reversed for the rest of the subroutine
  5342. * luckily by FP fixes this problem :-) */
  5343. t = (r>>libc.Int32FromInt32(1) ^ l) & libc.Uint32FromInt32(libc.Int32FromInt32(0x55555555))
  5344. l ^= t
  5345. r ^= t << libc.Int32FromInt32(1)
  5346. t = (l>>libc.Int32FromInt32(8) ^ r) & libc.Uint32FromInt32(libc.Int32FromInt32(0x00ff00ff))
  5347. r ^= t
  5348. l ^= t << libc.Int32FromInt32(8)
  5349. t = (r>>libc.Int32FromInt32(2) ^ l) & libc.Uint32FromInt32(libc.Int32FromInt32(0x33333333))
  5350. l ^= t
  5351. r ^= t << libc.Int32FromInt32(2)
  5352. t = (l>>libc.Int32FromInt32(16) ^ r) & libc.Uint32FromInt32(libc.Int32FromInt32(0x0000ffff))
  5353. r ^= t
  5354. l ^= t << libc.Int32FromInt32(16)
  5355. t = (r>>libc.Int32FromInt32(4) ^ l) & libc.Uint32FromInt32(libc.Int32FromInt32(0x0f0f0f0f))
  5356. l ^= t
  5357. r ^= t << libc.Int32FromInt32(4)
  5358. v11 = out
  5359. out++
  5360. *(*TCARD8)(unsafe.Pointer(v11)) = uint8(l & libc.Uint32FromInt32(0xff))
  5361. v12 = out
  5362. out++
  5363. *(*TCARD8)(unsafe.Pointer(v12)) = uint8(l >> libc.Int32FromInt32(8) & libc.Uint32FromInt32(0xff))
  5364. v13 = out
  5365. out++
  5366. *(*TCARD8)(unsafe.Pointer(v13)) = uint8(l >> libc.Int32FromInt32(16) & libc.Uint32FromInt32(0xff))
  5367. v14 = out
  5368. out++
  5369. *(*TCARD8)(unsafe.Pointer(v14)) = uint8(l >> libc.Int32FromInt32(24) & libc.Uint32FromInt32(0xff))
  5370. v15 = out
  5371. out++
  5372. *(*TCARD8)(unsafe.Pointer(v15)) = uint8(r & libc.Uint32FromInt32(0xff))
  5373. v16 = out
  5374. out++
  5375. *(*TCARD8)(unsafe.Pointer(v16)) = uint8(r >> libc.Int32FromInt32(8) & libc.Uint32FromInt32(0xff))
  5376. v17 = out
  5377. out++
  5378. *(*TCARD8)(unsafe.Pointer(v17)) = uint8(r >> libc.Int32FromInt32(16) & libc.Uint32FromInt32(0xff))
  5379. v18 = out
  5380. out++
  5381. *(*TCARD8)(unsafe.Pointer(v18)) = uint8(r >> libc.Int32FromInt32(24) & libc.Uint32FromInt32(0xff))
  5382. return
  5383. }