ccgo_darwin_arm64.go 147 KB

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