ccgo_darwin_amd64.go 160 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625
  1. // Code generated for darwin/amd64 by 'gcc -no-main-minimize --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-link-errors -ignore-unsupported-alignment -ignore-link-errors -I /Users/jnml/src/modernc.org/builder/.exclude/modernc.org/libc/include/darwin/amd64 -I /Users/jnml/src/modernc.org/builder/.exclude/modernc.org/limd/include/darwin/amd64 -o .libs/libbsd.0.dylib.go .libs/closefrom.o.go .libs/expand_number.o.go .libs/explicit_bzero.o.go .libs/flopen.o.go .libs/freezero.o.go .libs/getbsize.o.go .libs/dehumanize_number.o.go .libs/humanize_number.o.go .libs/pidfile.o.go .libs/setproctitle.o.go .libs/pwcache.o.go .libs/reallocarray.o.go .libs/recallocarray.o.go .libs/strtoi.o.go .libs/strtou.o.go -mlong-double-64 -pthread', DO NOT EDIT.
  2. //go:build darwin && amd64
  3. package libbsd
  4. import (
  5. "reflect"
  6. "unsafe"
  7. "modernc.org/libc"
  8. )
  9. var _ reflect.Type
  10. var _ unsafe.Pointer
  11. const m_ACCESSX_MAX_DESCRIPTORS = 100
  12. const m_ATTRIBUTION_NAME_MAX = 255
  13. const m_AT_EACCESS = 0x0010
  14. const m_AT_FDONLY = 0x0400
  15. const m_AT_REALDEV = 0x0200
  16. const m_AT_REMOVEDIR = 0x0080
  17. const m_AT_SYMLINK_FOLLOW = 0x0040
  18. const m_AT_SYMLINK_NOFOLLOW = 0x0020
  19. const m_AT_SYMLINK_NOFOLLOW_ANY = 0x0800
  20. const m_BADSIG = "SIG_ERR"
  21. const m_BC_BASE_MAX = 99
  22. const m_BC_DIM_MAX = 2048
  23. const m_BC_SCALE_MAX = 99
  24. const m_BC_STRING_MAX = 1000
  25. const m_BIG_ENDIAN = "__DARWIN_BIG_ENDIAN"
  26. const m_BUFSIZ = 1024
  27. const m_BUS_ADRALN = 1
  28. const m_BUS_ADRERR = 2
  29. const m_BUS_NOOP = 0
  30. const m_BUS_OBJERR = 3
  31. const m_BYTE_ORDER = "__DARWIN_BYTE_ORDER"
  32. const m_CHARCLASS_NAME_MAX = 14
  33. const m_CHILD_MAX = 266
  34. const m_CLD_CONTINUED = 6
  35. const m_CLD_DUMPED = 3
  36. const m_CLD_EXITED = 1
  37. const m_CLD_KILLED = 2
  38. const m_CLD_NOOP = 0
  39. const m_CLD_STOPPED = 5
  40. const m_CLD_TRAPPED = 4
  41. const m_CLK_TCK = "__DARWIN_CLK_TCK"
  42. const m_COLL_WEIGHTS_MAX = 2
  43. const m_CPF_IGNORE_MODE = 0x0002
  44. const m_CPF_OVERWRITE = 0x0001
  45. const m_CPUMON_MAKE_FATAL = 0x1000
  46. const m_DIRBLKSIZ = 1024
  47. const m_DTF_HIDEW = 0x0001
  48. const m_DTF_NODUP = 0x0002
  49. const m_DTF_REWIND = 0x0004
  50. const m_DT_BLK = 6
  51. const m_DT_CHR = 2
  52. const m_DT_DIR = 4
  53. const m_DT_FIFO = 1
  54. const m_DT_LNK = 10
  55. const m_DT_REG = 8
  56. const m_DT_SOCK = 12
  57. const m_DT_UNKNOWN = 0
  58. const m_DT_WHT = 14
  59. const m_E2BIG = 7
  60. const m_EACCES = 13
  61. const m_EADDRINUSE = 48
  62. const m_EADDRNOTAVAIL = 49
  63. const m_EAFNOSUPPORT = 47
  64. const m_EAGAIN = 35
  65. const m_EALREADY = 37
  66. const m_EAUTH = 80
  67. const m_EBADARCH = 86
  68. const m_EBADEXEC = 85
  69. const m_EBADF = 9
  70. const m_EBADMACHO = 88
  71. const m_EBADMSG = 94
  72. const m_EBADRPC = 72
  73. const m_EBUSY = 16
  74. const m_ECANCELED = 89
  75. const m_ECHILD = 10
  76. const m_ECONNABORTED = 53
  77. const m_ECONNREFUSED = 61
  78. const m_ECONNRESET = 54
  79. const m_EDEADLK = 11
  80. const m_EDESTADDRREQ = 39
  81. const m_EDEVERR = 83
  82. const m_EDOM = 33
  83. const m_EDQUOT = 69
  84. const m_EEXIST = 17
  85. const m_EFAULT = 14
  86. const m_EFBIG = 27
  87. const m_EFTYPE = 79
  88. const m_EF_IS_PURGEABLE = 0x00000008
  89. const m_EF_IS_SPARSE = 0x00000010
  90. const m_EF_IS_SYNC_ROOT = 0x00000004
  91. const m_EF_IS_SYNTHETIC = 0x00000020
  92. const m_EF_MAY_SHARE_BLOCKS = 0x00000001
  93. const m_EF_NO_XATTRS = 0x00000002
  94. const m_EF_SHARES_ALL_BLOCKS = 0x00000040
  95. const m_EHOSTDOWN = 64
  96. const m_EHOSTUNREACH = 65
  97. const m_EIDRM = 90
  98. const m_EILSEQ = 92
  99. const m_EINPROGRESS = 36
  100. const m_EINTR = 4
  101. const m_EINVAL = 22
  102. const m_EIO = 5
  103. const m_EISCONN = 56
  104. const m_EISDIR = 21
  105. const m_ELAST = 106
  106. const m_ELOOP = 62
  107. const m_EMFILE = 24
  108. const m_EMLINK = 31
  109. const m_EMSGSIZE = 40
  110. const m_EMULTIHOP = 95
  111. const m_ENAMETOOLONG = 63
  112. const m_ENEEDAUTH = 81
  113. const m_ENETDOWN = 50
  114. const m_ENETRESET = 52
  115. const m_ENETUNREACH = 51
  116. const m_ENFILE = 23
  117. const m_ENOATTR = 93
  118. const m_ENOBUFS = 55
  119. const m_ENODATA = 96
  120. const m_ENODEV = 19
  121. const m_ENOENT = 2
  122. const m_ENOEXEC = 8
  123. const m_ENOLCK = 77
  124. const m_ENOLINK = 97
  125. const m_ENOMEM = 12
  126. const m_ENOMSG = 91
  127. const m_ENOPOLICY = 103
  128. const m_ENOPROTOOPT = 42
  129. const m_ENOSPC = 28
  130. const m_ENOSR = 98
  131. const m_ENOSTR = 99
  132. const m_ENOSYS = 78
  133. const m_ENOTBLK = 15
  134. const m_ENOTCONN = 57
  135. const m_ENOTDIR = 20
  136. const m_ENOTEMPTY = 66
  137. const m_ENOTRECOVERABLE = 104
  138. const m_ENOTSOCK = 38
  139. const m_ENOTSUP = 45
  140. const m_ENOTTY = 25
  141. const m_ENXIO = 6
  142. const m_EOPNOTSUPP = 102
  143. const m_EOVERFLOW = 84
  144. const m_EOWNERDEAD = 105
  145. const m_EPERM = 1
  146. const m_EPFNOSUPPORT = 46
  147. const m_EPIPE = 32
  148. const m_EPROCLIM = 67
  149. const m_EPROCUNAVAIL = 76
  150. const m_EPROGMISMATCH = 75
  151. const m_EPROGUNAVAIL = 74
  152. const m_EPROTO = 100
  153. const m_EPROTONOSUPPORT = 43
  154. const m_EPROTOTYPE = 41
  155. const m_EPWROFF = 82
  156. const m_EQFULL = 106
  157. const m_EQUIV_CLASS_MAX = 2
  158. const m_ERANGE = 34
  159. const m_EREMOTE = 71
  160. const m_EROFS = 30
  161. const m_ERPCMISMATCH = 73
  162. const m_ESHLIBVERS = 87
  163. const m_ESHUTDOWN = 58
  164. const m_ESOCKTNOSUPPORT = 44
  165. const m_ESPIPE = 29
  166. const m_ESRCH = 3
  167. const m_ESTALE = 70
  168. const m_ETIME = 101
  169. const m_ETIMEDOUT = 60
  170. const m_ETOOMANYREFS = 59
  171. const m_ETXTBSY = 26
  172. const m_EUSERS = 68
  173. const m_EWOULDBLOCK = "EAGAIN"
  174. const m_EXDEV = 18
  175. const m_EXIT_FAILURE = 1
  176. const m_EXIT_SUCCESS = 0
  177. const m_EXPR_NEST_MAX = 32
  178. const m_FAPPEND = "O_APPEND"
  179. const m_FASYNC = "O_ASYNC"
  180. const m_FCNTL_FS_SPECIFIC_BASE = 0x00010000
  181. const m_FD_CLOEXEC = 1
  182. const m_FD_SETSIZE = "__DARWIN_FD_SETSIZE"
  183. const m_FFDSYNC = "O_DSYNC"
  184. const m_FFSYNC = "O_FSYNC"
  185. const m_FILENAME_MAX = 1024
  186. const m_FILESEC_GUID = "FILESEC_UUID"
  187. const m_FNDELAY = "O_NONBLOCK"
  188. const m_FNONBLOCK = "O_NONBLOCK"
  189. const m_FOOTPRINT_INTERVAL_RESET = 0x1
  190. const m_FOPEN_MAX = 20
  191. const m_FPARSELN_UNESCALL = 0x0f
  192. const m_FPARSELN_UNESCCOMM = 0x04
  193. const m_FPARSELN_UNESCCONT = 0x02
  194. const m_FPARSELN_UNESCESC = 0x01
  195. const m_FPARSELN_UNESCREST = 0x08
  196. const m_FPE_FLTDIV = 1
  197. const m_FPE_FLTINV = 5
  198. const m_FPE_FLTOVF = 2
  199. const m_FPE_FLTRES = 4
  200. const m_FPE_FLTSUB = 6
  201. const m_FPE_FLTUND = 3
  202. const m_FPE_INTDIV = 7
  203. const m_FPE_INTOVF = 8
  204. const m_FPE_NOOP = 0
  205. const m_FP_CHOP = 3
  206. const m_FP_PREC_24B = 0
  207. const m_FP_PREC_53B = 2
  208. const m_FP_PREC_64B = 3
  209. const m_FP_RND_DOWN = 1
  210. const m_FP_RND_NEAR = 0
  211. const m_FP_RND_UP = 2
  212. const m_FP_STATE_BYTES = 512
  213. const m_FREAD = 0x00000001
  214. const m_FWRITE = 0x00000002
  215. const m_F_ADDFILESIGS = 61
  216. const m_F_ADDFILESIGS_FOR_DYLD_SIM = 83
  217. const m_F_ADDFILESIGS_INFO = 103
  218. const m_F_ADDFILESIGS_RETURN = 97
  219. const m_F_ADDFILESUPPL = 104
  220. const m_F_ADDSIGS = 59
  221. const m_F_ADDSIGS_MAIN_BINARY = 113
  222. const m_F_ALLOCATEALL = 0x00000004
  223. const m_F_ALLOCATECONTIG = 0x00000002
  224. const m_F_ALLOCATEPERSIST = 0x00000008
  225. const m_F_ATTRIBUTION_TAG = 111
  226. const m_F_BARRIERFSYNC = 85
  227. const m_F_CHECK_LV = 98
  228. const m_F_CHKCLEAN = 41
  229. const m_F_CREATE_TAG = 0x00000001
  230. const m_F_DELETE_TAG = 0x00000002
  231. const m_F_DUPFD = 0
  232. const m_F_DUPFD_CLOEXEC = 67
  233. const m_F_FINDSIGS = 78
  234. const m_F_FLUSH_DATA = 40
  235. const m_F_FREEZE_FS = 53
  236. const m_F_FULLFSYNC = 51
  237. const m_F_GETCODEDIR = 72
  238. const m_F_GETFD = 1
  239. const m_F_GETFL = 3
  240. const m_F_GETLEASE = 107
  241. const m_F_GETLK = 7
  242. const m_F_GETLKPID = 66
  243. const m_F_GETNOSIGPIPE = 74
  244. const m_F_GETOWN = 5
  245. const m_F_GETPATH = 50
  246. const m_F_GETPATH_MTMINFO = 71
  247. const m_F_GETPATH_NOFIRMLINK = 102
  248. const m_F_GETPROTECTIONCLASS = 63
  249. const m_F_GETPROTECTIONLEVEL = 77
  250. const m_F_GETSIGSINFO = 105
  251. const m_F_GLOBAL_NOCACHE = 55
  252. const m_F_LOCK = 1
  253. const m_F_LOG2PHYS = 49
  254. const m_F_LOG2PHYS_EXT = 65
  255. const m_F_NOCACHE = 48
  256. const m_F_NODIRECT = 62
  257. const m_F_OFD_GETLK = 92
  258. const m_F_OFD_SETLK = 90
  259. const m_F_OFD_SETLKW = 91
  260. const m_F_OFD_SETLKWTIMEOUT = 93
  261. const m_F_OK = 0
  262. const m_F_PATHPKG_CHECK = 52
  263. const m_F_PEOFPOSMODE = 3
  264. const m_F_PREALLOCATE = 42
  265. const m_F_PUNCHHOLE = 99
  266. const m_F_QUERY_TAG = 0x00000004
  267. const m_F_RDADVISE = 44
  268. const m_F_RDAHEAD = 45
  269. const m_F_RDLCK = 1
  270. const m_F_SETBACKINGSTORE = 70
  271. const m_F_SETFD = 2
  272. const m_F_SETFL = 4
  273. const m_F_SETLEASE = 106
  274. const m_F_SETLK = 8
  275. const m_F_SETLKW = 9
  276. const m_F_SETLKWTIMEOUT = 10
  277. const m_F_SETNOSIGPIPE = 73
  278. const m_F_SETOWN = 6
  279. const m_F_SETPROTECTIONCLASS = 64
  280. const m_F_SETSIZE = 43
  281. const m_F_SINGLE_WRITER = 76
  282. const m_F_SPECULATIVE_READ = 101
  283. const m_F_TEST = 3
  284. const m_F_THAW_FS = 54
  285. const m_F_TLOCK = 2
  286. const m_F_TRANSCODEKEY = 75
  287. const m_F_TRANSFEREXTENTS = 110
  288. const m_F_TRIM_ACTIVE_FILE = 100
  289. const m_F_ULOCK = 0
  290. const m_F_UNLCK = 2
  291. const m_F_VOLPOSMODE = 4
  292. const m_F_WRLCK = 3
  293. const m_GETSIGSINFO_PLATFORM_BINARY = 1
  294. const m_GID_MAX = 2147483647
  295. const m_HAVE_ASPRINTF = 1
  296. const m_HAVE_CONFIG_H = 1
  297. const m_HAVE_DECL_ENVIRON = 0
  298. const m_HAVE_DIRENT_H = 1
  299. const m_HAVE_DIRFD = 1
  300. const m_HAVE_DLFCN_H = 1
  301. const m_HAVE_FLOCK = 1
  302. const m_HAVE_FUNOPEN = 1
  303. const m_HAVE_GETENTROPY = 1
  304. const m_HAVE_GETLINE = 1
  305. const m_HAVE_GROUP_FROM_GID = 1
  306. const m_HAVE_GRP_H = 1
  307. const m_HAVE_INTTYPES_H = 1
  308. const m_HAVE_OPEN_MEMSTREAM = 1
  309. const m_HAVE_PWD_H = 1
  310. const m_HAVE_STDINT_H = 1
  311. const m_HAVE_STDIO_H = 1
  312. const m_HAVE_STDLIB_H = 1
  313. const m_HAVE_STRINGS_H = 1
  314. const m_HAVE_STRING_H = 1
  315. const m_HAVE_SYSCONF = 1
  316. const m_HAVE_SYS_DIR_H = 1
  317. const m_HAVE_SYS_STAT_H = 1
  318. const m_HAVE_SYS_TYPES_H = 1
  319. const m_HAVE_TYPEOF = 1
  320. const m_HAVE_UNISTD_H = 1
  321. const m_HAVE_USER_FROM_UID = 1
  322. const m_HAVE_VASPRINTF = 1
  323. const m_HAVE_WCHAR_H = 1
  324. const m_HAVE___PROGNAME = 1
  325. const m_HN_AUTOSCALE = 0x20
  326. const m_HN_B = 0x04
  327. const m_HN_DECIMAL = 0x01
  328. const m_HN_DIVISOR_1000 = 0x08
  329. const m_HN_GETSCALE = 0x10
  330. const m_HN_IEC_PREFIXES = 0x10
  331. const m_HN_NOSPACE = 0x02
  332. const m_ILL_BADSTK = 8
  333. const m_ILL_COPROC = 7
  334. const m_ILL_ILLADR = 5
  335. const m_ILL_ILLOPC = 1
  336. const m_ILL_ILLOPN = 4
  337. const m_ILL_ILLTRP = 2
  338. const m_ILL_NOOP = 0
  339. const m_ILL_PRVOPC = 3
  340. const m_ILL_PRVREG = 6
  341. const m_INT16_MAX = 32767
  342. const m_INT32_MAX = 2147483647
  343. const m_INT64_MAX = 9223372036854775807
  344. const m_INT8_MAX = 127
  345. const m_INTPTR_MAX = 9223372036854775807
  346. const m_INT_FAST16_MAX = "INT16_MAX"
  347. const m_INT_FAST16_MIN = "INT16_MIN"
  348. const m_INT_FAST32_MAX = "INT32_MAX"
  349. const m_INT_FAST32_MIN = "INT32_MIN"
  350. const m_INT_FAST64_MAX = "INT64_MAX"
  351. const m_INT_FAST64_MIN = "INT64_MIN"
  352. const m_INT_FAST8_MAX = "INT8_MAX"
  353. const m_INT_FAST8_MIN = "INT8_MIN"
  354. const m_INT_LEAST16_MAX = "INT16_MAX"
  355. const m_INT_LEAST16_MIN = "INT16_MIN"
  356. const m_INT_LEAST32_MAX = "INT32_MAX"
  357. const m_INT_LEAST32_MIN = "INT32_MIN"
  358. const m_INT_LEAST64_MAX = "INT64_MAX"
  359. const m_INT_LEAST64_MIN = "INT64_MIN"
  360. const m_INT_LEAST8_MAX = "INT8_MAX"
  361. const m_INT_LEAST8_MIN = "INT8_MIN"
  362. const m_IOPOL_APPLICATION = "IOPOL_STANDARD"
  363. const m_IOPOL_ATIME_UPDATES_DEFAULT = 0
  364. const m_IOPOL_ATIME_UPDATES_OFF = 1
  365. const m_IOPOL_DEFAULT = 0
  366. const m_IOPOL_IMPORTANT = 1
  367. const m_IOPOL_MATERIALIZE_DATALESS_FILES_DEFAULT = 0
  368. const m_IOPOL_MATERIALIZE_DATALESS_FILES_OFF = 1
  369. const m_IOPOL_MATERIALIZE_DATALESS_FILES_ON = 2
  370. const m_IOPOL_NORMAL = "IOPOL_IMPORTANT"
  371. const m_IOPOL_PASSIVE = 2
  372. const m_IOPOL_SCOPE_DARWIN_BG = 2
  373. const m_IOPOL_SCOPE_PROCESS = 0
  374. const m_IOPOL_SCOPE_THREAD = 1
  375. const m_IOPOL_STANDARD = 5
  376. const m_IOPOL_THROTTLE = 3
  377. const m_IOPOL_TYPE_DISK = 0
  378. const m_IOPOL_TYPE_VFS_ALLOW_LOW_SPACE_WRITES = 9
  379. const m_IOPOL_TYPE_VFS_ATIME_UPDATES = 2
  380. const m_IOPOL_TYPE_VFS_DISALLOW_RW_FOR_O_EVTONLY = 10
  381. const m_IOPOL_TYPE_VFS_IGNORE_CONTENT_PROTECTION = 6
  382. const m_IOPOL_TYPE_VFS_IGNORE_PERMISSIONS = 7
  383. const m_IOPOL_TYPE_VFS_MATERIALIZE_DATALESS_FILES = 3
  384. const m_IOPOL_TYPE_VFS_SKIP_MTIME_UPDATE = 8
  385. const m_IOPOL_TYPE_VFS_STATFS_NO_DATA_VOLUME = 4
  386. const m_IOPOL_TYPE_VFS_TRIGGER_RESOLVE = 5
  387. const m_IOPOL_UTILITY = 4
  388. const m_IOPOL_VFS_ALLOW_LOW_SPACE_WRITES_OFF = 0
  389. const m_IOPOL_VFS_ALLOW_LOW_SPACE_WRITES_ON = 1
  390. const m_IOPOL_VFS_CONTENT_PROTECTION_DEFAULT = 0
  391. const m_IOPOL_VFS_CONTENT_PROTECTION_IGNORE = 1
  392. const m_IOPOL_VFS_DISALLOW_RW_FOR_O_EVTONLY_DEFAULT = 0
  393. const m_IOPOL_VFS_DISALLOW_RW_FOR_O_EVTONLY_ON = 1
  394. const m_IOPOL_VFS_IGNORE_PERMISSIONS_OFF = 0
  395. const m_IOPOL_VFS_IGNORE_PERMISSIONS_ON = 1
  396. const m_IOPOL_VFS_NOCACHE_WRITE_FS_BLKSIZE_DEFAULT = 0
  397. const m_IOPOL_VFS_NOCACHE_WRITE_FS_BLKSIZE_ON = 1
  398. const m_IOPOL_VFS_SKIP_MTIME_UPDATE_IGNORE = 2
  399. const m_IOPOL_VFS_SKIP_MTIME_UPDATE_OFF = 0
  400. const m_IOPOL_VFS_SKIP_MTIME_UPDATE_ON = 1
  401. const m_IOPOL_VFS_STATFS_FORCE_NO_DATA_VOLUME = 1
  402. const m_IOPOL_VFS_STATFS_NO_DATA_VOLUME_DEFAULT = 0
  403. const m_IOPOL_VFS_TRIGGER_RESOLVE_DEFAULT = 0
  404. const m_IOPOL_VFS_TRIGGER_RESOLVE_OFF = 1
  405. const m_IOV_MAX = 1024
  406. const m_LIBBSD_ABI_ACCMODE = 0
  407. const m_LIBBSD_ABI_ARC4RANDOM = 0
  408. const m_LIBBSD_ABI_ARC4RANDOM_STIR = 0
  409. const m_LIBBSD_ABI_ASPRINTF = 0
  410. const m_LIBBSD_ABI_BSD_GETOPT = 0
  411. const m_LIBBSD_ABI_CLOSEFROM = 1
  412. const m_LIBBSD_ABI_ERR = 0
  413. const m_LIBBSD_ABI_ERRC = 0
  414. const m_LIBBSD_ABI_ERR_H = 0
  415. const m_LIBBSD_ABI_EXPAND_NUMBER = 1
  416. const m_LIBBSD_ABI_EXPLICIT_BZERO = 1
  417. const m_LIBBSD_ABI_FGETLN = 0
  418. const m_LIBBSD_ABI_FLOPEN = 1
  419. const m_LIBBSD_ABI_FMTCHECK = 0
  420. const m_LIBBSD_ABI_FPURGE = 0
  421. const m_LIBBSD_ABI_FREEZERO = 1
  422. const m_LIBBSD_ABI_FUNOPEN = 0
  423. const m_LIBBSD_ABI_GETBSIZE = 1
  424. const m_LIBBSD_ABI_GETPEEREID = 0
  425. const m_LIBBSD_ABI_HUMANIZE_NUMBER = 1
  426. const m_LIBBSD_ABI_ID_FROM_NAME = 1
  427. const m_LIBBSD_ABI_INET_NET_PTON = 0
  428. const m_LIBBSD_ABI_MD5 = 0
  429. const m_LIBBSD_ABI_NAME_FROM_ID = 0
  430. const m_LIBBSD_ABI_NLIST = 0
  431. const m_LIBBSD_ABI_PIDFILE = 1
  432. const m_LIBBSD_ABI_PROCTITLE = 1
  433. const m_LIBBSD_ABI_PROGNAME = 0
  434. const m_LIBBSD_ABI_PWCACHE = 1
  435. const m_LIBBSD_ABI_READPASSPHRASE = 0
  436. const m_LIBBSD_ABI_REALLOCARRAY = 1
  437. const m_LIBBSD_ABI_REALLOCF = 0
  438. const m_LIBBSD_ABI_RECALLOCARRAY = 1
  439. const m_LIBBSD_ABI_SORT = 0
  440. const m_LIBBSD_ABI_STRINGLIST = 0
  441. const m_LIBBSD_ABI_STRL = 0
  442. const m_LIBBSD_ABI_STRMODE = 0
  443. const m_LIBBSD_ABI_STRNSTR = 0
  444. const m_LIBBSD_ABI_STRTONUM = 0
  445. const m_LIBBSD_ABI_STRTOX = 1
  446. const m_LIBBSD_ABI_TIME64 = 0
  447. const m_LIBBSD_ABI_TIMECONV = 0
  448. const m_LIBBSD_ABI_TRANSPARENT_LIBMD = 0
  449. const m_LIBBSD_ABI_VIS = 0
  450. const m_LIBBSD_ABI_WCSL = 0
  451. const m_LIBBSD_API_TIME_MACROS = 0
  452. const m_LIBBSD_DISABLE_DEPRECATED = 1
  453. const m_LIBBSD_OVERLAY = 1
  454. const m_LIBBSD_SYS_HAS_TIME64 = 1
  455. const m_LIBBSD_SYS_TIME_BITS = 64
  456. const m_LINE_MAX = 2048
  457. const m_LINK_MAX = 32767
  458. const m_LITTLE_ENDIAN = "__DARWIN_LITTLE_ENDIAN"
  459. const m_LOCK_EX = 0x02
  460. const m_LOCK_NB = 0x04
  461. const m_LOCK_SH = 0x01
  462. const m_LOCK_UN = 0x08
  463. const m_LONG_BIT = 64
  464. const m_LT_OBJDIR = ".libs/"
  465. const m_L_INCR = "SEEK_CUR"
  466. const m_L_SET = "SEEK_SET"
  467. const m_L_XTND = "SEEK_END"
  468. const m_L_ctermid = 1024
  469. const m_L_tmpnam = 1024
  470. const m_MAC_OS_VERSION_11_0 = "__MAC_11_0"
  471. const m_MAC_OS_VERSION_11_1 = "__MAC_11_1"
  472. const m_MAC_OS_VERSION_11_3 = "__MAC_11_3"
  473. const m_MAC_OS_VERSION_11_4 = "__MAC_11_4"
  474. const m_MAC_OS_VERSION_11_5 = "__MAC_11_5"
  475. const m_MAC_OS_VERSION_11_6 = "__MAC_11_6"
  476. const m_MAC_OS_VERSION_12_0 = "__MAC_12_0"
  477. const m_MAC_OS_VERSION_12_1 = "__MAC_12_1"
  478. const m_MAC_OS_VERSION_12_2 = "__MAC_12_2"
  479. const m_MAC_OS_VERSION_12_3 = "__MAC_12_3"
  480. const m_MAC_OS_VERSION_12_4 = "__MAC_12_4"
  481. const m_MAC_OS_VERSION_12_5 = "__MAC_12_5"
  482. const m_MAC_OS_VERSION_12_6 = "__MAC_12_6"
  483. const m_MAC_OS_VERSION_12_7 = "__MAC_12_7"
  484. const m_MAC_OS_VERSION_13_0 = "__MAC_13_0"
  485. const m_MAC_OS_VERSION_13_1 = "__MAC_13_1"
  486. const m_MAC_OS_VERSION_13_2 = "__MAC_13_2"
  487. const m_MAC_OS_VERSION_13_3 = "__MAC_13_3"
  488. const m_MAC_OS_VERSION_13_4 = "__MAC_13_4"
  489. const m_MAC_OS_VERSION_13_5 = "__MAC_13_5"
  490. const m_MAC_OS_VERSION_13_6 = "__MAC_13_6"
  491. const m_MAC_OS_VERSION_13_7 = "__MAC_13_7"
  492. const m_MAC_OS_VERSION_14_0 = "__MAC_14_0"
  493. const m_MAC_OS_VERSION_14_1 = "__MAC_14_1"
  494. const m_MAC_OS_VERSION_14_2 = "__MAC_14_2"
  495. const m_MAC_OS_VERSION_14_3 = "__MAC_14_3"
  496. const m_MAC_OS_VERSION_14_4 = "__MAC_14_4"
  497. const m_MAC_OS_VERSION_14_5 = "__MAC_14_5"
  498. const m_MAC_OS_VERSION_14_6 = "__MAC_14_6"
  499. const m_MAC_OS_VERSION_14_7 = "__MAC_14_7"
  500. const m_MAC_OS_VERSION_15_0 = "__MAC_15_0"
  501. const m_MAC_OS_VERSION_15_1 = "__MAC_15_1"
  502. const m_MAC_OS_VERSION_15_2 = "__MAC_15_2"
  503. const m_MAC_OS_VERSION_15_3 = "__MAC_15_3"
  504. const m_MAC_OS_VERSION_15_4 = "__MAC_15_4"
  505. const m_MAC_OS_X_VERSION_10_0 = "__MAC_10_0"
  506. const m_MAC_OS_X_VERSION_10_1 = "__MAC_10_1"
  507. const m_MAC_OS_X_VERSION_10_10 = "__MAC_10_10"
  508. const m_MAC_OS_X_VERSION_10_10_2 = "__MAC_10_10_2"
  509. const m_MAC_OS_X_VERSION_10_10_3 = "__MAC_10_10_3"
  510. const m_MAC_OS_X_VERSION_10_11 = "__MAC_10_11"
  511. const m_MAC_OS_X_VERSION_10_11_2 = "__MAC_10_11_2"
  512. const m_MAC_OS_X_VERSION_10_11_3 = "__MAC_10_11_3"
  513. const m_MAC_OS_X_VERSION_10_11_4 = "__MAC_10_11_4"
  514. const m_MAC_OS_X_VERSION_10_12 = "__MAC_10_12"
  515. const m_MAC_OS_X_VERSION_10_12_1 = "__MAC_10_12_1"
  516. const m_MAC_OS_X_VERSION_10_12_2 = "__MAC_10_12_2"
  517. const m_MAC_OS_X_VERSION_10_12_4 = "__MAC_10_12_4"
  518. const m_MAC_OS_X_VERSION_10_13 = "__MAC_10_13"
  519. const m_MAC_OS_X_VERSION_10_13_1 = "__MAC_10_13_1"
  520. const m_MAC_OS_X_VERSION_10_13_2 = "__MAC_10_13_2"
  521. const m_MAC_OS_X_VERSION_10_13_4 = "__MAC_10_13_4"
  522. const m_MAC_OS_X_VERSION_10_14 = "__MAC_10_14"
  523. const m_MAC_OS_X_VERSION_10_14_1 = "__MAC_10_14_1"
  524. const m_MAC_OS_X_VERSION_10_14_4 = "__MAC_10_14_4"
  525. const m_MAC_OS_X_VERSION_10_14_5 = "__MAC_10_14_5"
  526. const m_MAC_OS_X_VERSION_10_14_6 = "__MAC_10_14_6"
  527. const m_MAC_OS_X_VERSION_10_15 = "__MAC_10_15"
  528. const m_MAC_OS_X_VERSION_10_15_1 = "__MAC_10_15_1"
  529. const m_MAC_OS_X_VERSION_10_15_4 = "__MAC_10_15_4"
  530. const m_MAC_OS_X_VERSION_10_16 = "__MAC_10_16"
  531. const m_MAC_OS_X_VERSION_10_2 = "__MAC_10_2"
  532. const m_MAC_OS_X_VERSION_10_3 = "__MAC_10_3"
  533. const m_MAC_OS_X_VERSION_10_4 = "__MAC_10_4"
  534. const m_MAC_OS_X_VERSION_10_5 = "__MAC_10_5"
  535. const m_MAC_OS_X_VERSION_10_6 = "__MAC_10_6"
  536. const m_MAC_OS_X_VERSION_10_7 = "__MAC_10_7"
  537. const m_MAC_OS_X_VERSION_10_8 = "__MAC_10_8"
  538. const m_MAC_OS_X_VERSION_10_9 = "__MAC_10_9"
  539. const m_MAXNAMLEN = "__DARWIN_MAXNAMLEN"
  540. const m_MAX_CANON = 1024
  541. const m_MAX_INPUT = 1024
  542. const m_MB_CUR_MAX = "__mb_cur_max"
  543. const m_MINSIGSTKSZ = 32768
  544. const m_NAME_MAX = 255
  545. const m_NBBY = "__DARWIN_NBBY"
  546. const m_NDEBUG = 1
  547. const m_NFDBITS = "__DARWIN_NFDBITS"
  548. const m_NGROUPS_MAX = 16
  549. const m_NL_ARGMAX = 9
  550. const m_NL_LANGMAX = 14
  551. const m_NL_MSGMAX = 32767
  552. const m_NL_NMAX = 1
  553. const m_NL_SETMAX = 255
  554. const m_NL_TEXTMAX = 2048
  555. const m_NSIG = "__DARWIN_NSIG"
  556. const m_NULL = "__DARWIN_NULL"
  557. const m_NZERO = 20
  558. const m_OFF_MAX = "LLONG_MAX"
  559. const m_OFF_MIN = "LLONG_MIN"
  560. const m_OPEN_MAX = 10240
  561. const m_O_ACCMODE = 0x0003
  562. const m_O_ALERT = 0x20000000
  563. const m_O_APPEND = 0x00000008
  564. const m_O_ASYNC = 0x00000040
  565. const m_O_CLOEXEC = 0x01000000
  566. const m_O_CREAT = 0x00000200
  567. const m_O_DIRECTORY = 0x00100000
  568. const m_O_DP_AUTHENTICATE = 0x0004
  569. const m_O_DP_GETRAWENCRYPTED = 0x0001
  570. const m_O_DP_GETRAWUNENCRYPTED = 0x0002
  571. const m_O_DSYNC = 0x400000
  572. const m_O_EVTONLY = 0x00008000
  573. const m_O_EXCL = 0x00000800
  574. const m_O_EXEC = 0x40000000
  575. const m_O_EXLOCK = 0x00000020
  576. const m_O_FSYNC = "O_SYNC"
  577. const m_O_NDELAY = "O_NONBLOCK"
  578. const m_O_NOCTTY = 0x00020000
  579. const m_O_NOFOLLOW = 0x00000100
  580. const m_O_NOFOLLOW_ANY = 0x20000000
  581. const m_O_NONBLOCK = 0x00000004
  582. const m_O_POPUP = 0x80000000
  583. const m_O_RDONLY = 0x0000
  584. const m_O_RDWR = 0x0002
  585. const m_O_RESOLVE_BENEATH = 0x00001000
  586. const m_O_SHLOCK = 0x00000010
  587. const m_O_SYMLINK = 0x00200000
  588. const m_O_SYNC = 0x0080
  589. const m_O_TRUNC = 0x00000400
  590. const m_O_WRONLY = 0x0001
  591. const m_PACKAGE = "libbsd"
  592. const m_PACKAGE_BUGREPORT = "libbsd@lists.freedesktop.org"
  593. const m_PACKAGE_NAME = "libbsd"
  594. const m_PACKAGE_STRING = "libbsd 0.12.2"
  595. const m_PACKAGE_TARNAME = "libbsd"
  596. const m_PACKAGE_URL = ""
  597. const m_PACKAGE_VERSION = "0.12.2"
  598. const m_PASS_MAX = 128
  599. const m_PATH_MAX = 1024
  600. const m_PDP_ENDIAN = "__DARWIN_PDP_ENDIAN"
  601. const m_PIC = 1
  602. const m_PIPE_BUF = 512
  603. const m_POLL_ERR = 4
  604. const m_POLL_HUP = 6
  605. const m_POLL_IN = 1
  606. const m_POLL_MSG = 3
  607. const m_POLL_OUT = 2
  608. const m_POLL_PRI = 5
  609. const m_PRIO_DARWIN_BG = 0x1000
  610. const m_PRIO_DARWIN_NONUI = 0x1001
  611. const m_PRIO_DARWIN_PROCESS = 4
  612. const m_PRIO_DARWIN_THREAD = 3
  613. const m_PRIO_MAX = 20
  614. const m_PRIO_PGRP = 1
  615. const m_PRIO_PROCESS = 0
  616. const m_PRIO_USER = 2
  617. const m_PTHREAD_DESTRUCTOR_ITERATIONS = 4
  618. const m_PTHREAD_KEYS_MAX = 512
  619. const m_PTHREAD_STACK_MIN = 8192
  620. const m_PTRDIFF_MAX = "INTMAX_MAX"
  621. const m_PTRDIFF_MIN = "INTMAX_MIN"
  622. const m_P_tmpdir = "/var/tmp/"
  623. const m_QUAD_MAX = "LLONG_MAX"
  624. const m_QUAD_MIN = "LLONG_MIN"
  625. const m_RAND_MAX = 0x7fffffff
  626. const m_RENAME_EXCL = 0x00000004
  627. const m_RENAME_NOFOLLOW_ANY = 0x00000010
  628. const m_RENAME_RESERVED1 = 0x00000008
  629. const m_RENAME_SECLUDE = 0x00000001
  630. const m_RENAME_SWAP = 0x00000002
  631. const m_RE_DUP_MAX = 255
  632. const m_RLIMIT_AS = 5
  633. const m_RLIMIT_CORE = 4
  634. const m_RLIMIT_CPU = 0
  635. const m_RLIMIT_CPU_USAGE_MONITOR = 0x2
  636. const m_RLIMIT_DATA = 2
  637. const m_RLIMIT_FOOTPRINT_INTERVAL = 0x4
  638. const m_RLIMIT_FSIZE = 1
  639. const m_RLIMIT_MEMLOCK = 6
  640. const m_RLIMIT_NOFILE = 8
  641. const m_RLIMIT_NPROC = 7
  642. const m_RLIMIT_RSS = "RLIMIT_AS"
  643. const m_RLIMIT_STACK = 3
  644. const m_RLIMIT_THREAD_CPULIMITS = 0x3
  645. const m_RLIMIT_WAKEUPS_MONITOR = 0x1
  646. const m_RLIM_NLIMITS = 9
  647. const m_RLIM_SAVED_CUR = "RLIM_INFINITY"
  648. const m_RLIM_SAVED_MAX = "RLIM_INFINITY"
  649. const m_RUSAGE_INFO_CURRENT = "RUSAGE_INFO_V6"
  650. const m_RUSAGE_INFO_V0 = 0
  651. const m_RUSAGE_INFO_V1 = 1
  652. const m_RUSAGE_INFO_V2 = 2
  653. const m_RUSAGE_INFO_V3 = 3
  654. const m_RUSAGE_INFO_V4 = 4
  655. const m_RUSAGE_INFO_V5 = 5
  656. const m_RUSAGE_INFO_V6 = 6
  657. const m_RUSAGE_SELF = 0
  658. const m_RU_PROC_RUNS_RESLIDE = 0x00000001
  659. const m_SA_64REGSET = 0x0200
  660. const m_SA_NOCLDSTOP = 0x0008
  661. const m_SA_NOCLDWAIT = 0x0020
  662. const m_SA_NODEFER = 0x0010
  663. const m_SA_ONSTACK = 0x0001
  664. const m_SA_RESETHAND = 0x0004
  665. const m_SA_RESTART = 0x0002
  666. const m_SA_SIGINFO = 0x0040
  667. const m_SA_USERTRAMP = 0x0100
  668. const m_SEEK_CUR = 1
  669. const m_SEEK_DATA = 4
  670. const m_SEEK_END = 2
  671. const m_SEEK_HOLE = 3
  672. const m_SEEK_SET = 0
  673. const m_SEGV_ACCERR = 2
  674. const m_SEGV_MAPERR = 1
  675. const m_SEGV_NOOP = 0
  676. const m_SF_APPEND = 0x00040000
  677. const m_SF_ARCHIVED = 0x00010000
  678. const m_SF_DATALESS = 0x40000000
  679. const m_SF_FIRMLINK = 0x00800000
  680. const m_SF_IMMUTABLE = 0x00020000
  681. const m_SF_NOUNLINK = 0x00100000
  682. const m_SF_RESTRICTED = 0x00080000
  683. const m_SF_SETTABLE = 0x3fff0000
  684. const m_SF_SUPPORTED = 0x009f0000
  685. const m_SF_SYNTHETIC = 0xc0000000
  686. const m_SIGABRT = 6
  687. const m_SIGALRM = 14
  688. const m_SIGBUS = 10
  689. const m_SIGCHLD = 20
  690. const m_SIGCONT = 19
  691. const m_SIGEMT = 7
  692. const m_SIGEV_NONE = 0
  693. const m_SIGEV_SIGNAL = 1
  694. const m_SIGEV_THREAD = 3
  695. const m_SIGFPE = 8
  696. const m_SIGHUP = 1
  697. const m_SIGILL = 4
  698. const m_SIGINFO = 29
  699. const m_SIGINT = 2
  700. const m_SIGIO = 23
  701. const m_SIGIOT = "SIGABRT"
  702. const m_SIGKILL = 9
  703. const m_SIGPIPE = 13
  704. const m_SIGPROF = 27
  705. const m_SIGQUIT = 3
  706. const m_SIGSEGV = 11
  707. const m_SIGSTKSZ = 131072
  708. const m_SIGSTOP = 17
  709. const m_SIGSYS = 12
  710. const m_SIGTERM = 15
  711. const m_SIGTRAP = 5
  712. const m_SIGTSTP = 18
  713. const m_SIGTTIN = 21
  714. const m_SIGTTOU = 22
  715. const m_SIGURG = 16
  716. const m_SIGUSR1 = 30
  717. const m_SIGUSR2 = 31
  718. const m_SIGVTALRM = 26
  719. const m_SIGWINCH = 28
  720. const m_SIGXCPU = 24
  721. const m_SIGXFSZ = 25
  722. const m_SIG_ATOMIC_MAX = "INT32_MAX"
  723. const m_SIG_ATOMIC_MIN = "INT32_MIN"
  724. const m_SIG_BLOCK = 1
  725. const m_SIG_SETMASK = 3
  726. const m_SIG_UNBLOCK = 2
  727. const m_SIZEOF_OFF_T = 8
  728. const m_SIZEOF_TIME_T = 8
  729. const m_SIZE_MAX = "UINTPTR_MAX"
  730. const m_SIZE_T_MAX = "ULONG_MAX"
  731. const m_SI_ASYNCIO = 0x10004
  732. const m_SI_MESGQ = 0x10005
  733. const m_SI_QUEUE = 0x10002
  734. const m_SI_TIMER = 0x10003
  735. const m_SI_USER = 0x10001
  736. const m_SSIZE_MAX = "LONG_MAX"
  737. const m_SS_DISABLE = 0x0004
  738. const m_SS_ONSTACK = 0x0001
  739. const m_STDC_HEADERS = 1
  740. const m_STDERR_FILENO = 2
  741. const m_STDIN_FILENO = 0
  742. const m_STDOUT_FILENO = 1
  743. const m_SV_INTERRUPT = "SA_RESTART"
  744. const m_SV_NOCLDSTOP = "SA_NOCLDSTOP"
  745. const m_SV_NODEFER = "SA_NODEFER"
  746. const m_SV_ONSTACK = "SA_ONSTACK"
  747. const m_SV_RESETHAND = "SA_RESETHAND"
  748. const m_SV_SIGINFO = "SA_SIGINFO"
  749. const m_SYNC_VOLUME_FULLSYNC = 0x01
  750. const m_SYNC_VOLUME_WAIT = 0x02
  751. const m_S_BLKSIZE = 512
  752. const m_S_IEXEC = "S_IXUSR"
  753. const m_S_IFBLK = 0060000
  754. const m_S_IFCHR = 0020000
  755. const m_S_IFDIR = 0040000
  756. const m_S_IFIFO = 0010000
  757. const m_S_IFLNK = 0120000
  758. const m_S_IFMT = 0170000
  759. const m_S_IFREG = 0100000
  760. const m_S_IFSOCK = 0140000
  761. const m_S_IFWHT = 0160000
  762. const m_S_IREAD = "S_IRUSR"
  763. const m_S_IRGRP = 0000040
  764. const m_S_IROTH = 0000004
  765. const m_S_IRUSR = 0000400
  766. const m_S_IRWXG = 0000070
  767. const m_S_IRWXO = 0000007
  768. const m_S_IRWXU = 0000700
  769. const m_S_ISGID = 0002000
  770. const m_S_ISTXT = "S_ISVTX"
  771. const m_S_ISUID = 0004000
  772. const m_S_ISVTX = 0001000
  773. const m_S_IWGRP = 0000020
  774. const m_S_IWOTH = 0000002
  775. const m_S_IWRITE = "S_IWUSR"
  776. const m_S_IWUSR = 0000200
  777. const m_S_IXGRP = 0000010
  778. const m_S_IXOTH = 0000001
  779. const m_S_IXUSR = 0000100
  780. const m_TARGET_IPHONE_SIMULATOR = 0
  781. const m_TARGET_OS_ARROW = 0
  782. const m_TARGET_OS_BRIDGE = 0
  783. const m_TARGET_OS_DRIVERKIT = 0
  784. const m_TARGET_OS_EMBEDDED = 0
  785. const m_TARGET_OS_IOS = 0
  786. const m_TARGET_OS_IOSMAC = 0
  787. const m_TARGET_OS_IPHONE = 0
  788. const m_TARGET_OS_LINUX = 0
  789. const m_TARGET_OS_MAC = 1
  790. const m_TARGET_OS_MACCATALYST = 0
  791. const m_TARGET_OS_NANO = 0
  792. const m_TARGET_OS_OSX = 1
  793. const m_TARGET_OS_SIMULATOR = 0
  794. const m_TARGET_OS_TV = 0
  795. const m_TARGET_OS_UIKITFORMAC = 0
  796. const m_TARGET_OS_UNIX = 0
  797. const m_TARGET_OS_VISION = 0
  798. const m_TARGET_OS_WATCH = 0
  799. const m_TARGET_OS_WIN32 = 0
  800. const m_TARGET_OS_WINDOWS = 0
  801. const m_TARGET_OS_XR = 0
  802. const m_TMP_MAX = 308915776
  803. const m_TRAP_BRKPT = 1
  804. const m_TRAP_TRACE = 2
  805. const m_UF_APPEND = 0x00000004
  806. const m_UF_COMPRESSED = 0x00000020
  807. const m_UF_DATAVAULT = 0x00000080
  808. const m_UF_HIDDEN = 0x00008000
  809. const m_UF_IMMUTABLE = 0x00000002
  810. const m_UF_NODUMP = 0x00000001
  811. const m_UF_OPAQUE = 0x00000008
  812. const m_UF_SETTABLE = 0x0000ffff
  813. const m_UF_TRACKED = 0x00000040
  814. const m_UID_MAX = 2147483647
  815. const m_UINT16_MAX = 65535
  816. const m_UINT32_MAX = 4294967295
  817. const m_UINT64_MAX = "18446744073709551615U"
  818. const m_UINT8_MAX = 255
  819. const m_UINTPTR_MAX = 18446744073709551615
  820. const m_UINT_FAST16_MAX = "UINT16_MAX"
  821. const m_UINT_FAST32_MAX = "UINT32_MAX"
  822. const m_UINT_FAST64_MAX = "UINT64_MAX"
  823. const m_UINT_FAST8_MAX = "UINT8_MAX"
  824. const m_UINT_LEAST16_MAX = "UINT16_MAX"
  825. const m_UINT_LEAST32_MAX = "UINT32_MAX"
  826. const m_UINT_LEAST64_MAX = "UINT64_MAX"
  827. const m_UINT_LEAST8_MAX = "UINT8_MAX"
  828. const m_UQUAD_MAX = "ULLONG_MAX"
  829. const m_USER_FSIGNATURES_CDHASH_LEN = 20
  830. const m_VERSION = "0.12.2"
  831. const m_WAIT_MYPGRP = 0
  832. const m_WAKEMON_DISABLE = 0x02
  833. const m_WAKEMON_ENABLE = 0x01
  834. const m_WAKEMON_GET_PARAMS = 0x04
  835. const m_WAKEMON_MAKE_FATAL = 0x10
  836. const m_WAKEMON_SET_DEFAULTS = 0x08
  837. const m_WCHAR_MAX = "__WCHAR_MAX__"
  838. const m_WCONTINUED = 0x00000010
  839. const m_WCOREFLAG = 0200
  840. const m_WEXITED = 0x00000004
  841. const m_WINT_MAX = "INT32_MAX"
  842. const m_WINT_MIN = "INT32_MIN"
  843. const m_WNOHANG = 0x00000001
  844. const m_WNOWAIT = 0x00000020
  845. const m_WORD_BIT = 32
  846. const m_WSTOPPED = 0x00000008
  847. const m_WUNTRACED = 0x00000002
  848. const m__ALL_SOURCE = 1
  849. const m__CS_DARWIN_USER_CACHE_DIR = 65538
  850. const m__CS_DARWIN_USER_DIR = 65536
  851. const m__CS_DARWIN_USER_TEMP_DIR = 65537
  852. const m__CS_PATH = 1
  853. const m__CS_POSIX_V6_ILP32_OFF32_CFLAGS = 2
  854. const m__CS_POSIX_V6_ILP32_OFF32_LDFLAGS = 3
  855. const m__CS_POSIX_V6_ILP32_OFF32_LIBS = 4
  856. const m__CS_POSIX_V6_ILP32_OFFBIG_CFLAGS = 5
  857. const m__CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS = 6
  858. const m__CS_POSIX_V6_ILP32_OFFBIG_LIBS = 7
  859. const m__CS_POSIX_V6_LP64_OFF64_CFLAGS = 8
  860. const m__CS_POSIX_V6_LP64_OFF64_LDFLAGS = 9
  861. const m__CS_POSIX_V6_LP64_OFF64_LIBS = 10
  862. const m__CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS = 11
  863. const m__CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS = 12
  864. const m__CS_POSIX_V6_LPBIG_OFFBIG_LIBS = 13
  865. const m__CS_POSIX_V6_WIDTH_RESTRICTED_ENVS = 14
  866. const m__CS_XBS5_ILP32_OFF32_CFLAGS = 20
  867. const m__CS_XBS5_ILP32_OFF32_LDFLAGS = 21
  868. const m__CS_XBS5_ILP32_OFF32_LIBS = 22
  869. const m__CS_XBS5_ILP32_OFF32_LINTFLAGS = 23
  870. const m__CS_XBS5_ILP32_OFFBIG_CFLAGS = 24
  871. const m__CS_XBS5_ILP32_OFFBIG_LDFLAGS = 25
  872. const m__CS_XBS5_ILP32_OFFBIG_LIBS = 26
  873. const m__CS_XBS5_ILP32_OFFBIG_LINTFLAGS = 27
  874. const m__CS_XBS5_LP64_OFF64_CFLAGS = 28
  875. const m__CS_XBS5_LP64_OFF64_LDFLAGS = 29
  876. const m__CS_XBS5_LP64_OFF64_LIBS = 30
  877. const m__CS_XBS5_LP64_OFF64_LINTFLAGS = 31
  878. const m__CS_XBS5_LPBIG_OFFBIG_CFLAGS = 32
  879. const m__CS_XBS5_LPBIG_OFFBIG_LDFLAGS = 33
  880. const m__CS_XBS5_LPBIG_OFFBIG_LIBS = 34
  881. const m__CS_XBS5_LPBIG_OFFBIG_LINTFLAGS = 35
  882. const m__DARWIN_C_SOURCE = 1
  883. const m__DARWIN_FEATURE_64_BIT_INODE = 1
  884. const m__DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE = 1
  885. const m__DARWIN_FEATURE_UNIX_CONFORMANCE = 3
  886. const m__FORTIFY_SOURCE = 2
  887. const m__GNU_SOURCE = 1
  888. const m__HPUX_ALT_XOPEN_SOCKET_API = 1
  889. const m__I386_SIGNAL_H_ = 1
  890. const m__IOFBF = 0
  891. const m__IOLBF = 1
  892. const m__IONBF = 2
  893. const m__LIBC_COUNT__MB_LEN_MAX = "_LIBC_UNSAFE_INDEXABLE"
  894. const m__LIBC_COUNT__PATH_MAX = "_LIBC_UNSAFE_INDEXABLE"
  895. const m__LP64 = 1
  896. const m__NETBSD_SOURCE = 1
  897. const m__OPENBSD_SOURCE = 1
  898. const m__PC_2_SYMLINKS = 15
  899. const m__PC_ALLOC_SIZE_MIN = 16
  900. const m__PC_ASYNC_IO = 17
  901. const m__PC_AUTH_OPAQUE_NP = 14
  902. const m__PC_CASE_PRESERVING = 12
  903. const m__PC_CASE_SENSITIVE = 11
  904. const m__PC_CHOWN_RESTRICTED = 7
  905. const m__PC_EXTENDED_SECURITY_NP = 13
  906. const m__PC_FILESIZEBITS = 18
  907. const m__PC_LINK_MAX = 1
  908. const m__PC_MAX_CANON = 2
  909. const m__PC_MAX_INPUT = 3
  910. const m__PC_MIN_HOLE_SIZE = 27
  911. const m__PC_NAME_CHARS_MAX = 10
  912. const m__PC_NAME_MAX = 4
  913. const m__PC_NO_TRUNC = 8
  914. const m__PC_PATH_MAX = 5
  915. const m__PC_PIPE_BUF = 6
  916. const m__PC_PRIO_IO = 19
  917. const m__PC_REC_INCR_XFER_SIZE = 20
  918. const m__PC_REC_MAX_XFER_SIZE = 21
  919. const m__PC_REC_MIN_XFER_SIZE = 22
  920. const m__PC_REC_XFER_ALIGN = 23
  921. const m__PC_SYMLINK_MAX = 24
  922. const m__PC_SYNC_IO = 25
  923. const m__PC_VDISABLE = 9
  924. const m__PC_XATTR_SIZE_BITS = 26
  925. const m__POSIX2_BC_BASE_MAX = 99
  926. const m__POSIX2_BC_DIM_MAX = 2048
  927. const m__POSIX2_BC_SCALE_MAX = 99
  928. const m__POSIX2_BC_STRING_MAX = 1000
  929. const m__POSIX2_CHARCLASS_NAME_MAX = 14
  930. const m__POSIX2_CHAR_TERM = 200112
  931. const m__POSIX2_COLL_WEIGHTS_MAX = 2
  932. const m__POSIX2_C_BIND = 200112
  933. const m__POSIX2_C_DEV = 200112
  934. const m__POSIX2_EQUIV_CLASS_MAX = 2
  935. const m__POSIX2_EXPR_NEST_MAX = 32
  936. const m__POSIX2_FORT_RUN = 200112
  937. const m__POSIX2_LINE_MAX = 2048
  938. const m__POSIX2_LOCALEDEF = 200112
  939. const m__POSIX2_RE_DUP_MAX = 255
  940. const m__POSIX2_SW_DEV = 200112
  941. const m__POSIX2_UPE = 200112
  942. const m__POSIX2_VERSION = 200112
  943. const m__POSIX_AIO_LISTIO_MAX = 2
  944. const m__POSIX_AIO_MAX = 1
  945. const m__POSIX_ARG_MAX = 4096
  946. const m__POSIX_CHILD_MAX = 25
  947. const m__POSIX_CHOWN_RESTRICTED = 200112
  948. const m__POSIX_CLOCKRES_MIN = 20000000
  949. const m__POSIX_DELAYTIMER_MAX = 32
  950. const m__POSIX_FSYNC = 200112
  951. const m__POSIX_HOST_NAME_MAX = 255
  952. const m__POSIX_IPV6 = 200112
  953. const m__POSIX_JOB_CONTROL = 200112
  954. const m__POSIX_LINK_MAX = 8
  955. const m__POSIX_LOGIN_NAME_MAX = 9
  956. const m__POSIX_MAPPED_FILES = 200112
  957. const m__POSIX_MAX_CANON = 255
  958. const m__POSIX_MAX_INPUT = 255
  959. const m__POSIX_MEMORY_PROTECTION = 200112
  960. const m__POSIX_MQ_OPEN_MAX = 8
  961. const m__POSIX_MQ_PRIO_MAX = 32
  962. const m__POSIX_NAME_MAX = 14
  963. const m__POSIX_NGROUPS_MAX = 8
  964. const m__POSIX_NO_TRUNC = 200112
  965. const m__POSIX_OPEN_MAX = 20
  966. const m__POSIX_PATH_MAX = 256
  967. const m__POSIX_PIPE_BUF = 512
  968. const m__POSIX_PTHREAD_SEMANTICS = 1
  969. const m__POSIX_READER_WRITER_LOCKS = 200112
  970. const m__POSIX_REGEXP = 200112
  971. const m__POSIX_RE_DUP_MAX = "_POSIX2_RE_DUP_MAX"
  972. const m__POSIX_RTSIG_MAX = 8
  973. const m__POSIX_SAVED_IDS = 200112
  974. const m__POSIX_SEM_NSEMS_MAX = 256
  975. const m__POSIX_SEM_VALUE_MAX = 32767
  976. const m__POSIX_SHELL = 200112
  977. const m__POSIX_SIGQUEUE_MAX = 32
  978. const m__POSIX_SPAWN = 200112
  979. const m__POSIX_SSIZE_MAX = 32767
  980. const m__POSIX_SS_REPL_MAX = 4
  981. const m__POSIX_STREAM_MAX = 8
  982. const m__POSIX_SYMLINK_MAX = 255
  983. const m__POSIX_SYMLOOP_MAX = 8
  984. const m__POSIX_THREADS = 200112
  985. const m__POSIX_THREAD_ATTR_STACKADDR = 200112
  986. const m__POSIX_THREAD_ATTR_STACKSIZE = 200112
  987. const m__POSIX_THREAD_DESTRUCTOR_ITERATIONS = 4
  988. const m__POSIX_THREAD_KEYS_MAX = 128
  989. const m__POSIX_THREAD_PROCESS_SHARED = 200112
  990. const m__POSIX_THREAD_SAFE_FUNCTIONS = 200112
  991. const m__POSIX_THREAD_THREADS_MAX = 64
  992. const m__POSIX_TIMER_MAX = 32
  993. const m__POSIX_TRACE_EVENT_NAME_MAX = 30
  994. const m__POSIX_TRACE_NAME_MAX = 8
  995. const m__POSIX_TRACE_SYS_MAX = 8
  996. const m__POSIX_TRACE_USER_EVENT_MAX = 32
  997. const m__POSIX_TTY_NAME_MAX = 9
  998. const m__POSIX_TZNAME_MAX = 6
  999. const m__POSIX_V6_ILP32_OFF32 = "__ILP32_OFF32"
  1000. const m__POSIX_V6_ILP32_OFFBIG = "__ILP32_OFFBIG"
  1001. const m__POSIX_V6_LP64_OFF64 = "__LP64_OFF64"
  1002. const m__POSIX_V6_LPBIG_OFFBIG = "__LPBIG_OFFBIG"
  1003. const m__POSIX_V7_ILP32_OFF32 = "__ILP32_OFF32"
  1004. const m__POSIX_V7_ILP32_OFFBIG = "__ILP32_OFFBIG"
  1005. const m__POSIX_V7_LP64_OFF64 = "__LP64_OFF64"
  1006. const m__POSIX_V7_LPBIG_OFFBIG = "__LPBIG_OFFBIG"
  1007. const m__POSIX_VERSION = 200112
  1008. const m__QUAD_HIGHWORD = 1
  1009. const m__QUAD_LOWWORD = 0
  1010. const m__RLIMIT_POSIX_FLAG = 0x1000
  1011. const m__SC_2_CHAR_TERM = 20
  1012. const m__SC_2_C_BIND = 18
  1013. const m__SC_2_C_DEV = 19
  1014. const m__SC_2_FORT_DEV = 21
  1015. const m__SC_2_FORT_RUN = 22
  1016. const m__SC_2_LOCALEDEF = 23
  1017. const m__SC_2_PBS = 59
  1018. const m__SC_2_PBS_ACCOUNTING = 60
  1019. const m__SC_2_PBS_CHECKPOINT = 61
  1020. const m__SC_2_PBS_LOCATE = 62
  1021. const m__SC_2_PBS_MESSAGE = 63
  1022. const m__SC_2_PBS_TRACK = 64
  1023. const m__SC_2_SW_DEV = 24
  1024. const m__SC_2_UPE = 25
  1025. const m__SC_2_VERSION = 17
  1026. const m__SC_ADVISORY_INFO = 65
  1027. const m__SC_AIO_LISTIO_MAX = 42
  1028. const m__SC_AIO_MAX = 43
  1029. const m__SC_AIO_PRIO_DELTA_MAX = 44
  1030. const m__SC_ARG_MAX = 1
  1031. const m__SC_ASYNCHRONOUS_IO = 28
  1032. const m__SC_ATEXIT_MAX = 107
  1033. const m__SC_BARRIERS = 66
  1034. const m__SC_BC_BASE_MAX = 9
  1035. const m__SC_BC_DIM_MAX = 10
  1036. const m__SC_BC_SCALE_MAX = 11
  1037. const m__SC_BC_STRING_MAX = 12
  1038. const m__SC_CHILD_MAX = 2
  1039. const m__SC_CLK_TCK = 3
  1040. const m__SC_CLOCK_SELECTION = 67
  1041. const m__SC_COLL_WEIGHTS_MAX = 13
  1042. const m__SC_CPUTIME = 68
  1043. const m__SC_DELAYTIMER_MAX = 45
  1044. const m__SC_EXPR_NEST_MAX = 14
  1045. const m__SC_FILE_LOCKING = 69
  1046. const m__SC_FSYNC = 38
  1047. const m__SC_GETGR_R_SIZE_MAX = 70
  1048. const m__SC_GETPW_R_SIZE_MAX = 71
  1049. const m__SC_HOST_NAME_MAX = 72
  1050. const m__SC_IOV_MAX = 56
  1051. const m__SC_IPV6 = 118
  1052. const m__SC_JOB_CONTROL = 6
  1053. const m__SC_LINE_MAX = 15
  1054. const m__SC_LOGIN_NAME_MAX = 73
  1055. const m__SC_MAPPED_FILES = 47
  1056. const m__SC_MEMLOCK = 30
  1057. const m__SC_MEMLOCK_RANGE = 31
  1058. const m__SC_MEMORY_PROTECTION = 32
  1059. const m__SC_MESSAGE_PASSING = 33
  1060. const m__SC_MONOTONIC_CLOCK = 74
  1061. const m__SC_MQ_OPEN_MAX = 46
  1062. const m__SC_MQ_PRIO_MAX = 75
  1063. const m__SC_NGROUPS_MAX = 4
  1064. const m__SC_NPROCESSORS_CONF = 57
  1065. const m__SC_NPROCESSORS_ONLN = 58
  1066. const m__SC_OPEN_MAX = 5
  1067. const m__SC_PAGESIZE = 29
  1068. const m__SC_PAGE_SIZE = "_SC_PAGESIZE"
  1069. const m__SC_PASS_MAX = 131
  1070. const m__SC_PHYS_PAGES = 200
  1071. const m__SC_PRIORITIZED_IO = 34
  1072. const m__SC_PRIORITY_SCHEDULING = 35
  1073. const m__SC_RAW_SOCKETS = 119
  1074. const m__SC_READER_WRITER_LOCKS = 76
  1075. const m__SC_REALTIME_SIGNALS = 36
  1076. const m__SC_REGEXP = 77
  1077. const m__SC_RE_DUP_MAX = 16
  1078. const m__SC_RTSIG_MAX = 48
  1079. const m__SC_SAVED_IDS = 7
  1080. const m__SC_SEMAPHORES = 37
  1081. const m__SC_SEM_NSEMS_MAX = 49
  1082. const m__SC_SEM_VALUE_MAX = 50
  1083. const m__SC_SHARED_MEMORY_OBJECTS = 39
  1084. const m__SC_SHELL = 78
  1085. const m__SC_SIGQUEUE_MAX = 51
  1086. const m__SC_SPAWN = 79
  1087. const m__SC_SPIN_LOCKS = 80
  1088. const m__SC_SPORADIC_SERVER = 81
  1089. const m__SC_SS_REPL_MAX = 126
  1090. const m__SC_STREAM_MAX = 26
  1091. const m__SC_SYMLOOP_MAX = 120
  1092. const m__SC_SYNCHRONIZED_IO = 40
  1093. const m__SC_THREADS = 96
  1094. const m__SC_THREAD_ATTR_STACKADDR = 82
  1095. const m__SC_THREAD_ATTR_STACKSIZE = 83
  1096. const m__SC_THREAD_CPUTIME = 84
  1097. const m__SC_THREAD_DESTRUCTOR_ITERATIONS = 85
  1098. const m__SC_THREAD_KEYS_MAX = 86
  1099. const m__SC_THREAD_PRIORITY_SCHEDULING = 89
  1100. const m__SC_THREAD_PRIO_INHERIT = 87
  1101. const m__SC_THREAD_PRIO_PROTECT = 88
  1102. const m__SC_THREAD_PROCESS_SHARED = 90
  1103. const m__SC_THREAD_SAFE_FUNCTIONS = 91
  1104. const m__SC_THREAD_SPORADIC_SERVER = 92
  1105. const m__SC_THREAD_STACK_MIN = 93
  1106. const m__SC_THREAD_THREADS_MAX = 94
  1107. const m__SC_TIMEOUTS = 95
  1108. const m__SC_TIMERS = 41
  1109. const m__SC_TIMER_MAX = 52
  1110. const m__SC_TRACE = 97
  1111. const m__SC_TRACE_EVENT_FILTER = 98
  1112. const m__SC_TRACE_EVENT_NAME_MAX = 127
  1113. const m__SC_TRACE_INHERIT = 99
  1114. const m__SC_TRACE_LOG = 100
  1115. const m__SC_TRACE_NAME_MAX = 128
  1116. const m__SC_TRACE_SYS_MAX = 129
  1117. const m__SC_TRACE_USER_EVENT_MAX = 130
  1118. const m__SC_TTY_NAME_MAX = 101
  1119. const m__SC_TYPED_MEMORY_OBJECTS = 102
  1120. const m__SC_TZNAME_MAX = 27
  1121. const m__SC_V6_ILP32_OFF32 = 103
  1122. const m__SC_V6_ILP32_OFFBIG = 104
  1123. const m__SC_V6_LP64_OFF64 = 105
  1124. const m__SC_V6_LPBIG_OFFBIG = 106
  1125. const m__SC_VERSION = 8
  1126. const m__SC_XBS5_ILP32_OFF32 = 122
  1127. const m__SC_XBS5_ILP32_OFFBIG = 123
  1128. const m__SC_XBS5_LP64_OFF64 = 124
  1129. const m__SC_XBS5_LPBIG_OFFBIG = 125
  1130. const m__SC_XOPEN_CRYPT = 108
  1131. const m__SC_XOPEN_ENH_I18N = 109
  1132. const m__SC_XOPEN_LEGACY = 110
  1133. const m__SC_XOPEN_REALTIME = 111
  1134. const m__SC_XOPEN_REALTIME_THREADS = 112
  1135. const m__SC_XOPEN_SHM = 113
  1136. const m__SC_XOPEN_STREAMS = 114
  1137. const m__SC_XOPEN_UNIX = 115
  1138. const m__SC_XOPEN_VERSION = 116
  1139. const m__SC_XOPEN_XCU_VERSION = 121
  1140. const m__STRUCT_MCONTEXT = "_STRUCT_MCONTEXT64"
  1141. const m__TANDEM_SOURCE = 1
  1142. const m__V6_ILP32_OFF32 = "__ILP32_OFF32"
  1143. const m__V6_ILP32_OFFBIG = "__ILP32_OFFBIG"
  1144. const m__V6_LP64_OFF64 = "__LP64_OFF64"
  1145. const m__V6_LPBIG_OFFBIG = "__LPBIG_OFFBIG"
  1146. const m__WSTOPPED = 0177
  1147. const m__X86_INSTRUCTION_STATE_CACHELINE_SIZE = 64
  1148. const m__XBS5_ILP32_OFF32 = "__ILP32_OFF32"
  1149. const m__XBS5_ILP32_OFFBIG = "__ILP32_OFFBIG"
  1150. const m__XBS5_LP64_OFF64 = "__LP64_OFF64"
  1151. const m__XBS5_LPBIG_OFFBIG = "__LPBIG_OFFBIG"
  1152. const m__XOPEN_CRYPT = 1
  1153. const m__XOPEN_ENH_I18N = 1
  1154. const m__XOPEN_IOV_MAX = 16
  1155. const m__XOPEN_NAME_MAX = 255
  1156. const m__XOPEN_PATH_MAX = 1024
  1157. const m__XOPEN_SHM = 1
  1158. const m__XOPEN_UNIX = 1
  1159. const m__XOPEN_VERSION = 600
  1160. const m__XOPEN_XCU_VERSION = 4
  1161. const m___API_TO_BE_DEPRECATED = 100000
  1162. const m___API_TO_BE_DEPRECATED_DRIVERKIT = 100000
  1163. const m___API_TO_BE_DEPRECATED_IOS = 100000
  1164. const m___API_TO_BE_DEPRECATED_IOSAPPLICATIONEXTENSION = 100000
  1165. const m___API_TO_BE_DEPRECATED_KERNELKIT = 100000
  1166. const m___API_TO_BE_DEPRECATED_MACCATALYST = 100000
  1167. const m___API_TO_BE_DEPRECATED_MACCATALYSTAPPLICATIONEXTENSION = 100000
  1168. const m___API_TO_BE_DEPRECATED_MACOS = 100000
  1169. const m___API_TO_BE_DEPRECATED_MACOSAPPLICATIONEXTENSION = 100000
  1170. const m___API_TO_BE_DEPRECATED_TVOS = 100000
  1171. const m___API_TO_BE_DEPRECATED_TVOSAPPLICATIONEXTENSION = 100000
  1172. const m___API_TO_BE_DEPRECATED_VISIONOS = 100000
  1173. const m___API_TO_BE_DEPRECATED_VISIONOSAPPLICATIONEXTENSION = 100000
  1174. const m___API_TO_BE_DEPRECATED_WATCHOS = 100000
  1175. const m___API_TO_BE_DEPRECATED_WATCHOSAPPLICATIONEXTENSION = 100000
  1176. const m___APPLE_CC__ = 6000
  1177. const m___APPLE__ = 1
  1178. const m___ATOMIC_ACQUIRE = 2
  1179. const m___ATOMIC_ACQ_REL = 4
  1180. const m___ATOMIC_CONSUME = 1
  1181. const m___ATOMIC_RELAXED = 0
  1182. const m___ATOMIC_RELEASE = 3
  1183. const m___ATOMIC_SEQ_CST = 5
  1184. const m___AVAILABILITY_FILE = "AvailabilityVersions.h"
  1185. const m___AVAILABILITY_VERSIONS_VERSION_HASH = 93585900
  1186. const m___AVAILABILITY_VERSIONS_VERSION_STRING = "Local"
  1187. const m___BIGGEST_ALIGNMENT__ = 16
  1188. const m___BITINT_MAXWIDTH__ = 8388608
  1189. const m___BLOCKS__ = 1
  1190. const m___BOOL_WIDTH__ = 8
  1191. const m___BRIDGEOS_2_0 = 20000
  1192. const m___BRIDGEOS_3_0 = 30000
  1193. const m___BRIDGEOS_3_1 = 30100
  1194. const m___BRIDGEOS_3_4 = 30400
  1195. const m___BRIDGEOS_4_0 = 40000
  1196. const m___BRIDGEOS_4_1 = 40100
  1197. const m___BRIDGEOS_5_0 = 50000
  1198. const m___BRIDGEOS_5_1 = 50100
  1199. const m___BRIDGEOS_5_3 = 50300
  1200. const m___BRIDGEOS_6_0 = 60000
  1201. const m___BRIDGEOS_6_2 = 60200
  1202. const m___BRIDGEOS_6_4 = 60400
  1203. const m___BRIDGEOS_6_5 = 60500
  1204. const m___BRIDGEOS_6_6 = 60600
  1205. const m___BRIDGEOS_7_0 = 70000
  1206. const m___BRIDGEOS_7_1 = 70100
  1207. const m___BRIDGEOS_7_2 = 70200
  1208. const m___BRIDGEOS_7_3 = 70300
  1209. const m___BRIDGEOS_7_4 = 70400
  1210. const m___BRIDGEOS_7_6 = 70600
  1211. const m___BRIDGEOS_8_0 = 80000
  1212. const m___BRIDGEOS_8_1 = 80100
  1213. const m___BRIDGEOS_8_2 = 80200
  1214. const m___BRIDGEOS_8_3 = 80300
  1215. const m___BRIDGEOS_8_4 = 80400
  1216. const m___BRIDGEOS_8_5 = 80500
  1217. const m___BRIDGEOS_8_6 = 80600
  1218. const m___BRIDGEOS_9_0 = 90000
  1219. const m___BRIDGEOS_9_1 = 90100
  1220. const m___BRIDGEOS_9_2 = 90200
  1221. const m___BRIDGEOS_9_3 = 90300
  1222. const m___BRIDGEOS_9_4 = 90400
  1223. const m___BYTE_ORDER__ = "__ORDER_LITTLE_ENDIAN__"
  1224. const m___CCGO__ = 1
  1225. const m___CHAR_BIT__ = 8
  1226. const m___CLANG_ATOMIC_BOOL_LOCK_FREE = 2
  1227. const m___CLANG_ATOMIC_CHAR16_T_LOCK_FREE = 2
  1228. const m___CLANG_ATOMIC_CHAR32_T_LOCK_FREE = 2
  1229. const m___CLANG_ATOMIC_CHAR_LOCK_FREE = 2
  1230. const m___CLANG_ATOMIC_INT_LOCK_FREE = 2
  1231. const m___CLANG_ATOMIC_LLONG_LOCK_FREE = 2
  1232. const m___CLANG_ATOMIC_LONG_LOCK_FREE = 2
  1233. const m___CLANG_ATOMIC_POINTER_LOCK_FREE = 2
  1234. const m___CLANG_ATOMIC_SHORT_LOCK_FREE = 2
  1235. const m___CLANG_ATOMIC_WCHAR_T_LOCK_FREE = 2
  1236. const m___CONSTANT_CFSTRINGS__ = 1
  1237. const m___DARWIN_64_BIT_INO_T = 1
  1238. const m___DARWIN_BIG_ENDIAN = 4321
  1239. const m___DARWIN_BYTE_ORDER = "__DARWIN_LITTLE_ENDIAN"
  1240. const m___DARWIN_CLK_TCK = 100
  1241. const m___DARWIN_C_ANSI = 010000
  1242. const m___DARWIN_C_FULL = 900000
  1243. const m___DARWIN_C_LEVEL = "__DARWIN_C_FULL"
  1244. const m___DARWIN_FD_SETSIZE = 1024
  1245. const m___DARWIN_LITTLE_ENDIAN = 1234
  1246. const m___DARWIN_MAXNAMLEN = 255
  1247. const m___DARWIN_MAXPATHLEN = 1024
  1248. const m___DARWIN_NBBY = 8
  1249. const m___DARWIN_NON_CANCELABLE = 0
  1250. const m___DARWIN_NO_LONG_LONG = 0
  1251. const m___DARWIN_NSIG = 32
  1252. const m___DARWIN_ONLY_64_BIT_INO_T = 0
  1253. const m___DARWIN_ONLY_UNIX_CONFORMANCE = 1
  1254. const m___DARWIN_ONLY_VERS_1050 = 0
  1255. const m___DARWIN_PDP_ENDIAN = 3412
  1256. const m___DARWIN_SUF_1050 = "$1050"
  1257. const m___DARWIN_SUF_64_BIT_INO_T = "$INODE64"
  1258. const m___DARWIN_SUF_EXTSN = "$DARWIN_EXTSN"
  1259. const m___DARWIN_UNIX03 = 1
  1260. const m___DARWIN_VERS_1050 = 1
  1261. const m___DARWIN_WCHAR_MAX = "__WCHAR_MAX__"
  1262. const m___DBL_DECIMAL_DIG__ = 17
  1263. const m___DBL_DENORM_MIN__ = 4.9406564584124654e-324
  1264. const m___DBL_DIG__ = 15
  1265. const m___DBL_EPSILON__ = 2.2204460492503131e-16
  1266. const m___DBL_HAS_DENORM__ = 1
  1267. const m___DBL_HAS_INFINITY__ = 1
  1268. const m___DBL_HAS_QUIET_NAN__ = 1
  1269. const m___DBL_MANT_DIG__ = 53
  1270. const m___DBL_MAX_10_EXP__ = 308
  1271. const m___DBL_MAX_EXP__ = 1024
  1272. const m___DBL_MAX__ = 1.7976931348623157e+308
  1273. const m___DBL_MIN__ = 2.2250738585072014e-308
  1274. const m___DBL_NORM_MAX__ = 1.7976931348623157e+308
  1275. const m___DECIMAL_DIG__ = "__LDBL_DECIMAL_DIG__"
  1276. const m___DRIVERKIT_19_0 = 190000
  1277. const m___DRIVERKIT_20_0 = 200000
  1278. const m___DRIVERKIT_21_0 = 210000
  1279. const m___DRIVERKIT_22_0 = 220000
  1280. const m___DRIVERKIT_22_4 = 220400
  1281. const m___DRIVERKIT_22_5 = 220500
  1282. const m___DRIVERKIT_22_6 = 220600
  1283. const m___DRIVERKIT_23_0 = 230000
  1284. const m___DRIVERKIT_23_1 = 230100
  1285. const m___DRIVERKIT_23_2 = 230200
  1286. const m___DRIVERKIT_23_3 = 230300
  1287. const m___DRIVERKIT_23_4 = 230400
  1288. const m___DRIVERKIT_23_5 = 230500
  1289. const m___DRIVERKIT_23_6 = 230600
  1290. const m___DRIVERKIT_24_0 = 240000
  1291. const m___DRIVERKIT_24_1 = 240100
  1292. const m___DRIVERKIT_24_2 = 240200
  1293. const m___DRIVERKIT_24_3 = 240300
  1294. const m___DRIVERKIT_24_4 = 240400
  1295. const m___DTF_ATEND = 0x0020
  1296. const m___DTF_READALL = 0x0008
  1297. const m___DTF_SKIPREAD = 0x0010
  1298. const m___DYNAMIC__ = 1
  1299. const m___ENABLE_LEGACY_MAC_AVAILABILITY = 1
  1300. const m___ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ = 150000
  1301. const m___ENVIRONMENT_OS_VERSION_MIN_REQUIRED__ = 150000
  1302. const m___EXTENSIONS__ = 1
  1303. const m___FINITE_MATH_ONLY__ = 0
  1304. const m___FLT16_DECIMAL_DIG__ = 5
  1305. const m___FLT16_DENORM_MIN__ = 5.9604644775390625e-8
  1306. const m___FLT16_DIG__ = 3
  1307. const m___FLT16_EPSILON__ = 9.765625e-4
  1308. const m___FLT16_HAS_DENORM__ = 1
  1309. const m___FLT16_HAS_INFINITY__ = 1
  1310. const m___FLT16_HAS_QUIET_NAN__ = 1
  1311. const m___FLT16_MANT_DIG__ = 11
  1312. const m___FLT16_MAX_10_EXP__ = 4
  1313. const m___FLT16_MAX_EXP__ = 16
  1314. const m___FLT16_MAX__ = 6.5504e+4
  1315. const m___FLT16_MIN__ = 6.103515625e-5
  1316. const m___FLT16_NORM_MAX__ = 6.5504e+4
  1317. const m___FLT_DECIMAL_DIG__ = 9
  1318. const m___FLT_DENORM_MIN__ = 1.40129846e-45
  1319. const m___FLT_DIG__ = 6
  1320. const m___FLT_EPSILON__ = 1.19209290e-7
  1321. const m___FLT_HAS_DENORM__ = 1
  1322. const m___FLT_HAS_INFINITY__ = 1
  1323. const m___FLT_HAS_QUIET_NAN__ = 1
  1324. const m___FLT_MANT_DIG__ = 24
  1325. const m___FLT_MAX_10_EXP__ = 38
  1326. const m___FLT_MAX_EXP__ = 128
  1327. const m___FLT_MAX__ = 3.40282347e+38
  1328. const m___FLT_MIN__ = 1.17549435e-38
  1329. const m___FLT_NORM_MAX__ = 3.40282347e+38
  1330. const m___FLT_RADIX__ = 2
  1331. const m___FPCLASS_NEGINF = 0x0004
  1332. const m___FPCLASS_NEGNORMAL = 0x0008
  1333. const m___FPCLASS_NEGSUBNORMAL = 0x0010
  1334. const m___FPCLASS_NEGZERO = 0x0020
  1335. const m___FPCLASS_POSINF = 0x0200
  1336. const m___FPCLASS_POSNORMAL = 0x0100
  1337. const m___FPCLASS_POSSUBNORMAL = 0x0080
  1338. const m___FPCLASS_POSZERO = 0x0040
  1339. const m___FPCLASS_QNAN = 0x0002
  1340. const m___FPCLASS_SNAN = 0x0001
  1341. const m___FUNCTION__ = "__func__"
  1342. const m___FXSR__ = 1
  1343. const m___GCC_ASM_FLAG_OUTPUTS__ = 1
  1344. const m___GCC_ATOMIC_BOOL_LOCK_FREE = 2
  1345. const m___GCC_ATOMIC_CHAR16_T_LOCK_FREE = 2
  1346. const m___GCC_ATOMIC_CHAR32_T_LOCK_FREE = 2
  1347. const m___GCC_ATOMIC_CHAR_LOCK_FREE = 2
  1348. const m___GCC_ATOMIC_INT_LOCK_FREE = 2
  1349. const m___GCC_ATOMIC_LLONG_LOCK_FREE = 2
  1350. const m___GCC_ATOMIC_LONG_LOCK_FREE = 2
  1351. const m___GCC_ATOMIC_POINTER_LOCK_FREE = 2
  1352. const m___GCC_ATOMIC_SHORT_LOCK_FREE = 2
  1353. const m___GCC_ATOMIC_TEST_AND_SET_TRUEVAL = 1
  1354. const m___GCC_ATOMIC_WCHAR_T_LOCK_FREE = 2
  1355. const m___GCC_CONSTRUCTIVE_SIZE = 64
  1356. const m___GCC_DESTRUCTIVE_SIZE = 64
  1357. const m___GCC_HAVE_DWARF2_CFI_ASM = 1
  1358. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_1 = 1
  1359. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_16 = 1
  1360. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_2 = 1
  1361. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 = 1
  1362. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 = 1
  1363. const m___GNUC_MINOR__ = 2
  1364. const m___GNUC_PATCHLEVEL__ = 1
  1365. const m___GNUC_STDC_INLINE__ = 1
  1366. const m___GNUC__ = 4
  1367. const m___GXX_ABI_VERSION = 1002
  1368. const m___INT16_FMTd__ = "hd"
  1369. const m___INT16_FMTi__ = "hi"
  1370. const m___INT16_MAX__ = 32767
  1371. const m___INT16_TYPE__ = "short"
  1372. const m___INT32_FMTd__ = "d"
  1373. const m___INT32_FMTi__ = "i"
  1374. const m___INT32_MAX__ = 2147483647
  1375. const m___INT32_TYPE__ = "int"
  1376. const m___INT64_C_SUFFIX__ = "LL"
  1377. const m___INT64_FMTd__ = "lld"
  1378. const m___INT64_FMTi__ = "lli"
  1379. const m___INT64_MAX__ = 9223372036854775807
  1380. const m___INT8_FMTd__ = "hhd"
  1381. const m___INT8_FMTi__ = "hhi"
  1382. const m___INT8_MAX__ = 127
  1383. const m___INTMAX_C_SUFFIX__ = "L"
  1384. const m___INTMAX_FMTd__ = "ld"
  1385. const m___INTMAX_FMTi__ = "li"
  1386. const m___INTMAX_MAX__ = 9223372036854775807
  1387. const m___INTMAX_WIDTH__ = 64
  1388. const m___INTPTR_FMTd__ = "ld"
  1389. const m___INTPTR_FMTi__ = "li"
  1390. const m___INTPTR_MAX__ = 9223372036854775807
  1391. const m___INTPTR_WIDTH__ = 64
  1392. const m___INT_FAST16_FMTd__ = "hd"
  1393. const m___INT_FAST16_FMTi__ = "hi"
  1394. const m___INT_FAST16_MAX__ = 32767
  1395. const m___INT_FAST16_TYPE__ = "short"
  1396. const m___INT_FAST16_WIDTH__ = 16
  1397. const m___INT_FAST32_FMTd__ = "d"
  1398. const m___INT_FAST32_FMTi__ = "i"
  1399. const m___INT_FAST32_MAX__ = 2147483647
  1400. const m___INT_FAST32_TYPE__ = "int"
  1401. const m___INT_FAST32_WIDTH__ = 32
  1402. const m___INT_FAST64_FMTd__ = "lld"
  1403. const m___INT_FAST64_FMTi__ = "lli"
  1404. const m___INT_FAST64_MAX__ = 9223372036854775807
  1405. const m___INT_FAST64_WIDTH__ = 64
  1406. const m___INT_FAST8_FMTd__ = "hhd"
  1407. const m___INT_FAST8_FMTi__ = "hhi"
  1408. const m___INT_FAST8_MAX__ = 127
  1409. const m___INT_FAST8_WIDTH__ = 8
  1410. const m___INT_LEAST16_FMTd__ = "hd"
  1411. const m___INT_LEAST16_FMTi__ = "hi"
  1412. const m___INT_LEAST16_MAX__ = 32767
  1413. const m___INT_LEAST16_TYPE__ = "short"
  1414. const m___INT_LEAST16_WIDTH__ = 16
  1415. const m___INT_LEAST32_FMTd__ = "d"
  1416. const m___INT_LEAST32_FMTi__ = "i"
  1417. const m___INT_LEAST32_MAX__ = 2147483647
  1418. const m___INT_LEAST32_TYPE__ = "int"
  1419. const m___INT_LEAST32_WIDTH__ = 32
  1420. const m___INT_LEAST64_FMTd__ = "lld"
  1421. const m___INT_LEAST64_FMTi__ = "lli"
  1422. const m___INT_LEAST64_MAX__ = 9223372036854775807
  1423. const m___INT_LEAST64_WIDTH__ = 64
  1424. const m___INT_LEAST8_FMTd__ = "hhd"
  1425. const m___INT_LEAST8_FMTi__ = "hhi"
  1426. const m___INT_LEAST8_MAX__ = 127
  1427. const m___INT_LEAST8_WIDTH__ = 8
  1428. const m___INT_MAX__ = 2147483647
  1429. const m___INT_WIDTH__ = 32
  1430. const m___IPHONE_10_0 = 100000
  1431. const m___IPHONE_10_1 = 100100
  1432. const m___IPHONE_10_2 = 100200
  1433. const m___IPHONE_10_3 = 100300
  1434. const m___IPHONE_11_0 = 110000
  1435. const m___IPHONE_11_1 = 110100
  1436. const m___IPHONE_11_2 = 110200
  1437. const m___IPHONE_11_3 = 110300
  1438. const m___IPHONE_11_4 = 110400
  1439. const m___IPHONE_12_0 = 120000
  1440. const m___IPHONE_12_1 = 120100
  1441. const m___IPHONE_12_2 = 120200
  1442. const m___IPHONE_12_3 = 120300
  1443. const m___IPHONE_12_4 = 120400
  1444. const m___IPHONE_13_0 = 130000
  1445. const m___IPHONE_13_1 = 130100
  1446. const m___IPHONE_13_2 = 130200
  1447. const m___IPHONE_13_3 = 130300
  1448. const m___IPHONE_13_4 = 130400
  1449. const m___IPHONE_13_5 = 130500
  1450. const m___IPHONE_13_6 = 130600
  1451. const m___IPHONE_13_7 = 130700
  1452. const m___IPHONE_14_0 = 140000
  1453. const m___IPHONE_14_1 = 140100
  1454. const m___IPHONE_14_2 = 140200
  1455. const m___IPHONE_14_3 = 140300
  1456. const m___IPHONE_14_4 = 140400
  1457. const m___IPHONE_14_5 = 140500
  1458. const m___IPHONE_14_6 = 140600
  1459. const m___IPHONE_14_7 = 140700
  1460. const m___IPHONE_14_8 = 140800
  1461. const m___IPHONE_15_0 = 150000
  1462. const m___IPHONE_15_1 = 150100
  1463. const m___IPHONE_15_2 = 150200
  1464. const m___IPHONE_15_3 = 150300
  1465. const m___IPHONE_15_4 = 150400
  1466. const m___IPHONE_15_5 = 150500
  1467. const m___IPHONE_15_6 = 150600
  1468. const m___IPHONE_15_7 = 150700
  1469. const m___IPHONE_15_8 = 150800
  1470. const m___IPHONE_16_0 = 160000
  1471. const m___IPHONE_16_1 = 160100
  1472. const m___IPHONE_16_2 = 160200
  1473. const m___IPHONE_16_3 = 160300
  1474. const m___IPHONE_16_4 = 160400
  1475. const m___IPHONE_16_5 = 160500
  1476. const m___IPHONE_16_6 = 160600
  1477. const m___IPHONE_16_7 = 160700
  1478. const m___IPHONE_17_0 = 170000
  1479. const m___IPHONE_17_1 = 170100
  1480. const m___IPHONE_17_2 = 170200
  1481. const m___IPHONE_17_3 = 170300
  1482. const m___IPHONE_17_4 = 170400
  1483. const m___IPHONE_17_5 = 170500
  1484. const m___IPHONE_17_6 = 170600
  1485. const m___IPHONE_17_7 = 170700
  1486. const m___IPHONE_18_0 = 180000
  1487. const m___IPHONE_18_1 = 180100
  1488. const m___IPHONE_18_2 = 180200
  1489. const m___IPHONE_18_3 = 180300
  1490. const m___IPHONE_18_4 = 180400
  1491. const m___IPHONE_2_0 = 20000
  1492. const m___IPHONE_2_1 = 20100
  1493. const m___IPHONE_2_2 = 20200
  1494. const m___IPHONE_3_0 = 30000
  1495. const m___IPHONE_3_1 = 30100
  1496. const m___IPHONE_3_2 = 30200
  1497. const m___IPHONE_4_0 = 40000
  1498. const m___IPHONE_4_1 = 40100
  1499. const m___IPHONE_4_2 = 40200
  1500. const m___IPHONE_4_3 = 40300
  1501. const m___IPHONE_5_0 = 50000
  1502. const m___IPHONE_5_1 = 50100
  1503. const m___IPHONE_6_0 = 60000
  1504. const m___IPHONE_6_1 = 60100
  1505. const m___IPHONE_7_0 = 70000
  1506. const m___IPHONE_7_1 = 70100
  1507. const m___IPHONE_8_0 = 80000
  1508. const m___IPHONE_8_1 = 80100
  1509. const m___IPHONE_8_2 = 80200
  1510. const m___IPHONE_8_3 = 80300
  1511. const m___IPHONE_8_4 = 80400
  1512. const m___IPHONE_9_0 = 90000
  1513. const m___IPHONE_9_1 = 90100
  1514. const m___IPHONE_9_2 = 90200
  1515. const m___IPHONE_9_3 = 90300
  1516. const m___LAHF_SAHF__ = 1
  1517. const m___LASTBRANCH_MAX = 32
  1518. const m___LDBL_DECIMAL_DIG__ = 17
  1519. const m___LDBL_DENORM_MIN__ = 4.9406564584124654e-324
  1520. const m___LDBL_DIG__ = 15
  1521. const m___LDBL_EPSILON__ = 2.2204460492503131e-16
  1522. const m___LDBL_HAS_DENORM__ = 1
  1523. const m___LDBL_HAS_INFINITY__ = 1
  1524. const m___LDBL_HAS_QUIET_NAN__ = 1
  1525. const m___LDBL_MANT_DIG__ = 53
  1526. const m___LDBL_MAX_10_EXP__ = 308
  1527. const m___LDBL_MAX_EXP__ = 1024
  1528. const m___LDBL_MAX__ = 1.7976931348623157e+308
  1529. const m___LDBL_MIN__ = 2.2250738585072014e-308
  1530. const m___LDBL_NORM_MAX__ = 1.7976931348623157e+308
  1531. const m___LITTLE_ENDIAN__ = 1
  1532. const m___LLONG_WIDTH__ = 64
  1533. const m___LONG_LONG_MAX__ = 9223372036854775807
  1534. const m___LONG_MAX__ = 9223372036854775807
  1535. const m___LONG_WIDTH__ = 64
  1536. const m___LP64_OFF64 = 1
  1537. const m___LP64__ = 1
  1538. const m___LPBIG_OFFBIG = 1
  1539. const m___MACH__ = 1
  1540. const m___MAC_10_0 = 1000
  1541. const m___MAC_10_1 = 1010
  1542. const m___MAC_10_10 = 101000
  1543. const m___MAC_10_10_2 = 101002
  1544. const m___MAC_10_10_3 = 101003
  1545. const m___MAC_10_11 = 101100
  1546. const m___MAC_10_11_2 = 101102
  1547. const m___MAC_10_11_3 = 101103
  1548. const m___MAC_10_11_4 = 101104
  1549. const m___MAC_10_12 = 101200
  1550. const m___MAC_10_12_1 = 101201
  1551. const m___MAC_10_12_2 = 101202
  1552. const m___MAC_10_12_4 = 101204
  1553. const m___MAC_10_13 = 101300
  1554. const m___MAC_10_13_1 = 101301
  1555. const m___MAC_10_13_2 = 101302
  1556. const m___MAC_10_13_4 = 101304
  1557. const m___MAC_10_14 = 101400
  1558. const m___MAC_10_14_1 = 101401
  1559. const m___MAC_10_14_4 = 101404
  1560. const m___MAC_10_14_5 = 101405
  1561. const m___MAC_10_14_6 = 101406
  1562. const m___MAC_10_15 = 101500
  1563. const m___MAC_10_15_1 = 101501
  1564. const m___MAC_10_15_4 = 101504
  1565. const m___MAC_10_16 = 101600
  1566. const m___MAC_10_2 = 1020
  1567. const m___MAC_10_3 = 1030
  1568. const m___MAC_10_4 = 1040
  1569. const m___MAC_10_5 = 1050
  1570. const m___MAC_10_6 = 1060
  1571. const m___MAC_10_7 = 1070
  1572. const m___MAC_10_8 = 1080
  1573. const m___MAC_10_9 = 1090
  1574. const m___MAC_11_0 = 110000
  1575. const m___MAC_11_1 = 110100
  1576. const m___MAC_11_3 = 110300
  1577. const m___MAC_11_4 = 110400
  1578. const m___MAC_11_5 = 110500
  1579. const m___MAC_11_6 = 110600
  1580. const m___MAC_12_0 = 120000
  1581. const m___MAC_12_1 = 120100
  1582. const m___MAC_12_2 = 120200
  1583. const m___MAC_12_3 = 120300
  1584. const m___MAC_12_4 = 120400
  1585. const m___MAC_12_5 = 120500
  1586. const m___MAC_12_6 = 120600
  1587. const m___MAC_12_7 = 120700
  1588. const m___MAC_13_0 = 130000
  1589. const m___MAC_13_1 = 130100
  1590. const m___MAC_13_2 = 130200
  1591. const m___MAC_13_3 = 130300
  1592. const m___MAC_13_4 = 130400
  1593. const m___MAC_13_5 = 130500
  1594. const m___MAC_13_6 = 130600
  1595. const m___MAC_13_7 = 130700
  1596. const m___MAC_14_0 = 140000
  1597. const m___MAC_14_1 = 140100
  1598. const m___MAC_14_2 = 140200
  1599. const m___MAC_14_3 = 140300
  1600. const m___MAC_14_4 = 140400
  1601. const m___MAC_14_5 = 140500
  1602. const m___MAC_14_6 = 140600
  1603. const m___MAC_14_7 = 140700
  1604. const m___MAC_15_0 = 150000
  1605. const m___MAC_15_1 = 150100
  1606. const m___MAC_15_2 = 150200
  1607. const m___MAC_15_3 = 150300
  1608. const m___MAC_15_4 = 150400
  1609. const m___MAC_OS_X_VERSION_MAX_ALLOWED = "__MAC_15_4"
  1610. const m___MAC_OS_X_VERSION_MIN_REQUIRED = "__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__"
  1611. const m___MEMORY_SCOPE_DEVICE = 1
  1612. const m___MEMORY_SCOPE_SINGLE = 4
  1613. const m___MEMORY_SCOPE_SYSTEM = 0
  1614. const m___MEMORY_SCOPE_WRKGRP = 2
  1615. const m___MEMORY_SCOPE_WVFRNT = 3
  1616. const m___MMX__ = 1
  1617. const m___NO_INLINE__ = 1
  1618. const m___NO_MATH_ERRNO__ = 1
  1619. const m___NO_MATH_INLINES = 1
  1620. const m___OBJC_BOOL_IS_BOOL = 0
  1621. const m___OPENCL_MEMORY_SCOPE_ALL_SVM_DEVICES = 3
  1622. const m___OPENCL_MEMORY_SCOPE_DEVICE = 2
  1623. const m___OPENCL_MEMORY_SCOPE_SUB_GROUP = 4
  1624. const m___OPENCL_MEMORY_SCOPE_WORK_GROUP = 1
  1625. const m___OPENCL_MEMORY_SCOPE_WORK_ITEM = 0
  1626. const m___ORDER_BIG_ENDIAN__ = 4321
  1627. const m___ORDER_LITTLE_ENDIAN__ = 1234
  1628. const m___ORDER_PDP_ENDIAN__ = 3412
  1629. const m___PIC__ = 2
  1630. const m___POINTER_WIDTH__ = 64
  1631. const m___PRAGMA_REDEFINE_EXTNAME = 1
  1632. const m___PRETTY_FUNCTION__ = "__func__"
  1633. const m___PTHREAD_ATTR_SIZE__ = 56
  1634. const m___PTHREAD_CONDATTR_SIZE__ = 8
  1635. const m___PTHREAD_COND_SIZE__ = 40
  1636. const m___PTHREAD_MUTEXATTR_SIZE__ = 8
  1637. const m___PTHREAD_MUTEX_SIZE__ = 56
  1638. const m___PTHREAD_ONCE_SIZE__ = 8
  1639. const m___PTHREAD_RWLOCKATTR_SIZE__ = 16
  1640. const m___PTHREAD_RWLOCK_SIZE__ = 192
  1641. const m___PTHREAD_SIZE__ = 8176
  1642. const m___PTRDIFF_FMTd__ = "ld"
  1643. const m___PTRDIFF_FMTi__ = "li"
  1644. const m___PTRDIFF_MAX__ = 9223372036854775807
  1645. const m___PTRDIFF_WIDTH__ = 64
  1646. const m___REENTRANT = 1
  1647. const m___SALC = 0x4000
  1648. const m___SAPP = 0x0100
  1649. const m___SCHAR_MAX__ = 127
  1650. const m___SEG_FS = 1
  1651. const m___SEG_GS = 1
  1652. const m___SEOF = 0x0020
  1653. const m___SERR = 0x0040
  1654. const m___SHRT_MAX__ = 32767
  1655. const m___SHRT_WIDTH__ = 16
  1656. const m___SIGN = 0x8000
  1657. const m___SIG_ATOMIC_MAX__ = 2147483647
  1658. const m___SIG_ATOMIC_WIDTH__ = 32
  1659. const m___SIZEOF_DOUBLE__ = 8
  1660. const m___SIZEOF_FLOAT__ = 4
  1661. const m___SIZEOF_INT128__ = 16
  1662. const m___SIZEOF_INT__ = 4
  1663. const m___SIZEOF_LONG_DOUBLE__ = 8
  1664. const m___SIZEOF_LONG_LONG__ = 8
  1665. const m___SIZEOF_LONG__ = 8
  1666. const m___SIZEOF_POINTER__ = 8
  1667. const m___SIZEOF_PTRDIFF_T__ = 8
  1668. const m___SIZEOF_SHORT__ = 2
  1669. const m___SIZEOF_SIZE_T__ = 8
  1670. const m___SIZEOF_WCHAR_T__ = 4
  1671. const m___SIZEOF_WINT_T__ = 4
  1672. const m___SIZE_FMTX__ = "lX"
  1673. const m___SIZE_FMTo__ = "lo"
  1674. const m___SIZE_FMTu__ = "lu"
  1675. const m___SIZE_FMTx__ = "lx"
  1676. const m___SIZE_MAX__ = 18446744073709551615
  1677. const m___SIZE_WIDTH__ = 64
  1678. const m___SLBF = 0x0001
  1679. const m___SMBF = 0x0080
  1680. const m___SMOD = 0x2000
  1681. const m___SNBF = 0x0002
  1682. const m___SNPT = 0x0800
  1683. const m___SOFF = 0x1000
  1684. const m___SOPT = 0x0400
  1685. const m___SRD = 0x0004
  1686. const m___SRW = 0x0010
  1687. const m___SSE2_MATH__ = 1
  1688. const m___SSE2__ = 1
  1689. const m___SSE3__ = 1
  1690. const m___SSE4_1__ = 1
  1691. const m___SSE_MATH__ = 1
  1692. const m___SSE__ = 1
  1693. const m___SSP__ = 1
  1694. const m___SSSE3__ = 1
  1695. const m___SSTR = 0x0200
  1696. const m___STDC_EMBED_EMPTY__ = 2
  1697. const m___STDC_EMBED_FOUND__ = 1
  1698. const m___STDC_EMBED_NOT_FOUND__ = 0
  1699. const m___STDC_HOSTED__ = 1
  1700. const m___STDC_NO_THREADS__ = 1
  1701. const m___STDC_UTF_16__ = 1
  1702. const m___STDC_UTF_32__ = 1
  1703. const m___STDC_VERSION__ = 201710
  1704. const m___STDC_WANT_IEC_60559_ATTRIBS_EXT__ = 1
  1705. const m___STDC_WANT_IEC_60559_BFP_EXT__ = 1
  1706. const m___STDC_WANT_IEC_60559_DFP_EXT__ = 1
  1707. const m___STDC_WANT_IEC_60559_EXT__ = 1
  1708. const m___STDC_WANT_IEC_60559_FUNCS_EXT__ = 1
  1709. const m___STDC_WANT_IEC_60559_TYPES_EXT__ = 1
  1710. const m___STDC_WANT_LIB_EXT1__ = 1
  1711. const m___STDC_WANT_LIB_EXT2__ = 1
  1712. const m___STDC_WANT_MATH_SPEC_FUNCS__ = 1
  1713. const m___STDC__ = 1
  1714. const m___SWR = 0x0008
  1715. const m___TVOS_10_0 = 100000
  1716. const m___TVOS_10_0_1 = 100001
  1717. const m___TVOS_10_1 = 100100
  1718. const m___TVOS_10_2 = 100200
  1719. const m___TVOS_11_0 = 110000
  1720. const m___TVOS_11_1 = 110100
  1721. const m___TVOS_11_2 = 110200
  1722. const m___TVOS_11_3 = 110300
  1723. const m___TVOS_11_4 = 110400
  1724. const m___TVOS_12_0 = 120000
  1725. const m___TVOS_12_1 = 120100
  1726. const m___TVOS_12_2 = 120200
  1727. const m___TVOS_12_3 = 120300
  1728. const m___TVOS_12_4 = 120400
  1729. const m___TVOS_13_0 = 130000
  1730. const m___TVOS_13_2 = 130200
  1731. const m___TVOS_13_3 = 130300
  1732. const m___TVOS_13_4 = 130400
  1733. const m___TVOS_14_0 = 140000
  1734. const m___TVOS_14_1 = 140100
  1735. const m___TVOS_14_2 = 140200
  1736. const m___TVOS_14_3 = 140300
  1737. const m___TVOS_14_5 = 140500
  1738. const m___TVOS_14_6 = 140600
  1739. const m___TVOS_14_7 = 140700
  1740. const m___TVOS_15_0 = 150000
  1741. const m___TVOS_15_1 = 150100
  1742. const m___TVOS_15_2 = 150200
  1743. const m___TVOS_15_3 = 150300
  1744. const m___TVOS_15_4 = 150400
  1745. const m___TVOS_15_5 = 150500
  1746. const m___TVOS_15_6 = 150600
  1747. const m___TVOS_16_0 = 160000
  1748. const m___TVOS_16_1 = 160100
  1749. const m___TVOS_16_2 = 160200
  1750. const m___TVOS_16_3 = 160300
  1751. const m___TVOS_16_4 = 160400
  1752. const m___TVOS_16_5 = 160500
  1753. const m___TVOS_16_6 = 160600
  1754. const m___TVOS_17_0 = 170000
  1755. const m___TVOS_17_1 = 170100
  1756. const m___TVOS_17_2 = 170200
  1757. const m___TVOS_17_3 = 170300
  1758. const m___TVOS_17_4 = 170400
  1759. const m___TVOS_17_5 = 170500
  1760. const m___TVOS_17_6 = 170600
  1761. const m___TVOS_18_0 = 180000
  1762. const m___TVOS_18_1 = 180100
  1763. const m___TVOS_18_2 = 180200
  1764. const m___TVOS_18_3 = 180300
  1765. const m___TVOS_18_4 = 180400
  1766. const m___TVOS_9_0 = 90000
  1767. const m___TVOS_9_1 = 90100
  1768. const m___TVOS_9_2 = 90200
  1769. const m___UINT16_FMTX__ = "hX"
  1770. const m___UINT16_FMTo__ = "ho"
  1771. const m___UINT16_FMTu__ = "hu"
  1772. const m___UINT16_FMTx__ = "hx"
  1773. const m___UINT16_MAX__ = 65535
  1774. const m___UINT32_C_SUFFIX__ = "U"
  1775. const m___UINT32_FMTX__ = "X"
  1776. const m___UINT32_FMTo__ = "o"
  1777. const m___UINT32_FMTu__ = "u"
  1778. const m___UINT32_FMTx__ = "x"
  1779. const m___UINT32_MAX__ = 4294967295
  1780. const m___UINT64_C_SUFFIX__ = "ULL"
  1781. const m___UINT64_FMTX__ = "llX"
  1782. const m___UINT64_FMTo__ = "llo"
  1783. const m___UINT64_FMTu__ = "llu"
  1784. const m___UINT64_FMTx__ = "llx"
  1785. const m___UINT64_MAX__ = "18446744073709551615U"
  1786. const m___UINT8_FMTX__ = "hhX"
  1787. const m___UINT8_FMTo__ = "hho"
  1788. const m___UINT8_FMTu__ = "hhu"
  1789. const m___UINT8_FMTx__ = "hhx"
  1790. const m___UINT8_MAX__ = 255
  1791. const m___UINTMAX_C_SUFFIX__ = "UL"
  1792. const m___UINTMAX_FMTX__ = "lX"
  1793. const m___UINTMAX_FMTo__ = "lo"
  1794. const m___UINTMAX_FMTu__ = "lu"
  1795. const m___UINTMAX_FMTx__ = "lx"
  1796. const m___UINTMAX_MAX__ = 18446744073709551615
  1797. const m___UINTMAX_WIDTH__ = 64
  1798. const m___UINTPTR_FMTX__ = "lX"
  1799. const m___UINTPTR_FMTo__ = "lo"
  1800. const m___UINTPTR_FMTu__ = "lu"
  1801. const m___UINTPTR_FMTx__ = "lx"
  1802. const m___UINTPTR_MAX__ = 18446744073709551615
  1803. const m___UINTPTR_WIDTH__ = 64
  1804. const m___UINT_FAST16_FMTX__ = "hX"
  1805. const m___UINT_FAST16_FMTo__ = "ho"
  1806. const m___UINT_FAST16_FMTu__ = "hu"
  1807. const m___UINT_FAST16_FMTx__ = "hx"
  1808. const m___UINT_FAST16_MAX__ = 65535
  1809. const m___UINT_FAST32_FMTX__ = "X"
  1810. const m___UINT_FAST32_FMTo__ = "o"
  1811. const m___UINT_FAST32_FMTu__ = "u"
  1812. const m___UINT_FAST32_FMTx__ = "x"
  1813. const m___UINT_FAST32_MAX__ = 4294967295
  1814. const m___UINT_FAST64_FMTX__ = "llX"
  1815. const m___UINT_FAST64_FMTo__ = "llo"
  1816. const m___UINT_FAST64_FMTu__ = "llu"
  1817. const m___UINT_FAST64_FMTx__ = "llx"
  1818. const m___UINT_FAST64_MAX__ = "18446744073709551615U"
  1819. const m___UINT_FAST8_FMTX__ = "hhX"
  1820. const m___UINT_FAST8_FMTo__ = "hho"
  1821. const m___UINT_FAST8_FMTu__ = "hhu"
  1822. const m___UINT_FAST8_FMTx__ = "hhx"
  1823. const m___UINT_FAST8_MAX__ = 255
  1824. const m___UINT_LEAST16_FMTX__ = "hX"
  1825. const m___UINT_LEAST16_FMTo__ = "ho"
  1826. const m___UINT_LEAST16_FMTu__ = "hu"
  1827. const m___UINT_LEAST16_FMTx__ = "hx"
  1828. const m___UINT_LEAST16_MAX__ = 65535
  1829. const m___UINT_LEAST32_FMTX__ = "X"
  1830. const m___UINT_LEAST32_FMTo__ = "o"
  1831. const m___UINT_LEAST32_FMTu__ = "u"
  1832. const m___UINT_LEAST32_FMTx__ = "x"
  1833. const m___UINT_LEAST32_MAX__ = 4294967295
  1834. const m___UINT_LEAST64_FMTX__ = "llX"
  1835. const m___UINT_LEAST64_FMTo__ = "llo"
  1836. const m___UINT_LEAST64_FMTu__ = "llu"
  1837. const m___UINT_LEAST64_FMTx__ = "llx"
  1838. const m___UINT_LEAST64_MAX__ = "18446744073709551615U"
  1839. const m___UINT_LEAST8_FMTX__ = "hhX"
  1840. const m___UINT_LEAST8_FMTo__ = "hho"
  1841. const m___UINT_LEAST8_FMTu__ = "hhu"
  1842. const m___UINT_LEAST8_FMTx__ = "hhx"
  1843. const m___UINT_LEAST8_MAX__ = 255
  1844. const m___USER_LABEL_PREFIX__ = "_"
  1845. const m___VERSION__ = "Apple LLVM 17.0.0 (clang-1700.0.13.3)"
  1846. const m___VISIONOS_1_0 = 10000
  1847. const m___VISIONOS_1_1 = 10100
  1848. const m___VISIONOS_1_2 = 10200
  1849. const m___VISIONOS_1_3 = 10300
  1850. const m___VISIONOS_2_0 = 20000
  1851. const m___VISIONOS_2_1 = 20100
  1852. const m___VISIONOS_2_2 = 20200
  1853. const m___VISIONOS_2_3 = 20300
  1854. const m___VISIONOS_2_4 = 20400
  1855. const m___WATCHOS_10_0 = 100000
  1856. const m___WATCHOS_10_1 = 100100
  1857. const m___WATCHOS_10_2 = 100200
  1858. const m___WATCHOS_10_3 = 100300
  1859. const m___WATCHOS_10_4 = 100400
  1860. const m___WATCHOS_10_5 = 100500
  1861. const m___WATCHOS_10_6 = 100600
  1862. const m___WATCHOS_10_7 = 100700
  1863. const m___WATCHOS_11_0 = 110000
  1864. const m___WATCHOS_11_1 = 110100
  1865. const m___WATCHOS_11_2 = 110200
  1866. const m___WATCHOS_11_3 = 110300
  1867. const m___WATCHOS_11_4 = 110400
  1868. const m___WATCHOS_1_0 = 10000
  1869. const m___WATCHOS_2_0 = 20000
  1870. const m___WATCHOS_2_1 = 20100
  1871. const m___WATCHOS_2_2 = 20200
  1872. const m___WATCHOS_3_0 = 30000
  1873. const m___WATCHOS_3_1 = 30100
  1874. const m___WATCHOS_3_1_1 = 30101
  1875. const m___WATCHOS_3_2 = 30200
  1876. const m___WATCHOS_4_0 = 40000
  1877. const m___WATCHOS_4_1 = 40100
  1878. const m___WATCHOS_4_2 = 40200
  1879. const m___WATCHOS_4_3 = 40300
  1880. const m___WATCHOS_5_0 = 50000
  1881. const m___WATCHOS_5_1 = 50100
  1882. const m___WATCHOS_5_2 = 50200
  1883. const m___WATCHOS_5_3 = 50300
  1884. const m___WATCHOS_6_0 = 60000
  1885. const m___WATCHOS_6_1 = 60100
  1886. const m___WATCHOS_6_2 = 60200
  1887. const m___WATCHOS_7_0 = 70000
  1888. const m___WATCHOS_7_1 = 70100
  1889. const m___WATCHOS_7_2 = 70200
  1890. const m___WATCHOS_7_3 = 70300
  1891. const m___WATCHOS_7_4 = 70400
  1892. const m___WATCHOS_7_5 = 70500
  1893. const m___WATCHOS_7_6 = 70600
  1894. const m___WATCHOS_8_0 = 80000
  1895. const m___WATCHOS_8_1 = 80100
  1896. const m___WATCHOS_8_3 = 80300
  1897. const m___WATCHOS_8_4 = 80400
  1898. const m___WATCHOS_8_5 = 80500
  1899. const m___WATCHOS_8_6 = 80600
  1900. const m___WATCHOS_8_7 = 80700
  1901. const m___WATCHOS_8_8 = 80800
  1902. const m___WATCHOS_9_0 = 90000
  1903. const m___WATCHOS_9_1 = 90100
  1904. const m___WATCHOS_9_2 = 90200
  1905. const m___WATCHOS_9_3 = 90300
  1906. const m___WATCHOS_9_4 = 90400
  1907. const m___WATCHOS_9_5 = 90500
  1908. const m___WATCHOS_9_6 = 90600
  1909. const m___WCHAR_MAX__ = 2147483647
  1910. const m___WCHAR_TYPE__ = "int"
  1911. const m___WCHAR_WIDTH__ = 32
  1912. const m___WINT_MAX__ = 2147483647
  1913. const m___WINT_TYPE__ = "int"
  1914. const m___WINT_WIDTH__ = 32
  1915. const m___WORDSIZE = 64
  1916. const m___amd64 = 1
  1917. const m___amd64__ = 1
  1918. const m___apple_build_version__ = 17000013
  1919. const m___clang__ = 1
  1920. const m___clang_literal_encoding__ = "UTF-8"
  1921. const m___clang_major__ = 17
  1922. const m___clang_minor__ = 0
  1923. const m___clang_patchlevel__ = 0
  1924. const m___clang_version__ = "17.0.0 (clang-1700.0.13.3)"
  1925. const m___clang_wide_literal_encoding__ = "UTF-32"
  1926. const m___code_model_small__ = 1
  1927. const m___const = "const"
  1928. const m___core2 = 1
  1929. const m___core2__ = 1
  1930. const m___has_bounds_safety_attributes = 0
  1931. const m___has_ptrcheck = 0
  1932. const m___has_safe_buffers = 0
  1933. const m___header_inline = "inline"
  1934. const m___llvm__ = 1
  1935. const m___nonnull = "_Nonnull"
  1936. const m___null_unspecified = "_Null_unspecified"
  1937. const m___nullable = "_Nullable"
  1938. const m___pic__ = 2
  1939. const m___restrict = "restrict"
  1940. const m___restrict_arr = "restrict"
  1941. const m___signed = "signed"
  1942. const m___tune_core2__ = 1
  1943. const m___volatile = "volatile"
  1944. const m___x86_64 = 1
  1945. const m___x86_64__ = 1
  1946. const m_d_fileno = "d_ino"
  1947. const m_ru_first = "ru_ixrss"
  1948. const m_ru_last = "ru_nivcsw"
  1949. const m_stderr = "__stderrp"
  1950. const m_stdin = "__stdinp"
  1951. const m_stdout = "__stdoutp"
  1952. const m_sv_onstack = "sv_flags"
  1953. type t__builtin_va_list = uintptr
  1954. type t__predefined_size_t = uint64
  1955. type t__predefined_wchar_t = int32
  1956. type t__predefined_ptrdiff_t = int64
  1957. type Terrno_t = int32
  1958. type t__int8_t = int8
  1959. type t__uint8_t = uint8
  1960. type t__int16_t = int16
  1961. type t__uint16_t = uint16
  1962. type t__int32_t = int32
  1963. type t__uint32_t = uint32
  1964. type t__int64_t = int64
  1965. type t__uint64_t = uint64
  1966. type t__darwin_intptr_t = int64
  1967. type t__darwin_natural_t = uint32
  1968. type t__darwin_ct_rune_t = int32
  1969. type t__mbstate_t = struct {
  1970. F_mbstateL [0]int64
  1971. F__mbstate8 [128]int8
  1972. }
  1973. type t__darwin_mbstate_t = struct {
  1974. F_mbstateL [0]int64
  1975. F__mbstate8 [128]int8
  1976. }
  1977. type t__darwin_ptrdiff_t = int64
  1978. type t__darwin_size_t = uint64
  1979. type t__darwin_va_list = uintptr
  1980. type t__darwin_wchar_t = int32
  1981. type t__darwin_rune_t = int32
  1982. type t__darwin_wint_t = int32
  1983. type t__darwin_clock_t = uint64
  1984. type t__darwin_socklen_t = uint32
  1985. type t__darwin_ssize_t = int64
  1986. type t__darwin_time_t = int64
  1987. type t__darwin_blkcnt_t = int64
  1988. type t__darwin_blksize_t = int32
  1989. type t__darwin_dev_t = int32
  1990. type t__darwin_fsblkcnt_t = uint32
  1991. type t__darwin_fsfilcnt_t = uint32
  1992. type t__darwin_gid_t = uint32
  1993. type t__darwin_id_t = uint32
  1994. type t__darwin_ino64_t = uint64
  1995. type t__darwin_ino_t = uint64
  1996. type t__darwin_mach_port_name_t = uint32
  1997. type t__darwin_mach_port_t = uint32
  1998. type t__darwin_mode_t = uint16
  1999. type t__darwin_off_t = int64
  2000. type t__darwin_pid_t = int32
  2001. type t__darwin_sigset_t = uint32
  2002. type t__darwin_suseconds_t = int32
  2003. type t__darwin_uid_t = uint32
  2004. type t__darwin_useconds_t = uint32
  2005. type t__darwin_uuid_t = [16]uint8
  2006. type t__darwin_uuid_string_t = [37]int8
  2007. type t__darwin_pthread_handler_rec = struct {
  2008. F__routine uintptr
  2009. F__arg uintptr
  2010. F__next uintptr
  2011. }
  2012. type T_opaque_pthread_attr_t = struct {
  2013. F__sig int64
  2014. F__opaque [56]int8
  2015. }
  2016. type T_opaque_pthread_cond_t = struct {
  2017. F__sig int64
  2018. F__opaque [40]int8
  2019. }
  2020. type T_opaque_pthread_condattr_t = struct {
  2021. F__sig int64
  2022. F__opaque [8]int8
  2023. }
  2024. type T_opaque_pthread_mutex_t = struct {
  2025. F__sig int64
  2026. F__opaque [56]int8
  2027. }
  2028. type T_opaque_pthread_mutexattr_t = struct {
  2029. F__sig int64
  2030. F__opaque [8]int8
  2031. }
  2032. type T_opaque_pthread_once_t = struct {
  2033. F__sig int64
  2034. F__opaque [8]int8
  2035. }
  2036. type T_opaque_pthread_rwlock_t = struct {
  2037. F__sig int64
  2038. F__opaque [192]int8
  2039. }
  2040. type T_opaque_pthread_rwlockattr_t = struct {
  2041. F__sig int64
  2042. F__opaque [16]int8
  2043. }
  2044. type T_opaque_pthread_t = struct {
  2045. F__sig int64
  2046. F__cleanup_stack uintptr
  2047. F__opaque [8176]int8
  2048. }
  2049. type t__darwin_pthread_attr_t = struct {
  2050. F__sig int64
  2051. F__opaque [56]int8
  2052. }
  2053. type t__darwin_pthread_cond_t = struct {
  2054. F__sig int64
  2055. F__opaque [40]int8
  2056. }
  2057. type t__darwin_pthread_condattr_t = struct {
  2058. F__sig int64
  2059. F__opaque [8]int8
  2060. }
  2061. type t__darwin_pthread_key_t = uint64
  2062. type t__darwin_pthread_mutex_t = struct {
  2063. F__sig int64
  2064. F__opaque [56]int8
  2065. }
  2066. type t__darwin_pthread_mutexattr_t = struct {
  2067. F__sig int64
  2068. F__opaque [8]int8
  2069. }
  2070. type t__darwin_pthread_once_t = struct {
  2071. F__sig int64
  2072. F__opaque [8]int8
  2073. }
  2074. type t__darwin_pthread_rwlock_t = struct {
  2075. F__sig int64
  2076. F__opaque [192]int8
  2077. }
  2078. type t__darwin_pthread_rwlockattr_t = struct {
  2079. F__sig int64
  2080. F__opaque [16]int8
  2081. }
  2082. type t__darwin_pthread_t = uintptr
  2083. type Tsize_t = uint64
  2084. type Tmode_t = uint16
  2085. type Toff_t = int64
  2086. type Tpid_t = int32
  2087. type Tflock = struct {
  2088. Fl_start Toff_t
  2089. Fl_len Toff_t
  2090. Fl_pid Tpid_t
  2091. Fl_type int16
  2092. Fl_whence int16
  2093. }
  2094. type Tint8_t = int8
  2095. type Tint16_t = int16
  2096. type Tint32_t = int32
  2097. type Tint64_t = int64
  2098. type Tu_int8_t = uint8
  2099. type Tu_int16_t = uint16
  2100. type Tu_int32_t = uint32
  2101. type Tu_int64_t = uint64
  2102. type Tregister_t = int64
  2103. type Tintptr_t = int64
  2104. type Tuintptr_t = uint64
  2105. type Tuser_addr_t = uint64
  2106. type Tuser_size_t = uint64
  2107. type Tuser_ssize_t = int64
  2108. type Tuser_long_t = int64
  2109. type Tuser_ulong_t = uint64
  2110. type Tuser_time_t = int64
  2111. type Tuser_off_t = int64
  2112. type Tsyscall_arg_t = uint64
  2113. type Ttimespec = struct {
  2114. Ftv_sec t__darwin_time_t
  2115. Ftv_nsec int64
  2116. }
  2117. type Tflocktimeout = struct {
  2118. Ffl Tflock
  2119. Ftimeout Ttimespec
  2120. }
  2121. type Tradvisory = struct {
  2122. Fra_offset Toff_t
  2123. Fra_count int32
  2124. }
  2125. type Tfsignatures_t = struct {
  2126. Ffs_file_start Toff_t
  2127. Ffs_blob_start uintptr
  2128. Ffs_blob_size Tsize_t
  2129. Ffs_fsignatures_size Tsize_t
  2130. Ffs_cdhash [20]int8
  2131. Ffs_hash_type int32
  2132. }
  2133. type Tfsignatures = Tfsignatures_t
  2134. type Tfsupplement_t = struct {
  2135. Ffs_file_start Toff_t
  2136. Ffs_blob_start Toff_t
  2137. Ffs_blob_size Tsize_t
  2138. Ffs_orig_fd int32
  2139. }
  2140. type Tfsupplement = Tfsupplement_t
  2141. type Tfchecklv_t = struct {
  2142. Flv_file_start Toff_t
  2143. Flv_error_message_size Tsize_t
  2144. Flv_error_message uintptr
  2145. }
  2146. type Tfchecklv = Tfchecklv_t
  2147. type Tfgetsigsinfo_t = struct {
  2148. Ffg_file_start Toff_t
  2149. Ffg_info_request int32
  2150. Ffg_sig_is_platform int32
  2151. }
  2152. type Tfgetsigsinfo = Tfgetsigsinfo_t
  2153. type Tfstore_t = struct {
  2154. Ffst_flags uint32
  2155. Ffst_posmode int32
  2156. Ffst_offset Toff_t
  2157. Ffst_length Toff_t
  2158. Ffst_bytesalloc Toff_t
  2159. }
  2160. type Tfstore = Tfstore_t
  2161. type Tfpunchhole_t = struct {
  2162. Ffp_flags uint32
  2163. Freserved uint32
  2164. Ffp_offset Toff_t
  2165. Ffp_length Toff_t
  2166. }
  2167. type Tfpunchhole = Tfpunchhole_t
  2168. type Tftrimactivefile_t = struct {
  2169. Ffta_offset Toff_t
  2170. Ffta_length Toff_t
  2171. }
  2172. type Tftrimactivefile = Tftrimactivefile_t
  2173. type Tfspecread_t = struct {
  2174. Ffsr_flags uint32
  2175. Freserved uint32
  2176. Ffsr_offset Toff_t
  2177. Ffsr_length Toff_t
  2178. }
  2179. type Tfspecread = Tfspecread_t
  2180. type Tfattributiontag_t = struct {
  2181. Fft_flags uint32
  2182. Fft_hash uint64
  2183. Fft_attribution_name [255]int8
  2184. }
  2185. type Tfattributiontag = Tfattributiontag_t
  2186. type Tlog2phys = struct {
  2187. Fl2p_flags uint32
  2188. Fl2p_contigbytes Toff_t
  2189. Fl2p_devoffset Toff_t
  2190. }
  2191. type Tfilesec_t = uintptr
  2192. type Tfilesec_property_t = int32
  2193. const _FILESEC_OWNER = 1
  2194. const _FILESEC_GROUP = 2
  2195. const _FILESEC_UUID = 3
  2196. const _FILESEC_MODE = 4
  2197. const _FILESEC_ACL = 5
  2198. const _FILESEC_GRPUUID = 6
  2199. const _FILESEC_ACL_RAW = 100
  2200. const _FILESEC_ACL_ALLOCSIZE = 101
  2201. type t__darwin_nl_item = int32
  2202. type t__darwin_wctrans_t = int32
  2203. type t__darwin_wctype_t = uint32
  2204. type Tidtype_t = int32
  2205. const _P_ALL = 0
  2206. const _P_PID = 1
  2207. const _P_PGID = 2
  2208. type Tid_t = uint32
  2209. type Tsig_atomic_t = int32
  2210. type t__darwin_i386_thread_state = struct {
  2211. F__eax uint32
  2212. F__ebx uint32
  2213. F__ecx uint32
  2214. F__edx uint32
  2215. F__edi uint32
  2216. F__esi uint32
  2217. F__ebp uint32
  2218. F__esp uint32
  2219. F__ss uint32
  2220. F__eflags uint32
  2221. F__eip uint32
  2222. F__cs uint32
  2223. F__ds uint32
  2224. F__es uint32
  2225. F__fs uint32
  2226. F__gs uint32
  2227. }
  2228. type t__darwin_fp_control = struct {
  2229. F__ccgo0 uint16
  2230. }
  2231. type t__darwin_fp_control_t = struct {
  2232. F__ccgo0 uint16
  2233. }
  2234. type t__darwin_fp_status = struct {
  2235. F__ccgo0 uint16
  2236. }
  2237. type t__darwin_fp_status_t = struct {
  2238. F__ccgo0 uint16
  2239. }
  2240. type t__darwin_mmst_reg = struct {
  2241. F__mmst_reg [10]int8
  2242. F__mmst_rsrv [6]int8
  2243. }
  2244. type t__darwin_xmm_reg = struct {
  2245. F__xmm_reg [16]int8
  2246. }
  2247. type t__darwin_ymm_reg = struct {
  2248. F__ymm_reg [32]int8
  2249. }
  2250. type t__darwin_zmm_reg = struct {
  2251. F__zmm_reg [64]int8
  2252. }
  2253. type t__darwin_opmask_reg = struct {
  2254. F__opmask_reg [8]int8
  2255. }
  2256. type t__darwin_i386_float_state = struct {
  2257. F__fpu_reserved [2]int32
  2258. F__fpu_fcw t__darwin_fp_control
  2259. F__fpu_fsw t__darwin_fp_status
  2260. F__fpu_ftw t__uint8_t
  2261. F__fpu_rsrv1 t__uint8_t
  2262. F__fpu_fop t__uint16_t
  2263. F__fpu_ip t__uint32_t
  2264. F__fpu_cs t__uint16_t
  2265. F__fpu_rsrv2 t__uint16_t
  2266. F__fpu_dp t__uint32_t
  2267. F__fpu_ds t__uint16_t
  2268. F__fpu_rsrv3 t__uint16_t
  2269. F__fpu_mxcsr t__uint32_t
  2270. F__fpu_mxcsrmask t__uint32_t
  2271. F__fpu_stmm0 t__darwin_mmst_reg
  2272. F__fpu_stmm1 t__darwin_mmst_reg
  2273. F__fpu_stmm2 t__darwin_mmst_reg
  2274. F__fpu_stmm3 t__darwin_mmst_reg
  2275. F__fpu_stmm4 t__darwin_mmst_reg
  2276. F__fpu_stmm5 t__darwin_mmst_reg
  2277. F__fpu_stmm6 t__darwin_mmst_reg
  2278. F__fpu_stmm7 t__darwin_mmst_reg
  2279. F__fpu_xmm0 t__darwin_xmm_reg
  2280. F__fpu_xmm1 t__darwin_xmm_reg
  2281. F__fpu_xmm2 t__darwin_xmm_reg
  2282. F__fpu_xmm3 t__darwin_xmm_reg
  2283. F__fpu_xmm4 t__darwin_xmm_reg
  2284. F__fpu_xmm5 t__darwin_xmm_reg
  2285. F__fpu_xmm6 t__darwin_xmm_reg
  2286. F__fpu_xmm7 t__darwin_xmm_reg
  2287. F__fpu_rsrv4 [224]int8
  2288. F__fpu_reserved1 int32
  2289. }
  2290. type t__darwin_i386_avx_state = struct {
  2291. F__fpu_reserved [2]int32
  2292. F__fpu_fcw t__darwin_fp_control
  2293. F__fpu_fsw t__darwin_fp_status
  2294. F__fpu_ftw t__uint8_t
  2295. F__fpu_rsrv1 t__uint8_t
  2296. F__fpu_fop t__uint16_t
  2297. F__fpu_ip t__uint32_t
  2298. F__fpu_cs t__uint16_t
  2299. F__fpu_rsrv2 t__uint16_t
  2300. F__fpu_dp t__uint32_t
  2301. F__fpu_ds t__uint16_t
  2302. F__fpu_rsrv3 t__uint16_t
  2303. F__fpu_mxcsr t__uint32_t
  2304. F__fpu_mxcsrmask t__uint32_t
  2305. F__fpu_stmm0 t__darwin_mmst_reg
  2306. F__fpu_stmm1 t__darwin_mmst_reg
  2307. F__fpu_stmm2 t__darwin_mmst_reg
  2308. F__fpu_stmm3 t__darwin_mmst_reg
  2309. F__fpu_stmm4 t__darwin_mmst_reg
  2310. F__fpu_stmm5 t__darwin_mmst_reg
  2311. F__fpu_stmm6 t__darwin_mmst_reg
  2312. F__fpu_stmm7 t__darwin_mmst_reg
  2313. F__fpu_xmm0 t__darwin_xmm_reg
  2314. F__fpu_xmm1 t__darwin_xmm_reg
  2315. F__fpu_xmm2 t__darwin_xmm_reg
  2316. F__fpu_xmm3 t__darwin_xmm_reg
  2317. F__fpu_xmm4 t__darwin_xmm_reg
  2318. F__fpu_xmm5 t__darwin_xmm_reg
  2319. F__fpu_xmm6 t__darwin_xmm_reg
  2320. F__fpu_xmm7 t__darwin_xmm_reg
  2321. F__fpu_rsrv4 [224]int8
  2322. F__fpu_reserved1 int32
  2323. F__avx_reserved1 [64]int8
  2324. F__fpu_ymmh0 t__darwin_xmm_reg
  2325. F__fpu_ymmh1 t__darwin_xmm_reg
  2326. F__fpu_ymmh2 t__darwin_xmm_reg
  2327. F__fpu_ymmh3 t__darwin_xmm_reg
  2328. F__fpu_ymmh4 t__darwin_xmm_reg
  2329. F__fpu_ymmh5 t__darwin_xmm_reg
  2330. F__fpu_ymmh6 t__darwin_xmm_reg
  2331. F__fpu_ymmh7 t__darwin_xmm_reg
  2332. }
  2333. type t__darwin_i386_avx512_state = struct {
  2334. F__fpu_reserved [2]int32
  2335. F__fpu_fcw t__darwin_fp_control
  2336. F__fpu_fsw t__darwin_fp_status
  2337. F__fpu_ftw t__uint8_t
  2338. F__fpu_rsrv1 t__uint8_t
  2339. F__fpu_fop t__uint16_t
  2340. F__fpu_ip t__uint32_t
  2341. F__fpu_cs t__uint16_t
  2342. F__fpu_rsrv2 t__uint16_t
  2343. F__fpu_dp t__uint32_t
  2344. F__fpu_ds t__uint16_t
  2345. F__fpu_rsrv3 t__uint16_t
  2346. F__fpu_mxcsr t__uint32_t
  2347. F__fpu_mxcsrmask t__uint32_t
  2348. F__fpu_stmm0 t__darwin_mmst_reg
  2349. F__fpu_stmm1 t__darwin_mmst_reg
  2350. F__fpu_stmm2 t__darwin_mmst_reg
  2351. F__fpu_stmm3 t__darwin_mmst_reg
  2352. F__fpu_stmm4 t__darwin_mmst_reg
  2353. F__fpu_stmm5 t__darwin_mmst_reg
  2354. F__fpu_stmm6 t__darwin_mmst_reg
  2355. F__fpu_stmm7 t__darwin_mmst_reg
  2356. F__fpu_xmm0 t__darwin_xmm_reg
  2357. F__fpu_xmm1 t__darwin_xmm_reg
  2358. F__fpu_xmm2 t__darwin_xmm_reg
  2359. F__fpu_xmm3 t__darwin_xmm_reg
  2360. F__fpu_xmm4 t__darwin_xmm_reg
  2361. F__fpu_xmm5 t__darwin_xmm_reg
  2362. F__fpu_xmm6 t__darwin_xmm_reg
  2363. F__fpu_xmm7 t__darwin_xmm_reg
  2364. F__fpu_rsrv4 [224]int8
  2365. F__fpu_reserved1 int32
  2366. F__avx_reserved1 [64]int8
  2367. F__fpu_ymmh0 t__darwin_xmm_reg
  2368. F__fpu_ymmh1 t__darwin_xmm_reg
  2369. F__fpu_ymmh2 t__darwin_xmm_reg
  2370. F__fpu_ymmh3 t__darwin_xmm_reg
  2371. F__fpu_ymmh4 t__darwin_xmm_reg
  2372. F__fpu_ymmh5 t__darwin_xmm_reg
  2373. F__fpu_ymmh6 t__darwin_xmm_reg
  2374. F__fpu_ymmh7 t__darwin_xmm_reg
  2375. F__fpu_k0 t__darwin_opmask_reg
  2376. F__fpu_k1 t__darwin_opmask_reg
  2377. F__fpu_k2 t__darwin_opmask_reg
  2378. F__fpu_k3 t__darwin_opmask_reg
  2379. F__fpu_k4 t__darwin_opmask_reg
  2380. F__fpu_k5 t__darwin_opmask_reg
  2381. F__fpu_k6 t__darwin_opmask_reg
  2382. F__fpu_k7 t__darwin_opmask_reg
  2383. F__fpu_zmmh0 t__darwin_ymm_reg
  2384. F__fpu_zmmh1 t__darwin_ymm_reg
  2385. F__fpu_zmmh2 t__darwin_ymm_reg
  2386. F__fpu_zmmh3 t__darwin_ymm_reg
  2387. F__fpu_zmmh4 t__darwin_ymm_reg
  2388. F__fpu_zmmh5 t__darwin_ymm_reg
  2389. F__fpu_zmmh6 t__darwin_ymm_reg
  2390. F__fpu_zmmh7 t__darwin_ymm_reg
  2391. }
  2392. type t__darwin_i386_exception_state = struct {
  2393. F__trapno t__uint16_t
  2394. F__cpu t__uint16_t
  2395. F__err t__uint32_t
  2396. F__faultvaddr t__uint32_t
  2397. }
  2398. type t__darwin_x86_debug_state32 = struct {
  2399. F__dr0 uint32
  2400. F__dr1 uint32
  2401. F__dr2 uint32
  2402. F__dr3 uint32
  2403. F__dr4 uint32
  2404. F__dr5 uint32
  2405. F__dr6 uint32
  2406. F__dr7 uint32
  2407. }
  2408. type t__x86_instruction_state = struct {
  2409. F__insn_stream_valid_bytes int32
  2410. F__insn_offset int32
  2411. F__out_of_synch int32
  2412. F__insn_bytes [2380]t__uint8_t
  2413. F__insn_cacheline [64]t__uint8_t
  2414. }
  2415. type t__last_branch_record = struct {
  2416. F__from_ip t__uint64_t
  2417. F__to_ip t__uint64_t
  2418. F__ccgo16 uint32
  2419. }
  2420. type t__last_branch_state = struct {
  2421. F__lbr_count int32
  2422. F__ccgo4 uint32
  2423. F__lbrs [32]t__last_branch_record
  2424. }
  2425. type t__x86_pagein_state = struct {
  2426. F__pagein_error int32
  2427. }
  2428. type t__darwin_x86_thread_state64 = struct {
  2429. F__rax t__uint64_t
  2430. F__rbx t__uint64_t
  2431. F__rcx t__uint64_t
  2432. F__rdx t__uint64_t
  2433. F__rdi t__uint64_t
  2434. F__rsi t__uint64_t
  2435. F__rbp t__uint64_t
  2436. F__rsp t__uint64_t
  2437. F__r8 t__uint64_t
  2438. F__r9 t__uint64_t
  2439. F__r10 t__uint64_t
  2440. F__r11 t__uint64_t
  2441. F__r12 t__uint64_t
  2442. F__r13 t__uint64_t
  2443. F__r14 t__uint64_t
  2444. F__r15 t__uint64_t
  2445. F__rip t__uint64_t
  2446. F__rflags t__uint64_t
  2447. F__cs t__uint64_t
  2448. F__fs t__uint64_t
  2449. F__gs t__uint64_t
  2450. }
  2451. type t__darwin_x86_thread_full_state64 = struct {
  2452. F__ss64 t__darwin_x86_thread_state64
  2453. F__ds t__uint64_t
  2454. F__es t__uint64_t
  2455. F__ss t__uint64_t
  2456. F__gsbase t__uint64_t
  2457. }
  2458. type t__darwin_x86_float_state64 = struct {
  2459. F__fpu_reserved [2]int32
  2460. F__fpu_fcw t__darwin_fp_control
  2461. F__fpu_fsw t__darwin_fp_status
  2462. F__fpu_ftw t__uint8_t
  2463. F__fpu_rsrv1 t__uint8_t
  2464. F__fpu_fop t__uint16_t
  2465. F__fpu_ip t__uint32_t
  2466. F__fpu_cs t__uint16_t
  2467. F__fpu_rsrv2 t__uint16_t
  2468. F__fpu_dp t__uint32_t
  2469. F__fpu_ds t__uint16_t
  2470. F__fpu_rsrv3 t__uint16_t
  2471. F__fpu_mxcsr t__uint32_t
  2472. F__fpu_mxcsrmask t__uint32_t
  2473. F__fpu_stmm0 t__darwin_mmst_reg
  2474. F__fpu_stmm1 t__darwin_mmst_reg
  2475. F__fpu_stmm2 t__darwin_mmst_reg
  2476. F__fpu_stmm3 t__darwin_mmst_reg
  2477. F__fpu_stmm4 t__darwin_mmst_reg
  2478. F__fpu_stmm5 t__darwin_mmst_reg
  2479. F__fpu_stmm6 t__darwin_mmst_reg
  2480. F__fpu_stmm7 t__darwin_mmst_reg
  2481. F__fpu_xmm0 t__darwin_xmm_reg
  2482. F__fpu_xmm1 t__darwin_xmm_reg
  2483. F__fpu_xmm2 t__darwin_xmm_reg
  2484. F__fpu_xmm3 t__darwin_xmm_reg
  2485. F__fpu_xmm4 t__darwin_xmm_reg
  2486. F__fpu_xmm5 t__darwin_xmm_reg
  2487. F__fpu_xmm6 t__darwin_xmm_reg
  2488. F__fpu_xmm7 t__darwin_xmm_reg
  2489. F__fpu_xmm8 t__darwin_xmm_reg
  2490. F__fpu_xmm9 t__darwin_xmm_reg
  2491. F__fpu_xmm10 t__darwin_xmm_reg
  2492. F__fpu_xmm11 t__darwin_xmm_reg
  2493. F__fpu_xmm12 t__darwin_xmm_reg
  2494. F__fpu_xmm13 t__darwin_xmm_reg
  2495. F__fpu_xmm14 t__darwin_xmm_reg
  2496. F__fpu_xmm15 t__darwin_xmm_reg
  2497. F__fpu_rsrv4 [96]int8
  2498. F__fpu_reserved1 int32
  2499. }
  2500. type t__darwin_x86_avx_state64 = struct {
  2501. F__fpu_reserved [2]int32
  2502. F__fpu_fcw t__darwin_fp_control
  2503. F__fpu_fsw t__darwin_fp_status
  2504. F__fpu_ftw t__uint8_t
  2505. F__fpu_rsrv1 t__uint8_t
  2506. F__fpu_fop t__uint16_t
  2507. F__fpu_ip t__uint32_t
  2508. F__fpu_cs t__uint16_t
  2509. F__fpu_rsrv2 t__uint16_t
  2510. F__fpu_dp t__uint32_t
  2511. F__fpu_ds t__uint16_t
  2512. F__fpu_rsrv3 t__uint16_t
  2513. F__fpu_mxcsr t__uint32_t
  2514. F__fpu_mxcsrmask t__uint32_t
  2515. F__fpu_stmm0 t__darwin_mmst_reg
  2516. F__fpu_stmm1 t__darwin_mmst_reg
  2517. F__fpu_stmm2 t__darwin_mmst_reg
  2518. F__fpu_stmm3 t__darwin_mmst_reg
  2519. F__fpu_stmm4 t__darwin_mmst_reg
  2520. F__fpu_stmm5 t__darwin_mmst_reg
  2521. F__fpu_stmm6 t__darwin_mmst_reg
  2522. F__fpu_stmm7 t__darwin_mmst_reg
  2523. F__fpu_xmm0 t__darwin_xmm_reg
  2524. F__fpu_xmm1 t__darwin_xmm_reg
  2525. F__fpu_xmm2 t__darwin_xmm_reg
  2526. F__fpu_xmm3 t__darwin_xmm_reg
  2527. F__fpu_xmm4 t__darwin_xmm_reg
  2528. F__fpu_xmm5 t__darwin_xmm_reg
  2529. F__fpu_xmm6 t__darwin_xmm_reg
  2530. F__fpu_xmm7 t__darwin_xmm_reg
  2531. F__fpu_xmm8 t__darwin_xmm_reg
  2532. F__fpu_xmm9 t__darwin_xmm_reg
  2533. F__fpu_xmm10 t__darwin_xmm_reg
  2534. F__fpu_xmm11 t__darwin_xmm_reg
  2535. F__fpu_xmm12 t__darwin_xmm_reg
  2536. F__fpu_xmm13 t__darwin_xmm_reg
  2537. F__fpu_xmm14 t__darwin_xmm_reg
  2538. F__fpu_xmm15 t__darwin_xmm_reg
  2539. F__fpu_rsrv4 [96]int8
  2540. F__fpu_reserved1 int32
  2541. F__avx_reserved1 [64]int8
  2542. F__fpu_ymmh0 t__darwin_xmm_reg
  2543. F__fpu_ymmh1 t__darwin_xmm_reg
  2544. F__fpu_ymmh2 t__darwin_xmm_reg
  2545. F__fpu_ymmh3 t__darwin_xmm_reg
  2546. F__fpu_ymmh4 t__darwin_xmm_reg
  2547. F__fpu_ymmh5 t__darwin_xmm_reg
  2548. F__fpu_ymmh6 t__darwin_xmm_reg
  2549. F__fpu_ymmh7 t__darwin_xmm_reg
  2550. F__fpu_ymmh8 t__darwin_xmm_reg
  2551. F__fpu_ymmh9 t__darwin_xmm_reg
  2552. F__fpu_ymmh10 t__darwin_xmm_reg
  2553. F__fpu_ymmh11 t__darwin_xmm_reg
  2554. F__fpu_ymmh12 t__darwin_xmm_reg
  2555. F__fpu_ymmh13 t__darwin_xmm_reg
  2556. F__fpu_ymmh14 t__darwin_xmm_reg
  2557. F__fpu_ymmh15 t__darwin_xmm_reg
  2558. }
  2559. type t__darwin_x86_avx512_state64 = struct {
  2560. F__fpu_reserved [2]int32
  2561. F__fpu_fcw t__darwin_fp_control
  2562. F__fpu_fsw t__darwin_fp_status
  2563. F__fpu_ftw t__uint8_t
  2564. F__fpu_rsrv1 t__uint8_t
  2565. F__fpu_fop t__uint16_t
  2566. F__fpu_ip t__uint32_t
  2567. F__fpu_cs t__uint16_t
  2568. F__fpu_rsrv2 t__uint16_t
  2569. F__fpu_dp t__uint32_t
  2570. F__fpu_ds t__uint16_t
  2571. F__fpu_rsrv3 t__uint16_t
  2572. F__fpu_mxcsr t__uint32_t
  2573. F__fpu_mxcsrmask t__uint32_t
  2574. F__fpu_stmm0 t__darwin_mmst_reg
  2575. F__fpu_stmm1 t__darwin_mmst_reg
  2576. F__fpu_stmm2 t__darwin_mmst_reg
  2577. F__fpu_stmm3 t__darwin_mmst_reg
  2578. F__fpu_stmm4 t__darwin_mmst_reg
  2579. F__fpu_stmm5 t__darwin_mmst_reg
  2580. F__fpu_stmm6 t__darwin_mmst_reg
  2581. F__fpu_stmm7 t__darwin_mmst_reg
  2582. F__fpu_xmm0 t__darwin_xmm_reg
  2583. F__fpu_xmm1 t__darwin_xmm_reg
  2584. F__fpu_xmm2 t__darwin_xmm_reg
  2585. F__fpu_xmm3 t__darwin_xmm_reg
  2586. F__fpu_xmm4 t__darwin_xmm_reg
  2587. F__fpu_xmm5 t__darwin_xmm_reg
  2588. F__fpu_xmm6 t__darwin_xmm_reg
  2589. F__fpu_xmm7 t__darwin_xmm_reg
  2590. F__fpu_xmm8 t__darwin_xmm_reg
  2591. F__fpu_xmm9 t__darwin_xmm_reg
  2592. F__fpu_xmm10 t__darwin_xmm_reg
  2593. F__fpu_xmm11 t__darwin_xmm_reg
  2594. F__fpu_xmm12 t__darwin_xmm_reg
  2595. F__fpu_xmm13 t__darwin_xmm_reg
  2596. F__fpu_xmm14 t__darwin_xmm_reg
  2597. F__fpu_xmm15 t__darwin_xmm_reg
  2598. F__fpu_rsrv4 [96]int8
  2599. F__fpu_reserved1 int32
  2600. F__avx_reserved1 [64]int8
  2601. F__fpu_ymmh0 t__darwin_xmm_reg
  2602. F__fpu_ymmh1 t__darwin_xmm_reg
  2603. F__fpu_ymmh2 t__darwin_xmm_reg
  2604. F__fpu_ymmh3 t__darwin_xmm_reg
  2605. F__fpu_ymmh4 t__darwin_xmm_reg
  2606. F__fpu_ymmh5 t__darwin_xmm_reg
  2607. F__fpu_ymmh6 t__darwin_xmm_reg
  2608. F__fpu_ymmh7 t__darwin_xmm_reg
  2609. F__fpu_ymmh8 t__darwin_xmm_reg
  2610. F__fpu_ymmh9 t__darwin_xmm_reg
  2611. F__fpu_ymmh10 t__darwin_xmm_reg
  2612. F__fpu_ymmh11 t__darwin_xmm_reg
  2613. F__fpu_ymmh12 t__darwin_xmm_reg
  2614. F__fpu_ymmh13 t__darwin_xmm_reg
  2615. F__fpu_ymmh14 t__darwin_xmm_reg
  2616. F__fpu_ymmh15 t__darwin_xmm_reg
  2617. F__fpu_k0 t__darwin_opmask_reg
  2618. F__fpu_k1 t__darwin_opmask_reg
  2619. F__fpu_k2 t__darwin_opmask_reg
  2620. F__fpu_k3 t__darwin_opmask_reg
  2621. F__fpu_k4 t__darwin_opmask_reg
  2622. F__fpu_k5 t__darwin_opmask_reg
  2623. F__fpu_k6 t__darwin_opmask_reg
  2624. F__fpu_k7 t__darwin_opmask_reg
  2625. F__fpu_zmmh0 t__darwin_ymm_reg
  2626. F__fpu_zmmh1 t__darwin_ymm_reg
  2627. F__fpu_zmmh2 t__darwin_ymm_reg
  2628. F__fpu_zmmh3 t__darwin_ymm_reg
  2629. F__fpu_zmmh4 t__darwin_ymm_reg
  2630. F__fpu_zmmh5 t__darwin_ymm_reg
  2631. F__fpu_zmmh6 t__darwin_ymm_reg
  2632. F__fpu_zmmh7 t__darwin_ymm_reg
  2633. F__fpu_zmmh8 t__darwin_ymm_reg
  2634. F__fpu_zmmh9 t__darwin_ymm_reg
  2635. F__fpu_zmmh10 t__darwin_ymm_reg
  2636. F__fpu_zmmh11 t__darwin_ymm_reg
  2637. F__fpu_zmmh12 t__darwin_ymm_reg
  2638. F__fpu_zmmh13 t__darwin_ymm_reg
  2639. F__fpu_zmmh14 t__darwin_ymm_reg
  2640. F__fpu_zmmh15 t__darwin_ymm_reg
  2641. F__fpu_zmm16 t__darwin_zmm_reg
  2642. F__fpu_zmm17 t__darwin_zmm_reg
  2643. F__fpu_zmm18 t__darwin_zmm_reg
  2644. F__fpu_zmm19 t__darwin_zmm_reg
  2645. F__fpu_zmm20 t__darwin_zmm_reg
  2646. F__fpu_zmm21 t__darwin_zmm_reg
  2647. F__fpu_zmm22 t__darwin_zmm_reg
  2648. F__fpu_zmm23 t__darwin_zmm_reg
  2649. F__fpu_zmm24 t__darwin_zmm_reg
  2650. F__fpu_zmm25 t__darwin_zmm_reg
  2651. F__fpu_zmm26 t__darwin_zmm_reg
  2652. F__fpu_zmm27 t__darwin_zmm_reg
  2653. F__fpu_zmm28 t__darwin_zmm_reg
  2654. F__fpu_zmm29 t__darwin_zmm_reg
  2655. F__fpu_zmm30 t__darwin_zmm_reg
  2656. F__fpu_zmm31 t__darwin_zmm_reg
  2657. }
  2658. type t__darwin_x86_exception_state64 = struct {
  2659. F__trapno t__uint16_t
  2660. F__cpu t__uint16_t
  2661. F__err t__uint32_t
  2662. F__faultvaddr t__uint64_t
  2663. }
  2664. type t__darwin_x86_debug_state64 = struct {
  2665. F__dr0 t__uint64_t
  2666. F__dr1 t__uint64_t
  2667. F__dr2 t__uint64_t
  2668. F__dr3 t__uint64_t
  2669. F__dr4 t__uint64_t
  2670. F__dr5 t__uint64_t
  2671. F__dr6 t__uint64_t
  2672. F__dr7 t__uint64_t
  2673. }
  2674. type t__darwin_x86_cpmu_state64 = struct {
  2675. F__ctrs [16]t__uint64_t
  2676. }
  2677. type t__darwin_mcontext32 = struct {
  2678. F__es t__darwin_i386_exception_state
  2679. F__ss t__darwin_i386_thread_state
  2680. F__fs t__darwin_i386_float_state
  2681. }
  2682. type t__darwin_mcontext_avx32 = struct {
  2683. F__es t__darwin_i386_exception_state
  2684. F__ss t__darwin_i386_thread_state
  2685. F__fs t__darwin_i386_avx_state
  2686. }
  2687. type t__darwin_mcontext_avx512_32 = struct {
  2688. F__es t__darwin_i386_exception_state
  2689. F__ss t__darwin_i386_thread_state
  2690. F__fs t__darwin_i386_avx512_state
  2691. }
  2692. type t__darwin_mcontext64 = struct {
  2693. F__es t__darwin_x86_exception_state64
  2694. F__ss t__darwin_x86_thread_state64
  2695. F__fs t__darwin_x86_float_state64
  2696. }
  2697. type t__darwin_mcontext64_full = struct {
  2698. F__es t__darwin_x86_exception_state64
  2699. F__ss t__darwin_x86_thread_full_state64
  2700. F__fs t__darwin_x86_float_state64
  2701. }
  2702. type t__darwin_mcontext_avx64 = struct {
  2703. F__es t__darwin_x86_exception_state64
  2704. F__ss t__darwin_x86_thread_state64
  2705. F__fs t__darwin_x86_avx_state64
  2706. }
  2707. type t__darwin_mcontext_avx64_full = struct {
  2708. F__es t__darwin_x86_exception_state64
  2709. F__ss t__darwin_x86_thread_full_state64
  2710. F__fs t__darwin_x86_avx_state64
  2711. }
  2712. type t__darwin_mcontext_avx512_64 = struct {
  2713. F__es t__darwin_x86_exception_state64
  2714. F__ss t__darwin_x86_thread_state64
  2715. F__fs t__darwin_x86_avx512_state64
  2716. }
  2717. type t__darwin_mcontext_avx512_64_full = struct {
  2718. F__es t__darwin_x86_exception_state64
  2719. F__ss t__darwin_x86_thread_full_state64
  2720. F__fs t__darwin_x86_avx512_state64
  2721. }
  2722. type Tmcontext_t = uintptr
  2723. type Tpthread_attr_t = struct {
  2724. F__sig int64
  2725. F__opaque [56]int8
  2726. }
  2727. type t__darwin_sigaltstack = struct {
  2728. Fss_sp uintptr
  2729. Fss_size t__darwin_size_t
  2730. Fss_flags int32
  2731. }
  2732. type Tstack_t = struct {
  2733. Fss_sp uintptr
  2734. Fss_size t__darwin_size_t
  2735. Fss_flags int32
  2736. }
  2737. type t__darwin_ucontext = struct {
  2738. Fuc_onstack int32
  2739. Fuc_sigmask t__darwin_sigset_t
  2740. Fuc_stack t__darwin_sigaltstack
  2741. Fuc_link uintptr
  2742. Fuc_mcsize t__darwin_size_t
  2743. Fuc_mcontext uintptr
  2744. }
  2745. type Tucontext_t = struct {
  2746. Fuc_onstack int32
  2747. Fuc_sigmask t__darwin_sigset_t
  2748. Fuc_stack t__darwin_sigaltstack
  2749. Fuc_link uintptr
  2750. Fuc_mcsize t__darwin_size_t
  2751. Fuc_mcontext uintptr
  2752. }
  2753. type Tsigset_t = uint32
  2754. type Tuid_t = uint32
  2755. type Tsigval = struct {
  2756. Fsival_ptr [0]uintptr
  2757. Fsival_int int32
  2758. F__ccgo_pad2 [4]byte
  2759. }
  2760. type Tsigevent = struct {
  2761. Fsigev_notify int32
  2762. Fsigev_signo int32
  2763. Fsigev_value Tsigval
  2764. Fsigev_notify_function uintptr
  2765. Fsigev_notify_attributes uintptr
  2766. }
  2767. type Tsiginfo_t = struct {
  2768. Fsi_signo int32
  2769. Fsi_errno int32
  2770. Fsi_code int32
  2771. Fsi_pid Tpid_t
  2772. Fsi_uid Tuid_t
  2773. Fsi_status int32
  2774. Fsi_addr uintptr
  2775. Fsi_value Tsigval
  2776. Fsi_band int64
  2777. F__pad [7]uint64
  2778. }
  2779. type t__siginfo = Tsiginfo_t
  2780. type t__sigaction_u = struct {
  2781. F__sa_sigaction [0]uintptr
  2782. F__sa_handler uintptr
  2783. }
  2784. type t__sigaction = struct {
  2785. F__sigaction_u t__sigaction_u
  2786. Fsa_tramp uintptr
  2787. Fsa_mask Tsigset_t
  2788. Fsa_flags int32
  2789. }
  2790. type Tsigaction = struct {
  2791. F__sigaction_u t__sigaction_u
  2792. Fsa_mask Tsigset_t
  2793. Fsa_flags int32
  2794. }
  2795. type Tsig_t = uintptr
  2796. type Tsigvec = struct {
  2797. Fsv_handler uintptr
  2798. Fsv_mask int32
  2799. Fsv_flags int32
  2800. }
  2801. type Tsigstack = struct {
  2802. Fss_sp uintptr
  2803. Fss_onstack int32
  2804. }
  2805. type Tuint8_t = uint8
  2806. type Tuint16_t = uint16
  2807. type Tuint32_t = uint32
  2808. type Tuint64_t = uint64
  2809. type Tint_least8_t = int8
  2810. type Tint_least16_t = int16
  2811. type Tint_least32_t = int32
  2812. type Tint_least64_t = int64
  2813. type Tuint_least8_t = uint8
  2814. type Tuint_least16_t = uint16
  2815. type Tuint_least32_t = uint32
  2816. type Tuint_least64_t = uint64
  2817. type Tint_fast8_t = int8
  2818. type Tint_fast16_t = int16
  2819. type Tint_fast32_t = int32
  2820. type Tint_fast64_t = int64
  2821. type Tuint_fast8_t = uint8
  2822. type Tuint_fast16_t = uint16
  2823. type Tuint_fast32_t = uint32
  2824. type Tuint_fast64_t = uint64
  2825. type Tintmax_t = int64
  2826. type Tuintmax_t = uint64
  2827. type Ttimeval = struct {
  2828. Ftv_sec t__darwin_time_t
  2829. Ftv_usec t__darwin_suseconds_t
  2830. }
  2831. type Trlim_t = uint64
  2832. type Trusage = struct {
  2833. Fru_utime Ttimeval
  2834. Fru_stime Ttimeval
  2835. Fru_maxrss int64
  2836. Fru_ixrss int64
  2837. Fru_idrss int64
  2838. Fru_isrss int64
  2839. Fru_minflt int64
  2840. Fru_majflt int64
  2841. Fru_nswap int64
  2842. Fru_inblock int64
  2843. Fru_oublock int64
  2844. Fru_msgsnd int64
  2845. Fru_msgrcv int64
  2846. Fru_nsignals int64
  2847. Fru_nvcsw int64
  2848. Fru_nivcsw int64
  2849. }
  2850. type Trusage_info_t = uintptr
  2851. type Trusage_info_v0 = struct {
  2852. Fri_uuid [16]Tuint8_t
  2853. Fri_user_time Tuint64_t
  2854. Fri_system_time Tuint64_t
  2855. Fri_pkg_idle_wkups Tuint64_t
  2856. Fri_interrupt_wkups Tuint64_t
  2857. Fri_pageins Tuint64_t
  2858. Fri_wired_size Tuint64_t
  2859. Fri_resident_size Tuint64_t
  2860. Fri_phys_footprint Tuint64_t
  2861. Fri_proc_start_abstime Tuint64_t
  2862. Fri_proc_exit_abstime Tuint64_t
  2863. }
  2864. type Trusage_info_v1 = struct {
  2865. Fri_uuid [16]Tuint8_t
  2866. Fri_user_time Tuint64_t
  2867. Fri_system_time Tuint64_t
  2868. Fri_pkg_idle_wkups Tuint64_t
  2869. Fri_interrupt_wkups Tuint64_t
  2870. Fri_pageins Tuint64_t
  2871. Fri_wired_size Tuint64_t
  2872. Fri_resident_size Tuint64_t
  2873. Fri_phys_footprint Tuint64_t
  2874. Fri_proc_start_abstime Tuint64_t
  2875. Fri_proc_exit_abstime Tuint64_t
  2876. Fri_child_user_time Tuint64_t
  2877. Fri_child_system_time Tuint64_t
  2878. Fri_child_pkg_idle_wkups Tuint64_t
  2879. Fri_child_interrupt_wkups Tuint64_t
  2880. Fri_child_pageins Tuint64_t
  2881. Fri_child_elapsed_abstime Tuint64_t
  2882. }
  2883. type Trusage_info_v2 = struct {
  2884. Fri_uuid [16]Tuint8_t
  2885. Fri_user_time Tuint64_t
  2886. Fri_system_time Tuint64_t
  2887. Fri_pkg_idle_wkups Tuint64_t
  2888. Fri_interrupt_wkups Tuint64_t
  2889. Fri_pageins Tuint64_t
  2890. Fri_wired_size Tuint64_t
  2891. Fri_resident_size Tuint64_t
  2892. Fri_phys_footprint Tuint64_t
  2893. Fri_proc_start_abstime Tuint64_t
  2894. Fri_proc_exit_abstime Tuint64_t
  2895. Fri_child_user_time Tuint64_t
  2896. Fri_child_system_time Tuint64_t
  2897. Fri_child_pkg_idle_wkups Tuint64_t
  2898. Fri_child_interrupt_wkups Tuint64_t
  2899. Fri_child_pageins Tuint64_t
  2900. Fri_child_elapsed_abstime Tuint64_t
  2901. Fri_diskio_bytesread Tuint64_t
  2902. Fri_diskio_byteswritten Tuint64_t
  2903. }
  2904. type Trusage_info_v3 = struct {
  2905. Fri_uuid [16]Tuint8_t
  2906. Fri_user_time Tuint64_t
  2907. Fri_system_time Tuint64_t
  2908. Fri_pkg_idle_wkups Tuint64_t
  2909. Fri_interrupt_wkups Tuint64_t
  2910. Fri_pageins Tuint64_t
  2911. Fri_wired_size Tuint64_t
  2912. Fri_resident_size Tuint64_t
  2913. Fri_phys_footprint Tuint64_t
  2914. Fri_proc_start_abstime Tuint64_t
  2915. Fri_proc_exit_abstime Tuint64_t
  2916. Fri_child_user_time Tuint64_t
  2917. Fri_child_system_time Tuint64_t
  2918. Fri_child_pkg_idle_wkups Tuint64_t
  2919. Fri_child_interrupt_wkups Tuint64_t
  2920. Fri_child_pageins Tuint64_t
  2921. Fri_child_elapsed_abstime Tuint64_t
  2922. Fri_diskio_bytesread Tuint64_t
  2923. Fri_diskio_byteswritten Tuint64_t
  2924. Fri_cpu_time_qos_default Tuint64_t
  2925. Fri_cpu_time_qos_maintenance Tuint64_t
  2926. Fri_cpu_time_qos_background Tuint64_t
  2927. Fri_cpu_time_qos_utility Tuint64_t
  2928. Fri_cpu_time_qos_legacy Tuint64_t
  2929. Fri_cpu_time_qos_user_initiated Tuint64_t
  2930. Fri_cpu_time_qos_user_interactive Tuint64_t
  2931. Fri_billed_system_time Tuint64_t
  2932. Fri_serviced_system_time Tuint64_t
  2933. }
  2934. type Trusage_info_v4 = struct {
  2935. Fri_uuid [16]Tuint8_t
  2936. Fri_user_time Tuint64_t
  2937. Fri_system_time Tuint64_t
  2938. Fri_pkg_idle_wkups Tuint64_t
  2939. Fri_interrupt_wkups Tuint64_t
  2940. Fri_pageins Tuint64_t
  2941. Fri_wired_size Tuint64_t
  2942. Fri_resident_size Tuint64_t
  2943. Fri_phys_footprint Tuint64_t
  2944. Fri_proc_start_abstime Tuint64_t
  2945. Fri_proc_exit_abstime Tuint64_t
  2946. Fri_child_user_time Tuint64_t
  2947. Fri_child_system_time Tuint64_t
  2948. Fri_child_pkg_idle_wkups Tuint64_t
  2949. Fri_child_interrupt_wkups Tuint64_t
  2950. Fri_child_pageins Tuint64_t
  2951. Fri_child_elapsed_abstime Tuint64_t
  2952. Fri_diskio_bytesread Tuint64_t
  2953. Fri_diskio_byteswritten Tuint64_t
  2954. Fri_cpu_time_qos_default Tuint64_t
  2955. Fri_cpu_time_qos_maintenance Tuint64_t
  2956. Fri_cpu_time_qos_background Tuint64_t
  2957. Fri_cpu_time_qos_utility Tuint64_t
  2958. Fri_cpu_time_qos_legacy Tuint64_t
  2959. Fri_cpu_time_qos_user_initiated Tuint64_t
  2960. Fri_cpu_time_qos_user_interactive Tuint64_t
  2961. Fri_billed_system_time Tuint64_t
  2962. Fri_serviced_system_time Tuint64_t
  2963. Fri_logical_writes Tuint64_t
  2964. Fri_lifetime_max_phys_footprint Tuint64_t
  2965. Fri_instructions Tuint64_t
  2966. Fri_cycles Tuint64_t
  2967. Fri_billed_energy Tuint64_t
  2968. Fri_serviced_energy Tuint64_t
  2969. Fri_interval_max_phys_footprint Tuint64_t
  2970. Fri_runnable_time Tuint64_t
  2971. }
  2972. type Trusage_info_v5 = struct {
  2973. Fri_uuid [16]Tuint8_t
  2974. Fri_user_time Tuint64_t
  2975. Fri_system_time Tuint64_t
  2976. Fri_pkg_idle_wkups Tuint64_t
  2977. Fri_interrupt_wkups Tuint64_t
  2978. Fri_pageins Tuint64_t
  2979. Fri_wired_size Tuint64_t
  2980. Fri_resident_size Tuint64_t
  2981. Fri_phys_footprint Tuint64_t
  2982. Fri_proc_start_abstime Tuint64_t
  2983. Fri_proc_exit_abstime Tuint64_t
  2984. Fri_child_user_time Tuint64_t
  2985. Fri_child_system_time Tuint64_t
  2986. Fri_child_pkg_idle_wkups Tuint64_t
  2987. Fri_child_interrupt_wkups Tuint64_t
  2988. Fri_child_pageins Tuint64_t
  2989. Fri_child_elapsed_abstime Tuint64_t
  2990. Fri_diskio_bytesread Tuint64_t
  2991. Fri_diskio_byteswritten Tuint64_t
  2992. Fri_cpu_time_qos_default Tuint64_t
  2993. Fri_cpu_time_qos_maintenance Tuint64_t
  2994. Fri_cpu_time_qos_background Tuint64_t
  2995. Fri_cpu_time_qos_utility Tuint64_t
  2996. Fri_cpu_time_qos_legacy Tuint64_t
  2997. Fri_cpu_time_qos_user_initiated Tuint64_t
  2998. Fri_cpu_time_qos_user_interactive Tuint64_t
  2999. Fri_billed_system_time Tuint64_t
  3000. Fri_serviced_system_time Tuint64_t
  3001. Fri_logical_writes Tuint64_t
  3002. Fri_lifetime_max_phys_footprint Tuint64_t
  3003. Fri_instructions Tuint64_t
  3004. Fri_cycles Tuint64_t
  3005. Fri_billed_energy Tuint64_t
  3006. Fri_serviced_energy Tuint64_t
  3007. Fri_interval_max_phys_footprint Tuint64_t
  3008. Fri_runnable_time Tuint64_t
  3009. Fri_flags Tuint64_t
  3010. }
  3011. type Trusage_info_v6 = struct {
  3012. Fri_uuid [16]Tuint8_t
  3013. Fri_user_time Tuint64_t
  3014. Fri_system_time Tuint64_t
  3015. Fri_pkg_idle_wkups Tuint64_t
  3016. Fri_interrupt_wkups Tuint64_t
  3017. Fri_pageins Tuint64_t
  3018. Fri_wired_size Tuint64_t
  3019. Fri_resident_size Tuint64_t
  3020. Fri_phys_footprint Tuint64_t
  3021. Fri_proc_start_abstime Tuint64_t
  3022. Fri_proc_exit_abstime Tuint64_t
  3023. Fri_child_user_time Tuint64_t
  3024. Fri_child_system_time Tuint64_t
  3025. Fri_child_pkg_idle_wkups Tuint64_t
  3026. Fri_child_interrupt_wkups Tuint64_t
  3027. Fri_child_pageins Tuint64_t
  3028. Fri_child_elapsed_abstime Tuint64_t
  3029. Fri_diskio_bytesread Tuint64_t
  3030. Fri_diskio_byteswritten Tuint64_t
  3031. Fri_cpu_time_qos_default Tuint64_t
  3032. Fri_cpu_time_qos_maintenance Tuint64_t
  3033. Fri_cpu_time_qos_background Tuint64_t
  3034. Fri_cpu_time_qos_utility Tuint64_t
  3035. Fri_cpu_time_qos_legacy Tuint64_t
  3036. Fri_cpu_time_qos_user_initiated Tuint64_t
  3037. Fri_cpu_time_qos_user_interactive Tuint64_t
  3038. Fri_billed_system_time Tuint64_t
  3039. Fri_serviced_system_time Tuint64_t
  3040. Fri_logical_writes Tuint64_t
  3041. Fri_lifetime_max_phys_footprint Tuint64_t
  3042. Fri_instructions Tuint64_t
  3043. Fri_cycles Tuint64_t
  3044. Fri_billed_energy Tuint64_t
  3045. Fri_serviced_energy Tuint64_t
  3046. Fri_interval_max_phys_footprint Tuint64_t
  3047. Fri_runnable_time Tuint64_t
  3048. Fri_flags Tuint64_t
  3049. Fri_user_ptime Tuint64_t
  3050. Fri_system_ptime Tuint64_t
  3051. Fri_pinstructions Tuint64_t
  3052. Fri_pcycles Tuint64_t
  3053. Fri_energy_nj Tuint64_t
  3054. Fri_penergy_nj Tuint64_t
  3055. Fri_secure_time_in_system Tuint64_t
  3056. Fri_secure_ptime_in_system Tuint64_t
  3057. Fri_neural_footprint Tuint64_t
  3058. Fri_lifetime_max_neural_footprint Tuint64_t
  3059. Fri_interval_max_neural_footprint Tuint64_t
  3060. Fri_reserved [9]Tuint64_t
  3061. }
  3062. type Trusage_info_current = struct {
  3063. Fri_uuid [16]Tuint8_t
  3064. Fri_user_time Tuint64_t
  3065. Fri_system_time Tuint64_t
  3066. Fri_pkg_idle_wkups Tuint64_t
  3067. Fri_interrupt_wkups Tuint64_t
  3068. Fri_pageins Tuint64_t
  3069. Fri_wired_size Tuint64_t
  3070. Fri_resident_size Tuint64_t
  3071. Fri_phys_footprint Tuint64_t
  3072. Fri_proc_start_abstime Tuint64_t
  3073. Fri_proc_exit_abstime Tuint64_t
  3074. Fri_child_user_time Tuint64_t
  3075. Fri_child_system_time Tuint64_t
  3076. Fri_child_pkg_idle_wkups Tuint64_t
  3077. Fri_child_interrupt_wkups Tuint64_t
  3078. Fri_child_pageins Tuint64_t
  3079. Fri_child_elapsed_abstime Tuint64_t
  3080. Fri_diskio_bytesread Tuint64_t
  3081. Fri_diskio_byteswritten Tuint64_t
  3082. Fri_cpu_time_qos_default Tuint64_t
  3083. Fri_cpu_time_qos_maintenance Tuint64_t
  3084. Fri_cpu_time_qos_background Tuint64_t
  3085. Fri_cpu_time_qos_utility Tuint64_t
  3086. Fri_cpu_time_qos_legacy Tuint64_t
  3087. Fri_cpu_time_qos_user_initiated Tuint64_t
  3088. Fri_cpu_time_qos_user_interactive Tuint64_t
  3089. Fri_billed_system_time Tuint64_t
  3090. Fri_serviced_system_time Tuint64_t
  3091. Fri_logical_writes Tuint64_t
  3092. Fri_lifetime_max_phys_footprint Tuint64_t
  3093. Fri_instructions Tuint64_t
  3094. Fri_cycles Tuint64_t
  3095. Fri_billed_energy Tuint64_t
  3096. Fri_serviced_energy Tuint64_t
  3097. Fri_interval_max_phys_footprint Tuint64_t
  3098. Fri_runnable_time Tuint64_t
  3099. Fri_flags Tuint64_t
  3100. Fri_user_ptime Tuint64_t
  3101. Fri_system_ptime Tuint64_t
  3102. Fri_pinstructions Tuint64_t
  3103. Fri_pcycles Tuint64_t
  3104. Fri_energy_nj Tuint64_t
  3105. Fri_penergy_nj Tuint64_t
  3106. Fri_secure_time_in_system Tuint64_t
  3107. Fri_secure_ptime_in_system Tuint64_t
  3108. Fri_neural_footprint Tuint64_t
  3109. Fri_lifetime_max_neural_footprint Tuint64_t
  3110. Fri_interval_max_neural_footprint Tuint64_t
  3111. Fri_reserved [9]Tuint64_t
  3112. }
  3113. type Trlimit = struct {
  3114. Frlim_cur Trlim_t
  3115. Frlim_max Trlim_t
  3116. }
  3117. type Tproc_rlimit_control_wakeupmon = struct {
  3118. Fwm_flags Tuint32_t
  3119. Fwm_rate Tint32_t
  3120. }
  3121. type Twait = struct {
  3122. Fw_T [0]struct {
  3123. F__ccgo0 uint32
  3124. }
  3125. Fw_S [0]struct {
  3126. F__ccgo0 uint32
  3127. }
  3128. Fw_status int32
  3129. }
  3130. type Tct_rune_t = int32
  3131. type Trune_t = int32
  3132. type Twchar_t = int32
  3133. type Tdiv_t = struct {
  3134. Fquot int32
  3135. Frem int32
  3136. }
  3137. type Tldiv_t = struct {
  3138. Fquot int64
  3139. Frem int64
  3140. }
  3141. type Tlldiv_t = struct {
  3142. Fquot int64
  3143. Frem int64
  3144. }
  3145. type Tmalloc_type_id_t = uint64
  3146. type Tdev_t = int32
  3147. type Tu_char = uint8
  3148. type Tu_short = uint16
  3149. type Tu_int = uint32
  3150. type Tu_long = uint64
  3151. type Tushort = uint16
  3152. type Tuint = uint32
  3153. type Tu_quad_t = uint64
  3154. type Tquad_t = int64
  3155. type Tqaddr_t = uintptr
  3156. type Tcaddr_t = uintptr
  3157. type Tdaddr_t = int32
  3158. type Tfixpt_t = uint32
  3159. type Tblkcnt_t = int64
  3160. type Tblksize_t = int32
  3161. type Tgid_t = uint32
  3162. type Tin_addr_t = uint32
  3163. type Tin_port_t = uint16
  3164. type Tino_t = uint64
  3165. type Tino64_t = uint64
  3166. type Tkey_t = int32
  3167. type Tnlink_t = uint16
  3168. type Tsegsz_t = int32
  3169. type Tswblk_t = int32
  3170. type Tclock_t = uint64
  3171. type Tssize_t = int64
  3172. type Ttime_t = int64
  3173. type Tuseconds_t = uint32
  3174. type Tsuseconds_t = int32
  3175. type Trsize_t = uint64
  3176. type Tfd_set = struct {
  3177. Ffds_bits [32]t__int32_t
  3178. }
  3179. type Tfd_mask = int32
  3180. type Tpthread_cond_t = struct {
  3181. F__sig int64
  3182. F__opaque [40]int8
  3183. }
  3184. type Tpthread_condattr_t = struct {
  3185. F__sig int64
  3186. F__opaque [8]int8
  3187. }
  3188. type Tpthread_mutex_t = struct {
  3189. F__sig int64
  3190. F__opaque [56]int8
  3191. }
  3192. type Tpthread_mutexattr_t = struct {
  3193. F__sig int64
  3194. F__opaque [8]int8
  3195. }
  3196. type Tpthread_once_t = struct {
  3197. F__sig int64
  3198. F__opaque [8]int8
  3199. }
  3200. type Tpthread_rwlock_t = struct {
  3201. F__sig int64
  3202. F__opaque [192]int8
  3203. }
  3204. type Tpthread_rwlockattr_t = struct {
  3205. F__sig int64
  3206. F__opaque [16]int8
  3207. }
  3208. type Tpthread_t = uintptr
  3209. type Tpthread_key_t = uint64
  3210. type Tfsblkcnt_t = uint32
  3211. type Tfsfilcnt_t = uint32
  3212. type Tva_list = uintptr
  3213. type Tfpos_t = int64
  3214. type t__sbuf = struct {
  3215. F_base uintptr
  3216. F_size int32
  3217. }
  3218. type TFILE = struct {
  3219. F_p uintptr
  3220. F_r int32
  3221. F_w int32
  3222. F_flags int16
  3223. F_file int16
  3224. F_bf t__sbuf
  3225. F_lbfsize int32
  3226. F_cookie uintptr
  3227. F_close uintptr
  3228. F_read uintptr
  3229. F_seek uintptr
  3230. F_write uintptr
  3231. F_ub t__sbuf
  3232. F_extra uintptr
  3233. F_ur int32
  3234. F_ubuf [3]uint8
  3235. F_nbuf [1]uint8
  3236. F_lb t__sbuf
  3237. F_blksize int32
  3238. F_offset Tfpos_t
  3239. }
  3240. type t__sFILE = TFILE
  3241. type Tostat = struct {
  3242. Fst_dev t__uint16_t
  3243. Fst_ino Tino_t
  3244. Fst_mode Tmode_t
  3245. Fst_nlink Tnlink_t
  3246. Fst_uid t__uint16_t
  3247. Fst_gid t__uint16_t
  3248. Fst_rdev t__uint16_t
  3249. Fst_size t__int32_t
  3250. Fst_atimespec Ttimespec
  3251. Fst_mtimespec Ttimespec
  3252. Fst_ctimespec Ttimespec
  3253. Fst_blksize t__int32_t
  3254. Fst_blocks t__int32_t
  3255. Fst_flags t__uint32_t
  3256. Fst_gen t__uint32_t
  3257. }
  3258. type Tstat = struct {
  3259. Fst_dev Tdev_t
  3260. Fst_mode Tmode_t
  3261. Fst_nlink Tnlink_t
  3262. Fst_ino t__darwin_ino64_t
  3263. Fst_uid Tuid_t
  3264. Fst_gid Tgid_t
  3265. Fst_rdev Tdev_t
  3266. Fst_atimespec Ttimespec
  3267. Fst_mtimespec Ttimespec
  3268. Fst_ctimespec Ttimespec
  3269. Fst_birthtimespec Ttimespec
  3270. Fst_size Toff_t
  3271. Fst_blocks Tblkcnt_t
  3272. Fst_blksize Tblksize_t
  3273. Fst_flags t__uint32_t
  3274. Fst_gen t__uint32_t
  3275. Fst_lspare t__int32_t
  3276. Fst_qspare [2]t__int64_t
  3277. }
  3278. type Tstat64 = struct {
  3279. Fst_dev Tdev_t
  3280. Fst_mode Tmode_t
  3281. Fst_nlink Tnlink_t
  3282. Fst_ino t__darwin_ino64_t
  3283. Fst_uid Tuid_t
  3284. Fst_gid Tgid_t
  3285. Fst_rdev Tdev_t
  3286. Fst_atimespec Ttimespec
  3287. Fst_mtimespec Ttimespec
  3288. Fst_ctimespec Ttimespec
  3289. Fst_birthtimespec Ttimespec
  3290. Fst_size Toff_t
  3291. Fst_blocks Tblkcnt_t
  3292. Fst_blksize Tblksize_t
  3293. Fst_flags t__uint32_t
  3294. Fst_gen t__uint32_t
  3295. Fst_lspare t__int32_t
  3296. Fst_qspare [2]t__int64_t
  3297. }
  3298. type Taccessx_descriptor = struct {
  3299. Fad_name_offset uint32
  3300. Fad_flags int32
  3301. Fad_pad [2]int32
  3302. }
  3303. type Tuuid_t = [16]uint8
  3304. type Tdirent = struct {
  3305. Fd_ino t__uint64_t
  3306. Fd_seekoff t__uint64_t
  3307. Fd_reclen t__uint16_t
  3308. Fd_namlen t__uint16_t
  3309. Fd_type t__uint8_t
  3310. Fd_name [1024]int8
  3311. }
  3312. type TDIR = struct {
  3313. F__dd_fd int32
  3314. F__dd_loc int64
  3315. F__dd_size int64
  3316. F__dd_buf uintptr
  3317. F__dd_len int32
  3318. F__dd_seek int64
  3319. F__padding int64
  3320. F__dd_flags int32
  3321. F__dd_lock t__darwin_pthread_mutex_t
  3322. F__dd_td uintptr
  3323. }
  3324. func _closefrom_close(tls *libc.TLS, fd int32) {
  3325. bp := tls.Alloc(16)
  3326. defer tls.Free(16)
  3327. /* Avoid potential libdispatch crash when we close its fds. */
  3328. libc.Xfcntl(tls, fd, int32(m_F_SETFD), libc.VaList(bp+8, int32(m_FD_CLOEXEC)))
  3329. }
  3330. // C documentation
  3331. //
  3332. // /*
  3333. // * Close all file descriptors greater than or equal to lowfd.
  3334. // * This is the expensive (fallback) method.
  3335. // */
  3336. func _closefrom_fallback(tls *libc.TLS, lowfd int32) {
  3337. var fd, maxfd int64
  3338. _, _ = fd, maxfd
  3339. /*
  3340. * Fall back on sysconf(_SC_OPEN_MAX) or getdtablesize(). This is
  3341. * equivalent to checking the RLIMIT_NOFILE soft limit. It is
  3342. * possible for there to be open file descriptors past this limit
  3343. * but there is not much we can do about that since the hard limit
  3344. * may be RLIM_INFINITY (LLONG_MAX or ULLONG_MAX on modern systems).
  3345. */
  3346. maxfd = libc.Xsysconf(tls, int32(m__SC_OPEN_MAX))
  3347. if maxfd < int64(m_OPEN_MAX) {
  3348. maxfd = int64(m_OPEN_MAX)
  3349. }
  3350. /* Make sure we did not get RLIM_INFINITY as the upper limit. */
  3351. if maxfd > int64(m___INT_MAX__) {
  3352. maxfd = int64(m___INT_MAX__)
  3353. }
  3354. fd = int64(lowfd)
  3355. for {
  3356. if !(fd < maxfd) {
  3357. break
  3358. }
  3359. _closefrom_close(tls, int32(fd))
  3360. goto _1
  3361. _1:
  3362. ;
  3363. fd++
  3364. }
  3365. }
  3366. func _closefrom_procfs(tls *libc.TLS, lowfd int32) (r int32) {
  3367. bp := tls.Alloc(16)
  3368. defer tls.Free(16)
  3369. var dent, dirp, fd_array, path, ptr, v1 uintptr
  3370. var fd, fd_array_size, fd_array_used, i, ret, v2 int32
  3371. var _ /* errstr at bp+0 */ uintptr
  3372. _, _, _, _, _, _, _, _, _, _, _, _ = dent, dirp, fd, fd_array, fd_array_size, fd_array_used, i, path, ptr, ret, v1, v2
  3373. fd_array = libc.UintptrFromInt32(0)
  3374. fd_array_used = 0
  3375. fd_array_size = 0
  3376. ret = 0
  3377. /* Use /proc/self/fd (or /dev/fd on macOS) if it exists. */
  3378. path = __ccgo_ts
  3379. dirp = libc.Xopendir(tls, path)
  3380. if dirp == libc.UintptrFromInt32(0) {
  3381. return -int32(1)
  3382. }
  3383. for {
  3384. v1 = libc.Xreaddir(tls, dirp)
  3385. dent = v1
  3386. if !(v1 != libc.UintptrFromInt32(0)) {
  3387. break
  3388. }
  3389. if int32(*(*int8)(unsafe.Pointer(dent + 21))) == int32('.') {
  3390. continue
  3391. }
  3392. fd = int32(_strtonum(tls, dent+21, int64(lowfd), int64(m___INT_MAX__), bp))
  3393. if *(*uintptr)(unsafe.Pointer(bp)) != libc.UintptrFromInt32(0) || fd == _dirfd(tls, dirp) {
  3394. continue
  3395. }
  3396. if fd_array_used >= fd_array_size {
  3397. if fd_array_size > 0 {
  3398. fd_array_size *= int32(2)
  3399. } else {
  3400. fd_array_size = int32(32)
  3401. }
  3402. ptr = Xreallocarray(tls, fd_array, libc.Uint64FromInt32(fd_array_size), uint64(4))
  3403. if ptr == libc.UintptrFromInt32(0) {
  3404. ret = -int32(1)
  3405. break
  3406. }
  3407. fd_array = ptr
  3408. }
  3409. v2 = fd_array_used
  3410. fd_array_used++
  3411. *(*int32)(unsafe.Pointer(fd_array + uintptr(v2)*4)) = fd
  3412. }
  3413. i = 0
  3414. for {
  3415. if !(i < fd_array_used) {
  3416. break
  3417. }
  3418. _closefrom_close(tls, *(*int32)(unsafe.Pointer(fd_array + uintptr(i)*4)))
  3419. goto _3
  3420. _3:
  3421. ;
  3422. i++
  3423. }
  3424. libc.Xfree(tls, fd_array)
  3425. libc.Xclosedir(tls, dirp)
  3426. return ret
  3427. }
  3428. // C documentation
  3429. //
  3430. // /*
  3431. // * Close all file descriptors greater than or equal to lowfd.
  3432. // * We try the fast way first, falling back on the slow method.
  3433. // */
  3434. func Xclosefrom(tls *libc.TLS, lowfd int32) {
  3435. if lowfd < 0 {
  3436. lowfd = 0
  3437. }
  3438. /* Try the fast methods first, if possible. */
  3439. if _closefrom_procfs(tls, lowfd) != -int32(1) {
  3440. return
  3441. }
  3442. /* Do things the slow way. */
  3443. _closefrom_fallback(tls, lowfd)
  3444. }
  3445. const m_PRIX16 = "hX"
  3446. const m_PRIX32 = "X"
  3447. const m_PRIXFAST16 = "PRIX16"
  3448. const m_PRIXFAST32 = "PRIX32"
  3449. const m_PRIXFAST64 = "PRIX64"
  3450. const m_PRIXFAST8 = "PRIX8"
  3451. const m_PRIXLEAST16 = "PRIX16"
  3452. const m_PRIXLEAST32 = "PRIX32"
  3453. const m_PRIXLEAST64 = "PRIX64"
  3454. const m_PRIXLEAST8 = "PRIX8"
  3455. const m_PRIXPTR = "lX"
  3456. const m_PRId16 = "hd"
  3457. const m_PRId32 = "d"
  3458. const m_PRIdFAST16 = "PRId16"
  3459. const m_PRIdFAST32 = "PRId32"
  3460. const m_PRIdFAST64 = "PRId64"
  3461. const m_PRIdFAST8 = "PRId8"
  3462. const m_PRIdLEAST16 = "PRId16"
  3463. const m_PRIdLEAST32 = "PRId32"
  3464. const m_PRIdLEAST64 = "PRId64"
  3465. const m_PRIdLEAST8 = "PRId8"
  3466. const m_PRIdPTR = "ld"
  3467. const m_PRIi16 = "hi"
  3468. const m_PRIi32 = "i"
  3469. const m_PRIiFAST16 = "PRIi16"
  3470. const m_PRIiFAST32 = "PRIi32"
  3471. const m_PRIiFAST64 = "PRIi64"
  3472. const m_PRIiFAST8 = "PRIi8"
  3473. const m_PRIiLEAST16 = "PRIi16"
  3474. const m_PRIiLEAST32 = "PRIi32"
  3475. const m_PRIiLEAST64 = "PRIi64"
  3476. const m_PRIiLEAST8 = "PRIi8"
  3477. const m_PRIiPTR = "li"
  3478. const m_PRIo16 = "ho"
  3479. const m_PRIo32 = "o"
  3480. const m_PRIoFAST16 = "PRIo16"
  3481. const m_PRIoFAST32 = "PRIo32"
  3482. const m_PRIoFAST64 = "PRIo64"
  3483. const m_PRIoFAST8 = "PRIo8"
  3484. const m_PRIoLEAST16 = "PRIo16"
  3485. const m_PRIoLEAST32 = "PRIo32"
  3486. const m_PRIoLEAST64 = "PRIo64"
  3487. const m_PRIoLEAST8 = "PRIo8"
  3488. const m_PRIoPTR = "lo"
  3489. const m_PRIu16 = "hu"
  3490. const m_PRIu32 = "u"
  3491. const m_PRIuFAST16 = "PRIu16"
  3492. const m_PRIuFAST32 = "PRIu32"
  3493. const m_PRIuFAST64 = "PRIu64"
  3494. const m_PRIuFAST8 = "PRIu8"
  3495. const m_PRIuLEAST16 = "PRIu16"
  3496. const m_PRIuLEAST32 = "PRIu32"
  3497. const m_PRIuLEAST64 = "PRIu64"
  3498. const m_PRIuLEAST8 = "PRIu8"
  3499. const m_PRIuPTR = "lu"
  3500. const m_PRIx16 = "hx"
  3501. const m_PRIx32 = "x"
  3502. const m_PRIxFAST16 = "PRIx16"
  3503. const m_PRIxFAST32 = "PRIx32"
  3504. const m_PRIxFAST64 = "PRIx64"
  3505. const m_PRIxFAST8 = "PRIx8"
  3506. const m_PRIxLEAST16 = "PRIx16"
  3507. const m_PRIxLEAST32 = "PRIx32"
  3508. const m_PRIxLEAST64 = "PRIx64"
  3509. const m_PRIxLEAST8 = "PRIx8"
  3510. const m_PRIxPTR = "lx"
  3511. const m_SCNd16 = "hd"
  3512. const m_SCNd32 = "d"
  3513. const m_SCNdFAST16 = "SCNd16"
  3514. const m_SCNdFAST32 = "SCNd32"
  3515. const m_SCNdFAST64 = "SCNd64"
  3516. const m_SCNdFAST8 = "SCNd8"
  3517. const m_SCNdLEAST16 = "SCNd16"
  3518. const m_SCNdLEAST32 = "SCNd32"
  3519. const m_SCNdLEAST64 = "SCNd64"
  3520. const m_SCNdLEAST8 = "SCNd8"
  3521. const m_SCNdPTR = "ld"
  3522. const m_SCNi16 = "hi"
  3523. const m_SCNi32 = "i"
  3524. const m_SCNiFAST16 = "SCNi16"
  3525. const m_SCNiFAST32 = "SCNi32"
  3526. const m_SCNiFAST64 = "SCNi64"
  3527. const m_SCNiFAST8 = "SCNi8"
  3528. const m_SCNiLEAST16 = "SCNi16"
  3529. const m_SCNiLEAST32 = "SCNi32"
  3530. const m_SCNiLEAST64 = "SCNi64"
  3531. const m_SCNiLEAST8 = "SCNi8"
  3532. const m_SCNiPTR = "li"
  3533. const m_SCNo16 = "ho"
  3534. const m_SCNo32 = "o"
  3535. const m_SCNoFAST16 = "SCNo16"
  3536. const m_SCNoFAST32 = "SCNo32"
  3537. const m_SCNoFAST64 = "SCNo64"
  3538. const m_SCNoFAST8 = "SCNo8"
  3539. const m_SCNoLEAST16 = "SCNo16"
  3540. const m_SCNoLEAST32 = "SCNo32"
  3541. const m_SCNoLEAST64 = "SCNo64"
  3542. const m_SCNoLEAST8 = "SCNo8"
  3543. const m_SCNoPTR = "lo"
  3544. const m_SCNu16 = "hu"
  3545. const m_SCNu32 = "u"
  3546. const m_SCNuFAST16 = "SCNu16"
  3547. const m_SCNuFAST32 = "SCNu32"
  3548. const m_SCNuFAST64 = "SCNu64"
  3549. const m_SCNuFAST8 = "SCNu8"
  3550. const m_SCNuLEAST16 = "SCNu16"
  3551. const m_SCNuLEAST32 = "SCNu32"
  3552. const m_SCNuLEAST64 = "SCNu64"
  3553. const m_SCNuLEAST8 = "SCNu8"
  3554. const m_SCNuPTR = "lu"
  3555. const m_SCNx16 = "hx"
  3556. const m_SCNx32 = "x"
  3557. const m_SCNxFAST16 = "SCNx16"
  3558. const m_SCNxFAST32 = "SCNx32"
  3559. const m_SCNxFAST64 = "SCNx64"
  3560. const m_SCNxFAST8 = "SCNx8"
  3561. const m_SCNxLEAST16 = "SCNx16"
  3562. const m_SCNxLEAST32 = "SCNx32"
  3563. const m_SCNxLEAST64 = "SCNx64"
  3564. const m_SCNxLEAST8 = "SCNx8"
  3565. const m_SCNxPTR = "lx"
  3566. const m__CTYPE_A = 256
  3567. const m__CTYPE_B = 131072
  3568. const m__CTYPE_C = 512
  3569. const m__CTYPE_D = 1024
  3570. const m__CTYPE_G = 2048
  3571. const m__CTYPE_I = 524288
  3572. const m__CTYPE_L = 4096
  3573. const m__CTYPE_P = 8192
  3574. const m__CTYPE_Q = 2097152
  3575. const m__CTYPE_R = 262144
  3576. const m__CTYPE_S = 16384
  3577. const m__CTYPE_SW0 = 0x20000000
  3578. const m__CTYPE_SW1 = 0x40000000
  3579. const m__CTYPE_SW2 = 0x80000000
  3580. const m__CTYPE_SW3 = 0xc0000000
  3581. const m__CTYPE_SWM = 3758096384
  3582. const m__CTYPE_SWS = 30
  3583. const m__CTYPE_T = 1048576
  3584. const m__CTYPE_U = 32768
  3585. const m__CTYPE_X = 65536
  3586. const m__RUNE_MAGIC_A = "RuneMagA"
  3587. const m___DARWIN_CTYPE_TOP_inline = "__header_inline"
  3588. const m___DARWIN_CTYPE_inline = "__header_inline"
  3589. const m___PRI_64_LENGTH_MODIFIER__ = "ll"
  3590. const m___PRI_8_LENGTH_MODIFIER__ = "hh"
  3591. const m___PRI_MAX_LENGTH_MODIFIER__ = "j"
  3592. const m___SCN_64_LENGTH_MODIFIER__ = "ll"
  3593. const m___SCN_MAX_LENGTH_MODIFIER__ = "j"
  3594. type Twint_t = int32
  3595. type T_RuneEntry = struct {
  3596. F__min t__darwin_rune_t
  3597. F__max t__darwin_rune_t
  3598. F__map t__darwin_rune_t
  3599. F__types uintptr
  3600. }
  3601. type T_RuneRange = struct {
  3602. F__nranges int32
  3603. F__ranges uintptr
  3604. }
  3605. type T_RuneCharClass = struct {
  3606. F__name [14]int8
  3607. F__mask t__uint32_t
  3608. }
  3609. type T_RuneLocale = struct {
  3610. F__magic [8]int8
  3611. F__encoding [32]int8
  3612. F__sgetrune uintptr
  3613. F__sputrune uintptr
  3614. F__invalid_rune t__darwin_rune_t
  3615. F__runetype [256]t__uint32_t
  3616. F__maplower [256]t__darwin_rune_t
  3617. F__mapupper [256]t__darwin_rune_t
  3618. F__runetype_ext T_RuneRange
  3619. F__maplower_ext T_RuneRange
  3620. F__mapupper_ext T_RuneRange
  3621. F__variable uintptr
  3622. F__variable_len int32
  3623. F__ncharclasses int32
  3624. F__charclasses uintptr
  3625. }
  3626. type Timaxdiv_t = struct {
  3627. Fquot Tintmax_t
  3628. Frem Tintmax_t
  3629. }
  3630. /* Values for humanize_number(3)'s flags parameter. */
  3631. /* Values for humanize_number(3)'s scale parameter. */
  3632. /*
  3633. * fparseln() specific operation flags.
  3634. */
  3635. /*===---- stdint.h - Standard header for sized integer types --------------===* *
  3636. * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  3637. * See https://llvm.org/LICENSE.txt for license information.
  3638. * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  3639. *
  3640. \*===----------------------------------------------------------------------===*/
  3641. // C documentation
  3642. //
  3643. // /*
  3644. // * Convert an expression of the following forms to a uint64_t.
  3645. // * 1) A positive decimal number.
  3646. // * 2) A positive decimal number followed by a 'b' or 'B' (mult by 1).
  3647. // * 3) A positive decimal number followed by a 'k' or 'K' (mult by 1 << 10).
  3648. // * 4) A positive decimal number followed by a 'm' or 'M' (mult by 1 << 20).
  3649. // * 5) A positive decimal number followed by a 'g' or 'G' (mult by 1 << 30).
  3650. // * 6) A positive decimal number followed by a 't' or 'T' (mult by 1 << 40).
  3651. // * 7) A positive decimal number followed by a 'p' or 'P' (mult by 1 << 50).
  3652. // * 8) A positive decimal number followed by a 'e' or 'E' (mult by 1 << 60).
  3653. // */
  3654. func Xexpand_number(tls *libc.TLS, buf uintptr, num uintptr) (r int32) {
  3655. bp := tls.Alloc(16)
  3656. defer tls.Free(16)
  3657. var number Tuint64_t
  3658. var shift uint32
  3659. var v1 int32
  3660. var _ /* endptr at bp+0 */ uintptr
  3661. _, _, _ = number, shift, v1
  3662. number = uint64(libc.Xstrtoumax(tls, buf, bp, 0))
  3663. if *(*uintptr)(unsafe.Pointer(bp)) == buf {
  3664. /* No valid digits. */
  3665. *(*int32)(unsafe.Pointer(libc.X__error(tls))) = int32(m_EINVAL)
  3666. return -int32(1)
  3667. }
  3668. v1 = libc.X__tolower(tls, libc.Int32FromUint8(libc.Uint8FromInt8(*(*int8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)))))))
  3669. goto _2
  3670. _2:
  3671. switch v1 {
  3672. case int32('e'):
  3673. shift = uint32(60)
  3674. case int32('p'):
  3675. shift = uint32(50)
  3676. case int32('t'):
  3677. shift = uint32(40)
  3678. case int32('g'):
  3679. shift = uint32(30)
  3680. case int32('m'):
  3681. shift = uint32(20)
  3682. case int32('k'):
  3683. shift = uint32(10)
  3684. case int32('b'):
  3685. fallthrough
  3686. case int32('\000'): /* No unit. */
  3687. *(*Tuint64_t)(unsafe.Pointer(num)) = number
  3688. return 0
  3689. default:
  3690. /* Unrecognized unit. */
  3691. *(*int32)(unsafe.Pointer(libc.X__error(tls))) = int32(m_EINVAL)
  3692. return -int32(1)
  3693. }
  3694. if number<<shift>>shift != number {
  3695. /* Overflow */
  3696. *(*int32)(unsafe.Pointer(libc.X__error(tls))) = int32(m_ERANGE)
  3697. return -int32(1)
  3698. }
  3699. *(*Tuint64_t)(unsafe.Pointer(num)) = number << shift
  3700. return 0
  3701. }
  3702. func X__explicit_bzero_hook(tls *libc.TLS, buf uintptr, len1 Tsize_t) {
  3703. }
  3704. func Xexplicit_bzero(tls *libc.TLS, buf uintptr, len1 Tsize_t) {
  3705. libc.X__builtin___memset_chk(tls, buf, 0, len1, ^t__predefined_size_t(0))
  3706. X__explicit_bzero_hook(tls, buf, len1)
  3707. }
  3708. const m_LOCK_EX1 = 2
  3709. const m_LOCK_NB1 = 4
  3710. const m_O_CREAT1 = 512
  3711. const m_O_EXLOCK1 = 32
  3712. const m_O_NONBLOCK1 = 4
  3713. const m_O_TRUNC1 = 1024
  3714. type Tkauth_cred_t = uintptr
  3715. type Tposix_cred_t = uintptr
  3716. type t__gnuc_va_list = uintptr
  3717. /* Values for humanize_number(3)'s flags parameter. */
  3718. /* Values for humanize_number(3)'s scale parameter. */
  3719. /*
  3720. * fparseln() specific operation flags.
  3721. */
  3722. func _lock_file(tls *libc.TLS, fd int32, flags int32) (r int32) {
  3723. var operation int32
  3724. _ = operation
  3725. operation = int32(m_LOCK_EX1)
  3726. if flags&int32(m_O_NONBLOCK1) != 0 {
  3727. operation |= int32(m_LOCK_NB1)
  3728. }
  3729. return libc.Xflock(tls, fd, operation)
  3730. }
  3731. // C documentation
  3732. //
  3733. // /*
  3734. // * Reliably open and lock a file.
  3735. // *
  3736. // * Please do not modify this code without first reading the revision history
  3737. // * and discussing your changes with <des@freebsd.org>. Don't be fooled by the
  3738. // * code's apparent simplicity; there would be no need for this function if it
  3739. // * was easy to get right.
  3740. // */
  3741. func _vflopenat(tls *libc.TLS, dirfd int32, path uintptr, flags int32, ap Tva_list) (r int32) {
  3742. bp := tls.Alloc(304)
  3743. defer tls.Free(304)
  3744. var fd, serrno, trunc, v2 int32
  3745. var mode Tmode_t
  3746. var _ /* fsb at bp+144 */ Tstat
  3747. var _ /* sb at bp+0 */ Tstat
  3748. _, _, _, _, _ = fd, mode, serrno, trunc, v2
  3749. flags &= ^libc.Int32FromInt32(m_O_EXLOCK1)
  3750. mode = uint16(0)
  3751. if flags&int32(m_O_CREAT1) != 0 {
  3752. mode = libc.Uint16FromInt32(libc.VaInt32(&ap)) /* mode_t promoted to int */
  3753. }
  3754. trunc = flags & int32(m_O_TRUNC1)
  3755. flags &= ^libc.Int32FromInt32(m_O_TRUNC1)
  3756. for {
  3757. v2 = _openat(tls, dirfd, path, flags, libc.VaList(bp+296, libc.Int32FromUint16(mode)))
  3758. fd = v2
  3759. if v2 == -int32(1) {
  3760. /* non-existent or no access */
  3761. return -int32(1)
  3762. }
  3763. if _lock_file(tls, fd, flags) == -int32(1) {
  3764. /* unsupported or interrupted */
  3765. serrno = *(*int32)(unsafe.Pointer(libc.X__error(tls)))
  3766. libc.Xclose(tls, fd)
  3767. *(*int32)(unsafe.Pointer(libc.X__error(tls))) = serrno
  3768. return -int32(1)
  3769. }
  3770. if _fstatat(tls, dirfd, path, bp, 0) == -int32(1) {
  3771. /* disappeared from under our feet */
  3772. libc.Xclose(tls, fd)
  3773. goto _1
  3774. }
  3775. if libc.Xfstat(tls, fd, bp+144) == -int32(1) {
  3776. /* can't happen [tm] */
  3777. serrno = *(*int32)(unsafe.Pointer(libc.X__error(tls)))
  3778. libc.Xclose(tls, fd)
  3779. *(*int32)(unsafe.Pointer(libc.X__error(tls))) = serrno
  3780. return -int32(1)
  3781. }
  3782. if (*(*Tstat)(unsafe.Pointer(bp))).Fst_dev != (*(*Tstat)(unsafe.Pointer(bp + 144))).Fst_dev || (*(*Tstat)(unsafe.Pointer(bp))).Fst_ino != (*(*Tstat)(unsafe.Pointer(bp + 144))).Fst_ino {
  3783. /* changed under our feet */
  3784. libc.Xclose(tls, fd)
  3785. goto _1
  3786. }
  3787. if trunc != 0 && libc.Xftruncate(tls, fd, 0) != 0 {
  3788. /* can't happen [tm] */
  3789. serrno = *(*int32)(unsafe.Pointer(libc.X__error(tls)))
  3790. libc.Xclose(tls, fd)
  3791. *(*int32)(unsafe.Pointer(libc.X__error(tls))) = serrno
  3792. return -int32(1)
  3793. }
  3794. /*
  3795. * The following change is provided as a specific example to
  3796. * avoid.
  3797. */
  3798. return fd
  3799. goto _1
  3800. _1:
  3801. }
  3802. return r
  3803. }
  3804. func Xflopen(tls *libc.TLS, path uintptr, flags int32, va uintptr) (r int32) {
  3805. var ap Tva_list
  3806. var ret int32
  3807. _, _ = ap, ret
  3808. ap = va
  3809. ret = _vflopenat(tls, -int32(2), path, flags, ap)
  3810. _ = ap
  3811. return ret
  3812. }
  3813. func Xflopenat(tls *libc.TLS, dirfd int32, path uintptr, flags int32, va uintptr) (r int32) {
  3814. var ap Tva_list
  3815. var ret int32
  3816. _, _ = ap, ret
  3817. ap = va
  3818. ret = _vflopenat(tls, dirfd, path, flags, ap)
  3819. _ = ap
  3820. return ret
  3821. }
  3822. func Xfreezero(tls *libc.TLS, ptr uintptr, sz Tsize_t) {
  3823. /* This is legal. */
  3824. if ptr == libc.UintptrFromInt32(0) {
  3825. return
  3826. }
  3827. Xexplicit_bzero(tls, ptr, sz)
  3828. libc.Xfree(tls, ptr)
  3829. }
  3830. const m_KB = 1024
  3831. const m_MAXB = "GB"
  3832. func Xgetbsize(tls *libc.TLS, headerlenp uintptr, blocksizep uintptr) (r uintptr) {
  3833. bp := tls.Alloc(32)
  3834. defer tls.Free(32)
  3835. var blocksize, max, mul, n, v15, v16, v17, v4 int64
  3836. var form, p, v3 uintptr
  3837. var _ /* ep at bp+0 */ uintptr
  3838. _, _, _, _, _, _, _, _, _, _, _ = blocksize, form, max, mul, n, p, v15, v16, v17, v3, v4
  3839. form = __ccgo_ts + 8
  3840. v3 = libc.Xgetenv(tls, __ccgo_ts+9)
  3841. p = v3
  3842. if !(v3 != libc.UintptrFromInt32(0) && int32(*(*int8)(unsafe.Pointer(p))) != int32('\000')) {
  3843. goto _1
  3844. }
  3845. v4 = libc.Xstrtol(tls, p, bp, int32(10))
  3846. n = v4
  3847. if v4 < 0 {
  3848. goto underflow
  3849. }
  3850. if n == 0 {
  3851. n = int64(1)
  3852. }
  3853. if *(*int8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)))) != 0 && *(*int8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)) + 1)) != 0 {
  3854. goto fmterr
  3855. }
  3856. switch int32(*(*int8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp))))) {
  3857. case int32('g'):
  3858. goto _5
  3859. case int32('G'):
  3860. goto _6
  3861. case int32('k'):
  3862. goto _7
  3863. case int32('K'):
  3864. goto _8
  3865. case int32('m'):
  3866. goto _9
  3867. case int32('M'):
  3868. goto _10
  3869. case int32('\000'):
  3870. goto _11
  3871. default:
  3872. goto _12
  3873. }
  3874. goto _13
  3875. _6:
  3876. ;
  3877. _5:
  3878. ;
  3879. form = __ccgo_ts + 19
  3880. max = libc.Int64FromInt64(1024) * libc.Int64FromInt64(1024) * libc.Int64FromInt64(1024) / (libc.Int64FromInt64(1024) * libc.Int64FromInt64(1024) * libc.Int64FromInt64(1024))
  3881. mul = libc.Int64FromInt64(1024) * libc.Int64FromInt64(1024) * libc.Int64FromInt64(1024)
  3882. goto _13
  3883. _8:
  3884. ;
  3885. _7:
  3886. ;
  3887. form = __ccgo_ts + 21
  3888. max = libc.Int64FromInt64(1024) * libc.Int64FromInt64(1024) * libc.Int64FromInt64(1024) / libc.Int64FromInt64(1024)
  3889. mul = int64(1024)
  3890. goto _13
  3891. _10:
  3892. ;
  3893. _9:
  3894. ;
  3895. form = __ccgo_ts + 23
  3896. max = libc.Int64FromInt64(1024) * libc.Int64FromInt64(1024) * libc.Int64FromInt64(1024) / (libc.Int64FromInt64(1024) * libc.Int64FromInt64(1024))
  3897. mul = libc.Int64FromInt64(1024) * libc.Int64FromInt64(1024)
  3898. goto _13
  3899. _11:
  3900. ;
  3901. max = libc.Int64FromInt64(1024) * libc.Int64FromInt64(1024) * libc.Int64FromInt64(1024)
  3902. mul = int64(1)
  3903. goto _13
  3904. _12:
  3905. ;
  3906. goto fmterr
  3907. fmterr:
  3908. ;
  3909. _warnx(tls, __ccgo_ts+25, libc.VaList(bp+16, p))
  3910. n = int64(512)
  3911. max = libc.Int64FromInt64(1024) * libc.Int64FromInt64(1024) * libc.Int64FromInt64(1024)
  3912. mul = int64(1)
  3913. goto _13
  3914. _13:
  3915. ;
  3916. if n > max {
  3917. _warnx(tls, __ccgo_ts+47, libc.VaList(bp+16, libc.Int64FromInt64(1024)*libc.Int64FromInt64(1024)*libc.Int64FromInt64(1024)/(libc.Int64FromInt64(1024)*libc.Int64FromInt64(1024)*libc.Int64FromInt64(1024))))
  3918. n = max
  3919. }
  3920. v15 = n * mul
  3921. blocksize = v15
  3922. if !(v15 < int64(512)) {
  3923. goto _14
  3924. }
  3925. goto underflow
  3926. underflow:
  3927. ;
  3928. _warnx(tls, __ccgo_ts+73, 0)
  3929. form = __ccgo_ts + 8
  3930. v16 = libc.Int64FromInt32(512)
  3931. n = v16
  3932. blocksize = v16
  3933. _14:
  3934. ;
  3935. goto _2
  3936. _1:
  3937. ;
  3938. v17 = libc.Int64FromInt32(512)
  3939. n = v17
  3940. blocksize = v17
  3941. _2:
  3942. ;
  3943. libc.X__builtin___snprintf_chk(tls, uintptr(unsafe.Pointer(&_header)), uint64(20), 0, ^t__predefined_size_t(0), __ccgo_ts+98, libc.VaList(bp+16, n, form))
  3944. *(*int32)(unsafe.Pointer(headerlenp)) = libc.Int32FromUint64(libc.Xstrlen(tls, uintptr(unsafe.Pointer(&_header))))
  3945. *(*int64)(unsafe.Pointer(blocksizep)) = blocksize
  3946. return uintptr(unsafe.Pointer(&_header))
  3947. }
  3948. var _header [20]int8
  3949. func Xdehumanize_number(tls *libc.TLS, buf uintptr, num uintptr) (r int32) {
  3950. bp := tls.Alloc(16)
  3951. defer tls.Free(16)
  3952. var rc, sign, v1, v5, v7, v8 int32
  3953. var rmax Tuint64_t
  3954. var v3 t__darwin_ct_rune_t
  3955. var v4 uint64
  3956. var _ /* rval at bp+0 */ Tuint64_t
  3957. _, _, _, _, _, _, _, _, _ = rc, rmax, sign, v1, v3, v4, v5, v7, v8
  3958. sign = +libc.Int32FromInt32(1)
  3959. /* The current expand_number() implementation uses bit shifts, so
  3960. * we cannot pass negative numbers, preserve the sign and apply it
  3961. * later. */
  3962. for {
  3963. v3 = int32(*(*int8)(unsafe.Pointer(buf)))
  3964. v4 = uint64(0x00004000)
  3965. v8 = libc.BoolInt32(v3 & ^libc.Int32FromInt32(0x7F) == 0)
  3966. goto _9
  3967. _9:
  3968. if v8 != 0 {
  3969. v7 = libc.BoolInt32(!!(uint64(*(*t__uint32_t)(unsafe.Pointer(uintptr(unsafe.Pointer(&libc.X_DefaultRuneLocale)) + 60 + uintptr(v3)*4)))&v4 != 0))
  3970. } else {
  3971. v7 = libc.BoolInt32(!!(libc.X__maskrune(tls, v3, v4) != 0))
  3972. }
  3973. v5 = v7
  3974. goto _6
  3975. _6:
  3976. v1 = v5
  3977. goto _2
  3978. _2:
  3979. if !(v1 != 0) {
  3980. break
  3981. }
  3982. buf++
  3983. }
  3984. if int32(*(*int8)(unsafe.Pointer(buf))) == int32('-') {
  3985. sign = -int32(1)
  3986. buf++
  3987. }
  3988. rc = Xexpand_number(tls, buf, bp)
  3989. if rc < 0 {
  3990. return rc
  3991. }
  3992. /* The sign has been stripped, so rval has the absolute value.
  3993. * Error out, regardless of the sign, if rval is greater than
  3994. * abs(INT64_MIN) (== INT64_MAX + 1), or if the sign is positive
  3995. * and the value has overflown by one (INT64_MAX + 1). */
  3996. rmax = libc.Uint64FromInt64(9223372036854775807) + libc.Uint64FromUint64(1)
  3997. if *(*Tuint64_t)(unsafe.Pointer(bp)) > rmax || *(*Tuint64_t)(unsafe.Pointer(bp)) == rmax && sign == +libc.Int32FromInt32(1) {
  3998. *(*int32)(unsafe.Pointer(libc.X__error(tls))) = int32(m_ERANGE)
  3999. return -int32(1)
  4000. }
  4001. *(*Tint64_t)(unsafe.Pointer(num)) = libc.Int64FromUint64(*(*Tuint64_t)(unsafe.Pointer(bp)) * libc.Uint64FromInt32(sign))
  4002. return 0
  4003. }
  4004. const m_HN_AUTOSCALE1 = 32
  4005. const m_HN_B1 = 4
  4006. const m_HN_DECIMAL1 = 1
  4007. const m_HN_DIVISOR_10001 = 8
  4008. const m_HN_GETSCALE1 = 16
  4009. const m_HN_IEC_PREFIXES1 = 16
  4010. const m_HN_NOSPACE1 = 2
  4011. const m_LC_ALL = 0
  4012. const m_LC_COLLATE = 1
  4013. const m_LC_CTYPE = 2
  4014. const m_LC_MESSAGES = 6
  4015. const m_LC_MONETARY = 3
  4016. const m_LC_NUMERIC = 4
  4017. const m_LC_TIME = 5
  4018. const m__LC_LAST = 7
  4019. const m__LC_NUM_MASK = 6
  4020. const m_static_assert = "_Static_assert"
  4021. type Tlconv = struct {
  4022. Fdecimal_point uintptr
  4023. Fthousands_sep uintptr
  4024. Fgrouping uintptr
  4025. Fint_curr_symbol uintptr
  4026. Fcurrency_symbol uintptr
  4027. Fmon_decimal_point uintptr
  4028. Fmon_thousands_sep uintptr
  4029. Fmon_grouping uintptr
  4030. Fpositive_sign uintptr
  4031. Fnegative_sign uintptr
  4032. Fint_frac_digits int8
  4033. Ffrac_digits int8
  4034. Fp_cs_precedes int8
  4035. Fp_sep_by_space int8
  4036. Fn_cs_precedes int8
  4037. Fn_sep_by_space int8
  4038. Fp_sign_posn int8
  4039. Fn_sign_posn int8
  4040. Fint_p_cs_precedes int8
  4041. Fint_n_cs_precedes int8
  4042. Fint_p_sep_by_space int8
  4043. Fint_n_sep_by_space int8
  4044. Fint_p_sign_posn int8
  4045. Fint_n_sign_posn int8
  4046. }
  4047. type Tlocale_t = uintptr
  4048. /*
  4049. * Copyright (c) 1996 Peter Wemm <peter@FreeBSD.org>.
  4050. * All rights reserved.
  4051. * Copyright (c) 2002 Networks Associates Technology, Inc.
  4052. * All rights reserved.
  4053. *
  4054. * Portions of this software were developed for the FreeBSD Project by
  4055. * ThinkSec AS and NAI Labs, the Security Research Division of Network
  4056. * Associates, Inc. under DARPA/SPAWAR contract N66001-01-C-8035
  4057. * ("CBOSS"), as part of the DARPA CHATS research program.
  4058. *
  4059. * Redistribution and use in source and binary forms, with or without
  4060. * modification, is permitted provided that the following conditions
  4061. * are met:
  4062. * 1. Redistributions of source code must retain the above copyright
  4063. * notice, this list of conditions and the following disclaimer.
  4064. * 2. Redistributions in binary form must reproduce the above copyright
  4065. * notice, this list of conditions and the following disclaimer in the
  4066. * documentation and/or other materials provided with the distribution.
  4067. * 3. The name of the author may not be used to endorse or promote
  4068. * products derived from this software without specific prior written
  4069. * permission.
  4070. *
  4071. * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
  4072. * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  4073. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  4074. * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  4075. * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  4076. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  4077. * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  4078. * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  4079. * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  4080. * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  4081. * SUCH DAMAGE.
  4082. *
  4083. * $FreeBSD: src/lib/libutil/libutil.h,v 1.47 2008/04/23 00:49:12 scf Exp $
  4084. */
  4085. var _maxscale = int32(6)
  4086. func Xhumanize_number(tls *libc.TLS, buf uintptr, len1 Tsize_t, quotient Tint64_t, suffix uintptr, scale int32, flags int32) (r1 int32) {
  4087. bp := tls.Alloc(64)
  4088. defer tls.Free(64)
  4089. var baselen Tsize_t
  4090. var divisor, max Tint64_t
  4091. var divisordeccut, i, r, remainder, s1, s2, sign, v2 int32
  4092. var prefixes, sep uintptr
  4093. _, _, _, _, _, _, _, _, _, _, _, _, _ = baselen, divisor, divisordeccut, i, max, prefixes, r, remainder, s1, s2, sep, sign, v2
  4094. /* Since so many callers don't check -1, NUL terminate the buffer */
  4095. if len1 > uint64(0) {
  4096. *(*int8)(unsafe.Pointer(buf)) = int8('\000')
  4097. }
  4098. /* validate args */
  4099. if buf == libc.UintptrFromInt32(0) || suffix == libc.UintptrFromInt32(0) {
  4100. return -int32(1)
  4101. }
  4102. if scale < 0 {
  4103. return -int32(1)
  4104. } else {
  4105. if scale > _maxscale && scale & ^(libc.Int32FromInt32(m_HN_AUTOSCALE1)|libc.Int32FromInt32(m_HN_GETSCALE1)) != 0 {
  4106. return -int32(1)
  4107. }
  4108. }
  4109. if flags&int32(m_HN_DIVISOR_10001) != 0 && flags&int32(m_HN_IEC_PREFIXES1) != 0 {
  4110. return -int32(1)
  4111. }
  4112. /* setup parameters */
  4113. remainder = 0
  4114. if flags&int32(m_HN_IEC_PREFIXES1) != 0 {
  4115. baselen = uint64(2)
  4116. /*
  4117. * Use the prefixes for power of two recommended by
  4118. * the International Electrotechnical Commission
  4119. * (IEC) in IEC 80000-3 (i.e. Ki, Mi, Gi...).
  4120. *
  4121. * HN_IEC_PREFIXES implies a divisor of 1024 here
  4122. * (use of HN_DIVISOR_1000 would have triggered
  4123. * an assertion earlier).
  4124. */
  4125. divisor = int64(1024)
  4126. divisordeccut = int32(973) /* ceil(.95 * 1024) */
  4127. if flags&int32(m_HN_B1) != 0 {
  4128. prefixes = __ccgo_ts + 111
  4129. } else {
  4130. prefixes = __ccgo_ts + 132
  4131. }
  4132. } else {
  4133. baselen = uint64(1)
  4134. if flags&int32(m_HN_DIVISOR_10001) != 0 {
  4135. divisor = int64(1000)
  4136. divisordeccut = int32(950)
  4137. if flags&int32(m_HN_B1) != 0 {
  4138. prefixes = __ccgo_ts + 153
  4139. } else {
  4140. prefixes = __ccgo_ts + 173
  4141. }
  4142. } else {
  4143. divisor = int64(1024)
  4144. divisordeccut = int32(973) /* ceil(.95 * 1024) */
  4145. if flags&int32(m_HN_B1) != 0 {
  4146. prefixes = __ccgo_ts + 193
  4147. } else {
  4148. prefixes = __ccgo_ts + 213
  4149. }
  4150. }
  4151. }
  4152. if quotient < 0 {
  4153. sign = -int32(1)
  4154. quotient = -quotient
  4155. baselen += uint64(2) /* sign, digit */
  4156. } else {
  4157. sign = int32(1)
  4158. baselen += uint64(1) /* digit */
  4159. }
  4160. if flags&int32(m_HN_NOSPACE1) != 0 {
  4161. sep = __ccgo_ts + 8
  4162. } else {
  4163. sep = __ccgo_ts + 233
  4164. baselen++
  4165. }
  4166. baselen += libc.Xstrlen(tls, suffix)
  4167. /* Check if enough room for `x y' + suffix + `\0' */
  4168. if len1 < baselen+uint64(1) {
  4169. return -int32(1)
  4170. }
  4171. if scale&(libc.Int32FromInt32(m_HN_AUTOSCALE1)|libc.Int32FromInt32(m_HN_GETSCALE1)) != 0 {
  4172. /* See if there is additional columns can be used. */
  4173. max = int64(1)
  4174. i = libc.Int32FromUint64(len1 - baselen)
  4175. for {
  4176. v2 = i
  4177. i--
  4178. if !(v2 > 0) {
  4179. break
  4180. }
  4181. max *= int64(10)
  4182. goto _1
  4183. _1:
  4184. }
  4185. /*
  4186. * Divide the number until it fits the given column.
  4187. * If there will be an overflow by the rounding below,
  4188. * divide once more.
  4189. */
  4190. i = 0
  4191. for {
  4192. if !((quotient >= max || quotient == max-int64(1) && (remainder >= divisordeccut || int64(remainder) >= divisor/int64(2))) && i < _maxscale) {
  4193. break
  4194. }
  4195. remainder = int32(quotient % divisor)
  4196. quotient /= divisor
  4197. goto _3
  4198. _3:
  4199. ;
  4200. i++
  4201. }
  4202. if scale&int32(m_HN_GETSCALE1) != 0 {
  4203. return i
  4204. }
  4205. } else {
  4206. i = 0
  4207. for {
  4208. if !(i < scale && i < _maxscale) {
  4209. break
  4210. }
  4211. remainder = int32(quotient % divisor)
  4212. quotient /= divisor
  4213. goto _4
  4214. _4:
  4215. ;
  4216. i++
  4217. }
  4218. }
  4219. /* If a value <= 9.9 after rounding and ... */
  4220. /*
  4221. * XXX - should we make sure there is enough space for the decimal
  4222. * place and if not, don't do HN_DECIMAL?
  4223. */
  4224. if (quotient == int64(9) && remainder < divisordeccut || quotient < int64(9)) && i > 0 && flags&int32(m_HN_DECIMAL1) != 0 {
  4225. s1 = int32(int64(int32(quotient)) + (int64(remainder*int32(10))+divisor/int64(2))/divisor/int64(10))
  4226. s2 = int32((int64(remainder*int32(10)) + divisor/int64(2)) / divisor % int64(10))
  4227. r = libc.X__builtin___snprintf_chk(tls, buf, len1, 0, ^t__predefined_size_t(0), __ccgo_ts+235, libc.VaList(bp+8, sign*s1, (*Tlconv)(unsafe.Pointer(libc.Xlocaleconv(tls))).Fdecimal_point, s2, sep, prefixes+uintptr(i*int32(3)), suffix))
  4228. } else {
  4229. r = libc.X__builtin___snprintf_chk(tls, buf, len1, 0, ^t__predefined_size_t(0), __ccgo_ts+248, libc.VaList(bp+8, int64(sign)*(quotient+(int64(remainder)+divisor/int64(2))/divisor), sep, prefixes+uintptr(i*int32(3)), suffix))
  4230. }
  4231. return r
  4232. }
  4233. const m_ALIGNBYTES = "__DARWIN_ALIGNBYTES"
  4234. const m_BLKDEV_IOSIZE = 2048
  4235. const m_BSD = 199506
  4236. const m_BSD4_3 = 1
  4237. const m_BSD4_4 = 1
  4238. const m_CBLOCK = 64
  4239. const m_CLOCK_MONOTONIC = "_CLOCK_MONOTONIC"
  4240. const m_CLOCK_MONOTONIC_RAW = "_CLOCK_MONOTONIC_RAW"
  4241. const m_CLOCK_MONOTONIC_RAW_APPROX = "_CLOCK_MONOTONIC_RAW_APPROX"
  4242. const m_CLOCK_PROCESS_CPUTIME_ID = "_CLOCK_PROCESS_CPUTIME_ID"
  4243. const m_CLOCK_REALTIME = "_CLOCK_REALTIME"
  4244. const m_CLOCK_THREAD_CPUTIME_ID = "_CLOCK_THREAD_CPUTIME_ID"
  4245. const m_CLOCK_UPTIME_RAW = "_CLOCK_UPTIME_RAW"
  4246. const m_CLOCK_UPTIME_RAW_APPROX = "_CLOCK_UPTIME_RAW_APPROX"
  4247. const m_CLOFF = "CLOFSET"
  4248. const m_CLSIZE = 1
  4249. const m_CLSIZELOG2 = 0
  4250. const m_CMASK = 022
  4251. const m_DEV_BSHIFT = 9
  4252. const m_DEV_BSIZE = 512
  4253. const m_FSHIFT = 11
  4254. const m_HN_AUTOSCALE2 = 0x20
  4255. const m_HN_B2 = 0x04
  4256. const m_HN_DECIMAL2 = 0x01
  4257. const m_HN_DIVISOR_10002 = 0x08
  4258. const m_HN_GETSCALE2 = 0x10
  4259. const m_HN_IEC_PREFIXES2 = 0x10
  4260. const m_HN_NOSPACE2 = 0x02
  4261. const m_LOCK_EX2 = 0x02
  4262. const m_LOCK_NB2 = 0x04
  4263. const m_M16KCLSHIFT = 14
  4264. const m_MAXCOMLEN = 16
  4265. const m_MAXDOMNAMELEN = 256
  4266. const m_MAXFRAG = 8
  4267. const m_MAXHOSTNAMELEN = 256
  4268. const m_MAXINTERP = 64
  4269. const m_MAXLOGNAME = 255
  4270. const m_MAXPATHLEN = "PATH_MAX"
  4271. const m_MAXPHYSIO = "MAXPHYS"
  4272. const m_MAXPRI = 127
  4273. const m_MAXSYMLINKS = 32
  4274. const m_MAXUPRC = "CHILD_MAX"
  4275. const m_MBIGCLSHIFT = 12
  4276. const m_MCLSHIFT = 11
  4277. const m_MSIZESHIFT = 8
  4278. const m_NBPG = 4096
  4279. const m_NCARGS = "ARG_MAX"
  4280. const m_NGROUPS = "NGROUPS_MAX"
  4281. const m_NOFILE = 256
  4282. const m_NOGROUP = 65535
  4283. const m_NeXTBSD = 1995064
  4284. const m_NeXTBSD4_0 = 0
  4285. const m_O_EXLOCK2 = 0x00000020
  4286. const m_O_RDONLY1 = 0
  4287. const m_O_WRONLY1 = 1
  4288. const m_PCATCH = 0x100
  4289. const m_PDROP = 0x400
  4290. const m_PGSHIFT = 12
  4291. const m_PINOD = 8
  4292. const m_PLOCK = 36
  4293. const m_PPAUSE = 40
  4294. const m_PRIBIO = 16
  4295. const m_PRIMASK = 0x0ff
  4296. const m_PSOCK = 24
  4297. const m_PSPIN = 0x800
  4298. const m_PSWP = 0
  4299. const m_PTTYBLOCK = 0x200
  4300. const m_PUSER = 50
  4301. const m_PVFS = 20
  4302. const m_PVM = 4
  4303. const m_PWAIT = 32
  4304. const m_PZERO = 22
  4305. const m_TIME_UTC = 1
  4306. type Tpidfh = struct {
  4307. Fpf_fd int32
  4308. Fpf_path uintptr
  4309. Fpf_dev Tdev_t
  4310. Fpf_ino Tino_t
  4311. }
  4312. type Ttm = struct {
  4313. Ftm_sec int32
  4314. Ftm_min int32
  4315. Ftm_hour int32
  4316. Ftm_mday int32
  4317. Ftm_mon int32
  4318. Ftm_year int32
  4319. Ftm_wday int32
  4320. Ftm_yday int32
  4321. Ftm_isdst int32
  4322. Ftm_gmtoff int64
  4323. Ftm_zone uintptr
  4324. } //TODO "timezone" // _time.h:106:13:
  4325. type Tclockid_t = int32
  4326. const __CLOCK_REALTIME = 0
  4327. const __CLOCK_MONOTONIC = 6
  4328. const __CLOCK_MONOTONIC_RAW = 4
  4329. const __CLOCK_MONOTONIC_RAW_APPROX = 5
  4330. const __CLOCK_UPTIME_RAW = 8
  4331. const __CLOCK_UPTIME_RAW_APPROX = 9
  4332. const __CLOCK_PROCESS_CPUTIME_ID = 12
  4333. const __CLOCK_THREAD_CPUTIME_ID = 16
  4334. func _pidfile_verify(tls *libc.TLS, pfh uintptr) (r int32) {
  4335. bp := tls.Alloc(144)
  4336. defer tls.Free(144)
  4337. var _ /* sb at bp+0 */ Tstat
  4338. if pfh == libc.UintptrFromInt32(0) || (*Tpidfh)(unsafe.Pointer(pfh)).Fpf_fd == -int32(1) {
  4339. return int32(m_EINVAL)
  4340. }
  4341. /*
  4342. * Check remembered descriptor.
  4343. */
  4344. if libc.Xfstat(tls, (*Tpidfh)(unsafe.Pointer(pfh)).Fpf_fd, bp) == -int32(1) {
  4345. return *(*int32)(unsafe.Pointer(libc.X__error(tls)))
  4346. }
  4347. if (*(*Tstat)(unsafe.Pointer(bp))).Fst_dev != (*Tpidfh)(unsafe.Pointer(pfh)).Fpf_dev || (*(*Tstat)(unsafe.Pointer(bp))).Fst_ino != (*Tpidfh)(unsafe.Pointer(pfh)).Fpf_ino {
  4348. return int32(m_EINVAL)
  4349. }
  4350. return 0
  4351. }
  4352. func _pidfile_read(tls *libc.TLS, path uintptr, pidptr uintptr) (r int32) {
  4353. bp := tls.Alloc(32)
  4354. defer tls.Free(32)
  4355. var error1, fd, i int32
  4356. var _ /* buf at bp+0 */ [16]int8
  4357. var _ /* endptr at bp+16 */ uintptr
  4358. _, _, _ = error1, fd, i
  4359. fd = libc.Xopen(tls, path, m_O_RDONLY1, 0)
  4360. if fd == -int32(1) {
  4361. return *(*int32)(unsafe.Pointer(libc.X__error(tls)))
  4362. }
  4363. i = int32(libc.Xread(tls, fd, bp, libc.Uint64FromInt64(16)-libc.Uint64FromInt32(1)))
  4364. error1 = *(*int32)(unsafe.Pointer(libc.X__error(tls))) /* Remember errno in case close() wants to change it. */
  4365. libc.Xclose(tls, fd)
  4366. if i == -int32(1) {
  4367. return error1
  4368. } else {
  4369. if i == 0 {
  4370. return int32(m_EAGAIN)
  4371. }
  4372. }
  4373. (*(*[16]int8)(unsafe.Pointer(bp)))[i] = int8('\000')
  4374. *(*Tpid_t)(unsafe.Pointer(pidptr)) = int32(libc.Xstrtol(tls, bp, bp+16, int32(10)))
  4375. if *(*uintptr)(unsafe.Pointer(bp + 16)) != bp+uintptr(i) {
  4376. return int32(m_EINVAL)
  4377. }
  4378. return 0
  4379. }
  4380. func Xpidfile_open(tls *libc.TLS, path uintptr, mode Tmode_t, pidptr uintptr) (r uintptr) {
  4381. bp := tls.Alloc(176)
  4382. defer tls.Free(176)
  4383. var count, error1, fd, len1, v2 int32
  4384. var pfh uintptr
  4385. var v3 bool
  4386. var _ /* rqtp at bp+144 */ Ttimespec
  4387. var _ /* sb at bp+0 */ Tstat
  4388. _, _, _, _, _, _, _ = count, error1, fd, len1, pfh, v2, v3
  4389. pfh = libc.Xmalloc(tls, uint64(32))
  4390. if pfh == libc.UintptrFromInt32(0) {
  4391. return libc.UintptrFromInt32(0)
  4392. }
  4393. if path == libc.UintptrFromInt32(0) {
  4394. len1 = _asprintf(tls, pfh+8, __ccgo_ts+259, libc.VaList(bp+168, libc.Xgetprogname(tls)))
  4395. if len1 < 0 {
  4396. libc.Xfree(tls, pfh)
  4397. return libc.UintptrFromInt32(0)
  4398. }
  4399. } else {
  4400. (*Tpidfh)(unsafe.Pointer(pfh)).Fpf_path = libc.Xstrdup(tls, path)
  4401. }
  4402. /*
  4403. * Open the PID file and obtain exclusive lock.
  4404. * We truncate PID file here only to remove old PID immediately,
  4405. * PID file will be truncated again in pidfile_write(), so
  4406. * pidfile_write() can be called multiple times.
  4407. */
  4408. fd = Xflopen(tls, (*Tpidfh)(unsafe.Pointer(pfh)).Fpf_path, libc.Int32FromInt32(m_O_WRONLY1)|libc.Int32FromInt32(m_O_CREAT1)|libc.Int32FromInt32(m_O_TRUNC1)|libc.Int32FromInt32(m_O_NONBLOCK1), libc.VaList(bp+168, libc.Int32FromUint16(mode)))
  4409. if fd == -int32(1) {
  4410. if *(*int32)(unsafe.Pointer(libc.X__error(tls))) == int32(m_EAGAIN) {
  4411. if pidptr == libc.UintptrFromInt32(0) {
  4412. *(*int32)(unsafe.Pointer(libc.X__error(tls))) = int32(m_EEXIST)
  4413. } else {
  4414. count = int32(20)
  4415. (*(*Ttimespec)(unsafe.Pointer(bp + 144))).Ftv_sec = 0
  4416. (*(*Ttimespec)(unsafe.Pointer(bp + 144))).Ftv_nsec = int64(5000000)
  4417. for {
  4418. *(*int32)(unsafe.Pointer(libc.X__error(tls))) = _pidfile_read(tls, (*Tpidfh)(unsafe.Pointer(pfh)).Fpf_path, pidptr)
  4419. if v3 = *(*int32)(unsafe.Pointer(libc.X__error(tls))) != int32(m_EAGAIN); !v3 {
  4420. count--
  4421. v2 = count
  4422. }
  4423. if v3 || v2 == 0 {
  4424. break
  4425. }
  4426. libc.Xnanosleep(tls, bp+144, uintptr(0))
  4427. goto _1
  4428. _1:
  4429. }
  4430. if *(*int32)(unsafe.Pointer(libc.X__error(tls))) == int32(m_EAGAIN) {
  4431. *(*Tpid_t)(unsafe.Pointer(pidptr)) = -int32(1)
  4432. }
  4433. if *(*int32)(unsafe.Pointer(libc.X__error(tls))) == 0 || *(*int32)(unsafe.Pointer(libc.X__error(tls))) == int32(m_EAGAIN) {
  4434. *(*int32)(unsafe.Pointer(libc.X__error(tls))) = int32(m_EEXIST)
  4435. }
  4436. }
  4437. }
  4438. error1 = *(*int32)(unsafe.Pointer(libc.X__error(tls)))
  4439. libc.Xfree(tls, (*Tpidfh)(unsafe.Pointer(pfh)).Fpf_path)
  4440. libc.Xfree(tls, pfh)
  4441. *(*int32)(unsafe.Pointer(libc.X__error(tls))) = error1
  4442. return libc.UintptrFromInt32(0)
  4443. }
  4444. /*
  4445. * Remember file information, so in pidfile_write() we are sure we write
  4446. * to the proper descriptor.
  4447. */
  4448. if libc.Xfstat(tls, fd, bp) == -int32(1) {
  4449. error1 = *(*int32)(unsafe.Pointer(libc.X__error(tls)))
  4450. libc.Xunlink(tls, (*Tpidfh)(unsafe.Pointer(pfh)).Fpf_path)
  4451. libc.Xfree(tls, (*Tpidfh)(unsafe.Pointer(pfh)).Fpf_path)
  4452. libc.Xclose(tls, fd)
  4453. libc.Xfree(tls, pfh)
  4454. *(*int32)(unsafe.Pointer(libc.X__error(tls))) = error1
  4455. return libc.UintptrFromInt32(0)
  4456. }
  4457. (*Tpidfh)(unsafe.Pointer(pfh)).Fpf_fd = fd
  4458. (*Tpidfh)(unsafe.Pointer(pfh)).Fpf_dev = (*(*Tstat)(unsafe.Pointer(bp))).Fst_dev
  4459. (*Tpidfh)(unsafe.Pointer(pfh)).Fpf_ino = (*(*Tstat)(unsafe.Pointer(bp))).Fst_ino
  4460. return pfh
  4461. }
  4462. func Xpidfile_write(tls *libc.TLS, pfh uintptr) (r int32) {
  4463. bp := tls.Alloc(32)
  4464. defer tls.Free(32)
  4465. var error1, fd int32
  4466. var _ /* pidstr at bp+0 */ [16]int8
  4467. _, _ = error1, fd
  4468. /*
  4469. * Check remembered descriptor, so we don't overwrite some other
  4470. * file if pidfile was closed and descriptor reused.
  4471. */
  4472. *(*int32)(unsafe.Pointer(libc.X__error(tls))) = _pidfile_verify(tls, pfh)
  4473. if *(*int32)(unsafe.Pointer(libc.X__error(tls))) != 0 {
  4474. /*
  4475. * Don't close descriptor, because we are not sure if it's ours.
  4476. */
  4477. return -int32(1)
  4478. }
  4479. fd = (*Tpidfh)(unsafe.Pointer(pfh)).Fpf_fd
  4480. /*
  4481. * Truncate PID file, so multiple calls of pidfile_write() are allowed.
  4482. */
  4483. if libc.Xftruncate(tls, fd, 0) == -int32(1) {
  4484. error1 = *(*int32)(unsafe.Pointer(libc.X__error(tls)))
  4485. __pidfile_remove(tls, pfh, 0)
  4486. *(*int32)(unsafe.Pointer(libc.X__error(tls))) = error1
  4487. return -int32(1)
  4488. }
  4489. libc.X__builtin___snprintf_chk(tls, bp, uint64(16), 0, ^t__predefined_size_t(0), __ccgo_ts+275, libc.VaList(bp+24, libc.Xgetpid(tls)))
  4490. if libc.Xpwrite(tls, fd, bp, libc.Xstrlen(tls, bp), 0) != libc.Int64FromUint64(libc.Xstrlen(tls, bp)) {
  4491. error1 = *(*int32)(unsafe.Pointer(libc.X__error(tls)))
  4492. __pidfile_remove(tls, pfh, 0)
  4493. *(*int32)(unsafe.Pointer(libc.X__error(tls))) = error1
  4494. return -int32(1)
  4495. }
  4496. return 0
  4497. }
  4498. func Xpidfile_close(tls *libc.TLS, pfh uintptr) (r int32) {
  4499. var error1 int32
  4500. _ = error1
  4501. error1 = _pidfile_verify(tls, pfh)
  4502. if error1 != 0 {
  4503. *(*int32)(unsafe.Pointer(libc.X__error(tls))) = error1
  4504. return -int32(1)
  4505. }
  4506. if libc.Xclose(tls, (*Tpidfh)(unsafe.Pointer(pfh)).Fpf_fd) == -int32(1) {
  4507. error1 = *(*int32)(unsafe.Pointer(libc.X__error(tls)))
  4508. }
  4509. libc.Xfree(tls, (*Tpidfh)(unsafe.Pointer(pfh)).Fpf_path)
  4510. libc.Xfree(tls, pfh)
  4511. if error1 != 0 {
  4512. *(*int32)(unsafe.Pointer(libc.X__error(tls))) = error1
  4513. return -int32(1)
  4514. }
  4515. return 0
  4516. }
  4517. func __pidfile_remove(tls *libc.TLS, pfh uintptr, freeit int32) (r int32) {
  4518. var error1 int32
  4519. _ = error1
  4520. error1 = _pidfile_verify(tls, pfh)
  4521. if error1 != 0 {
  4522. *(*int32)(unsafe.Pointer(libc.X__error(tls))) = error1
  4523. return -int32(1)
  4524. }
  4525. if libc.Xunlink(tls, (*Tpidfh)(unsafe.Pointer(pfh)).Fpf_path) == -int32(1) {
  4526. error1 = *(*int32)(unsafe.Pointer(libc.X__error(tls)))
  4527. }
  4528. if libc.Xclose(tls, (*Tpidfh)(unsafe.Pointer(pfh)).Fpf_fd) == -int32(1) {
  4529. if error1 == 0 {
  4530. error1 = *(*int32)(unsafe.Pointer(libc.X__error(tls)))
  4531. }
  4532. }
  4533. if freeit != 0 {
  4534. libc.Xfree(tls, (*Tpidfh)(unsafe.Pointer(pfh)).Fpf_path)
  4535. libc.Xfree(tls, pfh)
  4536. } else {
  4537. (*Tpidfh)(unsafe.Pointer(pfh)).Fpf_fd = -int32(1)
  4538. }
  4539. if error1 != 0 {
  4540. *(*int32)(unsafe.Pointer(libc.X__error(tls))) = error1
  4541. return -int32(1)
  4542. }
  4543. return 0
  4544. }
  4545. func Xpidfile_remove(tls *libc.TLS, pfh uintptr) (r int32) {
  4546. return __pidfile_remove(tls, pfh, int32(1))
  4547. }
  4548. func Xpidfile_fileno(tls *libc.TLS, pfh uintptr) (r int32) {
  4549. if pfh == libc.UintptrFromInt32(0) || (*Tpidfh)(unsafe.Pointer(pfh)).Fpf_fd == -int32(1) {
  4550. *(*int32)(unsafe.Pointer(libc.X__error(tls))) = int32(m_EINVAL)
  4551. return -int32(1)
  4552. }
  4553. return (*Tpidfh)(unsafe.Pointer(pfh)).Fpf_fd
  4554. }
  4555. const m_SPT_MAXTITLE = 255
  4556. const m___bool_true_false_are_defined = 1
  4557. const m_bool = "_Bool"
  4558. const m_false = 0
  4559. const m_true = 1
  4560. type Tptrdiff_t = int64
  4561. type Tmax_align_t = float64
  4562. var _SPT struct {
  4563. Farg0 uintptr
  4564. Fbase uintptr
  4565. Fend uintptr
  4566. Fnul uintptr
  4567. Fwarned uint8
  4568. Freset uint8
  4569. Ferror1 int32
  4570. }
  4571. func _spt_min(tls *libc.TLS, a Tsize_t, b Tsize_t) (r Tsize_t) {
  4572. var v1 uint64
  4573. _ = v1
  4574. if a < b {
  4575. v1 = a
  4576. } else {
  4577. v1 = b
  4578. }
  4579. return v1
  4580. }
  4581. // C documentation
  4582. //
  4583. // /*
  4584. // * For discussion on the portability of the various methods, see
  4585. // * https://lists.freebsd.org/pipermail/freebsd-stable/2008-June/043136.html
  4586. // */
  4587. func _spt_clearenv(tls *libc.TLS) (r int32) {
  4588. var tmp uintptr
  4589. _ = tmp
  4590. tmp = libc.Xmalloc(tls, uint64(8))
  4591. if tmp == libc.UintptrFromInt32(0) {
  4592. return *(*int32)(unsafe.Pointer(libc.X__error(tls)))
  4593. }
  4594. *(*uintptr)(unsafe.Pointer(tmp)) = libc.UintptrFromInt32(0)
  4595. libc.Xenviron = tmp
  4596. return 0
  4597. }
  4598. func _spt_copyenv(tls *libc.TLS, envc int32, envp uintptr) (r int32) {
  4599. var envcopy, eq uintptr
  4600. var envsize, error1, i int32
  4601. _, _, _, _, _ = envcopy, envsize, eq, error1, i
  4602. if libc.Xenviron != envp {
  4603. return 0
  4604. }
  4605. /* Make a copy of the old environ array of pointers, in case
  4606. * clearenv() or setenv() is implemented to free the internal
  4607. * environ array, because we will need to access the old environ
  4608. * contents to make the new copy. */
  4609. envsize = libc.Int32FromUint64(libc.Uint64FromInt32(envc+libc.Int32FromInt32(1)) * uint64(8))
  4610. envcopy = libc.Xmalloc(tls, libc.Uint64FromInt32(envsize))
  4611. if envcopy == libc.UintptrFromInt32(0) {
  4612. return *(*int32)(unsafe.Pointer(libc.X__error(tls)))
  4613. }
  4614. libc.X__builtin___memcpy_chk(tls, envcopy, envp, libc.Uint64FromInt32(envsize), ^t__predefined_size_t(0))
  4615. error1 = _spt_clearenv(tls)
  4616. if error1 != 0 {
  4617. libc.Xenviron = envp
  4618. libc.Xfree(tls, envcopy)
  4619. return error1
  4620. }
  4621. i = 0
  4622. for {
  4623. if !(*(*uintptr)(unsafe.Pointer(envcopy + uintptr(i)*8)) != 0) {
  4624. break
  4625. }
  4626. eq = libc.Xstrchr(tls, *(*uintptr)(unsafe.Pointer(envcopy + uintptr(i)*8)), int32('='))
  4627. if eq == libc.UintptrFromInt32(0) {
  4628. goto _1
  4629. }
  4630. *(*int8)(unsafe.Pointer(eq)) = int8('\000')
  4631. if libc.Xsetenv(tls, *(*uintptr)(unsafe.Pointer(envcopy + uintptr(i)*8)), eq+uintptr(1), int32(1)) < 0 {
  4632. error1 = *(*int32)(unsafe.Pointer(libc.X__error(tls)))
  4633. }
  4634. *(*int8)(unsafe.Pointer(eq)) = int8('=')
  4635. if error1 != 0 {
  4636. libc.Xenviron = envp
  4637. libc.Xfree(tls, envcopy)
  4638. return error1
  4639. }
  4640. goto _1
  4641. _1:
  4642. ;
  4643. i++
  4644. }
  4645. /* Dispose of the shallow copy, now that we've finished transfering
  4646. * the old environment. */
  4647. libc.Xfree(tls, envcopy)
  4648. return 0
  4649. }
  4650. func _spt_copyargs(tls *libc.TLS, argc int32, argv uintptr) (r int32) {
  4651. var i int32
  4652. var tmp uintptr
  4653. _, _ = i, tmp
  4654. i = int32(1)
  4655. for {
  4656. if !(i < argc || i >= argc && *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8)) != 0) {
  4657. break
  4658. }
  4659. if *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8)) == libc.UintptrFromInt32(0) {
  4660. goto _1
  4661. }
  4662. tmp = libc.Xstrdup(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8)))
  4663. if tmp == libc.UintptrFromInt32(0) {
  4664. return *(*int32)(unsafe.Pointer(libc.X__error(tls)))
  4665. }
  4666. *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8)) = tmp
  4667. goto _1
  4668. _1:
  4669. ;
  4670. i++
  4671. }
  4672. return 0
  4673. }
  4674. func Xsetproctitle_init(tls *libc.TLS, argc int32, argv uintptr, envp uintptr) {
  4675. var base, end, nul, tmp uintptr
  4676. var envc, error1, i int32
  4677. _, _, _, _, _, _, _ = base, end, envc, error1, i, nul, tmp
  4678. /* Try to make sure we got called with main() arguments. */
  4679. if argc < 0 {
  4680. return
  4681. }
  4682. base = *(*uintptr)(unsafe.Pointer(argv))
  4683. if base == libc.UintptrFromInt32(0) {
  4684. return
  4685. }
  4686. nul = base + uintptr(libc.Xstrlen(tls, base))
  4687. end = nul + uintptr(1)
  4688. i = 0
  4689. for {
  4690. if !(i < argc || i >= argc && *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8)) != 0) {
  4691. break
  4692. }
  4693. if *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8)) == libc.UintptrFromInt32(0) || *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8)) != end {
  4694. goto _1
  4695. }
  4696. end = *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8)) + uintptr(libc.Xstrlen(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8)))) + uintptr(1)
  4697. goto _1
  4698. _1:
  4699. ;
  4700. i++
  4701. }
  4702. i = 0
  4703. for {
  4704. if !(*(*uintptr)(unsafe.Pointer(envp + uintptr(i)*8)) != 0) {
  4705. break
  4706. }
  4707. if *(*uintptr)(unsafe.Pointer(envp + uintptr(i)*8)) != end {
  4708. goto _2
  4709. }
  4710. end = *(*uintptr)(unsafe.Pointer(envp + uintptr(i)*8)) + uintptr(libc.Xstrlen(tls, *(*uintptr)(unsafe.Pointer(envp + uintptr(i)*8)))) + uintptr(1)
  4711. goto _2
  4712. _2:
  4713. ;
  4714. i++
  4715. }
  4716. envc = i
  4717. _SPT.Farg0 = libc.Xstrdup(tls, *(*uintptr)(unsafe.Pointer(argv)))
  4718. if _SPT.Farg0 == libc.UintptrFromInt32(0) {
  4719. _SPT.Ferror1 = *(*int32)(unsafe.Pointer(libc.X__error(tls)))
  4720. return
  4721. }
  4722. tmp = libc.Xstrdup(tls, libc.Xgetprogname(tls))
  4723. if tmp == libc.UintptrFromInt32(0) {
  4724. _SPT.Ferror1 = *(*int32)(unsafe.Pointer(libc.X__error(tls)))
  4725. return
  4726. }
  4727. _setprogname(tls, tmp)
  4728. error1 = _spt_copyenv(tls, envc, envp)
  4729. if error1 != 0 {
  4730. _SPT.Ferror1 = error1
  4731. return
  4732. }
  4733. error1 = _spt_copyargs(tls, argc, argv)
  4734. if error1 != 0 {
  4735. _SPT.Ferror1 = error1
  4736. return
  4737. }
  4738. _SPT.Fnul = nul
  4739. _SPT.Fbase = base
  4740. _SPT.Fend = end
  4741. }
  4742. func Xsetproctitle_impl(tls *libc.TLS, fmt uintptr, va uintptr) {
  4743. bp := tls.Alloc(272)
  4744. defer tls.Free(272)
  4745. var ap Tva_list
  4746. var len1 int32
  4747. var nul, v1 uintptr
  4748. var _ /* buf at bp+0 */ [256]int8
  4749. _, _, _, _ = ap, len1, nul, v1
  4750. if _SPT.Fbase == libc.UintptrFromInt32(0) {
  4751. if !(_SPT.Fwarned != 0) {
  4752. _warnx(tls, __ccgo_ts+278, 0)
  4753. _SPT.Fwarned = uint8(m_true)
  4754. }
  4755. return
  4756. }
  4757. if fmt != 0 {
  4758. if int32(*(*int8)(unsafe.Pointer(fmt))) == int32('-') {
  4759. /* Skip program name prefix. */
  4760. fmt++
  4761. len1 = 0
  4762. } else {
  4763. /* Print program name heading for grep. */
  4764. libc.X__builtin___snprintf_chk(tls, bp, uint64(256), 0, ^t__predefined_size_t(0), __ccgo_ts+376, libc.VaList(bp+264, libc.Xgetprogname(tls)))
  4765. len1 = libc.Int32FromUint64(libc.Xstrlen(tls, bp))
  4766. }
  4767. ap = va
  4768. len1 += libc.X__builtin___vsnprintf_chk(tls, bp+uintptr(len1), uint64(256)-libc.Uint64FromInt32(len1), 0, ^t__predefined_size_t(0), fmt, ap)
  4769. _ = ap
  4770. } else {
  4771. len1 = libc.X__builtin___snprintf_chk(tls, bp, uint64(256), 0, ^t__predefined_size_t(0), __ccgo_ts+381, libc.VaList(bp+264, _SPT.Farg0))
  4772. }
  4773. if len1 <= 0 {
  4774. _SPT.Ferror1 = *(*int32)(unsafe.Pointer(libc.X__error(tls)))
  4775. return
  4776. }
  4777. if !(_SPT.Freset != 0) {
  4778. libc.X__builtin___memset_chk(tls, _SPT.Fbase, 0, libc.Uint64FromInt64(int64(_SPT.Fend)-int64(_SPT.Fbase)), ^t__predefined_size_t(0))
  4779. _SPT.Freset = uint8(m_true)
  4780. } else {
  4781. libc.X__builtin___memset_chk(tls, _SPT.Fbase, 0, _spt_min(tls, uint64(256), libc.Uint64FromInt64(int64(_SPT.Fend)-int64(_SPT.Fbase))), ^t__predefined_size_t(0))
  4782. }
  4783. len1 = libc.Int32FromUint64(_spt_min(tls, libc.Uint64FromInt32(len1), _spt_min(tls, uint64(256), libc.Uint64FromInt64(int64(_SPT.Fend)-int64(_SPT.Fbase)))-uint64(1)))
  4784. libc.X__builtin___memcpy_chk(tls, _SPT.Fbase, bp, libc.Uint64FromInt32(len1), ^t__predefined_size_t(0))
  4785. nul = _SPT.Fbase + uintptr(len1)
  4786. if nul < _SPT.Fnul {
  4787. *(*int8)(unsafe.Pointer(_SPT.Fnul)) = int8('.')
  4788. } else {
  4789. if nul == _SPT.Fnul && nul+uintptr(1) < _SPT.Fend {
  4790. *(*int8)(unsafe.Pointer(_SPT.Fnul)) = int8(' ')
  4791. nul++
  4792. v1 = nul
  4793. *(*int8)(unsafe.Pointer(v1)) = int8('\000')
  4794. }
  4795. }
  4796. }
  4797. const m_GID_SZ = 251
  4798. const m_GNMLEN = 32
  4799. const m_GNM_SZ = 251
  4800. const m_INVALID = 2
  4801. const m_UID_SZ = 317
  4802. const m_UNMLEN = 32
  4803. const m_UNM_SZ = 317
  4804. const m_VALID = 1
  4805. const m__MASTERPASSWD = "master.passwd"
  4806. const m__MP_DB = "pwd.db"
  4807. const m__PASSWD = "passwd"
  4808. const m__PASSWORD_EFMT1 = '_'
  4809. const m__PASSWORD_LEN = 128
  4810. const m__PASSWORD_NOCHG = 0x04
  4811. const m__PASSWORD_NOEXP = 0x08
  4812. const m__PASSWORD_NOGID = 0x02
  4813. const m__PASSWORD_NOUID = 0x01
  4814. const m__PASSWORD_WARNDAYS = 14
  4815. const m__PATH_GROUP = "/etc/group"
  4816. const m__PATH_MASTERPASSWD = "/etc/master.passwd"
  4817. const m__PATH_MASTERPASSWD_LOCK = "/etc/ptmp"
  4818. const m__PATH_MP_DB = "/etc/pwd.db"
  4819. const m__PATH_PASSWD = "/etc/passwd"
  4820. const m__PATH_PWD = "/etc"
  4821. const m__PATH_PWD_MKDB = "/usr/sbin/pwd_mkdb"
  4822. const m__PATH_SMP_DB = "/etc/spwd.db"
  4823. const m__PW_BUF_LEN = 1024
  4824. const m__PW_KEYBYNAME = '1'
  4825. const m__PW_KEYBYNUM = '2'
  4826. const m__PW_KEYBYUID = '3'
  4827. const m__SMP_DB = "spwd.db"
  4828. type Tgroup = struct {
  4829. Fgr_name uintptr
  4830. Fgr_passwd uintptr
  4831. Fgr_gid Tgid_t
  4832. Fgr_mem uintptr
  4833. }
  4834. type Tuuid_string_t = [37]int8
  4835. var _UUID_NULL = Tuuid_t{}
  4836. type Tpasswd = struct {
  4837. Fpw_name uintptr
  4838. Fpw_passwd uintptr
  4839. Fpw_uid Tuid_t
  4840. Fpw_gid Tgid_t
  4841. Fpw_change t__darwin_time_t
  4842. Fpw_class uintptr
  4843. Fpw_gecos uintptr
  4844. Fpw_dir uintptr
  4845. Fpw_shell uintptr
  4846. Fpw_expire t__darwin_time_t
  4847. }
  4848. /*
  4849. * Constants and data structures used to implement group and password file
  4850. * caches. Name lengths have been chosen to be as large as those supported
  4851. * by the passwd and group files as well as the standard archive formats.
  4852. * CACHE SIZES MUST BE PRIME
  4853. */
  4854. /*
  4855. * Node structures used in the user, group, uid, and gid caches.
  4856. */
  4857. type TUIDC = struct {
  4858. Fvalid int32
  4859. Fname [32]int8
  4860. Fuid Tuid_t
  4861. }
  4862. /*
  4863. * Constants and data structures used to implement group and password file
  4864. * caches. Name lengths have been chosen to be as large as those supported
  4865. * by the passwd and group files as well as the standard archive formats.
  4866. * CACHE SIZES MUST BE PRIME
  4867. */
  4868. /*
  4869. * Node structures used in the user, group, uid, and gid caches.
  4870. */
  4871. type Tuidc = TUIDC
  4872. type TGIDC = struct {
  4873. Fvalid int32
  4874. Fname [32]int8
  4875. Fgid Tgid_t
  4876. }
  4877. type Tgidc = TGIDC
  4878. /*
  4879. * Routines that control user, group, uid and gid caches.
  4880. * Traditional passwd/group cache routines perform quite poorly with
  4881. * archives. The chances of hitting a valid lookup with an archive is quite a
  4882. * bit worse than with files already resident on the file system. These misses
  4883. * create a MAJOR performance cost. To adress this problem, these routines
  4884. * cache both hits and misses.
  4885. */
  4886. var _usrtb uintptr /* user name to uid cache */
  4887. var _grptb uintptr /* group name to gid cache */
  4888. func _st_hash(tls *libc.TLS, name uintptr, len1 Tsize_t, tabsz int32) (r Tu_int) {
  4889. var key Tu_int
  4890. var v1 Tsize_t
  4891. var v2 uintptr
  4892. _, _, _ = key, v1, v2
  4893. key = uint32(0)
  4894. for {
  4895. v1 = len1
  4896. len1--
  4897. if !(v1 != 0) {
  4898. break
  4899. }
  4900. v2 = name
  4901. name++
  4902. key += libc.Uint32FromInt8(*(*int8)(unsafe.Pointer(v2)))
  4903. key = key<<libc.Int32FromInt32(8) | key>>libc.Int32FromInt32(24)
  4904. }
  4905. return key % libc.Uint32FromInt32(tabsz)
  4906. }
  4907. // C documentation
  4908. //
  4909. // /*
  4910. // * usrtb_start
  4911. // * creates an an empty usrtb
  4912. // * Return:
  4913. // * 0 if ok, -1 otherwise
  4914. // */
  4915. func _usrtb_start(tls *libc.TLS) (r int32) {
  4916. var v1 uintptr
  4917. _ = v1
  4918. if _usrtb != libc.UintptrFromInt32(0) {
  4919. return 0
  4920. }
  4921. if _fail != 0 {
  4922. return -int32(1)
  4923. }
  4924. v1 = libc.Xcalloc(tls, uint64(m_UNM_SZ), uint64(8))
  4925. _usrtb = v1
  4926. if v1 == libc.UintptrFromInt32(0) {
  4927. _fail++
  4928. return -int32(1)
  4929. }
  4930. return 0
  4931. }
  4932. var _fail int32
  4933. // C documentation
  4934. //
  4935. // /*
  4936. // * grptb_start
  4937. // * creates an an empty grptb
  4938. // * Return:
  4939. // * 0 if ok, -1 otherwise
  4940. // */
  4941. func _grptb_start(tls *libc.TLS) (r int32) {
  4942. var v1 uintptr
  4943. _ = v1
  4944. if _grptb != libc.UintptrFromInt32(0) {
  4945. return 0
  4946. }
  4947. if _fail1 != 0 {
  4948. return -int32(1)
  4949. }
  4950. v1 = libc.Xcalloc(tls, uint64(m_GNM_SZ), uint64(8))
  4951. _grptb = v1
  4952. if v1 == libc.UintptrFromInt32(0) {
  4953. _fail1++
  4954. return -int32(1)
  4955. }
  4956. return 0
  4957. }
  4958. var _fail1 int32
  4959. // C documentation
  4960. //
  4961. // /*
  4962. // * uid_from_user()
  4963. // * caches the uid for a given user name. We use a simple hash table.
  4964. // * Return:
  4965. // * 0 if the user name is found (filling in uid), -1 otherwise
  4966. // */
  4967. func Xuid_from_user(tls *libc.TLS, name uintptr, uid uintptr) (r int32) {
  4968. bp := tls.Alloc(1104)
  4969. defer tls.Free(1104)
  4970. var namelen, v1 Tsize_t
  4971. var pptr, ptr, v3 uintptr
  4972. var v2 bool
  4973. var v4 Tuid_t
  4974. var _ /* pw at bp+72 */ uintptr
  4975. var _ /* pwbuf at bp+80 */ [1024]int8
  4976. var _ /* pwstore at bp+0 */ Tpasswd
  4977. _, _, _, _, _, _, _ = namelen, pptr, ptr, v1, v2, v3, v4
  4978. *(*uintptr)(unsafe.Pointer(bp + 72)) = libc.UintptrFromInt32(0)
  4979. ptr = libc.UintptrFromInt32(0)
  4980. /*
  4981. * return -1 for mangled names
  4982. */
  4983. if v2 = name == libc.UintptrFromInt32(0); !v2 {
  4984. v1 = libc.Xstrlen(tls, name)
  4985. namelen = v1
  4986. }
  4987. if v2 || v1 == uint64(0) {
  4988. return -int32(1)
  4989. }
  4990. if _usrtb != libc.UintptrFromInt32(0) || _usrtb_start(tls) == 0 {
  4991. /*
  4992. * look up in hash table, if found and valid return the uid,
  4993. * if found and invalid, return a -1
  4994. */
  4995. pptr = _usrtb + uintptr(_st_hash(tls, name, namelen, int32(m_UNM_SZ)))*8
  4996. ptr = *(*uintptr)(unsafe.Pointer(pptr))
  4997. if ptr != libc.UintptrFromInt32(0) && (*TUIDC)(unsafe.Pointer(ptr)).Fvalid > 0 && libc.Xstrcmp(tls, name, ptr+4) == 0 {
  4998. if (*TUIDC)(unsafe.Pointer(ptr)).Fvalid == int32(m_INVALID) {
  4999. return -int32(1)
  5000. }
  5001. *(*Tuid_t)(unsafe.Pointer(uid)) = (*TUIDC)(unsafe.Pointer(ptr)).Fuid
  5002. return 0
  5003. }
  5004. if ptr == libc.UintptrFromInt32(0) {
  5005. v3 = libc.Xmalloc(tls, uint64(40))
  5006. ptr = v3
  5007. *(*uintptr)(unsafe.Pointer(pptr)) = v3
  5008. }
  5009. }
  5010. /*
  5011. * no match, look it up, if no match store it as an invalid entry,
  5012. * or store the matching uid
  5013. */
  5014. libc.Xgetpwnam_r(tls, name, bp, bp+80, uint64(1024), bp+72)
  5015. if ptr == libc.UintptrFromInt32(0) {
  5016. if *(*uintptr)(unsafe.Pointer(bp + 72)) == libc.UintptrFromInt32(0) {
  5017. return -int32(1)
  5018. }
  5019. *(*Tuid_t)(unsafe.Pointer(uid)) = (*Tpasswd)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 72)))).Fpw_uid
  5020. return 0
  5021. }
  5022. libc.Xstrlcpy(tls, ptr+4, name, uint64(32))
  5023. if *(*uintptr)(unsafe.Pointer(bp + 72)) == libc.UintptrFromInt32(0) {
  5024. (*TUIDC)(unsafe.Pointer(ptr)).Fvalid = int32(m_INVALID)
  5025. return -int32(1)
  5026. }
  5027. (*TUIDC)(unsafe.Pointer(ptr)).Fvalid = int32(m_VALID)
  5028. v4 = (*Tpasswd)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 72)))).Fpw_uid
  5029. (*TUIDC)(unsafe.Pointer(ptr)).Fuid = v4
  5030. *(*Tuid_t)(unsafe.Pointer(uid)) = v4
  5031. return 0
  5032. }
  5033. // C documentation
  5034. //
  5035. // /*
  5036. // * gid_from_group()
  5037. // * caches the gid for a given group name. We use a simple hash table.
  5038. // * Return:
  5039. // * 0 if the group name is found (filling in gid), -1 otherwise
  5040. // */
  5041. func Xgid_from_group(tls *libc.TLS, name uintptr, gid uintptr) (r int32) {
  5042. bp := tls.Alloc(2672)
  5043. defer tls.Free(2672)
  5044. var namelen, v1 Tsize_t
  5045. var pptr, ptr, v3 uintptr
  5046. var v2 bool
  5047. var v4 Tgid_t
  5048. var _ /* gr at bp+32 */ uintptr
  5049. var _ /* grbuf at bp+40 */ [2624]int8
  5050. var _ /* grstore at bp+0 */ Tgroup
  5051. _, _, _, _, _, _, _ = namelen, pptr, ptr, v1, v2, v3, v4
  5052. *(*uintptr)(unsafe.Pointer(bp + 32)) = libc.UintptrFromInt32(0)
  5053. ptr = libc.UintptrFromInt32(0)
  5054. /*
  5055. * return -1 for mangled names
  5056. */
  5057. if v2 = name == libc.UintptrFromInt32(0); !v2 {
  5058. v1 = libc.Xstrlen(tls, name)
  5059. namelen = v1
  5060. }
  5061. if v2 || v1 == uint64(0) {
  5062. return -int32(1)
  5063. }
  5064. if _grptb != libc.UintptrFromInt32(0) || _grptb_start(tls) == 0 {
  5065. /*
  5066. * look up in hash table, if found and valid return the uid,
  5067. * if found and invalid, return a -1
  5068. */
  5069. pptr = _grptb + uintptr(_st_hash(tls, name, namelen, int32(m_GID_SZ)))*8
  5070. ptr = *(*uintptr)(unsafe.Pointer(pptr))
  5071. if ptr != libc.UintptrFromInt32(0) && (*TGIDC)(unsafe.Pointer(ptr)).Fvalid > 0 && libc.Xstrcmp(tls, name, ptr+4) == 0 {
  5072. if (*TGIDC)(unsafe.Pointer(ptr)).Fvalid == int32(m_INVALID) {
  5073. return -int32(1)
  5074. }
  5075. *(*Tgid_t)(unsafe.Pointer(gid)) = (*TGIDC)(unsafe.Pointer(ptr)).Fgid
  5076. return 0
  5077. }
  5078. if ptr == libc.UintptrFromInt32(0) {
  5079. v3 = libc.Xmalloc(tls, uint64(40))
  5080. ptr = v3
  5081. *(*uintptr)(unsafe.Pointer(pptr)) = v3
  5082. }
  5083. }
  5084. /*
  5085. * no match, look it up, if no match store it as an invalid entry,
  5086. * or store the matching gid
  5087. */
  5088. libc.Xgetgrnam_r(tls, name, bp, bp+40, uint64(2624), bp+32)
  5089. if ptr == libc.UintptrFromInt32(0) {
  5090. if *(*uintptr)(unsafe.Pointer(bp + 32)) == libc.UintptrFromInt32(0) {
  5091. return -int32(1)
  5092. }
  5093. *(*Tgid_t)(unsafe.Pointer(gid)) = (*Tgroup)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 32)))).Fgr_gid
  5094. return 0
  5095. }
  5096. libc.Xstrlcpy(tls, ptr+4, name, uint64(32))
  5097. if *(*uintptr)(unsafe.Pointer(bp + 32)) == libc.UintptrFromInt32(0) {
  5098. (*TGIDC)(unsafe.Pointer(ptr)).Fvalid = int32(m_INVALID)
  5099. return -int32(1)
  5100. }
  5101. (*TGIDC)(unsafe.Pointer(ptr)).Fvalid = int32(m_VALID)
  5102. v4 = (*Tgroup)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 32)))).Fgr_gid
  5103. (*TGIDC)(unsafe.Pointer(ptr)).Fgid = v4
  5104. *(*Tgid_t)(unsafe.Pointer(gid)) = v4
  5105. return 0
  5106. }
  5107. /*
  5108. * This is sqrt(SIZE_MAX+1), as s1*s2 <= SIZE_MAX
  5109. * if both s1 < MUL_NO_OVERFLOW and s2 < MUL_NO_OVERFLOW
  5110. */
  5111. func Xreallocarray(tls *libc.TLS, optr uintptr, nmemb Tsize_t, size Tsize_t) (r uintptr) {
  5112. if (nmemb >= libc.Uint64FromInt32(1)<<(libc.Uint64FromInt64(8)*libc.Uint64FromInt32(4)) || size >= libc.Uint64FromInt32(1)<<(libc.Uint64FromInt64(8)*libc.Uint64FromInt32(4))) && nmemb > uint64(0) && uint64(18446744073709551615)/nmemb < size {
  5113. *(*int32)(unsafe.Pointer(libc.X__error(tls))) = int32(m_ENOMEM)
  5114. return libc.UintptrFromInt32(0)
  5115. }
  5116. return libc.Xrealloc(tls, optr, size*nmemb)
  5117. }
  5118. /*
  5119. * This is sqrt(SIZE_MAX+1), as s1*s2 <= SIZE_MAX
  5120. * if both s1 < MUL_NO_OVERFLOW and s2 < MUL_NO_OVERFLOW
  5121. */
  5122. func Xrecallocarray(tls *libc.TLS, ptr uintptr, oldnmemb Tsize_t, newnmemb Tsize_t, size Tsize_t) (r uintptr) {
  5123. var d, newsize, oldsize Tsize_t
  5124. var newptr uintptr
  5125. _, _, _, _ = d, newptr, newsize, oldsize
  5126. if ptr == libc.UintptrFromInt32(0) {
  5127. return libc.Xcalloc(tls, newnmemb, size)
  5128. }
  5129. if (newnmemb >= libc.Uint64FromInt32(1)<<(libc.Uint64FromInt64(8)*libc.Uint64FromInt32(4)) || size >= libc.Uint64FromInt32(1)<<(libc.Uint64FromInt64(8)*libc.Uint64FromInt32(4))) && newnmemb > uint64(0) && uint64(18446744073709551615)/newnmemb < size {
  5130. *(*int32)(unsafe.Pointer(libc.X__error(tls))) = int32(m_ENOMEM)
  5131. return libc.UintptrFromInt32(0)
  5132. }
  5133. newsize = newnmemb * size
  5134. if (oldnmemb >= libc.Uint64FromInt32(1)<<(libc.Uint64FromInt64(8)*libc.Uint64FromInt32(4)) || size >= libc.Uint64FromInt32(1)<<(libc.Uint64FromInt64(8)*libc.Uint64FromInt32(4))) && oldnmemb > uint64(0) && uint64(18446744073709551615)/oldnmemb < size {
  5135. *(*int32)(unsafe.Pointer(libc.X__error(tls))) = int32(m_EINVAL)
  5136. return libc.UintptrFromInt32(0)
  5137. }
  5138. oldsize = oldnmemb * size
  5139. /*
  5140. * Don't bother too much if we're shrinking just a bit,
  5141. * we do not shrink for series of small steps, oh well.
  5142. */
  5143. if newsize <= oldsize {
  5144. d = oldsize - newsize
  5145. if d < oldsize/uint64(2) && d < libc.Uint64FromInt32(_getpagesize(tls)) {
  5146. libc.X__builtin___memset_chk(tls, ptr+uintptr(newsize), 0, d, ^t__predefined_size_t(0))
  5147. return ptr
  5148. }
  5149. }
  5150. newptr = libc.Xmalloc(tls, newsize)
  5151. if newptr == libc.UintptrFromInt32(0) {
  5152. return libc.UintptrFromInt32(0)
  5153. }
  5154. if newsize > oldsize {
  5155. libc.X__builtin___memcpy_chk(tls, newptr, ptr, oldsize, ^t__predefined_size_t(0))
  5156. libc.X__builtin___memset_chk(tls, newptr+uintptr(oldsize), 0, newsize-oldsize, ^t__predefined_size_t(0))
  5157. } else {
  5158. libc.X__builtin___memcpy_chk(tls, newptr, ptr, newsize, ^t__predefined_size_t(0))
  5159. }
  5160. Xexplicit_bzero(tls, ptr, oldsize)
  5161. libc.Xfree(tls, ptr)
  5162. return newptr
  5163. }
  5164. func Xstrtoi(tls *libc.TLS, nptr uintptr, endptr uintptr, base int32, lo Tintmax_t, hi Tintmax_t, rstatus uintptr) (r Tintmax_t) {
  5165. bp := tls.Alloc(16)
  5166. defer tls.Free(16)
  5167. var im Tintmax_t
  5168. var serrno int32
  5169. var _ /* ep at bp+0 */ uintptr
  5170. var _ /* rep at bp+8 */ int32
  5171. _, _ = im, serrno
  5172. /* endptr may be NULL */
  5173. if endptr == libc.UintptrFromInt32(0) {
  5174. endptr = bp
  5175. }
  5176. if rstatus == libc.UintptrFromInt32(0) {
  5177. rstatus = bp + 8
  5178. }
  5179. serrno = *(*int32)(unsafe.Pointer(libc.X__error(tls)))
  5180. *(*int32)(unsafe.Pointer(libc.X__error(tls))) = 0
  5181. im = libc.Xstrtoimax(tls, nptr, endptr, base)
  5182. *(*int32)(unsafe.Pointer(rstatus)) = *(*int32)(unsafe.Pointer(libc.X__error(tls)))
  5183. *(*int32)(unsafe.Pointer(libc.X__error(tls))) = serrno
  5184. /* No digits were found */
  5185. if *(*int32)(unsafe.Pointer(rstatus)) == 0 && nptr == *(*uintptr)(unsafe.Pointer(endptr)) {
  5186. *(*int32)(unsafe.Pointer(rstatus)) = int32(m_ECANCELED)
  5187. }
  5188. if im < lo {
  5189. if *(*int32)(unsafe.Pointer(rstatus)) == 0 {
  5190. *(*int32)(unsafe.Pointer(rstatus)) = int32(m_ERANGE)
  5191. }
  5192. return lo
  5193. }
  5194. if im > hi {
  5195. if *(*int32)(unsafe.Pointer(rstatus)) == 0 {
  5196. *(*int32)(unsafe.Pointer(rstatus)) = int32(m_ERANGE)
  5197. }
  5198. return hi
  5199. }
  5200. /* There are further characters after number */
  5201. if *(*int32)(unsafe.Pointer(rstatus)) == 0 && int32(*(*int8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(endptr))))) != int32('\000') {
  5202. *(*int32)(unsafe.Pointer(rstatus)) = int32(m_ENOTSUP)
  5203. }
  5204. return im
  5205. }
  5206. func Xstrtou(tls *libc.TLS, nptr uintptr, endptr uintptr, base int32, lo Tuintmax_t, hi Tuintmax_t, rstatus uintptr) (r Tuintmax_t) {
  5207. bp := tls.Alloc(16)
  5208. defer tls.Free(16)
  5209. var im Tuintmax_t
  5210. var serrno int32
  5211. var _ /* ep at bp+0 */ uintptr
  5212. var _ /* rep at bp+8 */ int32
  5213. _, _ = im, serrno
  5214. /* endptr may be NULL */
  5215. if endptr == libc.UintptrFromInt32(0) {
  5216. endptr = bp
  5217. }
  5218. if rstatus == libc.UintptrFromInt32(0) {
  5219. rstatus = bp + 8
  5220. }
  5221. serrno = *(*int32)(unsafe.Pointer(libc.X__error(tls)))
  5222. *(*int32)(unsafe.Pointer(libc.X__error(tls))) = 0
  5223. im = libc.Xstrtoumax(tls, nptr, endptr, base)
  5224. *(*int32)(unsafe.Pointer(rstatus)) = *(*int32)(unsafe.Pointer(libc.X__error(tls)))
  5225. *(*int32)(unsafe.Pointer(libc.X__error(tls))) = serrno
  5226. /* No digits were found */
  5227. if *(*int32)(unsafe.Pointer(rstatus)) == 0 && nptr == *(*uintptr)(unsafe.Pointer(endptr)) {
  5228. *(*int32)(unsafe.Pointer(rstatus)) = int32(m_ECANCELED)
  5229. }
  5230. if im < lo {
  5231. if *(*int32)(unsafe.Pointer(rstatus)) == 0 {
  5232. *(*int32)(unsafe.Pointer(rstatus)) = int32(m_ERANGE)
  5233. }
  5234. return lo
  5235. }
  5236. if im > hi {
  5237. if *(*int32)(unsafe.Pointer(rstatus)) == 0 {
  5238. *(*int32)(unsafe.Pointer(rstatus)) = int32(m_ERANGE)
  5239. }
  5240. return hi
  5241. }
  5242. /* There are further characters after number */
  5243. if *(*int32)(unsafe.Pointer(rstatus)) == 0 && int32(*(*int8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(endptr))))) != int32('\000') {
  5244. *(*int32)(unsafe.Pointer(rstatus)) = int32(m_ENOTSUP)
  5245. }
  5246. return im
  5247. }
  5248. var __ccgo_ts = (*reflect.StringHeader)(unsafe.Pointer(&__ccgo_ts1)).Data
  5249. var __ccgo_ts1 = "/dev/fd\x00\x00BLOCKSIZE\x00G\x00K\x00M\x00%s: unknown blocksize\x00maximum blocksize is %ldG\x00minimum blocksize is 512\x00%ld%s-blocks\x00B\x00\x00Ki\x00Mi\x00Gi\x00Ti\x00Pi\x00Ei\x00\x00\x00\x00Ki\x00Mi\x00Gi\x00Ti\x00Pi\x00Ei\x00B\x00\x00k\x00\x00M\x00\x00G\x00\x00T\x00\x00P\x00\x00E\x00\x00\x00\x00k\x00\x00M\x00\x00G\x00\x00T\x00\x00P\x00\x00E\x00B\x00\x00K\x00\x00M\x00\x00G\x00\x00T\x00\x00P\x00\x00E\x00\x00\x00\x00K\x00\x00M\x00\x00G\x00\x00T\x00\x00P\x00\x00E\x00 \x00%d%s%d%s%s%s\x00%lld%s%s%s\x00/var/run/%s.pid\x00%u\x00setproctitle not initialized, please either call setproctitle_init() or link against libbsd-ctor.\x00%s: \x00%s\x00"