ccgo_darwin_amd64.go 141 KB

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