ccgo_darwin_amd64.go 170 KB

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