ccgo_darwin_arm64.go 129 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158
  1. // Code generated for darwin/arm64 by 'generator --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=_ -ignore-link-errors -extended-errors -o libxau.go --package-name libxau .libs/libXau.a', DO NOT EDIT.
  2. //go:build darwin && arm64
  3. package libxau
  4. import (
  5. "reflect"
  6. "unsafe"
  7. "modernc.org/libc"
  8. )
  9. var _ reflect.Type
  10. var _ unsafe.Pointer
  11. const m_BADSIG = "SIG_ERR"
  12. const m_BIG_ENDIAN = "__DARWIN_BIG_ENDIAN"
  13. const m_BUFSIZ = 1024
  14. const m_BUS_ADRALN = 1
  15. const m_BUS_ADRERR = 2
  16. const m_BUS_NOOP = 0
  17. const m_BUS_OBJERR = 3
  18. const m_BYTE_ORDER = "__DARWIN_BYTE_ORDER"
  19. const m_CLD_CONTINUED = 6
  20. const m_CLD_DUMPED = 3
  21. const m_CLD_EXITED = 1
  22. const m_CLD_KILLED = 2
  23. const m_CLD_NOOP = 0
  24. const m_CLD_STOPPED = 5
  25. const m_CLD_TRAPPED = 4
  26. const m_CPUMON_MAKE_FATAL = 0x1000
  27. const m_EXIT_FAILURE = 1
  28. const m_EXIT_SUCCESS = 0
  29. const m_FILENAME_MAX = 1024
  30. const m_FOOTPRINT_INTERVAL_RESET = 0x1
  31. const m_FOPEN_MAX = 20
  32. const m_FPE_FLTDIV = 1
  33. const m_FPE_FLTINV = 5
  34. const m_FPE_FLTOVF = 2
  35. const m_FPE_FLTRES = 4
  36. const m_FPE_FLTSUB = 6
  37. const m_FPE_FLTUND = 3
  38. const m_FPE_INTDIV = 7
  39. const m_FPE_INTOVF = 8
  40. const m_FPE_NOOP = 0
  41. const m_FUNCPROTO = 15
  42. const m_FamilyKrb5Principal = 253
  43. const m_FamilyLocal = 256
  44. const m_FamilyLocalHost = 252
  45. const m_FamilyNetname = 254
  46. const m_FamilyWild = 65535
  47. const m_HAVE_CONFIG_H = 1
  48. const m_HAVE_DLFCN_H = 1
  49. const m_HAVE_INTTYPES_H = 1
  50. const m_HAVE_PATHCONF = 1
  51. const m_HAVE_STDINT_H = 1
  52. const m_HAVE_STDIO_H = 1
  53. const m_HAVE_STDLIB_H = 1
  54. const m_HAVE_STRINGS_H = 1
  55. const m_HAVE_STRING_H = 1
  56. const m_HAVE_SYS_STAT_H = 1
  57. const m_HAVE_SYS_TYPES_H = 1
  58. const m_HAVE_UNISTD_H = 1
  59. const m_HAVE_WCHAR_H = 1
  60. const m_ILL_BADSTK = 8
  61. const m_ILL_COPROC = 7
  62. const m_ILL_ILLADR = 5
  63. const m_ILL_ILLOPC = 1
  64. const m_ILL_ILLOPN = 4
  65. const m_ILL_ILLTRP = 2
  66. const m_ILL_NOOP = 0
  67. const m_ILL_PRVOPC = 3
  68. const m_ILL_PRVREG = 6
  69. const m_INTMAX_MAX = "__INTMAX_MAX__"
  70. const m_INTPTR_MAX = "__INTPTR_MAX__"
  71. const m_INT_FAST16_MAX = "__INT_LEAST16_MAX"
  72. const m_INT_FAST16_MIN = "__INT_LEAST16_MIN"
  73. const m_INT_FAST32_MAX = "__INT_LEAST32_MAX"
  74. const m_INT_FAST32_MIN = "__INT_LEAST32_MIN"
  75. const m_INT_FAST64_MAX = "__INT_LEAST64_MAX"
  76. const m_INT_FAST64_MIN = "__INT_LEAST64_MIN"
  77. const m_INT_FAST8_MAX = "__INT_LEAST8_MAX"
  78. const m_INT_FAST8_MIN = "__INT_LEAST8_MIN"
  79. const m_INT_LEAST16_MAX = "__INT_LEAST16_MAX"
  80. const m_INT_LEAST16_MIN = "__INT_LEAST16_MIN"
  81. const m_INT_LEAST32_MAX = "__INT_LEAST32_MAX"
  82. const m_INT_LEAST32_MIN = "__INT_LEAST32_MIN"
  83. const m_INT_LEAST64_MAX = "__INT_LEAST64_MAX"
  84. const m_INT_LEAST64_MIN = "__INT_LEAST64_MIN"
  85. const m_INT_LEAST8_MAX = "__INT_LEAST8_MAX"
  86. const m_INT_LEAST8_MIN = "__INT_LEAST8_MIN"
  87. const m_IOPOL_APPLICATION = "IOPOL_STANDARD"
  88. const m_IOPOL_ATIME_UPDATES_DEFAULT = 0
  89. const m_IOPOL_ATIME_UPDATES_OFF = 1
  90. const m_IOPOL_DEFAULT = 0
  91. const m_IOPOL_IMPORTANT = 1
  92. const m_IOPOL_MATERIALIZE_DATALESS_FILES_DEFAULT = 0
  93. const m_IOPOL_MATERIALIZE_DATALESS_FILES_OFF = 1
  94. const m_IOPOL_MATERIALIZE_DATALESS_FILES_ON = 2
  95. const m_IOPOL_NORMAL = "IOPOL_IMPORTANT"
  96. const m_IOPOL_PASSIVE = 2
  97. const m_IOPOL_SCOPE_DARWIN_BG = 2
  98. const m_IOPOL_SCOPE_PROCESS = 0
  99. const m_IOPOL_SCOPE_THREAD = 1
  100. const m_IOPOL_STANDARD = 5
  101. const m_IOPOL_THROTTLE = 3
  102. const m_IOPOL_TYPE_DISK = 0
  103. const m_IOPOL_TYPE_VFS_ALLOW_LOW_SPACE_WRITES = 9
  104. const m_IOPOL_TYPE_VFS_ATIME_UPDATES = 2
  105. const m_IOPOL_TYPE_VFS_DISALLOW_RW_FOR_O_EVTONLY = 10
  106. const m_IOPOL_TYPE_VFS_IGNORE_CONTENT_PROTECTION = 6
  107. const m_IOPOL_TYPE_VFS_IGNORE_PERMISSIONS = 7
  108. const m_IOPOL_TYPE_VFS_MATERIALIZE_DATALESS_FILES = 3
  109. const m_IOPOL_TYPE_VFS_SKIP_MTIME_UPDATE = 8
  110. const m_IOPOL_TYPE_VFS_STATFS_NO_DATA_VOLUME = 4
  111. const m_IOPOL_TYPE_VFS_TRIGGER_RESOLVE = 5
  112. const m_IOPOL_UTILITY = 4
  113. const m_IOPOL_VFS_ALLOW_LOW_SPACE_WRITES_OFF = 0
  114. const m_IOPOL_VFS_ALLOW_LOW_SPACE_WRITES_ON = 1
  115. const m_IOPOL_VFS_CONTENT_PROTECTION_DEFAULT = 0
  116. const m_IOPOL_VFS_CONTENT_PROTECTION_IGNORE = 1
  117. const m_IOPOL_VFS_DISALLOW_RW_FOR_O_EVTONLY_DEFAULT = 0
  118. const m_IOPOL_VFS_DISALLOW_RW_FOR_O_EVTONLY_ON = 1
  119. const m_IOPOL_VFS_IGNORE_PERMISSIONS_OFF = 0
  120. const m_IOPOL_VFS_IGNORE_PERMISSIONS_ON = 1
  121. const m_IOPOL_VFS_NOCACHE_WRITE_FS_BLKSIZE_DEFAULT = 0
  122. const m_IOPOL_VFS_NOCACHE_WRITE_FS_BLKSIZE_ON = 1
  123. const m_IOPOL_VFS_SKIP_MTIME_UPDATE_IGNORE = 2
  124. const m_IOPOL_VFS_SKIP_MTIME_UPDATE_OFF = 0
  125. const m_IOPOL_VFS_SKIP_MTIME_UPDATE_ON = 1
  126. const m_IOPOL_VFS_STATFS_FORCE_NO_DATA_VOLUME = 1
  127. const m_IOPOL_VFS_STATFS_NO_DATA_VOLUME_DEFAULT = 0
  128. const m_IOPOL_VFS_TRIGGER_RESOLVE_DEFAULT = 0
  129. const m_IOPOL_VFS_TRIGGER_RESOLVE_OFF = 1
  130. const m_LITTLE_ENDIAN = "__DARWIN_LITTLE_ENDIAN"
  131. const m_LOCK_ERROR = 1
  132. const m_LOCK_SUCCESS = 0
  133. const m_LOCK_TIMEOUT = 2
  134. const m_LT_OBJDIR = ".libs/"
  135. const m_L_ctermid = 1024
  136. const m_L_tmpnam = 1024
  137. const m_MAC_OS_VERSION_11_0 = "__MAC_11_0"
  138. const m_MAC_OS_VERSION_11_1 = "__MAC_11_1"
  139. const m_MAC_OS_VERSION_11_3 = "__MAC_11_3"
  140. const m_MAC_OS_VERSION_11_4 = "__MAC_11_4"
  141. const m_MAC_OS_VERSION_11_5 = "__MAC_11_5"
  142. const m_MAC_OS_VERSION_11_6 = "__MAC_11_6"
  143. const m_MAC_OS_VERSION_12_0 = "__MAC_12_0"
  144. const m_MAC_OS_VERSION_12_1 = "__MAC_12_1"
  145. const m_MAC_OS_VERSION_12_2 = "__MAC_12_2"
  146. const m_MAC_OS_VERSION_12_3 = "__MAC_12_3"
  147. const m_MAC_OS_VERSION_12_4 = "__MAC_12_4"
  148. const m_MAC_OS_VERSION_12_5 = "__MAC_12_5"
  149. const m_MAC_OS_VERSION_12_6 = "__MAC_12_6"
  150. const m_MAC_OS_VERSION_12_7 = "__MAC_12_7"
  151. const m_MAC_OS_VERSION_13_0 = "__MAC_13_0"
  152. const m_MAC_OS_VERSION_13_1 = "__MAC_13_1"
  153. const m_MAC_OS_VERSION_13_2 = "__MAC_13_2"
  154. const m_MAC_OS_VERSION_13_3 = "__MAC_13_3"
  155. const m_MAC_OS_VERSION_13_4 = "__MAC_13_4"
  156. const m_MAC_OS_VERSION_13_5 = "__MAC_13_5"
  157. const m_MAC_OS_VERSION_13_6 = "__MAC_13_6"
  158. const m_MAC_OS_VERSION_13_7 = "__MAC_13_7"
  159. const m_MAC_OS_VERSION_14_0 = "__MAC_14_0"
  160. const m_MAC_OS_VERSION_14_1 = "__MAC_14_1"
  161. const m_MAC_OS_VERSION_14_2 = "__MAC_14_2"
  162. const m_MAC_OS_VERSION_14_3 = "__MAC_14_3"
  163. const m_MAC_OS_VERSION_14_4 = "__MAC_14_4"
  164. const m_MAC_OS_VERSION_14_5 = "__MAC_14_5"
  165. const m_MAC_OS_VERSION_14_6 = "__MAC_14_6"
  166. const m_MAC_OS_VERSION_14_7 = "__MAC_14_7"
  167. const m_MAC_OS_VERSION_15_0 = "__MAC_15_0"
  168. const m_MAC_OS_VERSION_15_1 = "__MAC_15_1"
  169. const m_MAC_OS_VERSION_15_2 = "__MAC_15_2"
  170. const m_MAC_OS_VERSION_15_3 = "__MAC_15_3"
  171. const m_MAC_OS_VERSION_15_4 = "__MAC_15_4"
  172. const m_MAC_OS_X_VERSION_10_0 = "__MAC_10_0"
  173. const m_MAC_OS_X_VERSION_10_1 = "__MAC_10_1"
  174. const m_MAC_OS_X_VERSION_10_10 = "__MAC_10_10"
  175. const m_MAC_OS_X_VERSION_10_10_2 = "__MAC_10_10_2"
  176. const m_MAC_OS_X_VERSION_10_10_3 = "__MAC_10_10_3"
  177. const m_MAC_OS_X_VERSION_10_11 = "__MAC_10_11"
  178. const m_MAC_OS_X_VERSION_10_11_2 = "__MAC_10_11_2"
  179. const m_MAC_OS_X_VERSION_10_11_3 = "__MAC_10_11_3"
  180. const m_MAC_OS_X_VERSION_10_11_4 = "__MAC_10_11_4"
  181. const m_MAC_OS_X_VERSION_10_12 = "__MAC_10_12"
  182. const m_MAC_OS_X_VERSION_10_12_1 = "__MAC_10_12_1"
  183. const m_MAC_OS_X_VERSION_10_12_2 = "__MAC_10_12_2"
  184. const m_MAC_OS_X_VERSION_10_12_4 = "__MAC_10_12_4"
  185. const m_MAC_OS_X_VERSION_10_13 = "__MAC_10_13"
  186. const m_MAC_OS_X_VERSION_10_13_1 = "__MAC_10_13_1"
  187. const m_MAC_OS_X_VERSION_10_13_2 = "__MAC_10_13_2"
  188. const m_MAC_OS_X_VERSION_10_13_4 = "__MAC_10_13_4"
  189. const m_MAC_OS_X_VERSION_10_14 = "__MAC_10_14"
  190. const m_MAC_OS_X_VERSION_10_14_1 = "__MAC_10_14_1"
  191. const m_MAC_OS_X_VERSION_10_14_4 = "__MAC_10_14_4"
  192. const m_MAC_OS_X_VERSION_10_14_5 = "__MAC_10_14_5"
  193. const m_MAC_OS_X_VERSION_10_14_6 = "__MAC_10_14_6"
  194. const m_MAC_OS_X_VERSION_10_15 = "__MAC_10_15"
  195. const m_MAC_OS_X_VERSION_10_15_1 = "__MAC_10_15_1"
  196. const m_MAC_OS_X_VERSION_10_15_4 = "__MAC_10_15_4"
  197. const m_MAC_OS_X_VERSION_10_16 = "__MAC_10_16"
  198. const m_MAC_OS_X_VERSION_10_2 = "__MAC_10_2"
  199. const m_MAC_OS_X_VERSION_10_3 = "__MAC_10_3"
  200. const m_MAC_OS_X_VERSION_10_4 = "__MAC_10_4"
  201. const m_MAC_OS_X_VERSION_10_5 = "__MAC_10_5"
  202. const m_MAC_OS_X_VERSION_10_6 = "__MAC_10_6"
  203. const m_MAC_OS_X_VERSION_10_7 = "__MAC_10_7"
  204. const m_MAC_OS_X_VERSION_10_8 = "__MAC_10_8"
  205. const m_MAC_OS_X_VERSION_10_9 = "__MAC_10_9"
  206. const m_MB_CUR_MAX = "__mb_cur_max"
  207. const m_MINSIGSTKSZ = 32768
  208. const m_NDEBUG = 1
  209. const m_NSIG = "__DARWIN_NSIG"
  210. const m_NULL = "__DARWIN_NULL"
  211. const m_NeedFunctionPrototypes = 1
  212. const m_NeedNestedPrototypes = 1
  213. const m_NeedVarargsPrototypes = 1
  214. const m_NeedWidePrototypes = 1
  215. const m_PACKAGE = "libXau"
  216. const m_PACKAGE_BUGREPORT = "https://gitlab.freedesktop.org/xorg/lib/libxau/-/issues"
  217. const m_PACKAGE_NAME = "libXau"
  218. const m_PACKAGE_STRING = "libXau 1.0.11"
  219. const m_PACKAGE_TARNAME = "libXau"
  220. const m_PACKAGE_URL = ""
  221. const m_PACKAGE_VERSION = "1.0.11"
  222. const m_PACKAGE_VERSION_MAJOR = 1
  223. const m_PACKAGE_VERSION_MINOR = 0
  224. const m_PACKAGE_VERSION_PATCHLEVEL = 11
  225. const m_PDP_ENDIAN = "__DARWIN_PDP_ENDIAN"
  226. const m_POLL_ERR = 4
  227. const m_POLL_HUP = 6
  228. const m_POLL_IN = 1
  229. const m_POLL_MSG = 3
  230. const m_POLL_OUT = 2
  231. const m_POLL_PRI = 5
  232. const m_PRIO_DARWIN_BG = 0x1000
  233. const m_PRIO_DARWIN_NONUI = 0x1001
  234. const m_PRIO_DARWIN_PROCESS = 4
  235. const m_PRIO_DARWIN_THREAD = 3
  236. const m_PRIO_MAX = 20
  237. const m_PRIO_PGRP = 1
  238. const m_PRIO_PROCESS = 0
  239. const m_PRIO_USER = 2
  240. const m_PTRDIFF_MAX = "__PTRDIFF_MAX__"
  241. const m_P_tmpdir = "/var/tmp/"
  242. const m_RAND_MAX = 0x7fffffff
  243. const m_RENAME_EXCL = 0x00000004
  244. const m_RENAME_NOFOLLOW_ANY = 0x00000010
  245. const m_RENAME_RESERVED1 = 0x00000008
  246. const m_RENAME_SECLUDE = 0x00000001
  247. const m_RENAME_SWAP = 0x00000002
  248. const m_RLIMIT_AS = 5
  249. const m_RLIMIT_CORE = 4
  250. const m_RLIMIT_CPU = 0
  251. const m_RLIMIT_CPU_USAGE_MONITOR = 0x2
  252. const m_RLIMIT_DATA = 2
  253. const m_RLIMIT_FOOTPRINT_INTERVAL = 0x4
  254. const m_RLIMIT_FSIZE = 1
  255. const m_RLIMIT_MEMLOCK = 6
  256. const m_RLIMIT_NOFILE = 8
  257. const m_RLIMIT_NPROC = 7
  258. const m_RLIMIT_RSS = "RLIMIT_AS"
  259. const m_RLIMIT_STACK = 3
  260. const m_RLIMIT_THREAD_CPULIMITS = 0x3
  261. const m_RLIMIT_WAKEUPS_MONITOR = 0x1
  262. const m_RLIM_NLIMITS = 9
  263. const m_RLIM_SAVED_CUR = "RLIM_INFINITY"
  264. const m_RLIM_SAVED_MAX = "RLIM_INFINITY"
  265. const m_RUSAGE_INFO_CURRENT = "RUSAGE_INFO_V6"
  266. const m_RUSAGE_INFO_V0 = 0
  267. const m_RUSAGE_INFO_V1 = 1
  268. const m_RUSAGE_INFO_V2 = 2
  269. const m_RUSAGE_INFO_V3 = 3
  270. const m_RUSAGE_INFO_V4 = 4
  271. const m_RUSAGE_INFO_V5 = 5
  272. const m_RUSAGE_INFO_V6 = 6
  273. const m_RUSAGE_SELF = 0
  274. const m_RU_PROC_RUNS_RESLIDE = 0x00000001
  275. const m_SA_64REGSET = 0x0200
  276. const m_SA_NOCLDSTOP = 0x0008
  277. const m_SA_NOCLDWAIT = 0x0020
  278. const m_SA_NODEFER = 0x0010
  279. const m_SA_ONSTACK = 0x0001
  280. const m_SA_RESETHAND = 0x0004
  281. const m_SA_RESTART = 0x0002
  282. const m_SA_SIGINFO = 0x0040
  283. const m_SA_USERTRAMP = 0x0100
  284. const m_SEEK_CUR = 1
  285. const m_SEEK_DATA = 4
  286. const m_SEEK_END = 2
  287. const m_SEEK_HOLE = 3
  288. const m_SEEK_SET = 0
  289. const m_SEGV_ACCERR = 2
  290. const m_SEGV_MAPERR = 1
  291. const m_SEGV_NOOP = 0
  292. const m_SIGABRT = 6
  293. const m_SIGALRM = 14
  294. const m_SIGBUS = 10
  295. const m_SIGCHLD = 20
  296. const m_SIGCONT = 19
  297. const m_SIGEMT = 7
  298. const m_SIGEV_NONE = 0
  299. const m_SIGEV_SIGNAL = 1
  300. const m_SIGEV_THREAD = 3
  301. const m_SIGFPE = 8
  302. const m_SIGHUP = 1
  303. const m_SIGILL = 4
  304. const m_SIGINFO = 29
  305. const m_SIGINT = 2
  306. const m_SIGIO = 23
  307. const m_SIGIOT = "SIGABRT"
  308. const m_SIGKILL = 9
  309. const m_SIGPIPE = 13
  310. const m_SIGPROF = 27
  311. const m_SIGQUIT = 3
  312. const m_SIGSEGV = 11
  313. const m_SIGSTKSZ = 131072
  314. const m_SIGSTOP = 17
  315. const m_SIGSYS = 12
  316. const m_SIGTERM = 15
  317. const m_SIGTRAP = 5
  318. const m_SIGTSTP = 18
  319. const m_SIGTTIN = 21
  320. const m_SIGTTOU = 22
  321. const m_SIGURG = 16
  322. const m_SIGUSR1 = 30
  323. const m_SIGUSR2 = 31
  324. const m_SIGVTALRM = 26
  325. const m_SIGWINCH = 28
  326. const m_SIGXCPU = 24
  327. const m_SIGXFSZ = 25
  328. const m_SIG_BLOCK = 1
  329. const m_SIG_SETMASK = 3
  330. const m_SIG_UNBLOCK = 2
  331. const m_SIZE_MAX = "__SIZE_MAX__"
  332. const m_SI_ASYNCIO = 0x10004
  333. const m_SI_MESGQ = 0x10005
  334. const m_SI_QUEUE = 0x10002
  335. const m_SI_TIMER = 0x10003
  336. const m_SI_USER = 0x10001
  337. const m_SS_DISABLE = 0x0004
  338. const m_SS_ONSTACK = 0x0001
  339. const m_STDC_HEADERS = 1
  340. const m_SV_INTERRUPT = "SA_RESTART"
  341. const m_SV_NOCLDSTOP = "SA_NOCLDSTOP"
  342. const m_SV_NODEFER = "SA_NODEFER"
  343. const m_SV_ONSTACK = "SA_ONSTACK"
  344. const m_SV_RESETHAND = "SA_RESETHAND"
  345. const m_SV_SIGINFO = "SA_SIGINFO"
  346. const m_TARGET_IPHONE_SIMULATOR = 0
  347. const m_TARGET_OS_ARROW = 1
  348. const m_TARGET_OS_BRIDGE = 0
  349. const m_TARGET_OS_DRIVERKIT = 0
  350. const m_TARGET_OS_EMBEDDED = 0
  351. const m_TARGET_OS_IOS = 0
  352. const m_TARGET_OS_IOSMAC = 0
  353. const m_TARGET_OS_IPHONE = 0
  354. const m_TARGET_OS_LINUX = 0
  355. const m_TARGET_OS_MAC = 1
  356. const m_TARGET_OS_MACCATALYST = 0
  357. const m_TARGET_OS_NANO = 0
  358. const m_TARGET_OS_OSX = 1
  359. const m_TARGET_OS_SIMULATOR = 0
  360. const m_TARGET_OS_TV = 0
  361. const m_TARGET_OS_UIKITFORMAC = 0
  362. const m_TARGET_OS_UNIX = 0
  363. const m_TARGET_OS_VISION = 0
  364. const m_TARGET_OS_WATCH = 0
  365. const m_TARGET_OS_WIN32 = 0
  366. const m_TARGET_OS_WINDOWS = 0
  367. const m_TARGET_OS_XR = 0
  368. const m_TMP_MAX = 308915776
  369. const m_TRAP_BRKPT = 1
  370. const m_TRAP_TRACE = 2
  371. const m_UINTMAX_MAX = "__UINTMAX_MAX__"
  372. const m_UINTPTR_MAX = "__UINTPTR_MAX__"
  373. const m_UINT_FAST16_MAX = "__UINT_LEAST16_MAX"
  374. const m_UINT_FAST32_MAX = "__UINT_LEAST32_MAX"
  375. const m_UINT_FAST64_MAX = "__UINT_LEAST64_MAX"
  376. const m_UINT_FAST8_MAX = "__UINT_LEAST8_MAX"
  377. const m_UINT_LEAST16_MAX = "__UINT_LEAST16_MAX"
  378. const m_UINT_LEAST32_MAX = "__UINT_LEAST32_MAX"
  379. const m_UINT_LEAST64_MAX = "__UINT_LEAST64_MAX"
  380. const m_UINT_LEAST8_MAX = "__UINT_LEAST8_MAX"
  381. const m_VERSION = "1.0.11"
  382. const m_WAIT_MYPGRP = 0
  383. const m_WAKEMON_DISABLE = 0x02
  384. const m_WAKEMON_ENABLE = 0x01
  385. const m_WAKEMON_GET_PARAMS = 0x04
  386. const m_WAKEMON_MAKE_FATAL = 0x10
  387. const m_WAKEMON_SET_DEFAULTS = 0x08
  388. const m_WCHAR_MAX = "__WCHAR_MAX__"
  389. const m_WCONTINUED = 0x00000010
  390. const m_WCOREFLAG = 0200
  391. const m_WEXITED = 0x00000004
  392. const m_WNOHANG = 0x00000001
  393. const m_WNOWAIT = 0x00000020
  394. const m_WSTOPPED = 0x00000008
  395. const m_WUNTRACED = 0x00000002
  396. const m_XTHREADS = 1
  397. const m__ALL_SOURCE = 1
  398. const m__ARM_SIGNAL_ = 1
  399. const m__DARWIN_C_SOURCE = 1
  400. const m__DARWIN_FEATURE_64_BIT_INODE = 1
  401. const m__DARWIN_FEATURE_ONLY_64_BIT_INODE = 1
  402. const m__DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE = 1
  403. const m__DARWIN_FEATURE_ONLY_VERS_1050 = 1
  404. const m__DARWIN_FEATURE_UNIX_CONFORMANCE = 3
  405. const m__FORTIFY_SOURCE = 2
  406. const m__GNU_SOURCE = 1
  407. const m__HPUX_ALT_XOPEN_SOCKET_API = 1
  408. const m__IOFBF = 0
  409. const m__IOLBF = 1
  410. const m__IONBF = 2
  411. const m__LIBC_COUNT__MB_LEN_MAX = "_LIBC_UNSAFE_INDEXABLE"
  412. const m__LIBC_COUNT__PATH_MAX = "_LIBC_UNSAFE_INDEXABLE"
  413. const m__LP64 = 1
  414. const m__NETBSD_SOURCE = 1
  415. const m__OPENBSD_SOURCE = 1
  416. const m__POSIX_PTHREAD_SEMANTICS = 1
  417. const m__QUAD_HIGHWORD = 1
  418. const m__QUAD_LOWWORD = 0
  419. const m__RLIMIT_POSIX_FLAG = 0x1000
  420. const m__STRUCT_MCONTEXT = "_STRUCT_MCONTEXT64"
  421. const m__TANDEM_SOURCE = 1
  422. const m__WSTOPPED = 0177
  423. const m__X_INLINE = "inline"
  424. const m__X_RESTRICT_KYWD = "restrict"
  425. const m__Xconst = "const"
  426. const m___AARCH64EL__ = 1
  427. const m___AARCH64_CMODEL_SMALL__ = 1
  428. const m___AARCH64_SIMD__ = 1
  429. const m___API_TO_BE_DEPRECATED = 100000
  430. const m___API_TO_BE_DEPRECATED_DRIVERKIT = 100000
  431. const m___API_TO_BE_DEPRECATED_IOS = 100000
  432. const m___API_TO_BE_DEPRECATED_IOSAPPLICATIONEXTENSION = 100000
  433. const m___API_TO_BE_DEPRECATED_KERNELKIT = 100000
  434. const m___API_TO_BE_DEPRECATED_MACCATALYST = 100000
  435. const m___API_TO_BE_DEPRECATED_MACCATALYSTAPPLICATIONEXTENSION = 100000
  436. const m___API_TO_BE_DEPRECATED_MACOS = 100000
  437. const m___API_TO_BE_DEPRECATED_MACOSAPPLICATIONEXTENSION = 100000
  438. const m___API_TO_BE_DEPRECATED_TVOS = 100000
  439. const m___API_TO_BE_DEPRECATED_TVOSAPPLICATIONEXTENSION = 100000
  440. const m___API_TO_BE_DEPRECATED_VISIONOS = 100000
  441. const m___API_TO_BE_DEPRECATED_VISIONOSAPPLICATIONEXTENSION = 100000
  442. const m___API_TO_BE_DEPRECATED_WATCHOS = 100000
  443. const m___API_TO_BE_DEPRECATED_WATCHOSAPPLICATIONEXTENSION = 100000
  444. const m___APPLE_CC__ = 6000
  445. const m___APPLE__ = 1
  446. const m___ARM64_ARCH_8__ = 1
  447. const m___ARM_64BIT_STATE = 1
  448. const m___ARM_ACLE = 200
  449. const m___ARM_ALIGN_MAX_STACK_PWR = 4
  450. const m___ARM_ARCH = 8
  451. const m___ARM_ARCH_8_3__ = 1
  452. const m___ARM_ARCH_8_4__ = 1
  453. const m___ARM_ARCH_8_5__ = 1
  454. const m___ARM_ARCH_ISA_A64 = 1
  455. const m___ARM_ARCH_PROFILE = 'A'
  456. const m___ARM_FEATURE_AES = 1
  457. const m___ARM_FEATURE_ATOMICS = 1
  458. const m___ARM_FEATURE_BTI = 1
  459. const m___ARM_FEATURE_CLZ = 1
  460. const m___ARM_FEATURE_COMPLEX = 1
  461. const m___ARM_FEATURE_CRC32 = 1
  462. const m___ARM_FEATURE_CRYPTO = 1
  463. const m___ARM_FEATURE_DIRECTED_ROUNDING = 1
  464. const m___ARM_FEATURE_DIV = 1
  465. const m___ARM_FEATURE_DOTPROD = 1
  466. const m___ARM_FEATURE_FMA = 1
  467. const m___ARM_FEATURE_FP16_FML = 1
  468. const m___ARM_FEATURE_FP16_SCALAR_ARITHMETIC = 1
  469. const m___ARM_FEATURE_FP16_VECTOR_ARITHMETIC = 1
  470. const m___ARM_FEATURE_FRINT = 1
  471. const m___ARM_FEATURE_IDIV = 1
  472. const m___ARM_FEATURE_JCVT = 1
  473. const m___ARM_FEATURE_LDREX = 0xF
  474. const m___ARM_FEATURE_NUMERIC_MAXMIN = 1
  475. const m___ARM_FEATURE_PAUTH = 1
  476. const m___ARM_FEATURE_QRDMX = 1
  477. const m___ARM_FEATURE_RCPC = 1
  478. const m___ARM_FEATURE_SHA2 = 1
  479. const m___ARM_FEATURE_SHA3 = 1
  480. const m___ARM_FEATURE_SHA512 = 1
  481. const m___ARM_FEATURE_UNALIGNED = 1
  482. const m___ARM_FP = 0xE
  483. const m___ARM_FP16_ARGS = 1
  484. const m___ARM_FP16_FORMAT_IEEE = 1
  485. const m___ARM_NEON = 1
  486. const m___ARM_NEON_FP = 0xE
  487. const m___ARM_NEON__ = 1
  488. const m___ARM_PCS_AAPCS64 = 1
  489. const m___ARM_SIZEOF_MINIMAL_ENUM = 4
  490. const m___ARM_SIZEOF_WCHAR_T = 4
  491. const m___ARM_STATE_ZA = 1
  492. const m___ARM_STATE_ZT0 = 1
  493. const m___ATOMIC_ACQUIRE = 2
  494. const m___ATOMIC_ACQ_REL = 4
  495. const m___ATOMIC_CONSUME = 1
  496. const m___ATOMIC_RELAXED = 0
  497. const m___ATOMIC_RELEASE = 3
  498. const m___ATOMIC_SEQ_CST = 5
  499. const m___AVAILABILITY_FILE = "AvailabilityVersions.h"
  500. const m___AVAILABILITY_VERSIONS_VERSION_HASH = 93585900
  501. const m___AVAILABILITY_VERSIONS_VERSION_STRING = "Local"
  502. const m___BIGGEST_ALIGNMENT__ = 8
  503. const m___BITINT_MAXWIDTH__ = 128
  504. const m___BLOCKS__ = 1
  505. const m___BOOL_WIDTH__ = 8
  506. const m___BRIDGEOS_2_0 = 20000
  507. const m___BRIDGEOS_3_0 = 30000
  508. const m___BRIDGEOS_3_1 = 30100
  509. const m___BRIDGEOS_3_4 = 30400
  510. const m___BRIDGEOS_4_0 = 40000
  511. const m___BRIDGEOS_4_1 = 40100
  512. const m___BRIDGEOS_5_0 = 50000
  513. const m___BRIDGEOS_5_1 = 50100
  514. const m___BRIDGEOS_5_3 = 50300
  515. const m___BRIDGEOS_6_0 = 60000
  516. const m___BRIDGEOS_6_2 = 60200
  517. const m___BRIDGEOS_6_4 = 60400
  518. const m___BRIDGEOS_6_5 = 60500
  519. const m___BRIDGEOS_6_6 = 60600
  520. const m___BRIDGEOS_7_0 = 70000
  521. const m___BRIDGEOS_7_1 = 70100
  522. const m___BRIDGEOS_7_2 = 70200
  523. const m___BRIDGEOS_7_3 = 70300
  524. const m___BRIDGEOS_7_4 = 70400
  525. const m___BRIDGEOS_7_6 = 70600
  526. const m___BRIDGEOS_8_0 = 80000
  527. const m___BRIDGEOS_8_1 = 80100
  528. const m___BRIDGEOS_8_2 = 80200
  529. const m___BRIDGEOS_8_3 = 80300
  530. const m___BRIDGEOS_8_4 = 80400
  531. const m___BRIDGEOS_8_5 = 80500
  532. const m___BRIDGEOS_8_6 = 80600
  533. const m___BRIDGEOS_9_0 = 90000
  534. const m___BRIDGEOS_9_1 = 90100
  535. const m___BRIDGEOS_9_2 = 90200
  536. const m___BRIDGEOS_9_3 = 90300
  537. const m___BRIDGEOS_9_4 = 90400
  538. const m___BYTE_ORDER__ = "__ORDER_LITTLE_ENDIAN__"
  539. const m___CCGO__ = 1
  540. const m___CHAR_BIT__ = 8
  541. const m___CLANG_ATOMIC_BOOL_LOCK_FREE = 2
  542. const m___CLANG_ATOMIC_CHAR16_T_LOCK_FREE = 2
  543. const m___CLANG_ATOMIC_CHAR32_T_LOCK_FREE = 2
  544. const m___CLANG_ATOMIC_CHAR_LOCK_FREE = 2
  545. const m___CLANG_ATOMIC_INT_LOCK_FREE = 2
  546. const m___CLANG_ATOMIC_LLONG_LOCK_FREE = 2
  547. const m___CLANG_ATOMIC_LONG_LOCK_FREE = 2
  548. const m___CLANG_ATOMIC_POINTER_LOCK_FREE = 2
  549. const m___CLANG_ATOMIC_SHORT_LOCK_FREE = 2
  550. const m___CLANG_ATOMIC_WCHAR_T_LOCK_FREE = 2
  551. const m___CONSTANT_CFSTRINGS__ = 1
  552. const m___DARWIN_64_BIT_INO_T = 1
  553. const m___DARWIN_BIG_ENDIAN = 4321
  554. const m___DARWIN_BYTE_ORDER = "__DARWIN_LITTLE_ENDIAN"
  555. const m___DARWIN_C_ANSI = 010000
  556. const m___DARWIN_C_FULL = 900000
  557. const m___DARWIN_C_LEVEL = "__DARWIN_C_FULL"
  558. const m___DARWIN_LITTLE_ENDIAN = 1234
  559. const m___DARWIN_NON_CANCELABLE = 0
  560. const m___DARWIN_NO_LONG_LONG = 0
  561. const m___DARWIN_NSIG = 32
  562. const m___DARWIN_ONLY_64_BIT_INO_T = 1
  563. const m___DARWIN_ONLY_UNIX_CONFORMANCE = 1
  564. const m___DARWIN_ONLY_VERS_1050 = 1
  565. const m___DARWIN_OPAQUE_ARM_THREAD_STATE64 = 0
  566. const m___DARWIN_PDP_ENDIAN = 3412
  567. const m___DARWIN_SUF_EXTSN = "$DARWIN_EXTSN"
  568. const m___DARWIN_UNIX03 = 1
  569. const m___DARWIN_VERS_1050 = 1
  570. const m___DARWIN_WCHAR_MAX = "__WCHAR_MAX__"
  571. const m___DBL_DECIMAL_DIG__ = 17
  572. const m___DBL_DENORM_MIN__ = 4.9406564584124654e-324
  573. const m___DBL_DIG__ = 15
  574. const m___DBL_EPSILON__ = 2.2204460492503131e-16
  575. const m___DBL_HAS_DENORM__ = 1
  576. const m___DBL_HAS_INFINITY__ = 1
  577. const m___DBL_HAS_QUIET_NAN__ = 1
  578. const m___DBL_MANT_DIG__ = 53
  579. const m___DBL_MAX_10_EXP__ = 308
  580. const m___DBL_MAX_EXP__ = 1024
  581. const m___DBL_MAX__ = 1.7976931348623157e+308
  582. const m___DBL_MIN__ = 2.2250738585072014e-308
  583. const m___DBL_NORM_MAX__ = 1.7976931348623157e+308
  584. const m___DECIMAL_DIG__ = "__LDBL_DECIMAL_DIG__"
  585. const m___DRIVERKIT_19_0 = 190000
  586. const m___DRIVERKIT_20_0 = 200000
  587. const m___DRIVERKIT_21_0 = 210000
  588. const m___DRIVERKIT_22_0 = 220000
  589. const m___DRIVERKIT_22_4 = 220400
  590. const m___DRIVERKIT_22_5 = 220500
  591. const m___DRIVERKIT_22_6 = 220600
  592. const m___DRIVERKIT_23_0 = 230000
  593. const m___DRIVERKIT_23_1 = 230100
  594. const m___DRIVERKIT_23_2 = 230200
  595. const m___DRIVERKIT_23_3 = 230300
  596. const m___DRIVERKIT_23_4 = 230400
  597. const m___DRIVERKIT_23_5 = 230500
  598. const m___DRIVERKIT_23_6 = 230600
  599. const m___DRIVERKIT_24_0 = 240000
  600. const m___DRIVERKIT_24_1 = 240100
  601. const m___DRIVERKIT_24_2 = 240200
  602. const m___DRIVERKIT_24_3 = 240300
  603. const m___DRIVERKIT_24_4 = 240400
  604. const m___DYNAMIC__ = 1
  605. const m___ENABLE_LEGACY_MAC_AVAILABILITY = 1
  606. const m___ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ = 150000
  607. const m___ENVIRONMENT_OS_VERSION_MIN_REQUIRED__ = 150000
  608. const m___EXTENSIONS__ = 1
  609. const m___FINITE_MATH_ONLY__ = 0
  610. const m___FLT16_DECIMAL_DIG__ = 5
  611. const m___FLT16_DENORM_MIN__ = 5.9604644775390625e-8
  612. const m___FLT16_DIG__ = 3
  613. const m___FLT16_EPSILON__ = 9.765625e-4
  614. const m___FLT16_HAS_DENORM__ = 1
  615. const m___FLT16_HAS_INFINITY__ = 1
  616. const m___FLT16_HAS_QUIET_NAN__ = 1
  617. const m___FLT16_MANT_DIG__ = 11
  618. const m___FLT16_MAX_10_EXP__ = 4
  619. const m___FLT16_MAX_EXP__ = 16
  620. const m___FLT16_MAX__ = 6.5504e+4
  621. const m___FLT16_MIN__ = 6.103515625e-5
  622. const m___FLT16_NORM_MAX__ = 6.5504e+4
  623. const m___FLT_DECIMAL_DIG__ = 9
  624. const m___FLT_DENORM_MIN__ = 1.40129846e-45
  625. const m___FLT_DIG__ = 6
  626. const m___FLT_EPSILON__ = 1.19209290e-7
  627. const m___FLT_HAS_DENORM__ = 1
  628. const m___FLT_HAS_INFINITY__ = 1
  629. const m___FLT_HAS_QUIET_NAN__ = 1
  630. const m___FLT_MANT_DIG__ = 24
  631. const m___FLT_MAX_10_EXP__ = 38
  632. const m___FLT_MAX_EXP__ = 128
  633. const m___FLT_MAX__ = 3.40282347e+38
  634. const m___FLT_MIN__ = 1.17549435e-38
  635. const m___FLT_NORM_MAX__ = 3.40282347e+38
  636. const m___FLT_RADIX__ = 2
  637. const m___FPCLASS_NEGINF = 0x0004
  638. const m___FPCLASS_NEGNORMAL = 0x0008
  639. const m___FPCLASS_NEGSUBNORMAL = 0x0010
  640. const m___FPCLASS_NEGZERO = 0x0020
  641. const m___FPCLASS_POSINF = 0x0200
  642. const m___FPCLASS_POSNORMAL = 0x0100
  643. const m___FPCLASS_POSSUBNORMAL = 0x0080
  644. const m___FPCLASS_POSZERO = 0x0040
  645. const m___FPCLASS_QNAN = 0x0002
  646. const m___FPCLASS_SNAN = 0x0001
  647. const m___FP_FAST_FMA = 1
  648. const m___FP_FAST_FMAF = 1
  649. const m___FUNCTION__ = "__func__"
  650. const m___GCC_ASM_FLAG_OUTPUTS__ = 1
  651. const m___GCC_ATOMIC_BOOL_LOCK_FREE = 2
  652. const m___GCC_ATOMIC_CHAR16_T_LOCK_FREE = 2
  653. const m___GCC_ATOMIC_CHAR32_T_LOCK_FREE = 2
  654. const m___GCC_ATOMIC_CHAR_LOCK_FREE = 2
  655. const m___GCC_ATOMIC_INT_LOCK_FREE = 2
  656. const m___GCC_ATOMIC_LLONG_LOCK_FREE = 2
  657. const m___GCC_ATOMIC_LONG_LOCK_FREE = 2
  658. const m___GCC_ATOMIC_POINTER_LOCK_FREE = 2
  659. const m___GCC_ATOMIC_SHORT_LOCK_FREE = 2
  660. const m___GCC_ATOMIC_TEST_AND_SET_TRUEVAL = 1
  661. const m___GCC_ATOMIC_WCHAR_T_LOCK_FREE = 2
  662. const m___GCC_CONSTRUCTIVE_SIZE = 64
  663. const m___GCC_DESTRUCTIVE_SIZE = 64
  664. const m___GCC_HAVE_DWARF2_CFI_ASM = 1
  665. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_1 = 1
  666. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_16 = 1
  667. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_2 = 1
  668. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 = 1
  669. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 = 1
  670. const m___GNUC_MINOR__ = 2
  671. const m___GNUC_PATCHLEVEL__ = 1
  672. const m___GNUC_STDC_INLINE__ = 1
  673. const m___GNUC__ = 4
  674. const m___GXX_ABI_VERSION = 1002
  675. const m___HAVE_FUNCTION_MULTI_VERSIONING = 1
  676. const m___INT16_FMTd__ = "hd"
  677. const m___INT16_FMTi__ = "hi"
  678. const m___INT16_MAX__ = 32767
  679. const m___INT16_TYPE__ = "short"
  680. const m___INT32_FMTd__ = "d"
  681. const m___INT32_FMTi__ = "i"
  682. const m___INT32_MAX__ = 2147483647
  683. const m___INT32_TYPE__ = "int"
  684. const m___INT64_C_SUFFIX__ = "LL"
  685. const m___INT64_FMTd__ = "lld"
  686. const m___INT64_FMTi__ = "lli"
  687. const m___INT64_MAX__ = 9223372036854775807
  688. const m___INT8_FMTd__ = "hhd"
  689. const m___INT8_FMTi__ = "hhi"
  690. const m___INT8_MAX__ = 127
  691. const m___INTMAX_C_SUFFIX__ = "L"
  692. const m___INTMAX_FMTd__ = "ld"
  693. const m___INTMAX_FMTi__ = "li"
  694. const m___INTMAX_MAX__ = 9223372036854775807
  695. const m___INTMAX_WIDTH__ = 64
  696. const m___INTPTR_FMTd__ = "ld"
  697. const m___INTPTR_FMTi__ = "li"
  698. const m___INTPTR_MAX__ = 9223372036854775807
  699. const m___INTPTR_WIDTH__ = 64
  700. const m___INT_FAST16_FMTd__ = "hd"
  701. const m___INT_FAST16_FMTi__ = "hi"
  702. const m___INT_FAST16_MAX__ = 32767
  703. const m___INT_FAST16_TYPE__ = "short"
  704. const m___INT_FAST16_WIDTH__ = 16
  705. const m___INT_FAST32_FMTd__ = "d"
  706. const m___INT_FAST32_FMTi__ = "i"
  707. const m___INT_FAST32_MAX__ = 2147483647
  708. const m___INT_FAST32_TYPE__ = "int"
  709. const m___INT_FAST32_WIDTH__ = 32
  710. const m___INT_FAST64_FMTd__ = "lld"
  711. const m___INT_FAST64_FMTi__ = "lli"
  712. const m___INT_FAST64_MAX__ = 9223372036854775807
  713. const m___INT_FAST64_WIDTH__ = 64
  714. const m___INT_FAST8_FMTd__ = "hhd"
  715. const m___INT_FAST8_FMTi__ = "hhi"
  716. const m___INT_FAST8_MAX__ = 127
  717. const m___INT_FAST8_WIDTH__ = 8
  718. const m___INT_LEAST16_FMTd__ = "hd"
  719. const m___INT_LEAST16_FMTi__ = "hi"
  720. const m___INT_LEAST16_MAX__ = 32767
  721. const m___INT_LEAST16_TYPE__ = "short"
  722. const m___INT_LEAST16_WIDTH__ = 16
  723. const m___INT_LEAST32_FMTd__ = "d"
  724. const m___INT_LEAST32_FMTi__ = "i"
  725. const m___INT_LEAST32_MAX__ = 2147483647
  726. const m___INT_LEAST32_TYPE__ = "int"
  727. const m___INT_LEAST32_WIDTH__ = 32
  728. const m___INT_LEAST64_FMTd__ = "lld"
  729. const m___INT_LEAST64_FMTi__ = "lli"
  730. const m___INT_LEAST64_MAX = "INT64_MAX"
  731. const m___INT_LEAST64_MAX__ = 9223372036854775807
  732. const m___INT_LEAST64_MIN = "INT64_MIN"
  733. const m___INT_LEAST64_WIDTH__ = 64
  734. const m___INT_LEAST8_FMTd__ = "hhd"
  735. const m___INT_LEAST8_FMTi__ = "hhi"
  736. const m___INT_LEAST8_MAX__ = 127
  737. const m___INT_LEAST8_WIDTH__ = 8
  738. const m___INT_MAX__ = 2147483647
  739. const m___INT_WIDTH__ = 32
  740. const m___IPHONE_10_0 = 100000
  741. const m___IPHONE_10_1 = 100100
  742. const m___IPHONE_10_2 = 100200
  743. const m___IPHONE_10_3 = 100300
  744. const m___IPHONE_11_0 = 110000
  745. const m___IPHONE_11_1 = 110100
  746. const m___IPHONE_11_2 = 110200
  747. const m___IPHONE_11_3 = 110300
  748. const m___IPHONE_11_4 = 110400
  749. const m___IPHONE_12_0 = 120000
  750. const m___IPHONE_12_1 = 120100
  751. const m___IPHONE_12_2 = 120200
  752. const m___IPHONE_12_3 = 120300
  753. const m___IPHONE_12_4 = 120400
  754. const m___IPHONE_13_0 = 130000
  755. const m___IPHONE_13_1 = 130100
  756. const m___IPHONE_13_2 = 130200
  757. const m___IPHONE_13_3 = 130300
  758. const m___IPHONE_13_4 = 130400
  759. const m___IPHONE_13_5 = 130500
  760. const m___IPHONE_13_6 = 130600
  761. const m___IPHONE_13_7 = 130700
  762. const m___IPHONE_14_0 = 140000
  763. const m___IPHONE_14_1 = 140100
  764. const m___IPHONE_14_2 = 140200
  765. const m___IPHONE_14_3 = 140300
  766. const m___IPHONE_14_4 = 140400
  767. const m___IPHONE_14_5 = 140500
  768. const m___IPHONE_14_6 = 140600
  769. const m___IPHONE_14_7 = 140700
  770. const m___IPHONE_14_8 = 140800
  771. const m___IPHONE_15_0 = 150000
  772. const m___IPHONE_15_1 = 150100
  773. const m___IPHONE_15_2 = 150200
  774. const m___IPHONE_15_3 = 150300
  775. const m___IPHONE_15_4 = 150400
  776. const m___IPHONE_15_5 = 150500
  777. const m___IPHONE_15_6 = 150600
  778. const m___IPHONE_15_7 = 150700
  779. const m___IPHONE_15_8 = 150800
  780. const m___IPHONE_16_0 = 160000
  781. const m___IPHONE_16_1 = 160100
  782. const m___IPHONE_16_2 = 160200
  783. const m___IPHONE_16_3 = 160300
  784. const m___IPHONE_16_4 = 160400
  785. const m___IPHONE_16_5 = 160500
  786. const m___IPHONE_16_6 = 160600
  787. const m___IPHONE_16_7 = 160700
  788. const m___IPHONE_17_0 = 170000
  789. const m___IPHONE_17_1 = 170100
  790. const m___IPHONE_17_2 = 170200
  791. const m___IPHONE_17_3 = 170300
  792. const m___IPHONE_17_4 = 170400
  793. const m___IPHONE_17_5 = 170500
  794. const m___IPHONE_17_6 = 170600
  795. const m___IPHONE_17_7 = 170700
  796. const m___IPHONE_18_0 = 180000
  797. const m___IPHONE_18_1 = 180100
  798. const m___IPHONE_18_2 = 180200
  799. const m___IPHONE_18_3 = 180300
  800. const m___IPHONE_18_4 = 180400
  801. const m___IPHONE_2_0 = 20000
  802. const m___IPHONE_2_1 = 20100
  803. const m___IPHONE_2_2 = 20200
  804. const m___IPHONE_3_0 = 30000
  805. const m___IPHONE_3_1 = 30100
  806. const m___IPHONE_3_2 = 30200
  807. const m___IPHONE_4_0 = 40000
  808. const m___IPHONE_4_1 = 40100
  809. const m___IPHONE_4_2 = 40200
  810. const m___IPHONE_4_3 = 40300
  811. const m___IPHONE_5_0 = 50000
  812. const m___IPHONE_5_1 = 50100
  813. const m___IPHONE_6_0 = 60000
  814. const m___IPHONE_6_1 = 60100
  815. const m___IPHONE_7_0 = 70000
  816. const m___IPHONE_7_1 = 70100
  817. const m___IPHONE_8_0 = 80000
  818. const m___IPHONE_8_1 = 80100
  819. const m___IPHONE_8_2 = 80200
  820. const m___IPHONE_8_3 = 80300
  821. const m___IPHONE_8_4 = 80400
  822. const m___IPHONE_9_0 = 90000
  823. const m___IPHONE_9_1 = 90100
  824. const m___IPHONE_9_2 = 90200
  825. const m___IPHONE_9_3 = 90300
  826. const m___LDBL_DECIMAL_DIG__ = 17
  827. const m___LDBL_DENORM_MIN__ = 4.9406564584124654e-324
  828. const m___LDBL_DIG__ = 15
  829. const m___LDBL_EPSILON__ = 2.2204460492503131e-16
  830. const m___LDBL_HAS_DENORM__ = 1
  831. const m___LDBL_HAS_INFINITY__ = 1
  832. const m___LDBL_HAS_QUIET_NAN__ = 1
  833. const m___LDBL_MANT_DIG__ = 53
  834. const m___LDBL_MAX_10_EXP__ = 308
  835. const m___LDBL_MAX_EXP__ = 1024
  836. const m___LDBL_MAX__ = 1.7976931348623157e+308
  837. const m___LDBL_MIN__ = 2.2250738585072014e-308
  838. const m___LDBL_NORM_MAX__ = 1.7976931348623157e+308
  839. const m___LITTLE_ENDIAN__ = 1
  840. const m___LLONG_WIDTH__ = 64
  841. const m___LONG_LONG_MAX__ = 9223372036854775807
  842. const m___LONG_MAX__ = 9223372036854775807
  843. const m___LONG_WIDTH__ = 64
  844. const m___LP64__ = 1
  845. const m___MACH__ = 1
  846. const m___MAC_10_0 = 1000
  847. const m___MAC_10_1 = 1010
  848. const m___MAC_10_10 = 101000
  849. const m___MAC_10_10_2 = 101002
  850. const m___MAC_10_10_3 = 101003
  851. const m___MAC_10_11 = 101100
  852. const m___MAC_10_11_2 = 101102
  853. const m___MAC_10_11_3 = 101103
  854. const m___MAC_10_11_4 = 101104
  855. const m___MAC_10_12 = 101200
  856. const m___MAC_10_12_1 = 101201
  857. const m___MAC_10_12_2 = 101202
  858. const m___MAC_10_12_4 = 101204
  859. const m___MAC_10_13 = 101300
  860. const m___MAC_10_13_1 = 101301
  861. const m___MAC_10_13_2 = 101302
  862. const m___MAC_10_13_4 = 101304
  863. const m___MAC_10_14 = 101400
  864. const m___MAC_10_14_1 = 101401
  865. const m___MAC_10_14_4 = 101404
  866. const m___MAC_10_14_5 = 101405
  867. const m___MAC_10_14_6 = 101406
  868. const m___MAC_10_15 = 101500
  869. const m___MAC_10_15_1 = 101501
  870. const m___MAC_10_15_4 = 101504
  871. const m___MAC_10_16 = 101600
  872. const m___MAC_10_2 = 1020
  873. const m___MAC_10_3 = 1030
  874. const m___MAC_10_4 = 1040
  875. const m___MAC_10_5 = 1050
  876. const m___MAC_10_6 = 1060
  877. const m___MAC_10_7 = 1070
  878. const m___MAC_10_8 = 1080
  879. const m___MAC_10_9 = 1090
  880. const m___MAC_11_0 = 110000
  881. const m___MAC_11_1 = 110100
  882. const m___MAC_11_3 = 110300
  883. const m___MAC_11_4 = 110400
  884. const m___MAC_11_5 = 110500
  885. const m___MAC_11_6 = 110600
  886. const m___MAC_12_0 = 120000
  887. const m___MAC_12_1 = 120100
  888. const m___MAC_12_2 = 120200
  889. const m___MAC_12_3 = 120300
  890. const m___MAC_12_4 = 120400
  891. const m___MAC_12_5 = 120500
  892. const m___MAC_12_6 = 120600
  893. const m___MAC_12_7 = 120700
  894. const m___MAC_13_0 = 130000
  895. const m___MAC_13_1 = 130100
  896. const m___MAC_13_2 = 130200
  897. const m___MAC_13_3 = 130300
  898. const m___MAC_13_4 = 130400
  899. const m___MAC_13_5 = 130500
  900. const m___MAC_13_6 = 130600
  901. const m___MAC_13_7 = 130700
  902. const m___MAC_14_0 = 140000
  903. const m___MAC_14_1 = 140100
  904. const m___MAC_14_2 = 140200
  905. const m___MAC_14_3 = 140300
  906. const m___MAC_14_4 = 140400
  907. const m___MAC_14_5 = 140500
  908. const m___MAC_14_6 = 140600
  909. const m___MAC_14_7 = 140700
  910. const m___MAC_15_0 = 150000
  911. const m___MAC_15_1 = 150100
  912. const m___MAC_15_2 = 150200
  913. const m___MAC_15_3 = 150300
  914. const m___MAC_15_4 = 150400
  915. const m___MAC_OS_X_VERSION_MAX_ALLOWED = "__MAC_15_4"
  916. const m___MAC_OS_X_VERSION_MIN_REQUIRED = "__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__"
  917. const m___MEMORY_SCOPE_DEVICE = 1
  918. const m___MEMORY_SCOPE_SINGLE = 4
  919. const m___MEMORY_SCOPE_SYSTEM = 0
  920. const m___MEMORY_SCOPE_WRKGRP = 2
  921. const m___MEMORY_SCOPE_WVFRNT = 3
  922. const m___NO_INLINE__ = 1
  923. const m___NO_MATH_ERRNO__ = 1
  924. const m___OBJC_BOOL_IS_BOOL = 1
  925. const m___OPENCL_MEMORY_SCOPE_ALL_SVM_DEVICES = 3
  926. const m___OPENCL_MEMORY_SCOPE_DEVICE = 2
  927. const m___OPENCL_MEMORY_SCOPE_SUB_GROUP = 4
  928. const m___OPENCL_MEMORY_SCOPE_WORK_GROUP = 1
  929. const m___OPENCL_MEMORY_SCOPE_WORK_ITEM = 0
  930. const m___ORDER_BIG_ENDIAN__ = 4321
  931. const m___ORDER_LITTLE_ENDIAN__ = 1234
  932. const m___ORDER_PDP_ENDIAN__ = 3412
  933. const m___PIC__ = 2
  934. const m___POINTER_WIDTH__ = 64
  935. const m___PRAGMA_REDEFINE_EXTNAME = 1
  936. const m___PRETTY_FUNCTION__ = "__func__"
  937. const m___PTHREAD_ATTR_SIZE__ = 56
  938. const m___PTHREAD_CONDATTR_SIZE__ = 8
  939. const m___PTHREAD_COND_SIZE__ = 40
  940. const m___PTHREAD_MUTEXATTR_SIZE__ = 8
  941. const m___PTHREAD_MUTEX_SIZE__ = 56
  942. const m___PTHREAD_ONCE_SIZE__ = 8
  943. const m___PTHREAD_RWLOCKATTR_SIZE__ = 16
  944. const m___PTHREAD_RWLOCK_SIZE__ = 192
  945. const m___PTHREAD_SIZE__ = 8176
  946. const m___PTRDIFF_FMTd__ = "ld"
  947. const m___PTRDIFF_FMTi__ = "li"
  948. const m___PTRDIFF_MAX__ = 9223372036854775807
  949. const m___PTRDIFF_WIDTH__ = 64
  950. const m___SALC = 0x4000
  951. const m___SAPP = 0x0100
  952. const m___SCHAR_MAX__ = 127
  953. const m___SEOF = 0x0020
  954. const m___SERR = 0x0040
  955. const m___SHRT_MAX__ = 32767
  956. const m___SHRT_WIDTH__ = 16
  957. const m___SIGN = 0x8000
  958. const m___SIG_ATOMIC_MAX__ = 2147483647
  959. const m___SIG_ATOMIC_WIDTH__ = 32
  960. const m___SIZEOF_DOUBLE__ = 8
  961. const m___SIZEOF_FLOAT__ = 4
  962. const m___SIZEOF_INT128__ = 16
  963. const m___SIZEOF_INT__ = 4
  964. const m___SIZEOF_LONG_DOUBLE__ = 8
  965. const m___SIZEOF_LONG_LONG__ = 8
  966. const m___SIZEOF_LONG__ = 8
  967. const m___SIZEOF_POINTER__ = 8
  968. const m___SIZEOF_PTRDIFF_T__ = 8
  969. const m___SIZEOF_SHORT__ = 2
  970. const m___SIZEOF_SIZE_T__ = 8
  971. const m___SIZEOF_WCHAR_T__ = 4
  972. const m___SIZEOF_WINT_T__ = 4
  973. const m___SIZE_FMTX__ = "lX"
  974. const m___SIZE_FMTo__ = "lo"
  975. const m___SIZE_FMTu__ = "lu"
  976. const m___SIZE_FMTx__ = "lx"
  977. const m___SIZE_MAX__ = 18446744073709551615
  978. const m___SIZE_WIDTH__ = 64
  979. const m___SLBF = 0x0001
  980. const m___SMBF = 0x0080
  981. const m___SMOD = 0x2000
  982. const m___SNBF = 0x0002
  983. const m___SNPT = 0x0800
  984. const m___SOFF = 0x1000
  985. const m___SOPT = 0x0400
  986. const m___SRD = 0x0004
  987. const m___SRW = 0x0010
  988. const m___SSP__ = 1
  989. const m___SSTR = 0x0200
  990. const m___STDC_EMBED_EMPTY__ = 2
  991. const m___STDC_EMBED_FOUND__ = 1
  992. const m___STDC_EMBED_NOT_FOUND__ = 0
  993. const m___STDC_HOSTED__ = 1
  994. const m___STDC_NO_THREADS__ = 1
  995. const m___STDC_UTF_16__ = 1
  996. const m___STDC_UTF_32__ = 1
  997. const m___STDC_VERSION__ = 201710
  998. const m___STDC_WANT_IEC_60559_ATTRIBS_EXT__ = 1
  999. const m___STDC_WANT_IEC_60559_BFP_EXT__ = 1
  1000. const m___STDC_WANT_IEC_60559_DFP_EXT__ = 1
  1001. const m___STDC_WANT_IEC_60559_FUNCS_EXT__ = 1
  1002. const m___STDC_WANT_IEC_60559_TYPES_EXT__ = 1
  1003. const m___STDC_WANT_LIB_EXT1__ = 1
  1004. const m___STDC_WANT_LIB_EXT2__ = 1
  1005. const m___STDC_WANT_MATH_SPEC_FUNCS__ = 1
  1006. const m___STDC__ = 1
  1007. const m___SWR = 0x0008
  1008. const m___TVOS_10_0 = 100000
  1009. const m___TVOS_10_0_1 = 100001
  1010. const m___TVOS_10_1 = 100100
  1011. const m___TVOS_10_2 = 100200
  1012. const m___TVOS_11_0 = 110000
  1013. const m___TVOS_11_1 = 110100
  1014. const m___TVOS_11_2 = 110200
  1015. const m___TVOS_11_3 = 110300
  1016. const m___TVOS_11_4 = 110400
  1017. const m___TVOS_12_0 = 120000
  1018. const m___TVOS_12_1 = 120100
  1019. const m___TVOS_12_2 = 120200
  1020. const m___TVOS_12_3 = 120300
  1021. const m___TVOS_12_4 = 120400
  1022. const m___TVOS_13_0 = 130000
  1023. const m___TVOS_13_2 = 130200
  1024. const m___TVOS_13_3 = 130300
  1025. const m___TVOS_13_4 = 130400
  1026. const m___TVOS_14_0 = 140000
  1027. const m___TVOS_14_1 = 140100
  1028. const m___TVOS_14_2 = 140200
  1029. const m___TVOS_14_3 = 140300
  1030. const m___TVOS_14_5 = 140500
  1031. const m___TVOS_14_6 = 140600
  1032. const m___TVOS_14_7 = 140700
  1033. const m___TVOS_15_0 = 150000
  1034. const m___TVOS_15_1 = 150100
  1035. const m___TVOS_15_2 = 150200
  1036. const m___TVOS_15_3 = 150300
  1037. const m___TVOS_15_4 = 150400
  1038. const m___TVOS_15_5 = 150500
  1039. const m___TVOS_15_6 = 150600
  1040. const m___TVOS_16_0 = 160000
  1041. const m___TVOS_16_1 = 160100
  1042. const m___TVOS_16_2 = 160200
  1043. const m___TVOS_16_3 = 160300
  1044. const m___TVOS_16_4 = 160400
  1045. const m___TVOS_16_5 = 160500
  1046. const m___TVOS_16_6 = 160600
  1047. const m___TVOS_17_0 = 170000
  1048. const m___TVOS_17_1 = 170100
  1049. const m___TVOS_17_2 = 170200
  1050. const m___TVOS_17_3 = 170300
  1051. const m___TVOS_17_4 = 170400
  1052. const m___TVOS_17_5 = 170500
  1053. const m___TVOS_17_6 = 170600
  1054. const m___TVOS_18_0 = 180000
  1055. const m___TVOS_18_1 = 180100
  1056. const m___TVOS_18_2 = 180200
  1057. const m___TVOS_18_3 = 180300
  1058. const m___TVOS_18_4 = 180400
  1059. const m___TVOS_9_0 = 90000
  1060. const m___TVOS_9_1 = 90100
  1061. const m___TVOS_9_2 = 90200
  1062. const m___UINT16_FMTX__ = "hX"
  1063. const m___UINT16_FMTo__ = "ho"
  1064. const m___UINT16_FMTu__ = "hu"
  1065. const m___UINT16_FMTx__ = "hx"
  1066. const m___UINT16_MAX__ = 65535
  1067. const m___UINT32_C_SUFFIX__ = "U"
  1068. const m___UINT32_FMTX__ = "X"
  1069. const m___UINT32_FMTo__ = "o"
  1070. const m___UINT32_FMTu__ = "u"
  1071. const m___UINT32_FMTx__ = "x"
  1072. const m___UINT32_MAX__ = 4294967295
  1073. const m___UINT64_C_SUFFIX__ = "ULL"
  1074. const m___UINT64_FMTX__ = "llX"
  1075. const m___UINT64_FMTo__ = "llo"
  1076. const m___UINT64_FMTu__ = "llu"
  1077. const m___UINT64_FMTx__ = "llx"
  1078. const m___UINT64_MAX__ = "18446744073709551615U"
  1079. const m___UINT8_FMTX__ = "hhX"
  1080. const m___UINT8_FMTo__ = "hho"
  1081. const m___UINT8_FMTu__ = "hhu"
  1082. const m___UINT8_FMTx__ = "hhx"
  1083. const m___UINT8_MAX__ = 255
  1084. const m___UINTMAX_C_SUFFIX__ = "UL"
  1085. const m___UINTMAX_FMTX__ = "lX"
  1086. const m___UINTMAX_FMTo__ = "lo"
  1087. const m___UINTMAX_FMTu__ = "lu"
  1088. const m___UINTMAX_FMTx__ = "lx"
  1089. const m___UINTMAX_MAX__ = 18446744073709551615
  1090. const m___UINTMAX_WIDTH__ = 64
  1091. const m___UINTPTR_FMTX__ = "lX"
  1092. const m___UINTPTR_FMTo__ = "lo"
  1093. const m___UINTPTR_FMTu__ = "lu"
  1094. const m___UINTPTR_FMTx__ = "lx"
  1095. const m___UINTPTR_MAX__ = 18446744073709551615
  1096. const m___UINTPTR_WIDTH__ = 64
  1097. const m___UINT_FAST16_FMTX__ = "hX"
  1098. const m___UINT_FAST16_FMTo__ = "ho"
  1099. const m___UINT_FAST16_FMTu__ = "hu"
  1100. const m___UINT_FAST16_FMTx__ = "hx"
  1101. const m___UINT_FAST16_MAX__ = 65535
  1102. const m___UINT_FAST32_FMTX__ = "X"
  1103. const m___UINT_FAST32_FMTo__ = "o"
  1104. const m___UINT_FAST32_FMTu__ = "u"
  1105. const m___UINT_FAST32_FMTx__ = "x"
  1106. const m___UINT_FAST32_MAX__ = 4294967295
  1107. const m___UINT_FAST64_FMTX__ = "llX"
  1108. const m___UINT_FAST64_FMTo__ = "llo"
  1109. const m___UINT_FAST64_FMTu__ = "llu"
  1110. const m___UINT_FAST64_FMTx__ = "llx"
  1111. const m___UINT_FAST64_MAX__ = "18446744073709551615U"
  1112. const m___UINT_FAST8_FMTX__ = "hhX"
  1113. const m___UINT_FAST8_FMTo__ = "hho"
  1114. const m___UINT_FAST8_FMTu__ = "hhu"
  1115. const m___UINT_FAST8_FMTx__ = "hhx"
  1116. const m___UINT_FAST8_MAX__ = 255
  1117. const m___UINT_LEAST16_FMTX__ = "hX"
  1118. const m___UINT_LEAST16_FMTo__ = "ho"
  1119. const m___UINT_LEAST16_FMTu__ = "hu"
  1120. const m___UINT_LEAST16_FMTx__ = "hx"
  1121. const m___UINT_LEAST16_MAX__ = 65535
  1122. const m___UINT_LEAST32_FMTX__ = "X"
  1123. const m___UINT_LEAST32_FMTo__ = "o"
  1124. const m___UINT_LEAST32_FMTu__ = "u"
  1125. const m___UINT_LEAST32_FMTx__ = "x"
  1126. const m___UINT_LEAST32_MAX__ = 4294967295
  1127. const m___UINT_LEAST64_FMTX__ = "llX"
  1128. const m___UINT_LEAST64_FMTo__ = "llo"
  1129. const m___UINT_LEAST64_FMTu__ = "llu"
  1130. const m___UINT_LEAST64_FMTx__ = "llx"
  1131. const m___UINT_LEAST64_MAX = "UINT64_MAX"
  1132. const m___UINT_LEAST64_MAX__ = "18446744073709551615U"
  1133. const m___UINT_LEAST8_FMTX__ = "hhX"
  1134. const m___UINT_LEAST8_FMTo__ = "hho"
  1135. const m___UINT_LEAST8_FMTu__ = "hhu"
  1136. const m___UINT_LEAST8_FMTx__ = "hhx"
  1137. const m___UINT_LEAST8_MAX__ = 255
  1138. const m___USER_LABEL_PREFIX__ = "_"
  1139. const m___VERSION__ = "Apple LLVM 17.0.0 (clang-1700.0.13.3)"
  1140. const m___VISIONOS_1_0 = 10000
  1141. const m___VISIONOS_1_1 = 10100
  1142. const m___VISIONOS_1_2 = 10200
  1143. const m___VISIONOS_1_3 = 10300
  1144. const m___VISIONOS_2_0 = 20000
  1145. const m___VISIONOS_2_1 = 20100
  1146. const m___VISIONOS_2_2 = 20200
  1147. const m___VISIONOS_2_3 = 20300
  1148. const m___VISIONOS_2_4 = 20400
  1149. const m___WATCHOS_10_0 = 100000
  1150. const m___WATCHOS_10_1 = 100100
  1151. const m___WATCHOS_10_2 = 100200
  1152. const m___WATCHOS_10_3 = 100300
  1153. const m___WATCHOS_10_4 = 100400
  1154. const m___WATCHOS_10_5 = 100500
  1155. const m___WATCHOS_10_6 = 100600
  1156. const m___WATCHOS_10_7 = 100700
  1157. const m___WATCHOS_11_0 = 110000
  1158. const m___WATCHOS_11_1 = 110100
  1159. const m___WATCHOS_11_2 = 110200
  1160. const m___WATCHOS_11_3 = 110300
  1161. const m___WATCHOS_11_4 = 110400
  1162. const m___WATCHOS_1_0 = 10000
  1163. const m___WATCHOS_2_0 = 20000
  1164. const m___WATCHOS_2_1 = 20100
  1165. const m___WATCHOS_2_2 = 20200
  1166. const m___WATCHOS_3_0 = 30000
  1167. const m___WATCHOS_3_1 = 30100
  1168. const m___WATCHOS_3_1_1 = 30101
  1169. const m___WATCHOS_3_2 = 30200
  1170. const m___WATCHOS_4_0 = 40000
  1171. const m___WATCHOS_4_1 = 40100
  1172. const m___WATCHOS_4_2 = 40200
  1173. const m___WATCHOS_4_3 = 40300
  1174. const m___WATCHOS_5_0 = 50000
  1175. const m___WATCHOS_5_1 = 50100
  1176. const m___WATCHOS_5_2 = 50200
  1177. const m___WATCHOS_5_3 = 50300
  1178. const m___WATCHOS_6_0 = 60000
  1179. const m___WATCHOS_6_1 = 60100
  1180. const m___WATCHOS_6_2 = 60200
  1181. const m___WATCHOS_7_0 = 70000
  1182. const m___WATCHOS_7_1 = 70100
  1183. const m___WATCHOS_7_2 = 70200
  1184. const m___WATCHOS_7_3 = 70300
  1185. const m___WATCHOS_7_4 = 70400
  1186. const m___WATCHOS_7_5 = 70500
  1187. const m___WATCHOS_7_6 = 70600
  1188. const m___WATCHOS_8_0 = 80000
  1189. const m___WATCHOS_8_1 = 80100
  1190. const m___WATCHOS_8_3 = 80300
  1191. const m___WATCHOS_8_4 = 80400
  1192. const m___WATCHOS_8_5 = 80500
  1193. const m___WATCHOS_8_6 = 80600
  1194. const m___WATCHOS_8_7 = 80700
  1195. const m___WATCHOS_8_8 = 80800
  1196. const m___WATCHOS_9_0 = 90000
  1197. const m___WATCHOS_9_1 = 90100
  1198. const m___WATCHOS_9_2 = 90200
  1199. const m___WATCHOS_9_3 = 90300
  1200. const m___WATCHOS_9_4 = 90400
  1201. const m___WATCHOS_9_5 = 90500
  1202. const m___WATCHOS_9_6 = 90600
  1203. const m___WCHAR_MAX__ = 2147483647
  1204. const m___WCHAR_TYPE__ = "int"
  1205. const m___WCHAR_WIDTH__ = 32
  1206. const m___WINT_MAX__ = 2147483647
  1207. const m___WINT_TYPE__ = "int"
  1208. const m___WINT_WIDTH__ = 32
  1209. const m___aarch64__ = 1
  1210. const m___apple_build_version__ = 17000013
  1211. const m___arm64 = 1
  1212. const m___arm64__ = 1
  1213. const m___clang__ = 1
  1214. const m___clang_literal_encoding__ = "UTF-8"
  1215. const m___clang_major__ = 17
  1216. const m___clang_minor__ = 0
  1217. const m___clang_patchlevel__ = 0
  1218. const m___clang_version__ = "17.0.0 (clang-1700.0.13.3)"
  1219. const m___clang_wide_literal_encoding__ = "UTF-32"
  1220. const m___const = "const"
  1221. const m___has_bounds_safety_attributes = 0
  1222. const m___has_ptrcheck = 0
  1223. const m___has_safe_buffers = 0
  1224. const m___header_inline = "inline"
  1225. const m___llvm__ = 1
  1226. const m___nonnull = "_Nonnull"
  1227. const m___null_unspecified = "_Null_unspecified"
  1228. const m___nullable = "_Nullable"
  1229. const m___pic__ = 2
  1230. const m___restrict = "restrict"
  1231. const m___restrict_arr = "restrict"
  1232. const m___signed = "signed"
  1233. const m___volatile = "volatile"
  1234. const m_ru_first = "ru_ixrss"
  1235. const m_ru_last = "ru_nivcsw"
  1236. const m_stderr = "__stderrp"
  1237. const m_stdin = "__stdinp"
  1238. const m_stdout = "__stdoutp"
  1239. const m_sv_onstack = "sv_flags"
  1240. type t__builtin_va_list = uintptr
  1241. type t__predefined_size_t = uint64
  1242. type t__predefined_wchar_t = int32
  1243. type t__predefined_ptrdiff_t = int64
  1244. type TXauth = struct {
  1245. Ffamily uint16
  1246. Faddress_length uint16
  1247. Faddress uintptr
  1248. Fnumber_length uint16
  1249. Fnumber uintptr
  1250. Fname_length uint16
  1251. Fname uintptr
  1252. Fdata_length uint16
  1253. Fdata uintptr
  1254. }
  1255. type Txauth = TXauth
  1256. type t__int8_t = int8
  1257. type t__uint8_t = uint8
  1258. type t__int16_t = int16
  1259. type t__uint16_t = uint16
  1260. type t__int32_t = int32
  1261. type t__uint32_t = uint32
  1262. type t__int64_t = int64
  1263. type t__uint64_t = uint64
  1264. type t__darwin_intptr_t = int64
  1265. type t__darwin_natural_t = uint32
  1266. type t__darwin_ct_rune_t = int32
  1267. type t__mbstate_t = struct {
  1268. F_mbstateL [0]int64
  1269. F__mbstate8 [128]int8
  1270. }
  1271. type t__darwin_mbstate_t = struct {
  1272. F_mbstateL [0]int64
  1273. F__mbstate8 [128]int8
  1274. }
  1275. type t__darwin_ptrdiff_t = int64
  1276. type t__darwin_size_t = uint64
  1277. type t__darwin_va_list = uintptr
  1278. type t__darwin_wchar_t = int32
  1279. type t__darwin_rune_t = int32
  1280. type t__darwin_wint_t = int32
  1281. type t__darwin_clock_t = uint64
  1282. type t__darwin_socklen_t = uint32
  1283. type t__darwin_ssize_t = int64
  1284. type t__darwin_time_t = int64
  1285. type t__darwin_blkcnt_t = int64
  1286. type t__darwin_blksize_t = int32
  1287. type t__darwin_dev_t = int32
  1288. type t__darwin_fsblkcnt_t = uint32
  1289. type t__darwin_fsfilcnt_t = uint32
  1290. type t__darwin_gid_t = uint32
  1291. type t__darwin_id_t = uint32
  1292. type t__darwin_ino64_t = uint64
  1293. type t__darwin_ino_t = uint64
  1294. type t__darwin_mach_port_name_t = uint32
  1295. type t__darwin_mach_port_t = uint32
  1296. type t__darwin_mode_t = uint16
  1297. type t__darwin_off_t = int64
  1298. type t__darwin_pid_t = int32
  1299. type t__darwin_sigset_t = uint32
  1300. type t__darwin_suseconds_t = int32
  1301. type t__darwin_uid_t = uint32
  1302. type t__darwin_useconds_t = uint32
  1303. type t__darwin_uuid_t = [16]uint8
  1304. type t__darwin_uuid_string_t = [37]int8
  1305. type t__darwin_pthread_handler_rec = struct {
  1306. F__routine uintptr
  1307. F__arg uintptr
  1308. F__next uintptr
  1309. }
  1310. type T_opaque_pthread_attr_t = struct {
  1311. F__sig int64
  1312. F__opaque [56]int8
  1313. }
  1314. type T_opaque_pthread_cond_t = struct {
  1315. F__sig int64
  1316. F__opaque [40]int8
  1317. }
  1318. type T_opaque_pthread_condattr_t = struct {
  1319. F__sig int64
  1320. F__opaque [8]int8
  1321. }
  1322. type T_opaque_pthread_mutex_t = struct {
  1323. F__sig int64
  1324. F__opaque [56]int8
  1325. }
  1326. type T_opaque_pthread_mutexattr_t = struct {
  1327. F__sig int64
  1328. F__opaque [8]int8
  1329. }
  1330. type T_opaque_pthread_once_t = struct {
  1331. F__sig int64
  1332. F__opaque [8]int8
  1333. }
  1334. type T_opaque_pthread_rwlock_t = struct {
  1335. F__sig int64
  1336. F__opaque [192]int8
  1337. }
  1338. type T_opaque_pthread_rwlockattr_t = struct {
  1339. F__sig int64
  1340. F__opaque [16]int8
  1341. }
  1342. type T_opaque_pthread_t = struct {
  1343. F__sig int64
  1344. F__cleanup_stack uintptr
  1345. F__opaque [8176]int8
  1346. }
  1347. type t__darwin_pthread_attr_t = struct {
  1348. F__sig int64
  1349. F__opaque [56]int8
  1350. }
  1351. type t__darwin_pthread_cond_t = struct {
  1352. F__sig int64
  1353. F__opaque [40]int8
  1354. }
  1355. type t__darwin_pthread_condattr_t = struct {
  1356. F__sig int64
  1357. F__opaque [8]int8
  1358. }
  1359. type t__darwin_pthread_key_t = uint64
  1360. type t__darwin_pthread_mutex_t = struct {
  1361. F__sig int64
  1362. F__opaque [56]int8
  1363. }
  1364. type t__darwin_pthread_mutexattr_t = struct {
  1365. F__sig int64
  1366. F__opaque [8]int8
  1367. }
  1368. type t__darwin_pthread_once_t = struct {
  1369. F__sig int64
  1370. F__opaque [8]int8
  1371. }
  1372. type t__darwin_pthread_rwlock_t = struct {
  1373. F__sig int64
  1374. F__opaque [192]int8
  1375. }
  1376. type t__darwin_pthread_rwlockattr_t = struct {
  1377. F__sig int64
  1378. F__opaque [16]int8
  1379. }
  1380. type t__darwin_pthread_t = uintptr
  1381. type t__darwin_nl_item = int32
  1382. type t__darwin_wctrans_t = int32
  1383. type t__darwin_wctype_t = uint32
  1384. type Tsize_t = uint64
  1385. type Tint8_t = int8
  1386. type Tint16_t = int16
  1387. type Tint32_t = int32
  1388. type Tint64_t = int64
  1389. type Tu_int8_t = uint8
  1390. type Tu_int16_t = uint16
  1391. type Tu_int32_t = uint32
  1392. type Tu_int64_t = uint64
  1393. type Tregister_t = int64
  1394. type Tintptr_t = int64
  1395. type Tuintptr_t = uint64
  1396. type Tuser_addr_t = uint64
  1397. type Tuser_size_t = uint64
  1398. type Tuser_ssize_t = int64
  1399. type Tuser_long_t = int64
  1400. type Tuser_ulong_t = uint64
  1401. type Tuser_time_t = int64
  1402. type Tuser_off_t = int64
  1403. type Tsyscall_arg_t = uint64
  1404. type Trsize_t = uint64
  1405. type Terrno_t = int32
  1406. type Tssize_t = int64
  1407. type Tva_list = uintptr
  1408. type Tfpos_t = int64
  1409. type t__sbuf = struct {
  1410. F_base uintptr
  1411. F_size int32
  1412. }
  1413. type TFILE = struct {
  1414. F_p uintptr
  1415. F_r int32
  1416. F_w int32
  1417. F_flags int16
  1418. F_file int16
  1419. F_bf t__sbuf
  1420. F_lbfsize int32
  1421. F_cookie uintptr
  1422. F_close uintptr
  1423. F_read uintptr
  1424. F_seek uintptr
  1425. F_write uintptr
  1426. F_ub t__sbuf
  1427. F_extra uintptr
  1428. F_ur int32
  1429. F_ubuf [3]uint8
  1430. F_nbuf [1]uint8
  1431. F_lb t__sbuf
  1432. F_blksize int32
  1433. F_offset Tfpos_t
  1434. }
  1435. type t__sFILE = TFILE
  1436. type Toff_t = int64
  1437. type Tidtype_t = int32
  1438. const _P_ALL = 0
  1439. const _P_PID = 1
  1440. const _P_PGID = 2
  1441. type Tpid_t = int32
  1442. type Tid_t = uint32
  1443. type Tsig_atomic_t = int32
  1444. type t__darwin_arm_exception_state = struct {
  1445. F__exception t__uint32_t
  1446. F__fsr t__uint32_t
  1447. F__far t__uint32_t
  1448. }
  1449. type t__darwin_arm_exception_state64 = struct {
  1450. F__far t__uint64_t
  1451. F__esr t__uint32_t
  1452. F__exception t__uint32_t
  1453. }
  1454. type t__darwin_arm_exception_state64_v2 = struct {
  1455. F__far t__uint64_t
  1456. F__esr t__uint64_t
  1457. }
  1458. type t__darwin_arm_thread_state = struct {
  1459. F__r [13]t__uint32_t
  1460. F__sp t__uint32_t
  1461. F__lr t__uint32_t
  1462. F__pc t__uint32_t
  1463. F__cpsr t__uint32_t
  1464. }
  1465. type t__darwin_arm_thread_state64 = struct {
  1466. F__x [29]t__uint64_t
  1467. F__fp t__uint64_t
  1468. F__lr t__uint64_t
  1469. F__sp t__uint64_t
  1470. F__pc t__uint64_t
  1471. F__cpsr t__uint32_t
  1472. F__pad t__uint32_t
  1473. }
  1474. type t__darwin_arm_vfp_state = struct {
  1475. F__r [64]t__uint32_t
  1476. F__fpscr t__uint32_t
  1477. }
  1478. type t__darwin_arm_neon_state64 = int32
  1479. type t__darwin_arm_neon_state = int32
  1480. type t__arm_pagein_state = struct {
  1481. F__pagein_error int32
  1482. }
  1483. type t__darwin_arm_sme_state = struct {
  1484. F__svcr t__uint64_t
  1485. F__tpidr2_el0 t__uint64_t
  1486. F__svl_b t__uint16_t
  1487. }
  1488. type t__darwin_arm_sve_z_state = struct {
  1489. F__ccgo_align [0]uint32
  1490. F__z [16][256]int8
  1491. }
  1492. type t__darwin_arm_sve_p_state = struct {
  1493. F__ccgo_align [0]uint32
  1494. F__p [16][32]int8
  1495. }
  1496. type t__darwin_arm_sme_za_state = struct {
  1497. F__ccgo_align [0]uint32
  1498. F__za [4096]int8
  1499. }
  1500. type t__darwin_arm_sme2_state = struct {
  1501. F__ccgo_align [0]uint32
  1502. F__zt0 [64]int8
  1503. }
  1504. type t__arm_legacy_debug_state = struct {
  1505. F__bvr [16]t__uint32_t
  1506. F__bcr [16]t__uint32_t
  1507. F__wvr [16]t__uint32_t
  1508. F__wcr [16]t__uint32_t
  1509. }
  1510. type t__darwin_arm_debug_state32 = struct {
  1511. F__bvr [16]t__uint32_t
  1512. F__bcr [16]t__uint32_t
  1513. F__wvr [16]t__uint32_t
  1514. F__wcr [16]t__uint32_t
  1515. F__mdscr_el1 t__uint64_t
  1516. }
  1517. type t__darwin_arm_debug_state64 = struct {
  1518. F__bvr [16]t__uint64_t
  1519. F__bcr [16]t__uint64_t
  1520. F__wvr [16]t__uint64_t
  1521. F__wcr [16]t__uint64_t
  1522. F__mdscr_el1 t__uint64_t
  1523. }
  1524. type t__darwin_arm_cpmu_state64 = struct {
  1525. F__ctrs [16]t__uint64_t
  1526. }
  1527. type t__darwin_mcontext32 = struct {
  1528. F__es t__darwin_arm_exception_state
  1529. F__ss t__darwin_arm_thread_state
  1530. F__fs t__darwin_arm_vfp_state
  1531. }
  1532. type t__darwin_mcontext64 = int32
  1533. type Tmcontext_t = uintptr
  1534. type Tpthread_attr_t = struct {
  1535. F__sig int64
  1536. F__opaque [56]int8
  1537. }
  1538. type t__darwin_sigaltstack = struct {
  1539. Fss_sp uintptr
  1540. Fss_size t__darwin_size_t
  1541. Fss_flags int32
  1542. }
  1543. type Tstack_t = struct {
  1544. Fss_sp uintptr
  1545. Fss_size t__darwin_size_t
  1546. Fss_flags int32
  1547. }
  1548. type t__darwin_ucontext = struct {
  1549. Fuc_onstack int32
  1550. Fuc_sigmask t__darwin_sigset_t
  1551. Fuc_stack t__darwin_sigaltstack
  1552. Fuc_link uintptr
  1553. Fuc_mcsize t__darwin_size_t
  1554. Fuc_mcontext uintptr
  1555. }
  1556. type Tucontext_t = struct {
  1557. Fuc_onstack int32
  1558. Fuc_sigmask t__darwin_sigset_t
  1559. Fuc_stack t__darwin_sigaltstack
  1560. Fuc_link uintptr
  1561. Fuc_mcsize t__darwin_size_t
  1562. Fuc_mcontext uintptr
  1563. }
  1564. type Tsigset_t = uint32
  1565. type Tuid_t = uint32
  1566. type Tsigval = struct {
  1567. Fsival_ptr [0]uintptr
  1568. Fsival_int int32
  1569. F__ccgo_pad2 [4]byte
  1570. }
  1571. type Tsigevent = struct {
  1572. Fsigev_notify int32
  1573. Fsigev_signo int32
  1574. Fsigev_value Tsigval
  1575. Fsigev_notify_function uintptr
  1576. Fsigev_notify_attributes uintptr
  1577. }
  1578. type Tsiginfo_t = struct {
  1579. Fsi_signo int32
  1580. Fsi_errno int32
  1581. Fsi_code int32
  1582. Fsi_pid Tpid_t
  1583. Fsi_uid Tuid_t
  1584. Fsi_status int32
  1585. Fsi_addr uintptr
  1586. Fsi_value Tsigval
  1587. Fsi_band int64
  1588. F__pad [7]uint64
  1589. }
  1590. type t__siginfo = Tsiginfo_t
  1591. type t__sigaction_u = struct {
  1592. F__sa_sigaction [0]uintptr
  1593. F__sa_handler uintptr
  1594. }
  1595. type t__sigaction = struct {
  1596. F__sigaction_u t__sigaction_u
  1597. Fsa_tramp uintptr
  1598. Fsa_mask Tsigset_t
  1599. Fsa_flags int32
  1600. }
  1601. type Tsigaction = struct {
  1602. F__sigaction_u t__sigaction_u
  1603. Fsa_mask Tsigset_t
  1604. Fsa_flags int32
  1605. }
  1606. type Tsig_t = uintptr
  1607. type Tsigvec = struct {
  1608. Fsv_handler uintptr
  1609. Fsv_mask int32
  1610. Fsv_flags int32
  1611. }
  1612. type Tsigstack = struct {
  1613. Fss_sp uintptr
  1614. Fss_onstack int32
  1615. }
  1616. type Tuint64_t = uint64
  1617. type Tint_least64_t = int64
  1618. type Tuint_least64_t = uint64
  1619. type Tint_fast64_t = int64
  1620. type Tuint_fast64_t = uint64
  1621. type Tuint32_t = uint32
  1622. type Tint_least32_t = int32
  1623. type Tuint_least32_t = uint32
  1624. type Tint_fast32_t = int32
  1625. type Tuint_fast32_t = uint32
  1626. type Tuint16_t = uint16
  1627. type Tint_least16_t = int16
  1628. type Tuint_least16_t = uint16
  1629. type Tint_fast16_t = int16
  1630. type Tuint_fast16_t = uint16
  1631. type Tuint8_t = uint8
  1632. type Tint_least8_t = int8
  1633. type Tuint_least8_t = uint8
  1634. type Tint_fast8_t = int8
  1635. type Tuint_fast8_t = uint8
  1636. type Tintmax_t = int64
  1637. type Tuintmax_t = uint64
  1638. type Ttimeval = struct {
  1639. Ftv_sec t__darwin_time_t
  1640. Ftv_usec t__darwin_suseconds_t
  1641. }
  1642. type Trlim_t = uint64
  1643. type Trusage = struct {
  1644. Fru_utime Ttimeval
  1645. Fru_stime Ttimeval
  1646. Fru_maxrss int64
  1647. Fru_ixrss int64
  1648. Fru_idrss int64
  1649. Fru_isrss int64
  1650. Fru_minflt int64
  1651. Fru_majflt int64
  1652. Fru_nswap int64
  1653. Fru_inblock int64
  1654. Fru_oublock int64
  1655. Fru_msgsnd int64
  1656. Fru_msgrcv int64
  1657. Fru_nsignals int64
  1658. Fru_nvcsw int64
  1659. Fru_nivcsw int64
  1660. }
  1661. type Trusage_info_t = uintptr
  1662. type Trusage_info_v0 = struct {
  1663. Fri_uuid [16]Tuint8_t
  1664. Fri_user_time Tuint64_t
  1665. Fri_system_time Tuint64_t
  1666. Fri_pkg_idle_wkups Tuint64_t
  1667. Fri_interrupt_wkups Tuint64_t
  1668. Fri_pageins Tuint64_t
  1669. Fri_wired_size Tuint64_t
  1670. Fri_resident_size Tuint64_t
  1671. Fri_phys_footprint Tuint64_t
  1672. Fri_proc_start_abstime Tuint64_t
  1673. Fri_proc_exit_abstime Tuint64_t
  1674. }
  1675. type Trusage_info_v1 = struct {
  1676. Fri_uuid [16]Tuint8_t
  1677. Fri_user_time Tuint64_t
  1678. Fri_system_time Tuint64_t
  1679. Fri_pkg_idle_wkups Tuint64_t
  1680. Fri_interrupt_wkups Tuint64_t
  1681. Fri_pageins Tuint64_t
  1682. Fri_wired_size Tuint64_t
  1683. Fri_resident_size Tuint64_t
  1684. Fri_phys_footprint Tuint64_t
  1685. Fri_proc_start_abstime Tuint64_t
  1686. Fri_proc_exit_abstime Tuint64_t
  1687. Fri_child_user_time Tuint64_t
  1688. Fri_child_system_time Tuint64_t
  1689. Fri_child_pkg_idle_wkups Tuint64_t
  1690. Fri_child_interrupt_wkups Tuint64_t
  1691. Fri_child_pageins Tuint64_t
  1692. Fri_child_elapsed_abstime Tuint64_t
  1693. }
  1694. type Trusage_info_v2 = struct {
  1695. Fri_uuid [16]Tuint8_t
  1696. Fri_user_time Tuint64_t
  1697. Fri_system_time Tuint64_t
  1698. Fri_pkg_idle_wkups Tuint64_t
  1699. Fri_interrupt_wkups Tuint64_t
  1700. Fri_pageins Tuint64_t
  1701. Fri_wired_size Tuint64_t
  1702. Fri_resident_size Tuint64_t
  1703. Fri_phys_footprint Tuint64_t
  1704. Fri_proc_start_abstime Tuint64_t
  1705. Fri_proc_exit_abstime Tuint64_t
  1706. Fri_child_user_time Tuint64_t
  1707. Fri_child_system_time Tuint64_t
  1708. Fri_child_pkg_idle_wkups Tuint64_t
  1709. Fri_child_interrupt_wkups Tuint64_t
  1710. Fri_child_pageins Tuint64_t
  1711. Fri_child_elapsed_abstime Tuint64_t
  1712. Fri_diskio_bytesread Tuint64_t
  1713. Fri_diskio_byteswritten Tuint64_t
  1714. }
  1715. type Trusage_info_v3 = struct {
  1716. Fri_uuid [16]Tuint8_t
  1717. Fri_user_time Tuint64_t
  1718. Fri_system_time Tuint64_t
  1719. Fri_pkg_idle_wkups Tuint64_t
  1720. Fri_interrupt_wkups Tuint64_t
  1721. Fri_pageins Tuint64_t
  1722. Fri_wired_size Tuint64_t
  1723. Fri_resident_size Tuint64_t
  1724. Fri_phys_footprint Tuint64_t
  1725. Fri_proc_start_abstime Tuint64_t
  1726. Fri_proc_exit_abstime Tuint64_t
  1727. Fri_child_user_time Tuint64_t
  1728. Fri_child_system_time Tuint64_t
  1729. Fri_child_pkg_idle_wkups Tuint64_t
  1730. Fri_child_interrupt_wkups Tuint64_t
  1731. Fri_child_pageins Tuint64_t
  1732. Fri_child_elapsed_abstime Tuint64_t
  1733. Fri_diskio_bytesread Tuint64_t
  1734. Fri_diskio_byteswritten Tuint64_t
  1735. Fri_cpu_time_qos_default Tuint64_t
  1736. Fri_cpu_time_qos_maintenance Tuint64_t
  1737. Fri_cpu_time_qos_background Tuint64_t
  1738. Fri_cpu_time_qos_utility Tuint64_t
  1739. Fri_cpu_time_qos_legacy Tuint64_t
  1740. Fri_cpu_time_qos_user_initiated Tuint64_t
  1741. Fri_cpu_time_qos_user_interactive Tuint64_t
  1742. Fri_billed_system_time Tuint64_t
  1743. Fri_serviced_system_time Tuint64_t
  1744. }
  1745. type Trusage_info_v4 = struct {
  1746. Fri_uuid [16]Tuint8_t
  1747. Fri_user_time Tuint64_t
  1748. Fri_system_time Tuint64_t
  1749. Fri_pkg_idle_wkups Tuint64_t
  1750. Fri_interrupt_wkups Tuint64_t
  1751. Fri_pageins Tuint64_t
  1752. Fri_wired_size Tuint64_t
  1753. Fri_resident_size Tuint64_t
  1754. Fri_phys_footprint Tuint64_t
  1755. Fri_proc_start_abstime Tuint64_t
  1756. Fri_proc_exit_abstime Tuint64_t
  1757. Fri_child_user_time Tuint64_t
  1758. Fri_child_system_time Tuint64_t
  1759. Fri_child_pkg_idle_wkups Tuint64_t
  1760. Fri_child_interrupt_wkups Tuint64_t
  1761. Fri_child_pageins Tuint64_t
  1762. Fri_child_elapsed_abstime Tuint64_t
  1763. Fri_diskio_bytesread Tuint64_t
  1764. Fri_diskio_byteswritten Tuint64_t
  1765. Fri_cpu_time_qos_default Tuint64_t
  1766. Fri_cpu_time_qos_maintenance Tuint64_t
  1767. Fri_cpu_time_qos_background Tuint64_t
  1768. Fri_cpu_time_qos_utility Tuint64_t
  1769. Fri_cpu_time_qos_legacy Tuint64_t
  1770. Fri_cpu_time_qos_user_initiated Tuint64_t
  1771. Fri_cpu_time_qos_user_interactive Tuint64_t
  1772. Fri_billed_system_time Tuint64_t
  1773. Fri_serviced_system_time Tuint64_t
  1774. Fri_logical_writes Tuint64_t
  1775. Fri_lifetime_max_phys_footprint Tuint64_t
  1776. Fri_instructions Tuint64_t
  1777. Fri_cycles Tuint64_t
  1778. Fri_billed_energy Tuint64_t
  1779. Fri_serviced_energy Tuint64_t
  1780. Fri_interval_max_phys_footprint Tuint64_t
  1781. Fri_runnable_time Tuint64_t
  1782. }
  1783. type Trusage_info_v5 = struct {
  1784. Fri_uuid [16]Tuint8_t
  1785. Fri_user_time Tuint64_t
  1786. Fri_system_time Tuint64_t
  1787. Fri_pkg_idle_wkups Tuint64_t
  1788. Fri_interrupt_wkups Tuint64_t
  1789. Fri_pageins Tuint64_t
  1790. Fri_wired_size Tuint64_t
  1791. Fri_resident_size Tuint64_t
  1792. Fri_phys_footprint Tuint64_t
  1793. Fri_proc_start_abstime Tuint64_t
  1794. Fri_proc_exit_abstime Tuint64_t
  1795. Fri_child_user_time Tuint64_t
  1796. Fri_child_system_time Tuint64_t
  1797. Fri_child_pkg_idle_wkups Tuint64_t
  1798. Fri_child_interrupt_wkups Tuint64_t
  1799. Fri_child_pageins Tuint64_t
  1800. Fri_child_elapsed_abstime Tuint64_t
  1801. Fri_diskio_bytesread Tuint64_t
  1802. Fri_diskio_byteswritten Tuint64_t
  1803. Fri_cpu_time_qos_default Tuint64_t
  1804. Fri_cpu_time_qos_maintenance Tuint64_t
  1805. Fri_cpu_time_qos_background Tuint64_t
  1806. Fri_cpu_time_qos_utility Tuint64_t
  1807. Fri_cpu_time_qos_legacy Tuint64_t
  1808. Fri_cpu_time_qos_user_initiated Tuint64_t
  1809. Fri_cpu_time_qos_user_interactive Tuint64_t
  1810. Fri_billed_system_time Tuint64_t
  1811. Fri_serviced_system_time Tuint64_t
  1812. Fri_logical_writes Tuint64_t
  1813. Fri_lifetime_max_phys_footprint Tuint64_t
  1814. Fri_instructions Tuint64_t
  1815. Fri_cycles Tuint64_t
  1816. Fri_billed_energy Tuint64_t
  1817. Fri_serviced_energy Tuint64_t
  1818. Fri_interval_max_phys_footprint Tuint64_t
  1819. Fri_runnable_time Tuint64_t
  1820. Fri_flags Tuint64_t
  1821. }
  1822. type Trusage_info_v6 = struct {
  1823. Fri_uuid [16]Tuint8_t
  1824. Fri_user_time Tuint64_t
  1825. Fri_system_time Tuint64_t
  1826. Fri_pkg_idle_wkups Tuint64_t
  1827. Fri_interrupt_wkups Tuint64_t
  1828. Fri_pageins Tuint64_t
  1829. Fri_wired_size Tuint64_t
  1830. Fri_resident_size Tuint64_t
  1831. Fri_phys_footprint Tuint64_t
  1832. Fri_proc_start_abstime Tuint64_t
  1833. Fri_proc_exit_abstime Tuint64_t
  1834. Fri_child_user_time Tuint64_t
  1835. Fri_child_system_time Tuint64_t
  1836. Fri_child_pkg_idle_wkups Tuint64_t
  1837. Fri_child_interrupt_wkups Tuint64_t
  1838. Fri_child_pageins Tuint64_t
  1839. Fri_child_elapsed_abstime Tuint64_t
  1840. Fri_diskio_bytesread Tuint64_t
  1841. Fri_diskio_byteswritten Tuint64_t
  1842. Fri_cpu_time_qos_default Tuint64_t
  1843. Fri_cpu_time_qos_maintenance Tuint64_t
  1844. Fri_cpu_time_qos_background Tuint64_t
  1845. Fri_cpu_time_qos_utility Tuint64_t
  1846. Fri_cpu_time_qos_legacy Tuint64_t
  1847. Fri_cpu_time_qos_user_initiated Tuint64_t
  1848. Fri_cpu_time_qos_user_interactive Tuint64_t
  1849. Fri_billed_system_time Tuint64_t
  1850. Fri_serviced_system_time Tuint64_t
  1851. Fri_logical_writes Tuint64_t
  1852. Fri_lifetime_max_phys_footprint Tuint64_t
  1853. Fri_instructions Tuint64_t
  1854. Fri_cycles Tuint64_t
  1855. Fri_billed_energy Tuint64_t
  1856. Fri_serviced_energy Tuint64_t
  1857. Fri_interval_max_phys_footprint Tuint64_t
  1858. Fri_runnable_time Tuint64_t
  1859. Fri_flags Tuint64_t
  1860. Fri_user_ptime Tuint64_t
  1861. Fri_system_ptime Tuint64_t
  1862. Fri_pinstructions Tuint64_t
  1863. Fri_pcycles Tuint64_t
  1864. Fri_energy_nj Tuint64_t
  1865. Fri_penergy_nj Tuint64_t
  1866. Fri_secure_time_in_system Tuint64_t
  1867. Fri_secure_ptime_in_system Tuint64_t
  1868. Fri_neural_footprint Tuint64_t
  1869. Fri_lifetime_max_neural_footprint Tuint64_t
  1870. Fri_interval_max_neural_footprint Tuint64_t
  1871. Fri_reserved [9]Tuint64_t
  1872. }
  1873. type Trusage_info_current = struct {
  1874. Fri_uuid [16]Tuint8_t
  1875. Fri_user_time Tuint64_t
  1876. Fri_system_time Tuint64_t
  1877. Fri_pkg_idle_wkups Tuint64_t
  1878. Fri_interrupt_wkups Tuint64_t
  1879. Fri_pageins Tuint64_t
  1880. Fri_wired_size Tuint64_t
  1881. Fri_resident_size Tuint64_t
  1882. Fri_phys_footprint Tuint64_t
  1883. Fri_proc_start_abstime Tuint64_t
  1884. Fri_proc_exit_abstime Tuint64_t
  1885. Fri_child_user_time Tuint64_t
  1886. Fri_child_system_time Tuint64_t
  1887. Fri_child_pkg_idle_wkups Tuint64_t
  1888. Fri_child_interrupt_wkups Tuint64_t
  1889. Fri_child_pageins Tuint64_t
  1890. Fri_child_elapsed_abstime Tuint64_t
  1891. Fri_diskio_bytesread Tuint64_t
  1892. Fri_diskio_byteswritten Tuint64_t
  1893. Fri_cpu_time_qos_default Tuint64_t
  1894. Fri_cpu_time_qos_maintenance Tuint64_t
  1895. Fri_cpu_time_qos_background Tuint64_t
  1896. Fri_cpu_time_qos_utility Tuint64_t
  1897. Fri_cpu_time_qos_legacy Tuint64_t
  1898. Fri_cpu_time_qos_user_initiated Tuint64_t
  1899. Fri_cpu_time_qos_user_interactive Tuint64_t
  1900. Fri_billed_system_time Tuint64_t
  1901. Fri_serviced_system_time Tuint64_t
  1902. Fri_logical_writes Tuint64_t
  1903. Fri_lifetime_max_phys_footprint Tuint64_t
  1904. Fri_instructions Tuint64_t
  1905. Fri_cycles Tuint64_t
  1906. Fri_billed_energy Tuint64_t
  1907. Fri_serviced_energy Tuint64_t
  1908. Fri_interval_max_phys_footprint Tuint64_t
  1909. Fri_runnable_time Tuint64_t
  1910. Fri_flags Tuint64_t
  1911. Fri_user_ptime Tuint64_t
  1912. Fri_system_ptime Tuint64_t
  1913. Fri_pinstructions Tuint64_t
  1914. Fri_pcycles Tuint64_t
  1915. Fri_energy_nj Tuint64_t
  1916. Fri_penergy_nj Tuint64_t
  1917. Fri_secure_time_in_system Tuint64_t
  1918. Fri_secure_ptime_in_system Tuint64_t
  1919. Fri_neural_footprint Tuint64_t
  1920. Fri_lifetime_max_neural_footprint Tuint64_t
  1921. Fri_interval_max_neural_footprint Tuint64_t
  1922. Fri_reserved [9]Tuint64_t
  1923. }
  1924. type Trlimit = struct {
  1925. Frlim_cur Trlim_t
  1926. Frlim_max Trlim_t
  1927. }
  1928. type Tproc_rlimit_control_wakeupmon = struct {
  1929. Fwm_flags Tuint32_t
  1930. Fwm_rate Tint32_t
  1931. }
  1932. type Twait = struct {
  1933. Fw_T [0]struct {
  1934. F__ccgo0 uint32
  1935. }
  1936. Fw_S [0]struct {
  1937. F__ccgo0 uint32
  1938. }
  1939. Fw_status int32
  1940. }
  1941. type Tct_rune_t = int32
  1942. type Trune_t = int32
  1943. type Twchar_t = int32
  1944. type Tdiv_t = struct {
  1945. Fquot int32
  1946. Frem int32
  1947. }
  1948. type Tldiv_t = struct {
  1949. Fquot int64
  1950. Frem int64
  1951. }
  1952. type Tlldiv_t = struct {
  1953. Fquot int64
  1954. Frem int64
  1955. }
  1956. type Tmalloc_type_id_t = uint64
  1957. type Tdev_t = int32
  1958. type Tmode_t = uint16 /* getsubopt(3) external variable */
  1959. /* valloc is now declared in _malloc.h */
  1960. /* Poison the following routines if -fshort-wchar is set */
  1961. func XXauDisposeAuth(tls *libc.TLS, auth uintptr) {
  1962. if auth != 0 {
  1963. libc.Xfree(tls, (*TXauth)(unsafe.Pointer(auth)).Faddress)
  1964. libc.Xfree(tls, (*TXauth)(unsafe.Pointer(auth)).Fnumber)
  1965. libc.Xfree(tls, (*TXauth)(unsafe.Pointer(auth)).Fname)
  1966. if (*TXauth)(unsafe.Pointer(auth)).Fdata != 0 {
  1967. libc.X__builtin___memset_chk(tls, (*TXauth)(unsafe.Pointer(auth)).Fdata, 0, uint64((*TXauth)(unsafe.Pointer(auth)).Fdata_length), ^t__predefined_size_t(0))
  1968. libc.Xfree(tls, (*TXauth)(unsafe.Pointer(auth)).Fdata)
  1969. }
  1970. libc.Xfree(tls, auth)
  1971. }
  1972. return
  1973. }
  1974. const m_ACCESSX_MAX_DESCRIPTORS = 100
  1975. const m_ATTRIBUTION_NAME_MAX = 255
  1976. const m_AT_EACCESS = 0x0010
  1977. const m_AT_FDONLY = 0x0400
  1978. const m_AT_REALDEV = 0x0200
  1979. const m_AT_REMOVEDIR = 0x0080
  1980. const m_AT_SYMLINK_FOLLOW = 0x0040
  1981. const m_AT_SYMLINK_NOFOLLOW = 0x0020
  1982. const m_AT_SYMLINK_NOFOLLOW_ANY = 0x0800
  1983. const m_BC_BASE_MAX = 99
  1984. const m_BC_DIM_MAX = 2048
  1985. const m_BC_SCALE_MAX = 99
  1986. const m_BC_STRING_MAX = 1000
  1987. const m_CHARCLASS_NAME_MAX = 14
  1988. const m_CHILD_MAX = 266
  1989. const m_CLOCK_MONOTONIC = "_CLOCK_MONOTONIC"
  1990. const m_CLOCK_MONOTONIC_RAW = "_CLOCK_MONOTONIC_RAW"
  1991. const m_CLOCK_MONOTONIC_RAW_APPROX = "_CLOCK_MONOTONIC_RAW_APPROX"
  1992. const m_CLOCK_PROCESS_CPUTIME_ID = "_CLOCK_PROCESS_CPUTIME_ID"
  1993. const m_CLOCK_REALTIME = "_CLOCK_REALTIME"
  1994. const m_CLOCK_THREAD_CPUTIME_ID = "_CLOCK_THREAD_CPUTIME_ID"
  1995. const m_CLOCK_UPTIME_RAW = "_CLOCK_UPTIME_RAW"
  1996. const m_CLOCK_UPTIME_RAW_APPROX = "_CLOCK_UPTIME_RAW_APPROX"
  1997. const m_COLL_WEIGHTS_MAX = 2
  1998. const m_CPF_IGNORE_MODE = 0x0002
  1999. const m_CPF_OVERWRITE = 0x0001
  2000. const m_DST_AUST = 2
  2001. const m_DST_CAN = 6
  2002. const m_DST_EET = 5
  2003. const m_DST_MET = 4
  2004. const m_DST_NONE = 0
  2005. const m_DST_USA = 1
  2006. const m_DST_WET = 3
  2007. const m_EQUIV_CLASS_MAX = 2
  2008. const m_EXPR_NEST_MAX = 32
  2009. const m_FAPPEND = "O_APPEND"
  2010. const m_FASYNC = "O_ASYNC"
  2011. const m_FCNTL_FS_SPECIFIC_BASE = 0x00010000
  2012. const m_FD_CLOEXEC = 1
  2013. const m_FD_SETSIZE = "__DARWIN_FD_SETSIZE"
  2014. const m_FFDSYNC = "O_DSYNC"
  2015. const m_FFSYNC = "O_FSYNC"
  2016. const m_FILESEC_GUID = "FILESEC_UUID"
  2017. const m_FNDELAY = "O_NONBLOCK"
  2018. const m_FNONBLOCK = "O_NONBLOCK"
  2019. const m_FREAD = 0x00000001
  2020. const m_FWRITE = 0x00000002
  2021. const m_F_ADDFILESIGS = 61
  2022. const m_F_ADDFILESIGS_FOR_DYLD_SIM = 83
  2023. const m_F_ADDFILESIGS_INFO = 103
  2024. const m_F_ADDFILESIGS_RETURN = 97
  2025. const m_F_ADDFILESUPPL = 104
  2026. const m_F_ADDSIGS = 59
  2027. const m_F_ADDSIGS_MAIN_BINARY = 113
  2028. const m_F_ALLOCATEALL = 0x00000004
  2029. const m_F_ALLOCATECONTIG = 0x00000002
  2030. const m_F_ALLOCATEPERSIST = 0x00000008
  2031. const m_F_ATTRIBUTION_TAG = 111
  2032. const m_F_BARRIERFSYNC = 85
  2033. const m_F_CHECK_LV = 98
  2034. const m_F_CHKCLEAN = 41
  2035. const m_F_CREATE_TAG = 0x00000001
  2036. const m_F_DELETE_TAG = 0x00000002
  2037. const m_F_DUPFD = 0
  2038. const m_F_DUPFD_CLOEXEC = 67
  2039. const m_F_FINDSIGS = 78
  2040. const m_F_FLUSH_DATA = 40
  2041. const m_F_FREEZE_FS = 53
  2042. const m_F_FULLFSYNC = 51
  2043. const m_F_GETCODEDIR = 72
  2044. const m_F_GETFD = 1
  2045. const m_F_GETFL = 3
  2046. const m_F_GETLEASE = 107
  2047. const m_F_GETLK = 7
  2048. const m_F_GETLKPID = 66
  2049. const m_F_GETNOSIGPIPE = 74
  2050. const m_F_GETOWN = 5
  2051. const m_F_GETPATH = 50
  2052. const m_F_GETPATH_MTMINFO = 71
  2053. const m_F_GETPATH_NOFIRMLINK = 102
  2054. const m_F_GETPROTECTIONCLASS = 63
  2055. const m_F_GETPROTECTIONLEVEL = 77
  2056. const m_F_GETSIGSINFO = 105
  2057. const m_F_GLOBAL_NOCACHE = 55
  2058. const m_F_LOCK = 1
  2059. const m_F_LOG2PHYS = 49
  2060. const m_F_LOG2PHYS_EXT = 65
  2061. const m_F_NOCACHE = 48
  2062. const m_F_NODIRECT = 62
  2063. const m_F_OFD_GETLK = 92
  2064. const m_F_OFD_SETLK = 90
  2065. const m_F_OFD_SETLKW = 91
  2066. const m_F_OFD_SETLKWTIMEOUT = 93
  2067. const m_F_OK = 0
  2068. const m_F_PATHPKG_CHECK = 52
  2069. const m_F_PEOFPOSMODE = 3
  2070. const m_F_PREALLOCATE = 42
  2071. const m_F_PUNCHHOLE = 99
  2072. const m_F_QUERY_TAG = 0x00000004
  2073. const m_F_RDADVISE = 44
  2074. const m_F_RDAHEAD = 45
  2075. const m_F_RDLCK = 1
  2076. const m_F_SETBACKINGSTORE = 70
  2077. const m_F_SETFD = 2
  2078. const m_F_SETFL = 4
  2079. const m_F_SETLEASE = 106
  2080. const m_F_SETLK = 8
  2081. const m_F_SETLKW = 9
  2082. const m_F_SETLKWTIMEOUT = 10
  2083. const m_F_SETNOSIGPIPE = 73
  2084. const m_F_SETOWN = 6
  2085. const m_F_SETPROTECTIONCLASS = 64
  2086. const m_F_SETSIZE = 43
  2087. const m_F_SINGLE_WRITER = 76
  2088. const m_F_SPECULATIVE_READ = 101
  2089. const m_F_TEST = 3
  2090. const m_F_THAW_FS = 54
  2091. const m_F_TLOCK = 2
  2092. const m_F_TRANSCODEKEY = 75
  2093. const m_F_TRANSFEREXTENTS = 110
  2094. const m_F_TRIM_ACTIVE_FILE = 100
  2095. const m_F_ULOCK = 0
  2096. const m_F_UNLCK = 2
  2097. const m_F_VOLPOSMODE = 4
  2098. const m_F_WRLCK = 3
  2099. const m_GETSIGSINFO_PLATFORM_BINARY = 1
  2100. const m_GID_MAX = 2147483647
  2101. const m_ITIMER_PROF = 2
  2102. const m_ITIMER_REAL = 0
  2103. const m_ITIMER_VIRTUAL = 1
  2104. const m_LINE_MAX = 2048
  2105. const m_LINK_MAX = 32767
  2106. const m_LOCK_EX = 0x02
  2107. const m_LOCK_NB = 0x04
  2108. const m_LOCK_SH = 0x01
  2109. const m_LOCK_UN = 0x08
  2110. const m_L_INCR = "SEEK_CUR"
  2111. const m_L_SET = "SEEK_SET"
  2112. const m_L_XTND = "SEEK_END"
  2113. const m_MAX_CANON = 1024
  2114. const m_MAX_INPUT = 1024
  2115. const m_NAME_MAX = 255
  2116. const m_NBBY = "__DARWIN_NBBY"
  2117. const m_NFDBITS = "__DARWIN_NFDBITS"
  2118. const m_NGROUPS_MAX = 16
  2119. const m_NZERO = 20
  2120. const m_OPEN_MAX = 10240
  2121. const m_O_ACCMODE = 0x0003
  2122. const m_O_ALERT = 0x20000000
  2123. const m_O_APPEND = 0x00000008
  2124. const m_O_ASYNC = 0x00000040
  2125. const m_O_CLOEXEC = 0x01000000
  2126. const m_O_CREAT = 0x00000200
  2127. const m_O_DIRECTORY = 0x00100000
  2128. const m_O_DP_AUTHENTICATE = 0x0004
  2129. const m_O_DP_GETRAWENCRYPTED = 0x0001
  2130. const m_O_DP_GETRAWUNENCRYPTED = 0x0002
  2131. const m_O_DSYNC = 0x400000
  2132. const m_O_EVTONLY = 0x00008000
  2133. const m_O_EXCL = 0x00000800
  2134. const m_O_EXEC = 0x40000000
  2135. const m_O_EXLOCK = 0x00000020
  2136. const m_O_FSYNC = "O_SYNC"
  2137. const m_O_NDELAY = "O_NONBLOCK"
  2138. const m_O_NOCTTY = 0x00020000
  2139. const m_O_NOFOLLOW = 0x00000100
  2140. const m_O_NOFOLLOW_ANY = 0x20000000
  2141. const m_O_NONBLOCK = 0x00000004
  2142. const m_O_POPUP = 0x80000000
  2143. const m_O_RDONLY = 0x0000
  2144. const m_O_RDWR = 0x0002
  2145. const m_O_RESOLVE_BENEATH = 0x00001000
  2146. const m_O_SHLOCK = 0x00000010
  2147. const m_O_SYMLINK = 0x00200000
  2148. const m_O_SYNC = 0x0080
  2149. const m_O_TRUNC = 0x00000400
  2150. const m_O_WRONLY = 0x0001
  2151. const m_PATH_MAX = 1024
  2152. const m_PIPE_BUF = 512
  2153. const m_RE_DUP_MAX = 255
  2154. const m_STDERR_FILENO = 2
  2155. const m_STDIN_FILENO = 0
  2156. const m_STDOUT_FILENO = 1
  2157. const m_SYNC_VOLUME_FULLSYNC = 0x01
  2158. const m_SYNC_VOLUME_WAIT = 0x02
  2159. const m_S_IEXEC = "S_IXUSR"
  2160. const m_S_IFBLK = 0060000
  2161. const m_S_IFCHR = 0020000
  2162. const m_S_IFDIR = 0040000
  2163. const m_S_IFIFO = 0010000
  2164. const m_S_IFLNK = 0120000
  2165. const m_S_IFMT = 0170000
  2166. const m_S_IFREG = 0100000
  2167. const m_S_IFSOCK = 0140000
  2168. const m_S_IFWHT = 0160000
  2169. const m_S_IREAD = "S_IRUSR"
  2170. const m_S_IRGRP = 0000040
  2171. const m_S_IROTH = 0000004
  2172. const m_S_IRUSR = 0000400
  2173. const m_S_IRWXG = 0000070
  2174. const m_S_IRWXO = 0000007
  2175. const m_S_IRWXU = 0000700
  2176. const m_S_ISGID = 0002000
  2177. const m_S_ISTXT = "S_ISVTX"
  2178. const m_S_ISUID = 0004000
  2179. const m_S_ISVTX = 0001000
  2180. const m_S_IWGRP = 0000020
  2181. const m_S_IWOTH = 0000002
  2182. const m_S_IWRITE = "S_IWUSR"
  2183. const m_S_IWUSR = 0000200
  2184. const m_S_IXGRP = 0000010
  2185. const m_S_IXOTH = 0000001
  2186. const m_S_IXUSR = 0000100
  2187. const m_TIME_UTC = 1
  2188. const m_UID_MAX = 2147483647
  2189. const m_USER_FSIGNATURES_CDHASH_LEN = 20
  2190. const m_X_BIG_ENDIAN = "BIG_ENDIAN"
  2191. const m_X_BYTE_ORDER = "BYTE_ORDER"
  2192. const m_X_LITTLE_ENDIAN = "LITTLE_ENDIAN"
  2193. const m__CS_DARWIN_USER_CACHE_DIR = 65538
  2194. const m__CS_DARWIN_USER_DIR = 65536
  2195. const m__CS_DARWIN_USER_TEMP_DIR = 65537
  2196. const m__CS_PATH = 1
  2197. const m__CS_POSIX_V6_ILP32_OFF32_CFLAGS = 2
  2198. const m__CS_POSIX_V6_ILP32_OFF32_LDFLAGS = 3
  2199. const m__CS_POSIX_V6_ILP32_OFF32_LIBS = 4
  2200. const m__CS_POSIX_V6_ILP32_OFFBIG_CFLAGS = 5
  2201. const m__CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS = 6
  2202. const m__CS_POSIX_V6_ILP32_OFFBIG_LIBS = 7
  2203. const m__CS_POSIX_V6_LP64_OFF64_CFLAGS = 8
  2204. const m__CS_POSIX_V6_LP64_OFF64_LDFLAGS = 9
  2205. const m__CS_POSIX_V6_LP64_OFF64_LIBS = 10
  2206. const m__CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS = 11
  2207. const m__CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS = 12
  2208. const m__CS_POSIX_V6_LPBIG_OFFBIG_LIBS = 13
  2209. const m__CS_POSIX_V6_WIDTH_RESTRICTED_ENVS = 14
  2210. const m__CS_XBS5_ILP32_OFF32_CFLAGS = 20
  2211. const m__CS_XBS5_ILP32_OFF32_LDFLAGS = 21
  2212. const m__CS_XBS5_ILP32_OFF32_LIBS = 22
  2213. const m__CS_XBS5_ILP32_OFF32_LINTFLAGS = 23
  2214. const m__CS_XBS5_ILP32_OFFBIG_CFLAGS = 24
  2215. const m__CS_XBS5_ILP32_OFFBIG_LDFLAGS = 25
  2216. const m__CS_XBS5_ILP32_OFFBIG_LIBS = 26
  2217. const m__CS_XBS5_ILP32_OFFBIG_LINTFLAGS = 27
  2218. const m__CS_XBS5_LP64_OFF64_CFLAGS = 28
  2219. const m__CS_XBS5_LP64_OFF64_LDFLAGS = 29
  2220. const m__CS_XBS5_LP64_OFF64_LIBS = 30
  2221. const m__CS_XBS5_LP64_OFF64_LINTFLAGS = 31
  2222. const m__CS_XBS5_LPBIG_OFFBIG_CFLAGS = 32
  2223. const m__CS_XBS5_LPBIG_OFFBIG_LDFLAGS = 33
  2224. const m__CS_XBS5_LPBIG_OFFBIG_LIBS = 34
  2225. const m__CS_XBS5_LPBIG_OFFBIG_LINTFLAGS = 35
  2226. const m__PC_2_SYMLINKS = 15
  2227. const m__PC_ALLOC_SIZE_MIN = 16
  2228. const m__PC_ASYNC_IO = 17
  2229. const m__PC_AUTH_OPAQUE_NP = 14
  2230. const m__PC_CASE_PRESERVING = 12
  2231. const m__PC_CASE_SENSITIVE = 11
  2232. const m__PC_CHOWN_RESTRICTED = 7
  2233. const m__PC_EXTENDED_SECURITY_NP = 13
  2234. const m__PC_FILESIZEBITS = 18
  2235. const m__PC_LINK_MAX = 1
  2236. const m__PC_MAX_CANON = 2
  2237. const m__PC_MAX_INPUT = 3
  2238. const m__PC_MIN_HOLE_SIZE = 27
  2239. const m__PC_NAME_CHARS_MAX = 10
  2240. const m__PC_NAME_MAX = 4
  2241. const m__PC_NO_TRUNC = 8
  2242. const m__PC_PATH_MAX = 5
  2243. const m__PC_PIPE_BUF = 6
  2244. const m__PC_PRIO_IO = 19
  2245. const m__PC_REC_INCR_XFER_SIZE = 20
  2246. const m__PC_REC_MAX_XFER_SIZE = 21
  2247. const m__PC_REC_MIN_XFER_SIZE = 22
  2248. const m__PC_REC_XFER_ALIGN = 23
  2249. const m__PC_SYMLINK_MAX = 24
  2250. const m__PC_SYNC_IO = 25
  2251. const m__PC_VDISABLE = 9
  2252. const m__PC_XATTR_SIZE_BITS = 26
  2253. const m__POSIX2_CHAR_TERM = 200112
  2254. const m__POSIX2_C_BIND = 200112
  2255. const m__POSIX2_C_DEV = 200112
  2256. const m__POSIX2_FORT_RUN = 200112
  2257. const m__POSIX2_LOCALEDEF = 200112
  2258. const m__POSIX2_SW_DEV = 200112
  2259. const m__POSIX2_UPE = 200112
  2260. const m__POSIX2_VERSION = 200112
  2261. const m__POSIX_CHOWN_RESTRICTED = 200112
  2262. const m__POSIX_FSYNC = 200112
  2263. const m__POSIX_IPV6 = 200112
  2264. const m__POSIX_JOB_CONTROL = 200112
  2265. const m__POSIX_MAPPED_FILES = 200112
  2266. const m__POSIX_MEMORY_PROTECTION = 200112
  2267. const m__POSIX_NO_TRUNC = 200112
  2268. const m__POSIX_READER_WRITER_LOCKS = 200112
  2269. const m__POSIX_REGEXP = 200112
  2270. const m__POSIX_SAVED_IDS = 200112
  2271. const m__POSIX_SHELL = 200112
  2272. const m__POSIX_SPAWN = 200112
  2273. const m__POSIX_THREADS = 200112
  2274. const m__POSIX_THREAD_ATTR_STACKADDR = 200112
  2275. const m__POSIX_THREAD_ATTR_STACKSIZE = 200112
  2276. const m__POSIX_THREAD_KEYS_MAX = 128
  2277. const m__POSIX_THREAD_PROCESS_SHARED = 200112
  2278. const m__POSIX_THREAD_SAFE_FUNCTIONS = 200112
  2279. const m__POSIX_V6_ILP32_OFF32 = "__ILP32_OFF32"
  2280. const m__POSIX_V6_ILP32_OFFBIG = "__ILP32_OFFBIG"
  2281. const m__POSIX_V6_LP64_OFF64 = "__LP64_OFF64"
  2282. const m__POSIX_V6_LPBIG_OFFBIG = "__LPBIG_OFFBIG"
  2283. const m__POSIX_V7_ILP32_OFF32 = "__ILP32_OFF32"
  2284. const m__POSIX_V7_ILP32_OFFBIG = "__ILP32_OFFBIG"
  2285. const m__POSIX_V7_LP64_OFF64 = "__LP64_OFF64"
  2286. const m__POSIX_V7_LPBIG_OFFBIG = "__LPBIG_OFFBIG"
  2287. const m__POSIX_VERSION = 200112
  2288. const m__SC_2_CHAR_TERM = 20
  2289. const m__SC_2_C_BIND = 18
  2290. const m__SC_2_C_DEV = 19
  2291. const m__SC_2_FORT_DEV = 21
  2292. const m__SC_2_FORT_RUN = 22
  2293. const m__SC_2_LOCALEDEF = 23
  2294. const m__SC_2_PBS = 59
  2295. const m__SC_2_PBS_ACCOUNTING = 60
  2296. const m__SC_2_PBS_CHECKPOINT = 61
  2297. const m__SC_2_PBS_LOCATE = 62
  2298. const m__SC_2_PBS_MESSAGE = 63
  2299. const m__SC_2_PBS_TRACK = 64
  2300. const m__SC_2_SW_DEV = 24
  2301. const m__SC_2_UPE = 25
  2302. const m__SC_2_VERSION = 17
  2303. const m__SC_ADVISORY_INFO = 65
  2304. const m__SC_AIO_LISTIO_MAX = 42
  2305. const m__SC_AIO_MAX = 43
  2306. const m__SC_AIO_PRIO_DELTA_MAX = 44
  2307. const m__SC_ARG_MAX = 1
  2308. const m__SC_ASYNCHRONOUS_IO = 28
  2309. const m__SC_ATEXIT_MAX = 107
  2310. const m__SC_BARRIERS = 66
  2311. const m__SC_BC_BASE_MAX = 9
  2312. const m__SC_BC_DIM_MAX = 10
  2313. const m__SC_BC_SCALE_MAX = 11
  2314. const m__SC_BC_STRING_MAX = 12
  2315. const m__SC_CHILD_MAX = 2
  2316. const m__SC_CLK_TCK = 3
  2317. const m__SC_CLOCK_SELECTION = 67
  2318. const m__SC_COLL_WEIGHTS_MAX = 13
  2319. const m__SC_CPUTIME = 68
  2320. const m__SC_DELAYTIMER_MAX = 45
  2321. const m__SC_EXPR_NEST_MAX = 14
  2322. const m__SC_FILE_LOCKING = 69
  2323. const m__SC_FSYNC = 38
  2324. const m__SC_GETGR_R_SIZE_MAX = 70
  2325. const m__SC_GETPW_R_SIZE_MAX = 71
  2326. const m__SC_HOST_NAME_MAX = 72
  2327. const m__SC_IOV_MAX = 56
  2328. const m__SC_IPV6 = 118
  2329. const m__SC_JOB_CONTROL = 6
  2330. const m__SC_LINE_MAX = 15
  2331. const m__SC_LOGIN_NAME_MAX = 73
  2332. const m__SC_MAPPED_FILES = 47
  2333. const m__SC_MEMLOCK = 30
  2334. const m__SC_MEMLOCK_RANGE = 31
  2335. const m__SC_MEMORY_PROTECTION = 32
  2336. const m__SC_MESSAGE_PASSING = 33
  2337. const m__SC_MONOTONIC_CLOCK = 74
  2338. const m__SC_MQ_OPEN_MAX = 46
  2339. const m__SC_MQ_PRIO_MAX = 75
  2340. const m__SC_NGROUPS_MAX = 4
  2341. const m__SC_NPROCESSORS_CONF = 57
  2342. const m__SC_NPROCESSORS_ONLN = 58
  2343. const m__SC_OPEN_MAX = 5
  2344. const m__SC_PAGESIZE = 29
  2345. const m__SC_PAGE_SIZE = "_SC_PAGESIZE"
  2346. const m__SC_PASS_MAX = 131
  2347. const m__SC_PHYS_PAGES = 200
  2348. const m__SC_PRIORITIZED_IO = 34
  2349. const m__SC_PRIORITY_SCHEDULING = 35
  2350. const m__SC_RAW_SOCKETS = 119
  2351. const m__SC_READER_WRITER_LOCKS = 76
  2352. const m__SC_REALTIME_SIGNALS = 36
  2353. const m__SC_REGEXP = 77
  2354. const m__SC_RE_DUP_MAX = 16
  2355. const m__SC_RTSIG_MAX = 48
  2356. const m__SC_SAVED_IDS = 7
  2357. const m__SC_SEMAPHORES = 37
  2358. const m__SC_SEM_NSEMS_MAX = 49
  2359. const m__SC_SEM_VALUE_MAX = 50
  2360. const m__SC_SHARED_MEMORY_OBJECTS = 39
  2361. const m__SC_SHELL = 78
  2362. const m__SC_SIGQUEUE_MAX = 51
  2363. const m__SC_SPAWN = 79
  2364. const m__SC_SPIN_LOCKS = 80
  2365. const m__SC_SPORADIC_SERVER = 81
  2366. const m__SC_SS_REPL_MAX = 126
  2367. const m__SC_STREAM_MAX = 26
  2368. const m__SC_SYMLOOP_MAX = 120
  2369. const m__SC_SYNCHRONIZED_IO = 40
  2370. const m__SC_THREADS = 96
  2371. const m__SC_THREAD_ATTR_STACKADDR = 82
  2372. const m__SC_THREAD_ATTR_STACKSIZE = 83
  2373. const m__SC_THREAD_CPUTIME = 84
  2374. const m__SC_THREAD_DESTRUCTOR_ITERATIONS = 85
  2375. const m__SC_THREAD_KEYS_MAX = 86
  2376. const m__SC_THREAD_PRIORITY_SCHEDULING = 89
  2377. const m__SC_THREAD_PRIO_INHERIT = 87
  2378. const m__SC_THREAD_PRIO_PROTECT = 88
  2379. const m__SC_THREAD_PROCESS_SHARED = 90
  2380. const m__SC_THREAD_SAFE_FUNCTIONS = 91
  2381. const m__SC_THREAD_SPORADIC_SERVER = 92
  2382. const m__SC_THREAD_STACK_MIN = 93
  2383. const m__SC_THREAD_THREADS_MAX = 94
  2384. const m__SC_TIMEOUTS = 95
  2385. const m__SC_TIMERS = 41
  2386. const m__SC_TIMER_MAX = 52
  2387. const m__SC_TRACE = 97
  2388. const m__SC_TRACE_EVENT_FILTER = 98
  2389. const m__SC_TRACE_EVENT_NAME_MAX = 127
  2390. const m__SC_TRACE_INHERIT = 99
  2391. const m__SC_TRACE_LOG = 100
  2392. const m__SC_TRACE_NAME_MAX = 128
  2393. const m__SC_TRACE_SYS_MAX = 129
  2394. const m__SC_TRACE_USER_EVENT_MAX = 130
  2395. const m__SC_TTY_NAME_MAX = 101
  2396. const m__SC_TYPED_MEMORY_OBJECTS = 102
  2397. const m__SC_TZNAME_MAX = 27
  2398. const m__SC_V6_ILP32_OFF32 = 103
  2399. const m__SC_V6_ILP32_OFFBIG = 104
  2400. const m__SC_V6_LP64_OFF64 = 105
  2401. const m__SC_V6_LPBIG_OFFBIG = 106
  2402. const m__SC_VERSION = 8
  2403. const m__SC_XBS5_ILP32_OFF32 = 122
  2404. const m__SC_XBS5_ILP32_OFFBIG = 123
  2405. const m__SC_XBS5_LP64_OFF64 = 124
  2406. const m__SC_XBS5_LPBIG_OFFBIG = 125
  2407. const m__SC_XOPEN_CRYPT = 108
  2408. const m__SC_XOPEN_ENH_I18N = 109
  2409. const m__SC_XOPEN_LEGACY = 110
  2410. const m__SC_XOPEN_REALTIME = 111
  2411. const m__SC_XOPEN_REALTIME_THREADS = 112
  2412. const m__SC_XOPEN_SHM = 113
  2413. const m__SC_XOPEN_STREAMS = 114
  2414. const m__SC_XOPEN_UNIX = 115
  2415. const m__SC_XOPEN_VERSION = 116
  2416. const m__SC_XOPEN_XCU_VERSION = 121
  2417. const m__V6_ILP32_OFF32 = "__ILP32_OFF32"
  2418. const m__V6_ILP32_OFFBIG = "__ILP32_OFFBIG"
  2419. const m__V6_LP64_OFF64 = "__LP64_OFF64"
  2420. const m__V6_LPBIG_OFFBIG = "__LPBIG_OFFBIG"
  2421. const m__XBS5_ILP32_OFF32 = "__ILP32_OFF32"
  2422. const m__XBS5_ILP32_OFFBIG = "__ILP32_OFFBIG"
  2423. const m__XBS5_LP64_OFF64 = "__LP64_OFF64"
  2424. const m__XBS5_LPBIG_OFFBIG = "__LPBIG_OFFBIG"
  2425. const m__XOPEN_CRYPT = 1
  2426. const m__XOPEN_ENH_I18N = 1
  2427. const m__XOPEN_SHM = 1
  2428. const m__XOPEN_UNIX = 1
  2429. const m__XOPEN_VERSION = 600
  2430. const m__XOPEN_XCU_VERSION = 4
  2431. const m___DARWIN_FD_SETSIZE = 1024
  2432. const m___DARWIN_NBBY = 8
  2433. const m___LP64_OFF64 = 1
  2434. const m___LPBIG_OFFBIG = 1
  2435. const m_static_assert = "_Static_assert"
  2436. type Tu_char = uint8
  2437. type Tu_short = uint16
  2438. type Tu_int = uint32
  2439. type Tu_long = uint64
  2440. type Tushort = uint16
  2441. type Tuint = uint32
  2442. type Tu_quad_t = uint64
  2443. type Tquad_t = int64
  2444. type Tqaddr_t = uintptr
  2445. type Tcaddr_t = uintptr
  2446. type Tdaddr_t = int32
  2447. type Tfixpt_t = uint32
  2448. type Tblkcnt_t = int64
  2449. type Tblksize_t = int32
  2450. type Tgid_t = uint32
  2451. type Tin_addr_t = uint32
  2452. type Tin_port_t = uint16
  2453. type Tino_t = uint64
  2454. type Tino64_t = uint64
  2455. type Tkey_t = int32
  2456. type Tnlink_t = uint16
  2457. type Tsegsz_t = int32
  2458. type Tswblk_t = int32
  2459. type Tclock_t = uint64
  2460. type Ttime_t = int64
  2461. type Tuseconds_t = uint32
  2462. type Tsuseconds_t = int32
  2463. type Tfd_set = struct {
  2464. Ffds_bits [32]t__int32_t
  2465. }
  2466. type Tfd_mask = int32
  2467. type Tpthread_cond_t = struct {
  2468. F__sig int64
  2469. F__opaque [40]int8
  2470. }
  2471. type Tpthread_condattr_t = struct {
  2472. F__sig int64
  2473. F__opaque [8]int8
  2474. }
  2475. type Tpthread_mutex_t = struct {
  2476. F__sig int64
  2477. F__opaque [56]int8
  2478. }
  2479. type Tpthread_mutexattr_t = struct {
  2480. F__sig int64
  2481. F__opaque [8]int8
  2482. }
  2483. type Tpthread_once_t = struct {
  2484. F__sig int64
  2485. F__opaque [8]int8
  2486. }
  2487. type Tpthread_rwlock_t = struct {
  2488. F__sig int64
  2489. F__opaque [192]int8
  2490. }
  2491. type Tpthread_rwlockattr_t = struct {
  2492. F__sig int64
  2493. F__opaque [16]int8
  2494. }
  2495. type Tpthread_t = uintptr
  2496. type Tpthread_key_t = uint64
  2497. type Tfsblkcnt_t = uint32
  2498. type Tfsfilcnt_t = uint32
  2499. type Tflock = struct {
  2500. Fl_start Toff_t
  2501. Fl_len Toff_t
  2502. Fl_pid Tpid_t
  2503. Fl_type int16
  2504. Fl_whence int16
  2505. }
  2506. type Ttimespec = struct {
  2507. Ftv_sec t__darwin_time_t
  2508. Ftv_nsec int64
  2509. }
  2510. type Tflocktimeout = struct {
  2511. Ffl Tflock
  2512. Ftimeout Ttimespec
  2513. }
  2514. type Tradvisory = struct {
  2515. Fra_offset Toff_t
  2516. Fra_count int32
  2517. }
  2518. type Tfsignatures_t = struct {
  2519. Ffs_file_start Toff_t
  2520. Ffs_blob_start uintptr
  2521. Ffs_blob_size Tsize_t
  2522. Ffs_fsignatures_size Tsize_t
  2523. Ffs_cdhash [20]int8
  2524. Ffs_hash_type int32
  2525. }
  2526. type Tfsignatures = Tfsignatures_t
  2527. type Tfsupplement_t = struct {
  2528. Ffs_file_start Toff_t
  2529. Ffs_blob_start Toff_t
  2530. Ffs_blob_size Tsize_t
  2531. Ffs_orig_fd int32
  2532. }
  2533. type Tfsupplement = Tfsupplement_t
  2534. type Tfchecklv_t = struct {
  2535. Flv_file_start Toff_t
  2536. Flv_error_message_size Tsize_t
  2537. Flv_error_message uintptr
  2538. }
  2539. type Tfchecklv = Tfchecklv_t
  2540. type Tfgetsigsinfo_t = struct {
  2541. Ffg_file_start Toff_t
  2542. Ffg_info_request int32
  2543. Ffg_sig_is_platform int32
  2544. }
  2545. type Tfgetsigsinfo = Tfgetsigsinfo_t
  2546. type Tfstore_t = struct {
  2547. Ffst_flags uint32
  2548. Ffst_posmode int32
  2549. Ffst_offset Toff_t
  2550. Ffst_length Toff_t
  2551. Ffst_bytesalloc Toff_t
  2552. }
  2553. type Tfstore = Tfstore_t
  2554. type Tfpunchhole_t = struct {
  2555. Ffp_flags uint32
  2556. Freserved uint32
  2557. Ffp_offset Toff_t
  2558. Ffp_length Toff_t
  2559. }
  2560. type Tfpunchhole = Tfpunchhole_t
  2561. type Tftrimactivefile_t = struct {
  2562. Ffta_offset Toff_t
  2563. Ffta_length Toff_t
  2564. }
  2565. type Tftrimactivefile = Tftrimactivefile_t
  2566. type Tfspecread_t = struct {
  2567. Ffsr_flags uint32
  2568. Freserved uint32
  2569. Ffsr_offset Toff_t
  2570. Ffsr_length Toff_t
  2571. }
  2572. type Tfspecread = Tfspecread_t
  2573. type Tfattributiontag_t = struct {
  2574. Fft_flags uint32
  2575. Fft_hash uint64
  2576. Fft_attribution_name [255]int8
  2577. }
  2578. type Tfattributiontag = Tfattributiontag_t
  2579. type Tlog2phys = struct {
  2580. Fl2p_flags uint32
  2581. Fl2p_contigbytes Toff_t
  2582. Fl2p_devoffset Toff_t
  2583. }
  2584. type Tfilesec_t = uintptr
  2585. type Tfilesec_property_t = int32
  2586. const _FILESEC_OWNER = 1
  2587. const _FILESEC_GROUP = 2
  2588. const _FILESEC_UUID = 3
  2589. const _FILESEC_MODE = 4
  2590. const _FILESEC_ACL = 5
  2591. const _FILESEC_GRPUUID = 6
  2592. const _FILESEC_ACL_RAW = 100
  2593. const _FILESEC_ACL_ALLOCSIZE = 101
  2594. type Taccessx_descriptor = struct {
  2595. Fad_name_offset uint32
  2596. Fad_flags int32
  2597. Fad_pad [2]int32
  2598. }
  2599. type Tuuid_t = [16]uint8
  2600. type Ttimeval64 = struct {
  2601. Ftv_sec t__int64_t
  2602. Ftv_usec t__int64_t
  2603. }
  2604. type Titimerval = struct {
  2605. Fit_interval Ttimeval
  2606. Fit_value Ttimeval
  2607. }
  2608. type Ttimezone = struct {
  2609. Ftz_minuteswest int32
  2610. Ftz_dsttime int32
  2611. }
  2612. type Tclockinfo = struct {
  2613. Fhz int32
  2614. Ftick int32
  2615. Ftickadj int32
  2616. Fstathz int32
  2617. Fprofhz int32
  2618. }
  2619. type Ttm = struct {
  2620. Ftm_sec int32
  2621. Ftm_min int32
  2622. Ftm_hour int32
  2623. Ftm_mday int32
  2624. Ftm_mon int32
  2625. Ftm_year int32
  2626. Ftm_wday int32
  2627. Ftm_yday int32
  2628. Ftm_isdst int32
  2629. Ftm_gmtoff int64
  2630. Ftm_zone uintptr
  2631. } //TODO "timezone" // _time.h:106:13:
  2632. type Tclockid_t = int32
  2633. const __CLOCK_REALTIME = 0
  2634. const __CLOCK_MONOTONIC = 6
  2635. const __CLOCK_MONOTONIC_RAW = 4
  2636. const __CLOCK_MONOTONIC_RAW_APPROX = 5
  2637. const __CLOCK_UPTIME_RAW = 8
  2638. const __CLOCK_UPTIME_RAW_APPROX = 9
  2639. const __CLOCK_PROCESS_CPUTIME_ID = 12
  2640. const __CLOCK_THREAD_CPUTIME_ID = 16 /* getsubopt(3) external variable */
  2641. /* valloc is now declared in _malloc.h */
  2642. /* Poison the following routines if -fshort-wchar is set */
  2643. var _buf = libc.UintptrFromInt32(0)
  2644. func _free_filename_buffer(tls *libc.TLS) {
  2645. libc.Xfree(tls, _buf)
  2646. _buf = libc.UintptrFromInt32(0)
  2647. }
  2648. func XXauFileName(tls *libc.TLS) (r uintptr) {
  2649. bp := tls.Alloc(32)
  2650. defer tls.Free(32)
  2651. var name, slashDotXauthority, v1 uintptr
  2652. var size Tsize_t
  2653. var v2 int32
  2654. _, _, _, _, _ = name, size, slashDotXauthority, v1, v2
  2655. slashDotXauthority = __ccgo_ts
  2656. v1 = libc.Xgetenv(tls, __ccgo_ts+13)
  2657. name = v1
  2658. if v1 != 0 {
  2659. return name
  2660. }
  2661. name = libc.Xgetenv(tls, __ccgo_ts+24)
  2662. if !(name != 0) {
  2663. return libc.UintptrFromInt32(0)
  2664. }
  2665. size = libc.Xstrlen(tls, name) + libc.Xstrlen(tls, slashDotXauthority+1) + uint64(2)
  2666. if size > _bsize || _buf == libc.UintptrFromInt32(0) {
  2667. libc.Xfree(tls, _buf)
  2668. _buf = libc.Xmalloc(tls, size)
  2669. if !(_buf != 0) {
  2670. _bsize = uint64(0)
  2671. return libc.UintptrFromInt32(0)
  2672. }
  2673. if !(_atexit_registered != 0) {
  2674. libc.Xatexit(tls, __ccgo_fp(_free_filename_buffer))
  2675. _atexit_registered = int32(1)
  2676. }
  2677. _bsize = size
  2678. }
  2679. if int32(*(*int8)(unsafe.Pointer(name))) == int32('/') && int32(*(*int8)(unsafe.Pointer(name + 1))) == int32('\000') {
  2680. v2 = int32(1)
  2681. } else {
  2682. v2 = 0
  2683. }
  2684. libc.X__builtin___snprintf_chk(tls, _buf, _bsize, 0, ^t__predefined_size_t(0), __ccgo_ts+29, libc.VaList(bp+8, name, slashDotXauthority+uintptr(v2)))
  2685. return _buf
  2686. }
  2687. var _bsize Tsize_t
  2688. var _atexit_registered int32
  2689. /*
  2690. * Copyright (c) 2000, 2023 Apple Computer, Inc. All rights reserved.
  2691. *
  2692. * @APPLE_LICENSE_HEADER_START@
  2693. *
  2694. * This file contains Original Code and/or Modifications of Original Code
  2695. * as defined in and that are subject to the Apple Public Source License
  2696. * Version 2.0 (the 'License'). You may not use this file except in
  2697. * compliance with the License. Please obtain a copy of the License at
  2698. * http://www.opensource.apple.com/apsl/ and read it before using this
  2699. * file.
  2700. *
  2701. * The Original Code and all software distributed under the License are
  2702. * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2703. * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2704. * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2705. * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2706. * Please see the License for the specific language governing rights and
  2707. * limitations under the License.
  2708. *
  2709. * @APPLE_LICENSE_HEADER_END@
  2710. */
  2711. /*
  2712. * Copyright (c) 1989, 1993
  2713. * The Regents of the University of California. All rights reserved.
  2714. * (c) UNIX System Laboratories, Inc.
  2715. * All or some portions of this file are derived from material licensed
  2716. * to the University of California by American Telephone and Telegraph
  2717. * Co. or Unix System Laboratories, Inc. and are reproduced herein with
  2718. * the permission of UNIX System Laboratories, Inc.
  2719. *
  2720. * Redistribution and use in source and binary forms, with or without
  2721. * modification, are permitted provided that the following conditions
  2722. * are met:
  2723. * 1. Redistributions of source code must retain the above copyright
  2724. * notice, this list of conditions and the following disclaimer.
  2725. * 2. Redistributions in binary form must reproduce the above copyright
  2726. * notice, this list of conditions and the following disclaimer in the
  2727. * documentation and/or other materials provided with the distribution.
  2728. * 3. All advertising materials mentioning features or use of this software
  2729. * must display the following acknowledgement:
  2730. * This product includes software developed by the University of
  2731. * California, Berkeley and its contributors.
  2732. * 4. Neither the name of the University nor the names of its contributors
  2733. * may be used to endorse or promote products derived from this software
  2734. * without specific prior written permission.
  2735. *
  2736. * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  2737. * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  2738. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  2739. * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  2740. * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  2741. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  2742. * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  2743. * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  2744. * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  2745. * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  2746. * SUCH DAMAGE.
  2747. *
  2748. * @(#)time.h 8.3 (Berkeley) 1/21/94
  2749. */
  2750. /*
  2751. * Copyright (c) 2023 Apple Computer, Inc. All rights reserved.
  2752. *
  2753. * @APPLE_LICENSE_HEADER_START@
  2754. *
  2755. * This file contains Original Code and/or Modifications of Original Code
  2756. * as defined in and that are subject to the Apple Public Source License
  2757. * Version 2.0 (the 'License'). You may not use this file except in
  2758. * compliance with the License. Please obtain a copy of the License at
  2759. * http://www.opensource.apple.com/apsl/ and read it before using this
  2760. * file.
  2761. *
  2762. * The Original Code and all software distributed under the License are
  2763. * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2764. * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2765. * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2766. * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2767. * Please see the License for the specific language governing rights and
  2768. * limitations under the License.
  2769. *
  2770. * @APPLE_LICENSE_HEADER_END@
  2771. */
  2772. /*
  2773. * Copyright (c) 1989, 1993
  2774. * The Regents of the University of California. All rights reserved.
  2775. * (c) UNIX System Laboratories, Inc.
  2776. * All or some portions of this file are derived from material licensed
  2777. * to the University of California by American Telephone and Telegraph
  2778. * Co. or Unix System Laboratories, Inc. and are reproduced herein with
  2779. * the permission of UNIX System Laboratories, Inc.
  2780. *
  2781. * Redistribution and use in source and binary forms, with or without
  2782. * modification, are permitted provided that the following conditions
  2783. * are met:
  2784. * 1. Redistributions of source code must retain the above copyright
  2785. * notice, this list of conditions and the following disclaimer.
  2786. * 2. Redistributions in binary form must reproduce the above copyright
  2787. * notice, this list of conditions and the following disclaimer in the
  2788. * documentation and/or other materials provided with the distribution.
  2789. * 3. All advertising materials mentioning features or use of this software
  2790. * must display the following acknowledgement:
  2791. * This product includes software developed by the University of
  2792. * California, Berkeley and its contributors.
  2793. * 4. Neither the name of the University nor the names of its contributors
  2794. * may be used to endorse or promote products derived from this software
  2795. * without specific prior written permission.
  2796. *
  2797. * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  2798. * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  2799. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  2800. * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  2801. * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  2802. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  2803. * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  2804. * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  2805. * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  2806. * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  2807. * SUCH DAMAGE.
  2808. *
  2809. * @(#)time.h 8.3 (Berkeley) 1/21/94
  2810. */
  2811. /* define X_GETTIMEOFDAY macro, a portable gettimeofday() */
  2812. /* use POSIX name for signal */
  2813. /*
  2814. * Copyright 1997 Metro Link Incorporated
  2815. *
  2816. * All Rights Reserved
  2817. *
  2818. * Permission to use, copy, modify, distribute, and sell this software and its
  2819. * documentation for any purpose is hereby granted without fee, provided that
  2820. * the above copyright notice appear in all copies and that both that
  2821. * copyright notice and this permission notice appear in supporting
  2822. * documentation, and that the names of the above listed copyright holder(s)
  2823. * not be used in advertising or publicity pertaining to distribution of
  2824. * the software without specific, written prior permission. The above listed
  2825. * copyright holder(s) make(s) no representations about the suitability of
  2826. * this software for any purpose. It is provided "as is" without express or
  2827. * implied warranty.
  2828. *
  2829. * THE ABOVE LISTED COPYRIGHT HOLDER(S) DISCLAIM(S) ALL WARRANTIES WITH REGARD
  2830. * TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  2831. * AND FITNESS, IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE
  2832. * LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY
  2833. * DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
  2834. * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
  2835. * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  2836. */
  2837. /*
  2838. * Determine the machine's byte order.
  2839. */
  2840. /* See if it is set in the imake config first */
  2841. /*
  2842. * Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  2843. *
  2844. * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2845. *
  2846. * This file contains Original Code and/or Modifications of Original Code
  2847. * as defined in and that are subject to the Apple Public Source License
  2848. * Version 2.0 (the 'License'). You may not use this file except in
  2849. * compliance with the License. The rights granted to you under the License
  2850. * may not be used to create, or enable the creation or redistribution of,
  2851. * unlawful or unlicensed copies of an Apple operating system, or to
  2852. * circumvent, violate, or enable the circumvention or violation of, any
  2853. * terms of an Apple operating system software license agreement.
  2854. *
  2855. * Please obtain a copy of the License at
  2856. * http://www.opensource.apple.com/apsl/ and read it before using this file.
  2857. *
  2858. * The Original Code and all software distributed under the License are
  2859. * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2860. * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2861. * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2862. * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2863. * Please see the License for the specific language governing rights and
  2864. * limitations under the License.
  2865. *
  2866. * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2867. */
  2868. /*
  2869. * Copyright 1995 NeXT Computer, Inc. All rights reserved.
  2870. */
  2871. func XXauGetAuthByAddr(tls *libc.TLS, family uint32, address_length uint32, address uintptr, number_length uint32, number uintptr, name_length uint32, name uintptr) (r uintptr) {
  2872. var auth_file, auth_name, entry uintptr
  2873. _, _, _ = auth_file, auth_name, entry
  2874. auth_name = XXauFileName(tls)
  2875. if !(auth_name != 0) {
  2876. return libc.UintptrFromInt32(0)
  2877. }
  2878. if libc.Xaccess(tls, auth_name, libc.Int32FromInt32(1)<<libc.Int32FromInt32(2)) != 0 { /* checks REAL id */
  2879. return libc.UintptrFromInt32(0)
  2880. }
  2881. auth_file = libc.Xfopen(tls, auth_name, __ccgo_ts+34)
  2882. if !(auth_file != 0) {
  2883. return libc.UintptrFromInt32(0)
  2884. }
  2885. for {
  2886. entry = XXauReadAuth(tls, auth_file)
  2887. if !(entry != 0) {
  2888. break
  2889. }
  2890. /*
  2891. * Match when:
  2892. * either family or entry->family are FamilyWild or
  2893. * family and entry->family are the same and
  2894. * address and entry->address are the same
  2895. * and
  2896. * either number or entry->number are empty or
  2897. * number and entry->number are the same
  2898. * and
  2899. * either name or entry->name are empty or
  2900. * name and entry->name are the same
  2901. */
  2902. if (family == libc.Uint32FromInt32(libc.Int32FromInt32(m_FamilyWild)) || libc.Int32FromUint16((*TXauth)(unsafe.Pointer(entry)).Ffamily) == int32(m_FamilyWild) || uint32((*TXauth)(unsafe.Pointer(entry)).Ffamily) == family && address_length == uint32((*TXauth)(unsafe.Pointer(entry)).Faddress_length) && libc.Xmemcmp(tls, (*TXauth)(unsafe.Pointer(entry)).Faddress, address, uint64(address_length)) == 0) && (number_length == uint32(0) || libc.Int32FromUint16((*TXauth)(unsafe.Pointer(entry)).Fnumber_length) == 0 || number_length == uint32((*TXauth)(unsafe.Pointer(entry)).Fnumber_length) && libc.Xmemcmp(tls, (*TXauth)(unsafe.Pointer(entry)).Fnumber, number, uint64(number_length)) == 0) && (name_length == uint32(0) || libc.Int32FromUint16((*TXauth)(unsafe.Pointer(entry)).Fname_length) == 0 || uint32((*TXauth)(unsafe.Pointer(entry)).Fname_length) == name_length && libc.Xmemcmp(tls, (*TXauth)(unsafe.Pointer(entry)).Fname, name, uint64(name_length)) == 0) {
  2903. break
  2904. }
  2905. XXauDisposeAuth(tls, entry)
  2906. goto _1
  2907. _1:
  2908. }
  2909. libc.Xfclose(tls, auth_file)
  2910. return entry
  2911. }
  2912. const m_PTHREAD_CANCEL_ASYNCHRONOUS = 0x00
  2913. const m_PTHREAD_CANCEL_DEFERRED = 0x02
  2914. const m_PTHREAD_CANCEL_DISABLE = 0x00
  2915. const m_PTHREAD_CANCEL_ENABLE = 0x01
  2916. const m_PTHREAD_CREATE_DETACHED = 2
  2917. const m_PTHREAD_CREATE_JOINABLE = 1
  2918. const m_PTHREAD_EXPLICIT_SCHED = 2
  2919. const m_PTHREAD_INHERIT_SCHED = 1
  2920. const m_PTHREAD_MUTEX_DEFAULT = "PTHREAD_MUTEX_NORMAL"
  2921. const m_PTHREAD_MUTEX_ERRORCHECK = 1
  2922. const m_PTHREAD_MUTEX_NORMAL = 0
  2923. const m_PTHREAD_MUTEX_POLICY_FAIRSHARE_NP = 1
  2924. const m_PTHREAD_MUTEX_POLICY_FIRSTFIT_NP = 3
  2925. const m_PTHREAD_MUTEX_RECURSIVE = 2
  2926. const m_PTHREAD_PRIO_INHERIT = 1
  2927. const m_PTHREAD_PRIO_NONE = 0
  2928. const m_PTHREAD_PRIO_PROTECT = 2
  2929. const m_PTHREAD_PROCESS_PRIVATE = 2
  2930. const m_PTHREAD_PROCESS_SHARED = 1
  2931. const m_PTHREAD_SCOPE_PROCESS = 2
  2932. const m_PTHREAD_SCOPE_SYSTEM = 1
  2933. const m_SCHED_FIFO = 4
  2934. const m_SCHED_OTHER = 1
  2935. const m_SCHED_RR = 2
  2936. const m_XMUTEX_INITIALIZER = "PTHREAD_MUTEX_INITIALIZER"
  2937. const m__PTHREAD_COND_SIG_init = 0x3CB0B1BB
  2938. const m__PTHREAD_ERRORCHECK_MUTEX_SIG_init = 0x32AAABA1
  2939. const m__PTHREAD_FIRSTFIT_MUTEX_SIG_init = 0x32AAABA3
  2940. const m__PTHREAD_MUTEX_SIG_init = 0x32AAABA7
  2941. const m__PTHREAD_ONCE_SIG_init = 0x30B1BCBA
  2942. const m__PTHREAD_RECURSIVE_MUTEX_SIG_init = 0x32AAABA2
  2943. const m__PTHREAD_RWLOCK_SIG_init = 0x2DA8B3B4
  2944. const m___SCHED_PARAM_SIZE__ = 4
  2945. const m_xfree = "free"
  2946. const m_xmalloc = "malloc"
  2947. const m_xthread_self = "pthread_self"
  2948. type Tsched_param = struct {
  2949. Fsched_priority int32
  2950. F__opaque [4]int8
  2951. }
  2952. const _QOS_CLASS_USER_INTERACTIVE = 33
  2953. const _QOS_CLASS_USER_INITIATED = 25
  2954. const _QOS_CLASS_DEFAULT = 21
  2955. const _QOS_CLASS_UTILITY = 17
  2956. const _QOS_CLASS_BACKGROUND = 9
  2957. const _QOS_CLASS_UNSPECIFIED = 0
  2958. type Tqos_class_t = uint32
  2959. type Tpthread_override_t = uintptr
  2960. type Tmach_port_t = uint32
  2961. type Tpthread_jit_write_callback_t = uintptr
  2962. type Txthread_t = uintptr
  2963. type Txthread_key_t = uint64
  2964. type Txcondition_rec = struct {
  2965. F__sig int64
  2966. F__opaque [40]int8
  2967. }
  2968. type Txmutex_rec = struct {
  2969. F__sig int64
  2970. F__opaque [56]int8
  2971. }
  2972. type Txcondition_t = uintptr
  2973. type Txmutex_t = uintptr
  2974. /* aids understood by some debuggers */
  2975. func XXauGetBestAuthByAddr(tls *libc.TLS, family uint32, address_length uint32, address uintptr, number_length uint32, number uintptr, types_length int32, types uintptr, type_lengths uintptr) (r uintptr) {
  2976. var auth_file, auth_name, best, entry uintptr
  2977. var best_type, type1 int32
  2978. _, _, _, _, _, _ = auth_file, auth_name, best, best_type, entry, type1
  2979. auth_name = XXauFileName(tls)
  2980. if !(auth_name != 0) {
  2981. return libc.UintptrFromInt32(0)
  2982. }
  2983. if libc.Xaccess(tls, auth_name, libc.Int32FromInt32(1)<<libc.Int32FromInt32(2)) != 0 { /* checks REAL id */
  2984. return libc.UintptrFromInt32(0)
  2985. }
  2986. auth_file = libc.Xfopen(tls, auth_name, __ccgo_ts+34)
  2987. if !(auth_file != 0) {
  2988. return libc.UintptrFromInt32(0)
  2989. }
  2990. best = libc.UintptrFromInt32(0)
  2991. best_type = types_length
  2992. for {
  2993. entry = XXauReadAuth(tls, auth_file)
  2994. if !(entry != 0) {
  2995. break
  2996. }
  2997. /*
  2998. * Match when:
  2999. * either family or entry->family are FamilyWild or
  3000. * family and entry->family are the same and
  3001. * address and entry->address are the same
  3002. * and
  3003. * either number or entry->number are empty or
  3004. * number and entry->number are the same
  3005. * and
  3006. * either name or entry->name are empty or
  3007. * name and entry->name are the same
  3008. */
  3009. if (family == libc.Uint32FromInt32(libc.Int32FromInt32(m_FamilyWild)) || libc.Int32FromUint16((*TXauth)(unsafe.Pointer(entry)).Ffamily) == int32(m_FamilyWild) || uint32((*TXauth)(unsafe.Pointer(entry)).Ffamily) == family && (address_length == uint32((*TXauth)(unsafe.Pointer(entry)).Faddress_length) && libc.Xmemcmp(tls, (*TXauth)(unsafe.Pointer(entry)).Faddress, address, uint64(address_length)) == 0)) && (number_length == uint32(0) || libc.Int32FromUint16((*TXauth)(unsafe.Pointer(entry)).Fnumber_length) == 0 || number_length == uint32((*TXauth)(unsafe.Pointer(entry)).Fnumber_length) && libc.Xmemcmp(tls, (*TXauth)(unsafe.Pointer(entry)).Fnumber, number, uint64(number_length)) == 0) {
  3010. if best_type == 0 {
  3011. best = entry
  3012. break
  3013. }
  3014. type1 = 0
  3015. for {
  3016. if !(type1 < best_type) {
  3017. break
  3018. }
  3019. if *(*int32)(unsafe.Pointer(type_lengths + uintptr(type1)*4)) == libc.Int32FromUint16((*TXauth)(unsafe.Pointer(entry)).Fname_length) && !(libc.Xstrncmp(tls, *(*uintptr)(unsafe.Pointer(types + uintptr(type1)*8)), (*TXauth)(unsafe.Pointer(entry)).Fname, uint64((*TXauth)(unsafe.Pointer(entry)).Fname_length)) != 0) {
  3020. break
  3021. }
  3022. goto _2
  3023. _2:
  3024. ;
  3025. type1++
  3026. }
  3027. if type1 < best_type {
  3028. if best != 0 {
  3029. XXauDisposeAuth(tls, best)
  3030. }
  3031. best = entry
  3032. best_type = type1
  3033. if type1 == 0 {
  3034. break
  3035. }
  3036. goto _1
  3037. }
  3038. }
  3039. XXauDisposeAuth(tls, entry)
  3040. goto _1
  3041. _1:
  3042. }
  3043. libc.Xfclose(tls, auth_file)
  3044. return best
  3045. }
  3046. const m_E2BIG = 7
  3047. const m_EACCES = 13
  3048. const m_EADDRINUSE = 48
  3049. const m_EADDRNOTAVAIL = 49
  3050. const m_EAFNOSUPPORT = 47
  3051. const m_EAGAIN = 35
  3052. const m_EALREADY = 37
  3053. const m_EAUTH = 80
  3054. const m_EBADARCH = 86
  3055. const m_EBADEXEC = 85
  3056. const m_EBADF = 9
  3057. const m_EBADMACHO = 88
  3058. const m_EBADMSG = 94
  3059. const m_EBADRPC = 72
  3060. const m_EBUSY = 16
  3061. const m_ECANCELED = 89
  3062. const m_ECHILD = 10
  3063. const m_ECONNABORTED = 53
  3064. const m_ECONNREFUSED = 61
  3065. const m_ECONNRESET = 54
  3066. const m_EDEADLK = 11
  3067. const m_EDESTADDRREQ = 39
  3068. const m_EDEVERR = 83
  3069. const m_EDOM = 33
  3070. const m_EDQUOT = 69
  3071. const m_EEXIST = 17
  3072. const m_EFAULT = 14
  3073. const m_EFBIG = 27
  3074. const m_EFTYPE = 79
  3075. const m_EF_IS_PURGEABLE = 0x00000008
  3076. const m_EF_IS_SPARSE = 0x00000010
  3077. const m_EF_IS_SYNC_ROOT = 0x00000004
  3078. const m_EF_IS_SYNTHETIC = 0x00000020
  3079. const m_EF_MAY_SHARE_BLOCKS = 0x00000001
  3080. const m_EF_NO_XATTRS = 0x00000002
  3081. const m_EF_SHARES_ALL_BLOCKS = 0x00000040
  3082. const m_EHOSTDOWN = 64
  3083. const m_EHOSTUNREACH = 65
  3084. const m_EIDRM = 90
  3085. const m_EILSEQ = 92
  3086. const m_EINPROGRESS = 36
  3087. const m_EINTR = 4
  3088. const m_EINVAL = 22
  3089. const m_EIO = 5
  3090. const m_EISCONN = 56
  3091. const m_EISDIR = 21
  3092. const m_ELAST = 106
  3093. const m_ELOOP = 62
  3094. const m_EMFILE = 24
  3095. const m_EMLINK = 31
  3096. const m_EMSGSIZE = 40
  3097. const m_EMULTIHOP = 95
  3098. const m_ENAMETOOLONG = 63
  3099. const m_ENEEDAUTH = 81
  3100. const m_ENETDOWN = 50
  3101. const m_ENETRESET = 52
  3102. const m_ENETUNREACH = 51
  3103. const m_ENFILE = 23
  3104. const m_ENOATTR = 93
  3105. const m_ENOBUFS = 55
  3106. const m_ENODATA = 96
  3107. const m_ENODEV = 19
  3108. const m_ENOENT = 2
  3109. const m_ENOEXEC = 8
  3110. const m_ENOLCK = 77
  3111. const m_ENOLINK = 97
  3112. const m_ENOMEM = 12
  3113. const m_ENOMSG = 91
  3114. const m_ENOPOLICY = 103
  3115. const m_ENOPROTOOPT = 42
  3116. const m_ENOSPC = 28
  3117. const m_ENOSR = 98
  3118. const m_ENOSTR = 99
  3119. const m_ENOSYS = 78
  3120. const m_ENOTBLK = 15
  3121. const m_ENOTCONN = 57
  3122. const m_ENOTDIR = 20
  3123. const m_ENOTEMPTY = 66
  3124. const m_ENOTRECOVERABLE = 104
  3125. const m_ENOTSOCK = 38
  3126. const m_ENOTSUP = 45
  3127. const m_ENOTTY = 25
  3128. const m_ENXIO = 6
  3129. const m_EOPNOTSUPP = 102
  3130. const m_EOVERFLOW = 84
  3131. const m_EOWNERDEAD = 105
  3132. const m_EPERM = 1
  3133. const m_EPFNOSUPPORT = 46
  3134. const m_EPIPE = 32
  3135. const m_EPROCLIM = 67
  3136. const m_EPROCUNAVAIL = 76
  3137. const m_EPROGMISMATCH = 75
  3138. const m_EPROGUNAVAIL = 74
  3139. const m_EPROTO = 100
  3140. const m_EPROTONOSUPPORT = 43
  3141. const m_EPROTOTYPE = 41
  3142. const m_EPWROFF = 82
  3143. const m_EQFULL = 106
  3144. const m_ERANGE = 34
  3145. const m_EREMOTE = 71
  3146. const m_EROFS = 30
  3147. const m_ERPCMISMATCH = 73
  3148. const m_ESHLIBVERS = 87
  3149. const m_ESHUTDOWN = 58
  3150. const m_ESOCKTNOSUPPORT = 44
  3151. const m_ESPIPE = 29
  3152. const m_ESRCH = 3
  3153. const m_ESTALE = 70
  3154. const m_ETIME = 101
  3155. const m_ETIMEDOUT = 60
  3156. const m_ETOOMANYREFS = 59
  3157. const m_ETXTBSY = 26
  3158. const m_EUSERS = 68
  3159. const m_EWOULDBLOCK = "EAGAIN"
  3160. const m_EXDEV = 18
  3161. const m_O_CREAT1 = 512
  3162. const m_O_EXCL1 = 2048
  3163. const m_O_WRONLY1 = 1
  3164. const m_SF_APPEND = 0x00040000
  3165. const m_SF_ARCHIVED = 0x00010000
  3166. const m_SF_DATALESS = 0x40000000
  3167. const m_SF_FIRMLINK = 0x00800000
  3168. const m_SF_IMMUTABLE = 0x00020000
  3169. const m_SF_NOUNLINK = 0x00100000
  3170. const m_SF_RESTRICTED = 0x00080000
  3171. const m_SF_SETTABLE = 0x3fff0000
  3172. const m_SF_SUPPORTED = 0x009f0000
  3173. const m_SF_SYNTHETIC = 0xc0000000
  3174. const m_S_BLKSIZE = 512
  3175. const m_Time_t = "time_t"
  3176. const m_UF_APPEND = 0x00000004
  3177. const m_UF_COMPRESSED = 0x00000020
  3178. const m_UF_DATAVAULT = 0x00000080
  3179. const m_UF_HIDDEN = 0x00008000
  3180. const m_UF_IMMUTABLE = 0x00000002
  3181. const m_UF_NODUMP = 0x00000001
  3182. const m_UF_OPAQUE = 0x00000008
  3183. const m_UF_SETTABLE = 0x0000ffff
  3184. const m_UF_TRACKED = 0x00000040
  3185. type Tostat = struct {
  3186. Fst_dev t__uint16_t
  3187. Fst_ino Tino_t
  3188. Fst_mode Tmode_t
  3189. Fst_nlink Tnlink_t
  3190. Fst_uid t__uint16_t
  3191. Fst_gid t__uint16_t
  3192. Fst_rdev t__uint16_t
  3193. Fst_size t__int32_t
  3194. Fst_atimespec Ttimespec
  3195. Fst_mtimespec Ttimespec
  3196. Fst_ctimespec Ttimespec
  3197. Fst_blksize t__int32_t
  3198. Fst_blocks t__int32_t
  3199. Fst_flags t__uint32_t
  3200. Fst_gen t__uint32_t
  3201. }
  3202. type Tstat = struct {
  3203. Fst_dev Tdev_t
  3204. Fst_mode Tmode_t
  3205. Fst_nlink Tnlink_t
  3206. Fst_ino t__darwin_ino64_t
  3207. Fst_uid Tuid_t
  3208. Fst_gid Tgid_t
  3209. Fst_rdev Tdev_t
  3210. Fst_atimespec Ttimespec
  3211. Fst_mtimespec Ttimespec
  3212. Fst_ctimespec Ttimespec
  3213. Fst_birthtimespec Ttimespec
  3214. Fst_size Toff_t
  3215. Fst_blocks Tblkcnt_t
  3216. Fst_blksize Tblksize_t
  3217. Fst_flags t__uint32_t
  3218. Fst_gen t__uint32_t
  3219. Fst_lspare t__int32_t
  3220. Fst_qspare [2]t__int64_t
  3221. }
  3222. /*
  3223. * Error codes
  3224. */
  3225. /* 11 was EAGAIN */
  3226. /* math software */
  3227. /* non-blocking and interrupt i/o */
  3228. /* ipc/network software -- argument errors */
  3229. /* ipc/network software -- operational errors */
  3230. /* should be rearranged */
  3231. /* quotas & mush */
  3232. /* Network File System */
  3233. /* Intelligent device errors */
  3234. /* Program loading errors */
  3235. /* This value is only discrete when compiling __DARWIN_UNIX03, or KERNEL */
  3236. /*
  3237. * Copyright (c) 2000, 2023 Apple Computer, Inc. All rights reserved.
  3238. *
  3239. * @APPLE_LICENSE_HEADER_START@
  3240. *
  3241. * This file contains Original Code and/or Modifications of Original Code
  3242. * as defined in and that are subject to the Apple Public Source License
  3243. * Version 2.0 (the 'License'). You may not use this file except in
  3244. * compliance with the License. Please obtain a copy of the License at
  3245. * http://www.opensource.apple.com/apsl/ and read it before using this
  3246. * file.
  3247. *
  3248. * The Original Code and all software distributed under the License are
  3249. * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3250. * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3251. * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3252. * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3253. * Please see the License for the specific language governing rights and
  3254. * limitations under the License.
  3255. *
  3256. * @APPLE_LICENSE_HEADER_END@
  3257. */
  3258. /*
  3259. * Copyright (c) 1989, 1993
  3260. * The Regents of the University of California. All rights reserved.
  3261. * (c) UNIX System Laboratories, Inc.
  3262. * All or some portions of this file are derived from material licensed
  3263. * to the University of California by American Telephone and Telegraph
  3264. * Co. or Unix System Laboratories, Inc. and are reproduced herein with
  3265. * the permission of UNIX System Laboratories, Inc.
  3266. *
  3267. * Redistribution and use in source and binary forms, with or without
  3268. * modification, are permitted provided that the following conditions
  3269. * are met:
  3270. * 1. Redistributions of source code must retain the above copyright
  3271. * notice, this list of conditions and the following disclaimer.
  3272. * 2. Redistributions in binary form must reproduce the above copyright
  3273. * notice, this list of conditions and the following disclaimer in the
  3274. * documentation and/or other materials provided with the distribution.
  3275. * 3. All advertising materials mentioning features or use of this software
  3276. * must display the following acknowledgement:
  3277. * This product includes software developed by the University of
  3278. * California, Berkeley and its contributors.
  3279. * 4. Neither the name of the University nor the names of its contributors
  3280. * may be used to endorse or promote products derived from this software
  3281. * without specific prior written permission.
  3282. *
  3283. * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  3284. * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  3285. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  3286. * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  3287. * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  3288. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  3289. * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  3290. * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  3291. * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  3292. * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  3293. * SUCH DAMAGE.
  3294. *
  3295. * @(#)time.h 8.3 (Berkeley) 1/21/94
  3296. */
  3297. /*
  3298. * Copyright (c) 2023 Apple Computer, Inc. All rights reserved.
  3299. *
  3300. * @APPLE_LICENSE_HEADER_START@
  3301. *
  3302. * This file contains Original Code and/or Modifications of Original Code
  3303. * as defined in and that are subject to the Apple Public Source License
  3304. * Version 2.0 (the 'License'). You may not use this file except in
  3305. * compliance with the License. Please obtain a copy of the License at
  3306. * http://www.opensource.apple.com/apsl/ and read it before using this
  3307. * file.
  3308. *
  3309. * The Original Code and all software distributed under the License are
  3310. * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3311. * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3312. * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3313. * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3314. * Please see the License for the specific language governing rights and
  3315. * limitations under the License.
  3316. *
  3317. * @APPLE_LICENSE_HEADER_END@
  3318. */
  3319. /*
  3320. * Copyright (c) 1989, 1993
  3321. * The Regents of the University of California. All rights reserved.
  3322. * (c) UNIX System Laboratories, Inc.
  3323. * All or some portions of this file are derived from material licensed
  3324. * to the University of California by American Telephone and Telegraph
  3325. * Co. or Unix System Laboratories, Inc. and are reproduced herein with
  3326. * the permission of UNIX System Laboratories, Inc.
  3327. *
  3328. * Redistribution and use in source and binary forms, with or without
  3329. * modification, are permitted provided that the following conditions
  3330. * are met:
  3331. * 1. Redistributions of source code must retain the above copyright
  3332. * notice, this list of conditions and the following disclaimer.
  3333. * 2. Redistributions in binary form must reproduce the above copyright
  3334. * notice, this list of conditions and the following disclaimer in the
  3335. * documentation and/or other materials provided with the distribution.
  3336. * 3. All advertising materials mentioning features or use of this software
  3337. * must display the following acknowledgement:
  3338. * This product includes software developed by the University of
  3339. * California, Berkeley and its contributors.
  3340. * 4. Neither the name of the University nor the names of its contributors
  3341. * may be used to endorse or promote products derived from this software
  3342. * without specific prior written permission.
  3343. *
  3344. * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  3345. * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  3346. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  3347. * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  3348. * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  3349. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  3350. * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  3351. * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  3352. * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  3353. * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  3354. * SUCH DAMAGE.
  3355. *
  3356. * @(#)time.h 8.3 (Berkeley) 1/21/94
  3357. */
  3358. /*
  3359. * Copyright (c) 2000, 2002-2006, 2008-2010, 2012 Apple Inc. All rights reserved.
  3360. *
  3361. * @APPLE_LICENSE_HEADER_START@
  3362. *
  3363. * This file contains Original Code and/or Modifications of Original Code
  3364. * as defined in and that are subject to the Apple Public Source License
  3365. * Version 2.0 (the 'License'). You may not use this file except in
  3366. * compliance with the License. Please obtain a copy of the License at
  3367. * http://www.opensource.apple.com/apsl/ and read it before using this
  3368. * file.
  3369. *
  3370. * The Original Code and all software distributed under the License are
  3371. * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3372. * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3373. * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3374. * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3375. * Please see the License for the specific language governing rights and
  3376. * limitations under the License.
  3377. *
  3378. * @APPLE_LICENSE_HEADER_END@
  3379. */
  3380. /*-
  3381. * Copyright (c) 1998-1999 Apple Computer, Inc. All Rights Reserved
  3382. * Copyright (c) 1991, 1993, 1994
  3383. * The Regents of the University of California. All rights reserved.
  3384. *
  3385. * Redistribution and use in source and binary forms, with or without
  3386. * modification, are permitted provided that the following conditions
  3387. * are met:
  3388. * 1. Redistributions of source code must retain the above copyright
  3389. * notice, this list of conditions and the following disclaimer.
  3390. * 2. Redistributions in binary form must reproduce the above copyright
  3391. * notice, this list of conditions and the following disclaimer in the
  3392. * documentation and/or other materials provided with the distribution.
  3393. * 3. All advertising materials mentioning features or use of this software
  3394. * must display the following acknowledgement:
  3395. * This product includes software developed by the University of
  3396. * California, Berkeley and its contributors.
  3397. * 4. Neither the name of the University nor the names of its contributors
  3398. * may be used to endorse or promote products derived from this software
  3399. * without specific prior written permission.
  3400. *
  3401. * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  3402. * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  3403. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  3404. * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  3405. * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  3406. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  3407. * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  3408. * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  3409. * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  3410. * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  3411. * SUCH DAMAGE.
  3412. *
  3413. * @(#)unistd.h 8.12 (Berkeley) 4/27/95
  3414. *
  3415. * Copyright (c) 1998 Apple Compter, Inc.
  3416. * All Rights Reserved
  3417. */
  3418. /* History:
  3419. 7/14/99 EKN at Apple fixed getdirentriesattr from getdirentryattr
  3420. 3/26/98 CHW at Apple added real interface to searchfs call
  3421. 3/5/98 CHW at Apple added hfs semantic system calls headers
  3422. */
  3423. func XXauLockAuth(tls *libc.TLS, file_name uintptr, retries int32, timeout int32, dead int64) (r int32) {
  3424. bp := tls.Alloc(2224)
  3425. defer tls.Free(2224)
  3426. var creat_fd int32
  3427. var now Ttime_t
  3428. var _ /* creat_name at bp+0 */ [1025]int8
  3429. var _ /* link_name at bp+1025 */ [1025]int8
  3430. var _ /* statb at bp+2056 */ Tstat
  3431. _, _ = creat_fd, now
  3432. creat_fd = -int32(1)
  3433. if libc.Xstrlen(tls, file_name) > uint64(1022) {
  3434. return int32(m_LOCK_ERROR)
  3435. }
  3436. libc.X__builtin___snprintf_chk(tls, bp, uint64(1025), 0, ^t__predefined_size_t(0), __ccgo_ts+37, libc.VaList(bp+2208, file_name))
  3437. libc.X__builtin___snprintf_chk(tls, bp+1025, uint64(1025), 0, ^t__predefined_size_t(0), __ccgo_ts+42, libc.VaList(bp+2208, file_name))
  3438. if libc.Xstat(tls, bp, bp+2056) != -int32(1) {
  3439. now = libc.Xtime(tls, libc.UintptrFromInt32(0))
  3440. /*
  3441. * NFS may cause ctime to be before now, special
  3442. * case a 0 deadtime to force lock removal
  3443. */
  3444. if dead == 0 || now-(*(*Tstat)(unsafe.Pointer(bp + 2056))).Fst_ctimespec.Ftv_sec > dead {
  3445. libc.Xremove(tls, bp)
  3446. libc.Xremove(tls, bp+1025)
  3447. }
  3448. }
  3449. for retries > 0 {
  3450. if creat_fd == -int32(1) {
  3451. creat_fd = libc.Xopen(tls, bp, libc.Int32FromInt32(m_O_WRONLY1)|libc.Int32FromInt32(m_O_CREAT1)|libc.Int32FromInt32(m_O_EXCL1), libc.VaList(bp+2208, int32(0600)))
  3452. if creat_fd == -int32(1) {
  3453. if *(*int32)(unsafe.Pointer(libc.X__error(tls))) != int32(m_EACCES) && *(*int32)(unsafe.Pointer(libc.X__error(tls))) != int32(m_EEXIST) {
  3454. return int32(m_LOCK_ERROR)
  3455. }
  3456. } else {
  3457. libc.Xclose(tls, creat_fd)
  3458. }
  3459. }
  3460. if creat_fd != -int32(1) {
  3461. /* The file system may not support hard links, and pathconf should tell us that. */
  3462. if int64(1) == libc.Xpathconf(tls, bp, int32(m__PC_LINK_MAX)) {
  3463. if -int32(1) == libc.Xrename(tls, bp, bp+1025) {
  3464. /* Is this good enough? Perhaps we should retry. TEST */
  3465. return int32(m_LOCK_ERROR)
  3466. } else {
  3467. return m_LOCK_SUCCESS
  3468. }
  3469. } else {
  3470. if libc.Xlink(tls, bp, bp+1025) != -int32(1) {
  3471. return m_LOCK_SUCCESS
  3472. }
  3473. if *(*int32)(unsafe.Pointer(libc.X__error(tls))) == int32(m_ENOENT) {
  3474. creat_fd = -int32(1) /* force re-creat next time around */
  3475. continue
  3476. }
  3477. if *(*int32)(unsafe.Pointer(libc.X__error(tls))) != int32(m_EEXIST) {
  3478. return int32(m_LOCK_ERROR)
  3479. }
  3480. }
  3481. }
  3482. libc.Xsleep(tls, libc.Uint32FromInt32(timeout))
  3483. retries--
  3484. }
  3485. return int32(m_LOCK_TIMEOUT)
  3486. }
  3487. /* getsubopt(3) external variable */
  3488. /* valloc is now declared in _malloc.h */
  3489. /* Poison the following routines if -fshort-wchar is set */
  3490. func _read_short(tls *libc.TLS, shortp uintptr, file uintptr) (r int32) {
  3491. bp := tls.Alloc(16)
  3492. defer tls.Free(16)
  3493. var _ /* file_short at bp+0 */ [2]uint8
  3494. if libc.Xfread(tls, bp, uint64(2), uint64(1), file) != uint64(1) {
  3495. return 0
  3496. }
  3497. *(*uint16)(unsafe.Pointer(shortp)) = libc.Uint16FromInt32(libc.Int32FromUint8((*(*[2]uint8)(unsafe.Pointer(bp)))[0])*int32(256) + libc.Int32FromUint8((*(*[2]uint8)(unsafe.Pointer(bp)))[int32(1)]))
  3498. return int32(1)
  3499. }
  3500. func _read_counted_string(tls *libc.TLS, countp uintptr, stringp uintptr, file uintptr) (r int32) {
  3501. bp := tls.Alloc(16)
  3502. defer tls.Free(16)
  3503. var data uintptr
  3504. var _ /* len at bp+0 */ uint16
  3505. _ = data
  3506. if _read_short(tls, bp, file) == 0 {
  3507. return 0
  3508. }
  3509. if libc.Int32FromUint16(*(*uint16)(unsafe.Pointer(bp))) == 0 {
  3510. data = libc.UintptrFromInt32(0)
  3511. } else {
  3512. data = libc.Xmalloc(tls, uint64(uint32(*(*uint16)(unsafe.Pointer(bp)))))
  3513. if !(data != 0) {
  3514. return 0
  3515. }
  3516. if libc.Xfread(tls, data, uint64(1), uint64(*(*uint16)(unsafe.Pointer(bp))), file) != uint64(*(*uint16)(unsafe.Pointer(bp))) {
  3517. libc.X__builtin___memset_chk(tls, data, 0, uint64(*(*uint16)(unsafe.Pointer(bp))), ^t__predefined_size_t(0))
  3518. libc.Xfree(tls, data)
  3519. return 0
  3520. }
  3521. }
  3522. *(*uintptr)(unsafe.Pointer(stringp)) = data
  3523. *(*uint16)(unsafe.Pointer(countp)) = *(*uint16)(unsafe.Pointer(bp))
  3524. return int32(1)
  3525. }
  3526. func XXauReadAuth(tls *libc.TLS, auth_file uintptr) (r uintptr) {
  3527. bp := tls.Alloc(64)
  3528. defer tls.Free(64)
  3529. var ret uintptr
  3530. var _ /* local at bp+0 */ TXauth
  3531. _ = ret
  3532. *(*TXauth)(unsafe.Pointer(bp)) = TXauth{}
  3533. if _read_short(tls, bp, auth_file) == 0 {
  3534. goto fail
  3535. }
  3536. if _read_counted_string(tls, bp+2, bp+8, auth_file) == 0 {
  3537. goto fail
  3538. }
  3539. if _read_counted_string(tls, bp+16, bp+24, auth_file) == 0 {
  3540. goto fail
  3541. }
  3542. if _read_counted_string(tls, bp+32, bp+40, auth_file) == 0 {
  3543. goto fail
  3544. }
  3545. if _read_counted_string(tls, bp+48, bp+56, auth_file) == 0 {
  3546. goto fail
  3547. }
  3548. ret = libc.Xmalloc(tls, uint64(64))
  3549. if ret == libc.UintptrFromInt32(0) {
  3550. goto fail
  3551. }
  3552. *(*TXauth)(unsafe.Pointer(ret)) = *(*TXauth)(unsafe.Pointer(bp))
  3553. return ret
  3554. goto fail
  3555. fail:
  3556. ;
  3557. libc.Xfree(tls, (*(*TXauth)(unsafe.Pointer(bp))).Faddress)
  3558. libc.Xfree(tls, (*(*TXauth)(unsafe.Pointer(bp))).Fnumber)
  3559. libc.Xfree(tls, (*(*TXauth)(unsafe.Pointer(bp))).Fname)
  3560. if (*(*TXauth)(unsafe.Pointer(bp))).Fdata != 0 {
  3561. libc.X__builtin___memset_chk(tls, (*(*TXauth)(unsafe.Pointer(bp))).Fdata, 0, uint64((*(*TXauth)(unsafe.Pointer(bp))).Fdata_length), ^t__predefined_size_t(0))
  3562. libc.Xfree(tls, (*(*TXauth)(unsafe.Pointer(bp))).Fdata)
  3563. }
  3564. return libc.UintptrFromInt32(0)
  3565. }
  3566. const m_O_CREAT2 = 0x00000200
  3567. const m_O_EXCL2 = 0x00000800
  3568. const m_O_WRONLY2 = 0x0001
  3569. /*
  3570. * Copyright (c) 2000, 2023 Apple Computer, Inc. All rights reserved.
  3571. *
  3572. * @APPLE_LICENSE_HEADER_START@
  3573. *
  3574. * This file contains Original Code and/or Modifications of Original Code
  3575. * as defined in and that are subject to the Apple Public Source License
  3576. * Version 2.0 (the 'License'). You may not use this file except in
  3577. * compliance with the License. Please obtain a copy of the License at
  3578. * http://www.opensource.apple.com/apsl/ and read it before using this
  3579. * file.
  3580. *
  3581. * The Original Code and all software distributed under the License are
  3582. * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3583. * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3584. * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3585. * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3586. * Please see the License for the specific language governing rights and
  3587. * limitations under the License.
  3588. *
  3589. * @APPLE_LICENSE_HEADER_END@
  3590. */
  3591. /*
  3592. * Copyright (c) 1989, 1993
  3593. * The Regents of the University of California. All rights reserved.
  3594. * (c) UNIX System Laboratories, Inc.
  3595. * All or some portions of this file are derived from material licensed
  3596. * to the University of California by American Telephone and Telegraph
  3597. * Co. or Unix System Laboratories, Inc. and are reproduced herein with
  3598. * the permission of UNIX System Laboratories, Inc.
  3599. *
  3600. * Redistribution and use in source and binary forms, with or without
  3601. * modification, are permitted provided that the following conditions
  3602. * are met:
  3603. * 1. Redistributions of source code must retain the above copyright
  3604. * notice, this list of conditions and the following disclaimer.
  3605. * 2. Redistributions in binary form must reproduce the above copyright
  3606. * notice, this list of conditions and the following disclaimer in the
  3607. * documentation and/or other materials provided with the distribution.
  3608. * 3. All advertising materials mentioning features or use of this software
  3609. * must display the following acknowledgement:
  3610. * This product includes software developed by the University of
  3611. * California, Berkeley and its contributors.
  3612. * 4. Neither the name of the University nor the names of its contributors
  3613. * may be used to endorse or promote products derived from this software
  3614. * without specific prior written permission.
  3615. *
  3616. * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  3617. * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  3618. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  3619. * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  3620. * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  3621. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  3622. * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  3623. * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  3624. * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  3625. * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  3626. * SUCH DAMAGE.
  3627. *
  3628. * @(#)time.h 8.3 (Berkeley) 1/21/94
  3629. */
  3630. /*
  3631. * Copyright (c) 2023 Apple Computer, Inc. All rights reserved.
  3632. *
  3633. * @APPLE_LICENSE_HEADER_START@
  3634. *
  3635. * This file contains Original Code and/or Modifications of Original Code
  3636. * as defined in and that are subject to the Apple Public Source License
  3637. * Version 2.0 (the 'License'). You may not use this file except in
  3638. * compliance with the License. Please obtain a copy of the License at
  3639. * http://www.opensource.apple.com/apsl/ and read it before using this
  3640. * file.
  3641. *
  3642. * The Original Code and all software distributed under the License are
  3643. * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3644. * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3645. * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3646. * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3647. * Please see the License for the specific language governing rights and
  3648. * limitations under the License.
  3649. *
  3650. * @APPLE_LICENSE_HEADER_END@
  3651. */
  3652. /*
  3653. * Copyright (c) 1989, 1993
  3654. * The Regents of the University of California. All rights reserved.
  3655. * (c) UNIX System Laboratories, Inc.
  3656. * All or some portions of this file are derived from material licensed
  3657. * to the University of California by American Telephone and Telegraph
  3658. * Co. or Unix System Laboratories, Inc. and are reproduced herein with
  3659. * the permission of UNIX System Laboratories, Inc.
  3660. *
  3661. * Redistribution and use in source and binary forms, with or without
  3662. * modification, are permitted provided that the following conditions
  3663. * are met:
  3664. * 1. Redistributions of source code must retain the above copyright
  3665. * notice, this list of conditions and the following disclaimer.
  3666. * 2. Redistributions in binary form must reproduce the above copyright
  3667. * notice, this list of conditions and the following disclaimer in the
  3668. * documentation and/or other materials provided with the distribution.
  3669. * 3. All advertising materials mentioning features or use of this software
  3670. * must display the following acknowledgement:
  3671. * This product includes software developed by the University of
  3672. * California, Berkeley and its contributors.
  3673. * 4. Neither the name of the University nor the names of its contributors
  3674. * may be used to endorse or promote products derived from this software
  3675. * without specific prior written permission.
  3676. *
  3677. * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  3678. * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  3679. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  3680. * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  3681. * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  3682. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  3683. * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  3684. * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  3685. * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  3686. * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  3687. * SUCH DAMAGE.
  3688. *
  3689. * @(#)time.h 8.3 (Berkeley) 1/21/94
  3690. */
  3691. /* define X_GETTIMEOFDAY macro, a portable gettimeofday() */
  3692. /* use POSIX name for signal */
  3693. /*
  3694. * Copyright 1997 Metro Link Incorporated
  3695. *
  3696. * All Rights Reserved
  3697. *
  3698. * Permission to use, copy, modify, distribute, and sell this software and its
  3699. * documentation for any purpose is hereby granted without fee, provided that
  3700. * the above copyright notice appear in all copies and that both that
  3701. * copyright notice and this permission notice appear in supporting
  3702. * documentation, and that the names of the above listed copyright holder(s)
  3703. * not be used in advertising or publicity pertaining to distribution of
  3704. * the software without specific, written prior permission. The above listed
  3705. * copyright holder(s) make(s) no representations about the suitability of
  3706. * this software for any purpose. It is provided "as is" without express or
  3707. * implied warranty.
  3708. *
  3709. * THE ABOVE LISTED COPYRIGHT HOLDER(S) DISCLAIM(S) ALL WARRANTIES WITH REGARD
  3710. * TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  3711. * AND FITNESS, IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE
  3712. * LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY
  3713. * DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
  3714. * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
  3715. * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  3716. */
  3717. /*
  3718. * Determine the machine's byte order.
  3719. */
  3720. /* See if it is set in the imake config first */
  3721. /*
  3722. * Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  3723. *
  3724. * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3725. *
  3726. * This file contains Original Code and/or Modifications of Original Code
  3727. * as defined in and that are subject to the Apple Public Source License
  3728. * Version 2.0 (the 'License'). You may not use this file except in
  3729. * compliance with the License. The rights granted to you under the License
  3730. * may not be used to create, or enable the creation or redistribution of,
  3731. * unlawful or unlicensed copies of an Apple operating system, or to
  3732. * circumvent, violate, or enable the circumvention or violation of, any
  3733. * terms of an Apple operating system software license agreement.
  3734. *
  3735. * Please obtain a copy of the License at
  3736. * http://www.opensource.apple.com/apsl/ and read it before using this file.
  3737. *
  3738. * The Original Code and all software distributed under the License are
  3739. * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3740. * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3741. * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3742. * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3743. * Please see the License for the specific language governing rights and
  3744. * limitations under the License.
  3745. *
  3746. * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3747. */
  3748. /*
  3749. * Copyright 1995 NeXT Computer, Inc. All rights reserved.
  3750. */
  3751. func XXauUnlockAuth(tls *libc.TLS, file_name uintptr) (r int32) {
  3752. bp := tls.Alloc(2080)
  3753. defer tls.Free(2080)
  3754. var _ /* creat_name at bp+0 */ [1025]int8
  3755. var _ /* link_name at bp+1025 */ [1025]int8
  3756. if libc.Xstrlen(tls, file_name) > uint64(1022) {
  3757. return 0
  3758. }
  3759. libc.X__builtin___snprintf_chk(tls, bp, uint64(1025), 0, ^t__predefined_size_t(0), __ccgo_ts+37, libc.VaList(bp+2064, file_name))
  3760. libc.X__builtin___snprintf_chk(tls, bp+1025, uint64(1025), 0, ^t__predefined_size_t(0), __ccgo_ts+42, libc.VaList(bp+2064, file_name))
  3761. /*
  3762. * I think this is the correct order
  3763. */
  3764. libc.Xremove(tls, bp)
  3765. libc.Xremove(tls, bp+1025)
  3766. return int32(1)
  3767. }
  3768. /* Return values from XauLockAuth */
  3769. func _write_short(tls *libc.TLS, s uint16, file uintptr) (r int32) {
  3770. bp := tls.Alloc(16)
  3771. defer tls.Free(16)
  3772. var _ /* file_short at bp+0 */ [2]uint8
  3773. (*(*[2]uint8)(unsafe.Pointer(bp)))[0] = uint8(uint32(s) & libc.Uint32FromInt32(0xff00) >> int32(8))
  3774. (*(*[2]uint8)(unsafe.Pointer(bp)))[int32(1)] = libc.Uint8FromInt32(libc.Int32FromUint16(s) & int32(0xff))
  3775. if libc.Xfwrite(tls, bp, uint64(2), uint64(1), file) != uint64(1) {
  3776. return 0
  3777. }
  3778. return int32(1)
  3779. }
  3780. func _write_counted_string(tls *libc.TLS, count uint16, string1 uintptr, file uintptr) (r int32) {
  3781. if _write_short(tls, count, file) == 0 {
  3782. return 0
  3783. }
  3784. if libc.Xfwrite(tls, string1, uint64(1), uint64(count), file) != uint64(count) {
  3785. return 0
  3786. }
  3787. return int32(1)
  3788. }
  3789. func XXauWriteAuth(tls *libc.TLS, auth_file uintptr, auth uintptr) (r int32) {
  3790. if _write_short(tls, (*TXauth)(unsafe.Pointer(auth)).Ffamily, auth_file) == 0 {
  3791. return 0
  3792. }
  3793. if _write_counted_string(tls, (*TXauth)(unsafe.Pointer(auth)).Faddress_length, (*TXauth)(unsafe.Pointer(auth)).Faddress, auth_file) == 0 {
  3794. return 0
  3795. }
  3796. if _write_counted_string(tls, (*TXauth)(unsafe.Pointer(auth)).Fnumber_length, (*TXauth)(unsafe.Pointer(auth)).Fnumber, auth_file) == 0 {
  3797. return 0
  3798. }
  3799. if _write_counted_string(tls, (*TXauth)(unsafe.Pointer(auth)).Fname_length, (*TXauth)(unsafe.Pointer(auth)).Fname, auth_file) == 0 {
  3800. return 0
  3801. }
  3802. if _write_counted_string(tls, (*TXauth)(unsafe.Pointer(auth)).Fdata_length, (*TXauth)(unsafe.Pointer(auth)).Fdata, auth_file) == 0 {
  3803. return 0
  3804. }
  3805. return int32(1)
  3806. }
  3807. func __ccgo_fp(f interface{}) uintptr {
  3808. type iface [2]uintptr
  3809. return (*iface)(unsafe.Pointer(&f))[1]
  3810. }
  3811. var __ccgo_ts = (*reflect.StringHeader)(unsafe.Pointer(&__ccgo_ts1)).Data
  3812. var __ccgo_ts1 = "/.Xauthority\x00XAUTHORITY\x00HOME\x00%s%s\x00rb\x00%s-c\x00%s-l\x00"