netdb_darwin_amd64.go 324 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364
  1. // Code generated by 'ccgo netdb/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o netdb/netdb_darwin_amd64.go -pkgname netdb', DO NOT EDIT.
  2. package netdb
  3. import (
  4. "math"
  5. "reflect"
  6. "sync/atomic"
  7. "unsafe"
  8. )
  9. var _ = math.Pi
  10. var _ reflect.Kind
  11. var _ atomic.Value
  12. var _ unsafe.Pointer
  13. const (
  14. AF_APPLETALK = 16 // socket.h:375:1:
  15. AF_CCITT = 10 // socket.h:369:1:
  16. AF_CHAOS = 5 // socket.h:363:1:
  17. AF_CNT = 21 // socket.h:380:1:
  18. AF_COIP = 20 // socket.h:379:1:
  19. AF_DATAKIT = 9 // socket.h:368:1:
  20. AF_DECnet = 12 // socket.h:371:1:
  21. AF_DLI = 13 // socket.h:372:1:
  22. AF_E164 = 28 // socket.h:387:1:
  23. AF_ECMA = 8 // socket.h:367:1:
  24. AF_HYLINK = 15 // socket.h:374:1:
  25. AF_IEEE80211 = 37 // socket.h:399:1:
  26. AF_IMPLINK = 3 // socket.h:361:1:
  27. AF_INET = 2 // socket.h:359:1:
  28. AF_INET6 = 30 // socket.h:390:1:
  29. AF_IPX = 23 // socket.h:382:1:
  30. AF_ISDN = 28 // socket.h:386:1:
  31. AF_ISO = 7 // socket.h:365:1:
  32. AF_LAT = 14 // socket.h:373:1:
  33. AF_LINK = 18 // socket.h:377:1:
  34. AF_LOCAL = 1 // socket.h:357:1:
  35. AF_MAX = 40 // socket.h:401:1:
  36. AF_NATM = 31 // socket.h:392:1:
  37. AF_NDRV = 27 // socket.h:385:1:
  38. AF_NETBIOS = 33 // socket.h:394:1:
  39. AF_NS = 6 // socket.h:364:1:
  40. AF_OSI = 7 // socket.h:366:1:
  41. AF_PPP = 34 // socket.h:395:1:
  42. AF_PUP = 4 // socket.h:362:1:
  43. AF_RESERVED_36 = 36 // socket.h:398:1:
  44. AF_ROUTE = 17 // socket.h:376:1:
  45. AF_SIP = 24 // socket.h:383:1:
  46. AF_SNA = 11 // socket.h:370:1:
  47. AF_SYSTEM = 32 // socket.h:393:1:
  48. AF_UNIX = 1 // socket.h:355:1:
  49. AF_UNSPEC = 0 // socket.h:354:1:
  50. AF_UTUN = 38 // socket.h:400:1:
  51. AI_ADDRCONFIG = 0x00000400 // netdb.h:226:1:
  52. AI_ALL = 0x00000100 // netdb.h:222:1:
  53. AI_CANONNAME = 0x00000002 // netdb.h:212:1:
  54. AI_DEFAULT = 1536 // netdb.h:230:1:
  55. AI_MASK = 5127 // netdb.h:217:1:
  56. AI_NUMERICHOST = 0x00000004 // netdb.h:213:1:
  57. AI_NUMERICSERV = 0x00001000 // netdb.h:214:1:
  58. AI_PASSIVE = 0x00000001 // netdb.h:211:1:
  59. AI_UNUSABLE = 0x10000000 // netdb.h:234:1:
  60. AI_V4MAPPED = 0x00000800 // netdb.h:227:1:
  61. AI_V4MAPPED_CFG = 0x00000200 // netdb.h:224:1:
  62. BIG_ENDIAN = 4321 // endian.h:94:1:
  63. BYTE_ORDER = 1234 // endian.h:97:1:
  64. CONNECT_DATA_AUTHENTICATED = 0x4 // socket.h:300:1:
  65. CONNECT_DATA_IDEMPOTENT = 0x2 // socket.h:299:1:
  66. CONNECT_RESUME_ON_READ_WRITE = 0x1 // socket.h:298:1:
  67. EAI_ADDRFAMILY = 1 // netdb.h:185:1:
  68. EAI_AGAIN = 2 // netdb.h:187:1:
  69. EAI_BADFLAGS = 3 // netdb.h:188:1:
  70. EAI_BADHINTS = 12 // netdb.h:200:1:
  71. EAI_FAIL = 4 // netdb.h:189:1:
  72. EAI_FAMILY = 5 // netdb.h:190:1:
  73. EAI_MAX = 15 // netdb.h:205:1:
  74. EAI_MEMORY = 6 // netdb.h:191:1:
  75. EAI_NODATA = 7 // netdb.h:193:1:
  76. EAI_NONAME = 8 // netdb.h:195:1:
  77. EAI_OVERFLOW = 14 // netdb.h:203:1:
  78. EAI_PROTOCOL = 13 // netdb.h:201:1:
  79. EAI_SERVICE = 9 // netdb.h:196:1:
  80. EAI_SOCKTYPE = 10 // netdb.h:197:1:
  81. EAI_SYSTEM = 11 // netdb.h:198:1:
  82. FD_SETSIZE = 1024 // _fd_setsize.h:29:1:
  83. HOST_NOT_FOUND = 1 // netdb.h:174:1:
  84. ICMP6_FILTER = 18 // in6.h:380:1:
  85. ICMPV6CTL_ND6_ONLINKNSRFC4861 = 50 // in6.h:615:1:
  86. INADDR_NONE = 0xffffffff // in.h:342:1:
  87. INET6_ADDRSTRLEN = 46 // in6.h:161:1:
  88. INET_ADDRSTRLEN = 16 // in.h:388:1:
  89. INT16_MAX = 32767 // stdint.h:599:1:
  90. INT16_MIN = -32768 // stdint.h:600:1:
  91. INT32_MAX = 2147483647 // stdint.h:555:1:
  92. INT32_MIN = -2147483648 // stdint.h:556:1:
  93. INT64_MAX = 9223372036854775807 // stdint.h:461:1:
  94. INT64_MIN = -9223372036854775808 // stdint.h:462:1:
  95. INT8_MAX = 127 // stdint.h:621:1:
  96. INT8_MIN = -128 // stdint.h:622:1:
  97. INTMAX_MAX = 9223372036854775807 // stdint.h:663:1:
  98. INTMAX_MIN = -9223372036854775808 // stdint.h:662:1:
  99. INTPTR_MAX = 9223372036854775807 // stdint.h:649:1:
  100. INTPTR_MIN = -9223372036854775808 // stdint.h:648:1:
  101. INT_FAST16_MAX = 32767 // stdint.h:615:1:
  102. INT_FAST16_MIN = -32768 // stdint.h:614:1:
  103. INT_FAST32_MAX = 2147483647 // stdint.h:574:1:
  104. INT_FAST32_MIN = -2147483648 // stdint.h:573:1:
  105. INT_FAST64_MAX = 9223372036854775807 // stdint.h:483:1:
  106. INT_FAST64_MIN = -9223372036854775808 // stdint.h:482:1:
  107. INT_FAST8_MAX = 127 // stdint.h:634:1:
  108. INT_FAST8_MIN = -128 // stdint.h:633:1:
  109. INT_LEAST16_MAX = 32767 // stdint.h:612:1:
  110. INT_LEAST16_MIN = -32768 // stdint.h:611:1:
  111. INT_LEAST32_MAX = 2147483647 // stdint.h:571:1:
  112. INT_LEAST32_MIN = -2147483648 // stdint.h:570:1:
  113. INT_LEAST64_MAX = 9223372036854775807 // stdint.h:480:1:
  114. INT_LEAST64_MIN = -9223372036854775808 // stdint.h:479:1:
  115. INT_LEAST8_MAX = 127 // stdint.h:631:1:
  116. INT_LEAST8_MIN = -128 // stdint.h:630:1:
  117. IN_CLASSA_HOST = 0x00ffffff // in.h:317:1:
  118. IN_CLASSA_MAX = 128 // in.h:318:1:
  119. IN_CLASSA_NET = 0xff000000 // in.h:315:1:
  120. IN_CLASSA_NSHIFT = 24 // in.h:316:1:
  121. IN_CLASSB_HOST = 0x0000ffff // in.h:323:1:
  122. IN_CLASSB_MAX = 65536 // in.h:324:1:
  123. IN_CLASSB_NET = 0xffff0000 // in.h:321:1:
  124. IN_CLASSB_NSHIFT = 16 // in.h:322:1:
  125. IN_CLASSC_HOST = 0x000000ff // in.h:329:1:
  126. IN_CLASSC_NET = 0xffffff00 // in.h:327:1:
  127. IN_CLASSC_NSHIFT = 8 // in.h:328:1:
  128. IN_CLASSD_HOST = 0x0fffffff // in.h:334:1:
  129. IN_CLASSD_NET = 0xf0000000 // in.h:332:1:
  130. IN_CLASSD_NSHIFT = 28 // in.h:333:1:
  131. IN_LOOPBACKNET = 127 // in.h:369:1:
  132. IPCTL_ACCEPTSOURCEROUTE = 13 // in.h:649:1:
  133. IPCTL_DEFTTL = 3 // in.h:637:1:
  134. IPCTL_DIRECTEDBROADCAST = 9 // in.h:645:1:
  135. IPCTL_FASTFORWARDING = 14 // in.h:650:1:
  136. IPCTL_FORWARDING = 1 // in.h:635:1:
  137. IPCTL_GIF_TTL = 16 // in.h:652:1:
  138. IPCTL_INTRQDROPS = 11 // in.h:647:1:
  139. IPCTL_INTRQMAXLEN = 10 // in.h:646:1:
  140. IPCTL_KEEPFAITH = 15 // in.h:651:1:
  141. IPCTL_MAXID = 17 // in.h:653:1:
  142. IPCTL_RTEXPIRE = 5 // in.h:641:1:
  143. IPCTL_RTMAXCACHE = 7 // in.h:643:1:
  144. IPCTL_RTMINEXPIRE = 6 // in.h:642:1:
  145. IPCTL_SENDREDIRECTS = 2 // in.h:636:1:
  146. IPCTL_SOURCEROUTE = 8 // in.h:644:1:
  147. IPCTL_STATS = 12 // in.h:648:1:
  148. IPPORT_HIFIRSTAUTO = 49152 // in.h:286:1:
  149. IPPORT_HILASTAUTO = 65535 // in.h:287:1:
  150. IPPORT_RESERVED = 1024 // in.h:279:1:
  151. IPPORT_RESERVEDSTART = 600 // in.h:295:1:
  152. IPPORT_USERRESERVED = 5000 // in.h:281:1:
  153. IPPROTO_3PC = 34 // in.h:139:1:
  154. IPPROTO_ADFS = 68 // in.h:173:1:
  155. IPPROTO_AH = 51 // in.h:158:1:
  156. IPPROTO_AHIP = 61 // in.h:166:1:
  157. IPPROTO_APES = 99 // in.h:204:1:
  158. IPPROTO_ARGUS = 13 // in.h:116:1:
  159. IPPROTO_AX25 = 93 // in.h:198:1:
  160. IPPROTO_BHA = 49 // in.h:156:1:
  161. IPPROTO_BLT = 30 // in.h:135:1:
  162. IPPROTO_BRSATMON = 76 // in.h:181:1:
  163. IPPROTO_CFTP = 62 // in.h:167:1:
  164. IPPROTO_CHAOS = 16 // in.h:119:1:
  165. IPPROTO_CMTP = 38 // in.h:143:1:
  166. IPPROTO_CPHB = 73 // in.h:178:1:
  167. IPPROTO_CPNX = 72 // in.h:177:1:
  168. IPPROTO_DDP = 37 // in.h:142:1:
  169. IPPROTO_DGP = 86 // in.h:191:1:
  170. IPPROTO_DIVERT = 254 // in.h:213:1:
  171. IPPROTO_DONE = 257 // in.h:221:1:
  172. IPPROTO_DSTOPTS = 60 // in.h:165:1:
  173. IPPROTO_EGP = 8 // in.h:111:1:
  174. IPPROTO_EMCON = 14 // in.h:117:1:
  175. IPPROTO_ENCAP = 98 // in.h:203:1:
  176. IPPROTO_EON = 80 // in.h:185:1:
  177. IPPROTO_ESP = 50 // in.h:157:1:
  178. IPPROTO_ETHERIP = 97 // in.h:202:1:
  179. IPPROTO_FRAGMENT = 44 // in.h:151:1:
  180. IPPROTO_GGP = 3 // in.h:104:1:
  181. IPPROTO_GMTP = 100 // in.h:205:1:
  182. IPPROTO_GRE = 47 // in.h:154:1:
  183. IPPROTO_HELLO = 63 // in.h:168:1:
  184. IPPROTO_HMP = 20 // in.h:125:1:
  185. IPPROTO_HOPOPTS = 0 // in.h:99:1:
  186. IPPROTO_ICMP = 1 // in.h:101:1:
  187. IPPROTO_ICMPV6 = 58 // in.h:163:1:
  188. IPPROTO_IDP = 22 // in.h:127:1:
  189. IPPROTO_IDPR = 35 // in.h:140:1:
  190. IPPROTO_IDRP = 45 // in.h:152:1:
  191. IPPROTO_IGMP = 2 // in.h:103:1:
  192. IPPROTO_IGP = 85 // in.h:190:1:
  193. IPPROTO_IGRP = 88 // in.h:193:1:
  194. IPPROTO_IL = 40 // in.h:145:1:
  195. IPPROTO_INLSP = 52 // in.h:159:1:
  196. IPPROTO_INP = 32 // in.h:137:1:
  197. IPPROTO_IP = 0 // in.h:97:1:
  198. IPPROTO_IPCOMP = 108 // in.h:208:1:
  199. IPPROTO_IPCV = 71 // in.h:176:1:
  200. IPPROTO_IPEIP = 94 // in.h:199:1:
  201. IPPROTO_IPIP = 4 // in.h:106:1:
  202. IPPROTO_IPPC = 67 // in.h:172:1:
  203. IPPROTO_IPV4 = 4 // in.h:105:1:
  204. IPPROTO_IPV6 = 41 // in.h:147:1:
  205. IPPROTO_IRTP = 28 // in.h:133:1:
  206. IPPROTO_KRYPTOLAN = 65 // in.h:170:1:
  207. IPPROTO_LARP = 91 // in.h:196:1:
  208. IPPROTO_LEAF1 = 25 // in.h:130:1:
  209. IPPROTO_LEAF2 = 26 // in.h:131:1:
  210. IPPROTO_MAX = 256 // in.h:218:1:
  211. IPPROTO_MAXID = 52 // in.h:629:1:
  212. IPPROTO_MEAS = 19 // in.h:124:1:
  213. IPPROTO_MHRP = 48 // in.h:155:1:
  214. IPPROTO_MICP = 95 // in.h:200:1:
  215. IPPROTO_MTP = 92 // in.h:197:1:
  216. IPPROTO_MUX = 18 // in.h:123:1:
  217. IPPROTO_ND = 77 // in.h:182:1:
  218. IPPROTO_NHRP = 54 // in.h:161:1:
  219. IPPROTO_NONE = 59 // in.h:164:1:
  220. IPPROTO_NSP = 31 // in.h:136:1:
  221. IPPROTO_NVPII = 11 // in.h:114:1:
  222. IPPROTO_OSPFIGP = 89 // in.h:194:1:
  223. IPPROTO_PGM = 113 // in.h:209:1:
  224. IPPROTO_PIGP = 9 // in.h:112:1:
  225. IPPROTO_PIM = 103 // in.h:207:1:
  226. IPPROTO_PRM = 21 // in.h:126:1:
  227. IPPROTO_PUP = 12 // in.h:115:1:
  228. IPPROTO_PVP = 75 // in.h:180:1:
  229. IPPROTO_RAW = 255 // in.h:215:1:
  230. IPPROTO_RCCMON = 10 // in.h:113:1:
  231. IPPROTO_RDP = 27 // in.h:132:1:
  232. IPPROTO_ROUTING = 43 // in.h:150:1:
  233. IPPROTO_RSVP = 46 // in.h:153:1:
  234. IPPROTO_RVD = 66 // in.h:171:1:
  235. IPPROTO_SATEXPAK = 64 // in.h:169:1:
  236. IPPROTO_SATMON = 69 // in.h:174:1:
  237. IPPROTO_SCCSP = 96 // in.h:201:1:
  238. IPPROTO_SCTP = 132 // in.h:210:1:
  239. IPPROTO_SDRP = 42 // in.h:149:1:
  240. IPPROTO_SEP = 33 // in.h:138:1:
  241. IPPROTO_SRPC = 90 // in.h:195:1:
  242. IPPROTO_ST = 7 // in.h:110:1:
  243. IPPROTO_SVMTP = 82 // in.h:187:1:
  244. IPPROTO_SWIPE = 53 // in.h:160:1:
  245. IPPROTO_TCF = 87 // in.h:192:1:
  246. IPPROTO_TCP = 6 // in.h:108:1:
  247. IPPROTO_TP = 29 // in.h:134:1:
  248. IPPROTO_TPXX = 39 // in.h:144:1:
  249. IPPROTO_TRUNK1 = 23 // in.h:128:1:
  250. IPPROTO_TRUNK2 = 24 // in.h:129:1:
  251. IPPROTO_TTP = 84 // in.h:189:1:
  252. IPPROTO_UDP = 17 // in.h:121:1:
  253. IPPROTO_VINES = 83 // in.h:188:1:
  254. IPPROTO_VISA = 70 // in.h:175:1:
  255. IPPROTO_VMTP = 81 // in.h:186:1:
  256. IPPROTO_WBEXPAK = 79 // in.h:184:1:
  257. IPPROTO_WBMON = 78 // in.h:183:1:
  258. IPPROTO_WSN = 74 // in.h:179:1:
  259. IPPROTO_XNET = 15 // in.h:118:1:
  260. IPPROTO_XTP = 36 // in.h:141:1:
  261. IPV6CTL_ACCEPT_RTADV = 12 // in6.h:580:1:
  262. IPV6CTL_ADDRCTLPOLICY = 38 // in6.h:605:1:
  263. IPV6CTL_AUTO_FLOWLABEL = 17 // in6.h:585:1:
  264. IPV6CTL_AUTO_LINKLOCAL = 35 // in6.h:602:1:
  265. IPV6CTL_DAD_COUNT = 16 // in6.h:584:1:
  266. IPV6CTL_DEFHLIM = 3 // in6.h:569:1:
  267. IPV6CTL_DEFMCASTHLIM = 18 // in6.h:586:1:
  268. IPV6CTL_FORWARDING = 1 // in6.h:567:1:
  269. IPV6CTL_FORWSRCRT = 5 // in6.h:573:1:
  270. IPV6CTL_GIF_HLIM = 19 // in6.h:587:1:
  271. IPV6CTL_HDRNESTLIMIT = 15 // in6.h:583:1:
  272. IPV6CTL_KAME_VERSION = 20 // in6.h:588:1:
  273. IPV6CTL_KEEPFAITH = 13 // in6.h:581:1:
  274. IPV6CTL_LOG_INTERVAL = 14 // in6.h:582:1:
  275. IPV6CTL_MAXDYNROUTES = 49 // in6.h:614:1:
  276. IPV6CTL_MAXFRAGPACKETS = 9 // in6.h:577:1:
  277. IPV6CTL_MAXFRAGS = 41 // in6.h:608:1:
  278. IPV6CTL_MAXID = 51 // in6.h:619:1:
  279. IPV6CTL_MAXIFDEFROUTERS = 48 // in6.h:613:1:
  280. IPV6CTL_MAXIFPREFIXES = 47 // in6.h:612:1:
  281. IPV6CTL_MCAST_PMTU = 44 // in6.h:609:1:
  282. IPV6CTL_MRTPROTO = 8 // in6.h:576:1:
  283. IPV6CTL_MRTSTATS = 7 // in6.h:575:1:
  284. IPV6CTL_NEIGHBORGCTHRESH = 46 // in6.h:611:1:
  285. IPV6CTL_PREFER_TEMPADDR = 37 // in6.h:604:1:
  286. IPV6CTL_RIP6STATS = 36 // in6.h:603:1:
  287. IPV6CTL_RR_PRUNE = 22 // in6.h:590:1:
  288. IPV6CTL_RTEXPIRE = 25 // in6.h:595:1:
  289. IPV6CTL_RTMAXCACHE = 27 // in6.h:597:1:
  290. IPV6CTL_RTMINEXPIRE = 26 // in6.h:596:1:
  291. IPV6CTL_SENDREDIRECTS = 2 // in6.h:568:1:
  292. IPV6CTL_SOURCECHECK = 10 // in6.h:578:1:
  293. IPV6CTL_SOURCECHECK_LOGINT = 11 // in6.h:579:1:
  294. IPV6CTL_STATS = 6 // in6.h:574:1:
  295. IPV6CTL_TEMPPLTIME = 33 // in6.h:600:1:
  296. IPV6CTL_TEMPVLTIME = 34 // in6.h:601:1:
  297. IPV6CTL_USETEMPADDR = 32 // in6.h:599:1:
  298. IPV6CTL_USE_DEFAULTZONE = 39 // in6.h:606:1:
  299. IPV6CTL_USE_DEPRECATED = 21 // in6.h:589:1:
  300. IPV6CTL_V6ONLY = 24 // in6.h:594:1:
  301. IPV6PORT_ANONMAX = 65535 // in6.h:143:1:
  302. IPV6PORT_ANONMIN = 49152 // in6.h:142:1:
  303. IPV6PORT_RESERVED = 1024 // in6.h:141:1:
  304. IPV6PORT_RESERVEDMAX = 1023 // in6.h:145:1:
  305. IPV6PORT_RESERVEDMIN = 600 // in6.h:144:1:
  306. IPV6PROTO_MAXID = 104 // in6.h:562:1:
  307. IPV6_2292DSTOPTS = 23 // in6.h:385:1:
  308. IPV6_2292HOPLIMIT = 20 // in6.h:382:1:
  309. IPV6_2292HOPOPTS = 22 // in6.h:384:1:
  310. IPV6_2292NEXTHOP = 21 // in6.h:383:1:
  311. IPV6_2292PKTINFO = 19 // in6.h:381:1:
  312. IPV6_2292PKTOPTIONS = 25 // in6.h:389:1:
  313. IPV6_2292RTHDR = 24 // in6.h:386:1:
  314. IPV6_BINDV6ONLY = 27 // in6.h:405:1:
  315. IPV6_BOUND_IF = 125 // in6.h:494:1:
  316. IPV6_CHECKSUM = 26 // in6.h:401:1:
  317. IPV6_DEFAULT_MULTICAST_HOPS = 1 // in6.h:506:1:
  318. IPV6_DEFAULT_MULTICAST_LOOP = 1 // in6.h:507:1:
  319. IPV6_FAITH = 29 // in6.h:411:1:
  320. IPV6_FW_ADD = 30 // in6.h:414:1:
  321. IPV6_FW_DEL = 31 // in6.h:415:1:
  322. IPV6_FW_FLUSH = 32 // in6.h:416:1:
  323. IPV6_FW_GET = 34 // in6.h:418:1:
  324. IPV6_FW_ZERO = 33 // in6.h:417:1:
  325. IPV6_IPSEC_POLICY = 28 // in6.h:409:1:
  326. IPV6_JOIN_GROUP = 12 // in6.h:375:1:
  327. IPV6_LEAVE_GROUP = 13 // in6.h:376:1:
  328. IPV6_MAX_GROUP_SRC_FILTER = 512 // in6.h:521:1:
  329. IPV6_MAX_MEMBERSHIPS = 4095 // in6.h:515:1:
  330. IPV6_MAX_SOCK_SRC_FILTER = 128 // in6.h:522:1:
  331. IPV6_MIN_MEMBERSHIPS = 31 // in6.h:514:1:
  332. IPV6_MULTICAST_HOPS = 10 // in6.h:373:1:
  333. IPV6_MULTICAST_IF = 9 // in6.h:372:1:
  334. IPV6_MULTICAST_LOOP = 11 // in6.h:374:1:
  335. IPV6_PORTRANGE = 14 // in6.h:379:1:
  336. IPV6_PORTRANGE_DEFAULT = 0 // in6.h:552:1:
  337. IPV6_PORTRANGE_HIGH = 1 // in6.h:553:1:
  338. IPV6_PORTRANGE_LOW = 2 // in6.h:554:1:
  339. IPV6_RECVTCLASS = 35 // in6.h:426:1:
  340. IPV6_RTHDR_LOOSE = 0 // in6.h:499:1:
  341. IPV6_RTHDR_STRICT = 1 // in6.h:500:1:
  342. IPV6_RTHDR_TYPE_0 = 0 // in6.h:501:1:
  343. IPV6_SOCKOPT_RESERVED1 = 3 // in6.h:369:1:
  344. IPV6_TCLASS = 36 // in6.h:427:1:
  345. IPV6_UNICAST_HOPS = 4 // in6.h:371:1:
  346. IPV6_V6ONLY = 27 // in6.h:403:1:
  347. IP_ADD_MEMBERSHIP = 12 // in.h:418:1:
  348. IP_ADD_SOURCE_MEMBERSHIP = 70 // in.h:464:1:
  349. IP_BLOCK_SOURCE = 72 // in.h:466:1:
  350. IP_BOUND_IF = 25 // in.h:434:1:
  351. IP_DEFAULT_MULTICAST_LOOP = 1 // in.h:485:1:
  352. IP_DEFAULT_MULTICAST_TTL = 1 // in.h:484:1:
  353. IP_DROP_MEMBERSHIP = 13 // in.h:419:1:
  354. IP_DROP_SOURCE_MEMBERSHIP = 71 // in.h:465:1:
  355. IP_DUMMYNET_CONFIGURE = 60 // in.h:455:1:
  356. IP_DUMMYNET_DEL = 61 // in.h:456:1:
  357. IP_DUMMYNET_FLUSH = 62 // in.h:457:1:
  358. IP_DUMMYNET_GET = 64 // in.h:458:1:
  359. IP_FAITH = 22 // in.h:429:1:
  360. IP_FW_ADD = 40 // in.h:439:1:
  361. IP_FW_DEL = 41 // in.h:440:1:
  362. IP_FW_FLUSH = 42 // in.h:441:1:
  363. IP_FW_GET = 44 // in.h:443:1:
  364. IP_FW_RESETLOG = 45 // in.h:444:1:
  365. IP_FW_ZERO = 43 // in.h:442:1:
  366. IP_HDRINCL = 2 // in.h:408:1:
  367. IP_IPSEC_POLICY = 21 // in.h:428:1:
  368. IP_MAX_GROUP_SRC_FILTER = 512 // in.h:499:1:
  369. IP_MAX_MEMBERSHIPS = 4095 // in.h:493:1:
  370. IP_MAX_SOCK_MUTE_FILTER = 128 // in.h:501:1:
  371. IP_MAX_SOCK_SRC_FILTER = 128 // in.h:500:1:
  372. IP_MIN_MEMBERSHIPS = 31 // in.h:492:1:
  373. IP_MSFILTER = 74 // in.h:470:1:
  374. IP_MULTICAST_IF = 9 // in.h:415:1:
  375. IP_MULTICAST_IFINDEX = 66 // in.h:461:1:
  376. IP_MULTICAST_LOOP = 11 // in.h:417:1:
  377. IP_MULTICAST_TTL = 10 // in.h:416:1:
  378. IP_MULTICAST_VIF = 14 // in.h:420:1:
  379. IP_NAT__XXX = 55 // in.h:452:1:
  380. IP_OLD_FW_ADD = 50 // in.h:447:1:
  381. IP_OLD_FW_DEL = 51 // in.h:448:1:
  382. IP_OLD_FW_FLUSH = 52 // in.h:449:1:
  383. IP_OLD_FW_GET = 54 // in.h:451:1:
  384. IP_OLD_FW_RESETLOG = 56 // in.h:453:1:
  385. IP_OLD_FW_ZERO = 53 // in.h:450:1:
  386. IP_OPTIONS = 1 // in.h:407:1:
  387. IP_PKTINFO = 26 // in.h:435:1:
  388. IP_PORTRANGE = 19 // in.h:425:1:
  389. IP_PORTRANGE_DEFAULT = 0 // in.h:593:1:
  390. IP_PORTRANGE_HIGH = 1 // in.h:594:1:
  391. IP_PORTRANGE_LOW = 2 // in.h:595:1:
  392. IP_RECVDSTADDR = 7 // in.h:413:1:
  393. IP_RECVIF = 20 // in.h:426:1:
  394. IP_RECVOPTS = 5 // in.h:411:1:
  395. IP_RECVPKTINFO = 26 // in.h:436:1:
  396. IP_RECVRETOPTS = 6 // in.h:412:1:
  397. IP_RECVTOS = 27 // in.h:437:1:
  398. IP_RECVTTL = 24 // in.h:433:1:
  399. IP_RETOPTS = 8 // in.h:414:1:
  400. IP_RSVP_OFF = 16 // in.h:422:1:
  401. IP_RSVP_ON = 15 // in.h:421:1:
  402. IP_RSVP_VIF_OFF = 18 // in.h:424:1:
  403. IP_RSVP_VIF_ON = 17 // in.h:423:1:
  404. IP_STRIPHDR = 23 // in.h:431:1:
  405. IP_TOS = 3 // in.h:409:1:
  406. IP_TRAFFIC_MGT_BACKGROUND = 65 // in.h:460:1:
  407. IP_TTL = 4 // in.h:410:1:
  408. IP_UNBLOCK_SOURCE = 73 // in.h:467:1:
  409. KEV_DL_ADDMULTI = 7 // net_kev.h:61:1:
  410. KEV_DL_AWDL_RESTRICTED = 26 // net_kev.h:80:1:
  411. KEV_DL_AWDL_UNRESTRICTED = 27 // net_kev.h:81:1:
  412. KEV_DL_DELMULTI = 8 // net_kev.h:62:1:
  413. KEV_DL_IFCAP_CHANGED = 19 // net_kev.h:73:1:
  414. KEV_DL_IFDELEGATE_CHANGED = 25 // net_kev.h:79:1:
  415. KEV_DL_IF_ATTACHED = 9 // net_kev.h:63:1:
  416. KEV_DL_IF_DETACHED = 11 // net_kev.h:65:1:
  417. KEV_DL_IF_DETACHING = 10 // net_kev.h:64:1:
  418. KEV_DL_IF_IDLE_ROUTE_REFCNT = 18 // net_kev.h:72:1:
  419. KEV_DL_ISSUES = 24 // net_kev.h:78:1:
  420. KEV_DL_LINK_ADDRESS_CHANGED = 16 // net_kev.h:70:1:
  421. KEV_DL_LINK_OFF = 12 // net_kev.h:66:1:
  422. KEV_DL_LINK_ON = 13 // net_kev.h:67:1:
  423. KEV_DL_LINK_QUALITY_METRIC_CHANGED = 20 // net_kev.h:74:1:
  424. KEV_DL_LOW_POWER_MODE_CHANGED = 30 // net_kev.h:84:1:
  425. KEV_DL_MASTER_ELECTED = 23 // net_kev.h:77:1:
  426. KEV_DL_NODE_ABSENCE = 22 // net_kev.h:76:1:
  427. KEV_DL_NODE_PRESENCE = 21 // net_kev.h:75:1:
  428. KEV_DL_PROTO_ATTACHED = 14 // net_kev.h:68:1:
  429. KEV_DL_PROTO_DETACHED = 15 // net_kev.h:69:1:
  430. KEV_DL_QOS_MODE_CHANGED = 29 // net_kev.h:83:1:
  431. KEV_DL_RRC_STATE_CHANGED = 28 // net_kev.h:82:1:
  432. KEV_DL_SIFFLAGS = 1 // net_kev.h:55:1:
  433. KEV_DL_SIFGENERIC = 6 // net_kev.h:60:1:
  434. KEV_DL_SIFMEDIA = 5 // net_kev.h:59:1:
  435. KEV_DL_SIFMETRICS = 2 // net_kev.h:56:1:
  436. KEV_DL_SIFMTU = 3 // net_kev.h:57:1:
  437. KEV_DL_SIFPHYS = 4 // net_kev.h:58:1:
  438. KEV_DL_SUBCLASS = 2 // net_kev.h:50:1:
  439. KEV_DL_WAKEFLAGS_CHANGED = 17 // net_kev.h:71:1:
  440. KEV_INET6_ADDR_DELETED = 3 // net_kev.h:91:1:
  441. KEV_INET6_CHANGED_ADDR = 2 // net_kev.h:90:1:
  442. KEV_INET6_DEFROUTER = 6 // net_kev.h:94:1:
  443. KEV_INET6_NEW_LL_ADDR = 4 // net_kev.h:92:1:
  444. KEV_INET6_NEW_RTADV_ADDR = 5 // net_kev.h:93:1:
  445. KEV_INET6_NEW_USER_ADDR = 1 // net_kev.h:89:1:
  446. KEV_INET6_REQUEST_NAT64_PREFIX = 7 // net_kev.h:95:1:
  447. KEV_INET6_SUBCLASS = 6 // net_kev.h:87:1:
  448. KEV_INET_ADDR_DELETED = 3 // net_kev.h:39:1:
  449. KEV_INET_ARPCOLLISION = 7 // net_kev.h:43:1:
  450. KEV_INET_ARPRTRALIVE = 10 // net_kev.h:48:1:
  451. KEV_INET_ARPRTRFAILURE = 9 // net_kev.h:47:1:
  452. KEV_INET_CHANGED_ADDR = 2 // net_kev.h:38:1:
  453. KEV_INET_NEW_ADDR = 1 // net_kev.h:37:1:
  454. KEV_INET_PORTINUSE = 8 // net_kev.h:45:1:
  455. KEV_INET_SIFBRDADDR = 5 // net_kev.h:41:1:
  456. KEV_INET_SIFDSTADDR = 4 // net_kev.h:40:1:
  457. KEV_INET_SIFNETMASK = 6 // net_kev.h:42:1:
  458. KEV_INET_SUBCLASS = 1 // net_kev.h:35:1:
  459. LITTLE_ENDIAN = 1234 // endian.h:93:1:
  460. MCAST_BLOCK_SOURCE = 84 // in.h:477:1:
  461. MCAST_EXCLUDE = 2 // in.h:587:1:
  462. MCAST_INCLUDE = 1 // in.h:586:1:
  463. MCAST_JOIN_GROUP = 80 // in.h:473:1:
  464. MCAST_JOIN_SOURCE_GROUP = 82 // in.h:475:1:
  465. MCAST_LEAVE_GROUP = 81 // in.h:474:1:
  466. MCAST_LEAVE_SOURCE_GROUP = 83 // in.h:476:1:
  467. MCAST_UNBLOCK_SOURCE = 85 // in.h:478:1:
  468. MCAST_UNDEFINED = 0 // in.h:585:1:
  469. MSG_CTRUNC = 0x20 // socket.h:563:1:
  470. MSG_DONTROUTE = 0x4 // socket.h:560:1:
  471. MSG_DONTWAIT = 0x80 // socket.h:566:1:
  472. MSG_EOF = 0x100 // socket.h:567:1:
  473. MSG_EOR = 0x8 // socket.h:561:1:
  474. MSG_FLUSH = 0x400 // socket.h:572:1:
  475. MSG_HAVEMORE = 0x2000 // socket.h:575:1:
  476. MSG_HOLD = 0x800 // socket.h:573:1:
  477. MSG_NEEDSA = 0x10000 // socket.h:578:1:
  478. MSG_OOB = 0x1 // socket.h:558:1:
  479. MSG_PEEK = 0x2 // socket.h:559:1:
  480. MSG_RCVMORE = 0x4000 // socket.h:576:1:
  481. MSG_SEND = 0x1000 // socket.h:574:1:
  482. MSG_TRUNC = 0x10 // socket.h:562:1:
  483. MSG_WAITALL = 0x40 // socket.h:564:1:
  484. MSG_WAITSTREAM = 0x200 // socket.h:570:1:
  485. NBBY = 8 // types.h:186:1:
  486. NETDB_INTERNAL = -1 // netdb.h:171:1:
  487. NETDB_SUCCESS = 0 // netdb.h:172:1:
  488. NETSVC_MRKNG_LVL_L2 = 1 // socket.h:283:1:
  489. NETSVC_MRKNG_LVL_L3L2_ALL = 2 // socket.h:284:1:
  490. NETSVC_MRKNG_LVL_L3L2_BK = 3 // socket.h:285:1:
  491. NETSVC_MRKNG_UNKNOWN = 0 // socket.h:282:1:
  492. NET_MAXID = 40 // socket.h:506:1:
  493. NET_RT_DUMP = 1 // socket.h:519:1:
  494. NET_RT_DUMP2 = 7 // socket.h:525:1:
  495. NET_RT_FLAGS = 2 // socket.h:520:1:
  496. NET_RT_FLAGS_PRIV = 10 // socket.h:530:1:
  497. NET_RT_IFLIST = 3 // socket.h:521:1:
  498. NET_RT_IFLIST2 = 6 // socket.h:524:1:
  499. NET_RT_MAXID = 11 // socket.h:531:1:
  500. NET_RT_STAT = 4 // socket.h:522:1:
  501. NET_RT_TRASH = 5 // socket.h:523:1:
  502. NET_SERVICE_TYPE_AV = 6 // socket.h:276:1:
  503. NET_SERVICE_TYPE_BE = 0 // socket.h:270:1:
  504. NET_SERVICE_TYPE_BK = 1 // socket.h:271:1:
  505. NET_SERVICE_TYPE_OAM = 7 // socket.h:277:1:
  506. NET_SERVICE_TYPE_RD = 8 // socket.h:278:1:
  507. NET_SERVICE_TYPE_RV = 5 // socket.h:275:1:
  508. NET_SERVICE_TYPE_SIG = 2 // socket.h:272:1:
  509. NET_SERVICE_TYPE_VI = 3 // socket.h:273:1:
  510. NET_SERVICE_TYPE_VO = 4 // socket.h:274:1:
  511. NI_DGRAM = 0x00000010 // netdb.h:252:1:
  512. NI_MAXHOST = 1025 // netdb.h:241:1:
  513. NI_MAXSERV = 32 // netdb.h:242:1:
  514. NI_NAMEREQD = 0x00000004 // netdb.h:249:1:
  515. NI_NOFQDN = 0x00000001 // netdb.h:247:1:
  516. NI_NUMERICHOST = 0x00000002 // netdb.h:248:1:
  517. NI_NUMERICSCOPE = 0x00000100 // netdb.h:251:1:
  518. NI_NUMERICSERV = 0x00000008 // netdb.h:250:1:
  519. NI_WITHSCOPEID = 0x00000020 // netdb.h:254:1:
  520. NO_ADDRESS = 4 // netdb.h:179:1:
  521. NO_DATA = 4 // netdb.h:177:1:
  522. NO_RECOVERY = 3 // netdb.h:176:1:
  523. PDP_ENDIAN = 3412 // endian.h:95:1:
  524. PF_APPLETALK = 16 // socket.h:469:1:
  525. PF_CCITT = 10 // socket.h:463:1:
  526. PF_CHAOS = 5 // socket.h:457:1:
  527. PF_CNT = 21 // socket.h:474:1:
  528. PF_COIP = 20 // socket.h:473:1:
  529. PF_DATAKIT = 9 // socket.h:462:1:
  530. PF_DECnet = 12 // socket.h:465:1:
  531. PF_DLI = 13 // socket.h:466:1:
  532. PF_ECMA = 8 // socket.h:461:1:
  533. PF_HYLINK = 15 // socket.h:468:1:
  534. PF_IMPLINK = 3 // socket.h:455:1:
  535. PF_INET = 2 // socket.h:454:1:
  536. PF_INET6 = 30 // socket.h:482:1:
  537. PF_IPX = 23 // socket.h:476:1:
  538. PF_ISDN = 28 // socket.h:480:1:
  539. PF_ISO = 7 // socket.h:459:1:
  540. PF_KEY = 29 // socket.h:481:1:
  541. PF_LAT = 14 // socket.h:467:1:
  542. PF_LINK = 18 // socket.h:471:1:
  543. PF_LOCAL = 1 // socket.h:452:1:
  544. PF_MAX = 40 // socket.h:489:1:
  545. PF_NATM = 31 // socket.h:483:1:
  546. PF_NDRV = 27 // socket.h:479:1:
  547. PF_NETBIOS = 33 // socket.h:485:1:
  548. PF_NS = 6 // socket.h:458:1:
  549. PF_OSI = 7 // socket.h:460:1:
  550. PF_PIP = 25 // socket.h:478:1:
  551. PF_PPP = 34 // socket.h:486:1:
  552. PF_PUP = 4 // socket.h:456:1:
  553. PF_RESERVED_36 = 36 // socket.h:487:1:
  554. PF_ROUTE = 17 // socket.h:470:1:
  555. PF_RTIP = 22 // socket.h:477:1:
  556. PF_SIP = 24 // socket.h:475:1:
  557. PF_SNA = 11 // socket.h:464:1:
  558. PF_SYSTEM = 32 // socket.h:484:1:
  559. PF_UNIX = 1 // socket.h:453:1:
  560. PF_UNSPEC = 0 // socket.h:451:1:
  561. PF_UTUN = 38 // socket.h:488:1:
  562. PF_XTP = 19 // socket.h:472:1:
  563. PTRDIFF_MAX = 9223372036854775807 // stdint.h:652:1:
  564. PTRDIFF_MIN = -9223372036854775808 // stdint.h:651:1:
  565. RSIZE_MAX = 9223372036854775807 // stdint.h:658:1:
  566. SAE_ASSOCID_ANY = 0 // socket.h:290:1:
  567. SAE_CONNID_ANY = 0 // socket.h:294:1:
  568. SCM_CREDS = 0x03 // socket.h:661:1:
  569. SCM_RIGHTS = 0x01 // socket.h:658:1:
  570. SCM_TIMESTAMP = 0x02 // socket.h:660:1:
  571. SCM_TIMESTAMP_MONOTONIC = 0x04 // socket.h:662:1:
  572. SCOPE_DELIMITER = 37 // netdb.h:259:1:
  573. SHUT_RD = 0 // socket.h:670:1:
  574. SHUT_RDWR = 2 // socket.h:672:1:
  575. SHUT_WR = 1 // socket.h:671:1:
  576. SIG_ATOMIC_MAX = 2147483647 // stdint.h:668:1:
  577. SIG_ATOMIC_MIN = -2147483648 // stdint.h:667:1:
  578. SIN6_LEN = 0 // in6.h:167:1:
  579. SIZE_MAX = 18446744073709551615 // stdint.h:653:1:
  580. SOCK_DGRAM = 2 // socket.h:112:1:
  581. SOCK_MAXADDRLEN = 255 // socket.h:414:1:
  582. SOCK_RAW = 3 // socket.h:113:1:
  583. SOCK_RDM = 4 // socket.h:115:1:
  584. SOCK_SEQPACKET = 5 // socket.h:117:1:
  585. SOCK_STREAM = 1 // socket.h:111:1:
  586. SOL_SOCKET = 0xffff // socket.h:348:1:
  587. SOMAXCONN = 128 // socket.h:540:1:
  588. SONPX_SETOPTSHUT = 0x000000001 // socket.h:338:1:
  589. SO_ACCEPTCONN = 0x0002 // socket.h:123:1:
  590. SO_BROADCAST = 0x0020 // socket.h:127:1:
  591. SO_DEBUG = 0x0001 // socket.h:122:1:
  592. SO_DONTROUTE = 0x0010 // socket.h:126:1:
  593. SO_DONTTRUNC = 0x2000 // socket.h:142:1:
  594. SO_ERROR = 0x1007 // socket.h:160:1:
  595. SO_KEEPALIVE = 0x0008 // socket.h:125:1:
  596. SO_LABEL = 0x1010 // socket.h:163:1:
  597. SO_LINGER = 0x0080 // socket.h:130:1:
  598. SO_LINGER_SEC = 0x1080 // socket.h:176:1:
  599. SO_NETSVC_MARKING_LEVEL = 0x1119 // socket.h:185:1:
  600. SO_NET_SERVICE_TYPE = 0x1116 // socket.h:182:1:
  601. SO_NKE = 0x1021 // socket.h:167:1:
  602. SO_NOADDRERR = 0x1023 // socket.h:169:1:
  603. SO_NOSIGPIPE = 0x1022 // socket.h:168:1:
  604. SO_NOTIFYCONFLICT = 0x1026 // socket.h:173:1:
  605. SO_NP_EXTENSIONS = 0x1083 // socket.h:178:1:
  606. SO_NREAD = 0x1020 // socket.h:166:1:
  607. SO_NUMRCVPKT = 0x1112 // socket.h:181:1:
  608. SO_NWRITE = 0x1024 // socket.h:170:1:
  609. SO_OOBINLINE = 0x0100 // socket.h:134:1:
  610. SO_PEERLABEL = 0x1011 // socket.h:164:1:
  611. SO_RANDOMPORT = 0x1082 // socket.h:177:1:
  612. SO_RCVBUF = 0x1002 // socket.h:155:1:
  613. SO_RCVLOWAT = 0x1004 // socket.h:157:1:
  614. SO_RCVTIMEO = 0x1006 // socket.h:159:1:
  615. SO_REUSEADDR = 0x0004 // socket.h:124:1:
  616. SO_REUSEPORT = 0x0200 // socket.h:136:1:
  617. SO_REUSESHAREUID = 0x1025 // socket.h:171:1:
  618. SO_SNDBUF = 0x1001 // socket.h:154:1:
  619. SO_SNDLOWAT = 0x1003 // socket.h:156:1:
  620. SO_SNDTIMEO = 0x1005 // socket.h:158:1:
  621. SO_TIMESTAMP = 0x0400 // socket.h:137:1:
  622. SO_TIMESTAMP_MONOTONIC = 0x0800 // socket.h:138:1:
  623. SO_TYPE = 0x1008 // socket.h:161:1:
  624. SO_UPCALLCLOSEWAIT = 0x1027 // socket.h:174:1:
  625. SO_USELOOPBACK = 0x0040 // socket.h:129:1:
  626. SO_WANTMORE = 0x4000 // socket.h:144:1:
  627. SO_WANTOOBFLAG = 0x8000 // socket.h:145:1:
  628. TRY_AGAIN = 2 // netdb.h:175:1:
  629. UINT16_MAX = 65535 // stdint.h:601:1:
  630. UINT32_MAX = 4294967295 // stdint.h:557:1:
  631. UINT64_MAX = 18446744073709551615 // stdint.h:463:1:
  632. UINT8_MAX = 255 // stdint.h:623:1:
  633. UINTMAX_MAX = 18446744073709551615 // stdint.h:664:1:
  634. UINTPTR_MAX = 18446744073709551615 // stdint.h:650:1:
  635. UINT_FAST16_MAX = 65535 // stdint.h:616:1:
  636. UINT_FAST32_MAX = 4294967295 // stdint.h:575:1:
  637. UINT_FAST64_MAX = 18446744073709551615 // stdint.h:484:1:
  638. UINT_FAST8_MAX = 255 // stdint.h:635:1:
  639. UINT_LEAST16_MAX = 65535 // stdint.h:613:1:
  640. UINT_LEAST32_MAX = 4294967295 // stdint.h:572:1:
  641. UINT_LEAST64_MAX = 18446744073709551615 // stdint.h:481:1:
  642. UINT_LEAST8_MAX = 255 // stdint.h:632:1:
  643. WCHAR_MAX = 2147483647 // stdint.h:678:1:
  644. WCHAR_MIN = -2147483648 // stdint.h:682:1:
  645. WINT_MAX = 2147483647 // stdint.h:674:1:
  646. WINT_MIN = -2147483648 // stdint.h:673:1:
  647. X_BLKCNT_T = 0 // _blkcnt_t.h:29:1:
  648. X_BLKSIZE_T = 0 // _blksize_t.h:29:1:
  649. X_BSD_I386__TYPES_H_ = 0 // _types.h:29:1:
  650. X_BSD_MACHINE_ENDIAN_H_ = 0 // endian.h:32:1:
  651. X_BSD_MACHINE_TYPES_H_ = 0 // types.h:32:1:
  652. X_BSD_MACHINE__TYPES_H_ = 0 // _types.h:29:1:
  653. X_CADDR_T = 0 // _caddr_t.h:29:1:
  654. X_CDEFS_H_ = 0 // cdefs.h:68:1:
  655. X_CLOCK_T = 0 // _clock_t.h:29:1:
  656. X_DARWIN_FEATURE_64_BIT_INODE = 1 // cdefs.h:745:1:
  657. X_DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE = 1 // cdefs.h:771:1:
  658. X_DARWIN_FEATURE_UNIX_CONFORMANCE = 3 // cdefs.h:779:1:
  659. X_DEV_T = 0 // _dev_t.h:29:1:
  660. X_ERRNO_T = 0 // _errno_t.h:29:1:
  661. X_FD_SET = 0 // _fd_def.h:29:1:
  662. X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
  663. X_FORTIFY_SOURCE = 2 // _types.h:65:1:
  664. X_FSBLKCNT_T = 0 // _fsblkcnt_t.h:29:1:
  665. X_FSFILCNT_T = 0 // _fsfilcnt_t.h:29:1:
  666. X_GID_T = 0 // _gid_t.h:29:1:
  667. X_I386__ENDIAN_H_ = 0 // endian.h:67:1:
  668. X_I386__PARAM_H_ = 0 // _param.h:30:1:
  669. X_ID_T = 0 // _id_t.h:29:1:
  670. X_INO64_T = 0 // _ino64_t.h:29:1:
  671. X_INO_T = 0 // _ino_t.h:29:1:
  672. X_INT16_T = 0 // _int16_t.h:29:1:
  673. X_INT32_T = 0 // _int32_t.h:29:1:
  674. X_INT64_T = 0 // _int64_t.h:29:1:
  675. X_INT8_T = 0 // _int8_t.h:29:1:
  676. X_INTPTR_T = 0 // _intptr_t.h:29:1:
  677. X_IN_ADDR_T = 0 // _in_addr_t.h:29:1:
  678. X_IN_PORT_T = 0 // _in_port_t.h:29:1:
  679. X_KEY_T = 0 // _key_t.h:29:1:
  680. X_LP64 = 1 // <predefined>:1:1:
  681. X_MACHTYPES_H_ = 0 // types.h:67:1:
  682. X_MODE_T = 0 // _mode_t.h:29:1:
  683. X_NETDB_H_ = 0 // netdb.h:84:1:
  684. X_NETINET6_IN6_H_ = 0 // in6.h:99:1:
  685. X_NETINET_IN_H_ = 0 // in.h:65:1:
  686. X_NET_NETKEV_H_ = 0 // net_kev.h:30:1:
  687. X_NLINK_T = 0 // _nlink_t.h:29:1:
  688. X_Nonnull = 0 // cdefs.h:243:1:
  689. X_Null_unspecified = 0 // cdefs.h:246:1:
  690. X_Nullable = 0 // cdefs.h:240:1:
  691. X_OFF_T = 0 // _off_t.h:29:1:
  692. X_OS__OSBYTEORDERI386_H = 0 // _OSByteOrder.h:30:1:
  693. X_OS__OSBYTEORDER_H = 0 // _OSByteOrder.h:30:1:
  694. X_PATH_HEQUIV = "/etc/hosts.equiv" // netdb.h:94:1:
  695. X_PATH_HOSTS = "/etc/hosts" // netdb.h:96:1:
  696. X_PATH_NETWORKS = "/etc/networks" // netdb.h:97:1:
  697. X_PATH_PROTOCOLS = "/etc/protocols" // netdb.h:98:1:
  698. X_PATH_SERVICES = "/etc/services" // netdb.h:99:1:
  699. X_PID_T = 0 // _pid_t.h:29:1:
  700. X_PTHREAD_ATTR_T = 0 // _pthread_attr_t.h:29:1:
  701. X_PTHREAD_CONDATTR_T = 0 // _pthread_condattr_t.h:29:1:
  702. X_PTHREAD_COND_T = 0 // _pthread_cond_t.h:29:1:
  703. X_PTHREAD_KEY_T = 0 // _pthread_key_t.h:29:1:
  704. X_PTHREAD_MUTEXATTR_T = 0 // _pthread_mutexattr_t.h:29:1:
  705. X_PTHREAD_MUTEX_T = 0 // _pthread_mutex_t.h:29:1:
  706. X_PTHREAD_ONCE_T = 0 // _pthread_once_t.h:29:1:
  707. X_PTHREAD_RWLOCKATTR_T = 0 // _pthread_rwlockattr_t.h:29:1:
  708. X_PTHREAD_RWLOCK_T = 0 // _pthread_rwlock_t.h:29:1:
  709. X_PTHREAD_T = 0 // _pthread_t.h:29:1:
  710. X_QUAD_HIGHWORD = 1 // endian.h:78:1:
  711. X_QUAD_LOWWORD = 0 // endian.h:79:1:
  712. X_RSIZE_T = 0 // _rsize_t.h:29:1:
  713. X_SA_FAMILY_T = 0 // _sa_family_t.h:29:1:
  714. X_SIZE_T = 0 // _size_t.h:29:1:
  715. X_SOCKLEN_T = 0 // _socklen_t.h:29:1:
  716. X_SSIZE_T = 0 // _ssize_t.h:29:1:
  717. X_SS_MAXSIZE = 128 // socket.h:429:1:
  718. X_STRUCT_IOVEC = 0 // _iovec_t.h:29:1:
  719. X_SUSECONDS_T = 0 // _suseconds_t.h:29:1:
  720. X_SYS_SOCKET_H_ = 0 // socket.h:73:1:
  721. X_SYS_TYPES_H_ = 0 // types.h:70:1:
  722. X_SYS__ENDIAN_H_ = 0 // _endian.h:91:1:
  723. X_SYS__PTHREAD_TYPES_H_ = 0 // _pthread_types.h:30:1:
  724. X_SYS__TYPES_H_ = 0 // _types.h:30:1:
  725. X_TIME_T = 0 // _time_t.h:29:1:
  726. X_UID_T = 0 // _uid_t.h:29:1:
  727. X_UINTPTR_T = 0 // _uintptr_t.h:29:1:
  728. X_USECONDS_T = 0 // _useconds_t.h:29:1:
  729. X_U_CHAR = 0 // _u_char.h:29:1:
  730. X_U_INT = 0 // _u_int.h:29:1:
  731. X_U_INT16_T = 0 // _u_int16_t.h:29:1:
  732. X_U_INT32_T = 0 // _u_int32_t.h:29:1:
  733. X_U_INT64_T = 0 // _u_int64_t.h:29:1:
  734. X_U_INT8_T = 0 // _u_int8_t.h:29:1:
  735. X_U_LONG = 0 // types.h:89:1:
  736. X_U_SHORT = 0 // _u_short.h:29:1:
  737. Pseudo_AF_HDRCMPLT = 35 // socket.h:396:1:
  738. Pseudo_AF_KEY = 29 // socket.h:388:1:
  739. Pseudo_AF_PIP = 25 // socket.h:384:1:
  740. Pseudo_AF_RTIP = 22 // socket.h:381:1:
  741. Pseudo_AF_XTP = 19 // socket.h:378:1:
  742. )
  743. type Ptrdiff_t = int64 /* <builtin>:3:26 */
  744. type Size_t = uint64 /* <builtin>:9:23 */
  745. type Wchar_t = int32 /* <builtin>:15:24 */
  746. type X__int128_t = struct {
  747. Flo int64
  748. Fhi int64
  749. } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
  750. type X__uint128_t = struct {
  751. Flo uint64
  752. Fhi uint64
  753. } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
  754. type X__builtin_va_list = uintptr /* <builtin>:46:14 */
  755. type X__float128 = float64 /* <builtin>:47:21 */
  756. var X__darwin_check_fd_set_overflow uintptr /* <builtin>:146:5: */
  757. // Copyright (c) 2000-2009 Apple Inc. All rights reserved.
  758. //
  759. // @APPLE_LICENSE_HEADER_START@
  760. //
  761. // This file contains Original Code and/or Modifications of Original Code
  762. // as defined in and that are subject to the Apple Public Source License
  763. // Version 2.0 (the 'License'). You may not use this file except in
  764. // compliance with the License. Please obtain a copy of the License at
  765. // http://www.opensource.apple.com/apsl/ and read it before using this
  766. // file.
  767. //
  768. // The Original Code and all software distributed under the License are
  769. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  770. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  771. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  772. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  773. // Please see the License for the specific language governing rights and
  774. // limitations under the License.
  775. //
  776. // @APPLE_LICENSE_HEADER_END@
  777. // ++Copyright++ 1980, 1983, 1988, 1993
  778. // -
  779. // Copyright (c) 1980, 1983, 1988, 1993
  780. // The Regents of the University of California. All rights reserved.
  781. //
  782. // Redistribution and use in source and binary forms, with or without
  783. // modification, are permitted provided that the following conditions
  784. // are met:
  785. // 1. Redistributions of source code must retain the above copyright
  786. // notice, this list of conditions and the following disclaimer.
  787. // 2. Redistributions in binary form must reproduce the above copyright
  788. // notice, this list of conditions and the following disclaimer in the
  789. // documentation and/or other materials provided with the distribution.
  790. // 3. All advertising materials mentioning features or use of this software
  791. // must display the following acknowledgement:
  792. // This product includes software developed by the University of
  793. // California, Berkeley and its contributors.
  794. // 4. Neither the name of the University nor the names of its contributors
  795. // may be used to endorse or promote products derived from this software
  796. // without specific prior written permission.
  797. //
  798. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  799. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  800. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  801. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  802. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  803. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  804. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  805. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  806. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  807. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  808. // SUCH DAMAGE.
  809. //
  810. // -
  811. // Portions Copyright (c) 1993 by Digital Equipment Corporation.
  812. //
  813. // Permission to use, copy, modify, and distribute this software for any
  814. // purpose with or without fee is hereby granted, provided that the above
  815. // copyright notice and this permission notice appear in all copies, and that
  816. // the name of Digital Equipment Corporation not be used in advertising or
  817. // publicity pertaining to distribution of the document or software without
  818. // specific, written prior permission.
  819. //
  820. // THE SOFTWARE IS PROVIDED "AS IS" AND DIGITAL EQUIPMENT CORP. DISCLAIMS ALL
  821. // WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES
  822. // OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL DIGITAL EQUIPMENT
  823. // CORPORATION BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
  824. // DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
  825. // PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
  826. // ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  827. // SOFTWARE.
  828. // -
  829. // --Copyright--
  830. // @(#)netdb.h 8.1 (Berkeley) 6/2/93
  831. // Copyright (c) 2004, 2008, 2009 Apple Inc. All rights reserved.
  832. //
  833. // @APPLE_LICENSE_HEADER_START@
  834. //
  835. // This file contains Original Code and/or Modifications of Original Code
  836. // as defined in and that are subject to the Apple Public Source License
  837. // Version 2.0 (the 'License'). You may not use this file except in
  838. // compliance with the License. Please obtain a copy of the License at
  839. // http://www.opensource.apple.com/apsl/ and read it before using this
  840. // file.
  841. //
  842. // The Original Code and all software distributed under the License are
  843. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  844. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  845. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  846. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  847. // Please see the License for the specific language governing rights and
  848. // limitations under the License.
  849. //
  850. // @APPLE_LICENSE_HEADER_END@
  851. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  852. //
  853. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  854. //
  855. // This file contains Original Code and/or Modifications of Original Code
  856. // as defined in and that are subject to the Apple Public Source License
  857. // Version 2.0 (the 'License'). You may not use this file except in
  858. // compliance with the License. The rights granted to you under the License
  859. // may not be used to create, or enable the creation or redistribution of,
  860. // unlawful or unlicensed copies of an Apple operating system, or to
  861. // circumvent, violate, or enable the circumvention or violation of, any
  862. // terms of an Apple operating system software license agreement.
  863. //
  864. // Please obtain a copy of the License at
  865. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  866. //
  867. // The Original Code and all software distributed under the License are
  868. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  869. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  870. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  871. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  872. // Please see the License for the specific language governing rights and
  873. // limitations under the License.
  874. //
  875. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  876. // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  877. //
  878. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  879. //
  880. // This file contains Original Code and/or Modifications of Original Code
  881. // as defined in and that are subject to the Apple Public Source License
  882. // Version 2.0 (the 'License'). You may not use this file except in
  883. // compliance with the License. The rights granted to you under the License
  884. // may not be used to create, or enable the creation or redistribution of,
  885. // unlawful or unlicensed copies of an Apple operating system, or to
  886. // circumvent, violate, or enable the circumvention or violation of, any
  887. // terms of an Apple operating system software license agreement.
  888. //
  889. // Please obtain a copy of the License at
  890. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  891. //
  892. // The Original Code and all software distributed under the License are
  893. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  894. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  895. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  896. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  897. // Please see the License for the specific language governing rights and
  898. // limitations under the License.
  899. //
  900. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  901. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  902. // Copyright (c) 1991, 1993
  903. // The Regents of the University of California. All rights reserved.
  904. //
  905. // This code is derived from software contributed to Berkeley by
  906. // Berkeley Software Design, Inc.
  907. //
  908. // Redistribution and use in source and binary forms, with or without
  909. // modification, are permitted provided that the following conditions
  910. // are met:
  911. // 1. Redistributions of source code must retain the above copyright
  912. // notice, this list of conditions and the following disclaimer.
  913. // 2. Redistributions in binary form must reproduce the above copyright
  914. // notice, this list of conditions and the following disclaimer in the
  915. // documentation and/or other materials provided with the distribution.
  916. // 3. All advertising materials mentioning features or use of this software
  917. // must display the following acknowledgement:
  918. // This product includes software developed by the University of
  919. // California, Berkeley and its contributors.
  920. // 4. Neither the name of the University nor the names of its contributors
  921. // may be used to endorse or promote products derived from this software
  922. // without specific prior written permission.
  923. //
  924. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  925. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  926. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  927. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  928. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  929. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  930. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  931. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  932. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  933. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  934. // SUCH DAMAGE.
  935. //
  936. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  937. // This SDK is designed to work with clang and specific versions of
  938. // gcc >= 4.0 with Apple's patch sets
  939. // Compatibility with compilers and environments that don't support compiler
  940. // feature checking function-like macros.
  941. // The __CONCAT macro is used to concatenate parts of symbol names, e.g.
  942. // with "#define OLD(foo) __CONCAT(old,foo)", OLD(foo) produces oldfoo.
  943. // The __CONCAT macro is a bit tricky -- make sure you don't put spaces
  944. // in between its arguments. __CONCAT can also concatenate double-quoted
  945. // strings produced by the __STRING macro, but this only works with ANSI C.
  946. // In non-ANSI C environments, new programs will want ANSI-only C keywords
  947. // deleted from the program and old programs will want them left alone.
  948. // When using a compiler other than gcc, programs using the ANSI C keywords
  949. // const, inline etc. as normal identifiers should define -DNO_ANSI_KEYWORDS.
  950. // When using "gcc -traditional", we assume that this is the intent; if
  951. // __GNUC__ is defined but __STDC__ is not, we leave the new keywords alone.
  952. // __unused denotes variables and functions that may not be used, preventing
  953. // the compiler from warning about it if not used.
  954. // __used forces variables and functions to be included even if it appears
  955. // to the compiler that they are not used (and would thust be discarded).
  956. // __cold marks code used for debugging or that is rarely taken
  957. // and tells the compiler to optimize for size and outline code.
  958. // __deprecated causes the compiler to produce a warning when encountering
  959. // code using the deprecated functionality.
  960. // __deprecated_msg() does the same, and compilers that support it will print
  961. // a message along with the deprecation warning.
  962. // This may require turning on such warning with the -Wdeprecated flag.
  963. // __deprecated_enum_msg() should be used on enums, and compilers that support
  964. // it will print the deprecation warning.
  965. // __kpi_deprecated() specifically indicates deprecation of kernel programming
  966. // interfaces in Kernel.framework used by KEXTs.
  967. // __unavailable causes the compiler to error out when encountering
  968. // code using the tagged function of variable.
  969. // Delete pseudo-keywords wherever they are not available or needed.
  970. // We use `__restrict' as a way to define the `restrict' type qualifier
  971. // without disturbing older software that is unaware of C99 keywords.
  972. // Compatibility with compilers and environments that don't support the
  973. // nullability feature.
  974. // __disable_tail_calls causes the compiler to not perform tail call
  975. // optimization inside the marked function.
  976. // __not_tail_called causes the compiler to prevent tail call optimization
  977. // on statically bound calls to the function. It has no effect on indirect
  978. // calls. Virtual functions, objective-c methods, and functions marked as
  979. // "always_inline" cannot be marked as __not_tail_called.
  980. // __result_use_check warns callers of a function that not using the function
  981. // return value is a bug, i.e. dismissing malloc() return value results in a
  982. // memory leak.
  983. // __swift_unavailable causes the compiler to mark a symbol as specifically
  984. // unavailable in Swift, regardless of any other availability in C.
  985. // __abortlike is the attribute to put on functions like abort() that are
  986. // typically used to mark assertions. These optimize the codegen
  987. // for outlining while still maintaining debugability.
  988. // Declaring inline functions within headers is error-prone due to differences
  989. // across various versions of the C language and extensions. __header_inline
  990. // can be used to declare inline functions within system headers. In cases
  991. // where you want to force inlining instead of letting the compiler make
  992. // the decision, you can use __header_always_inline.
  993. //
  994. // Be aware that using inline for functions which compilers may also provide
  995. // builtins can behave differently under various compilers. If you intend to
  996. // provide an inline version of such a function, you may want to use a macro
  997. // instead.
  998. //
  999. // The check for !__GNUC__ || __clang__ is because gcc doesn't correctly
  1000. // support c99 inline in some cases:
  1001. // http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55965
  1002. // Compiler-dependent macros that bracket portions of code where the
  1003. // "-Wunreachable-code" warning should be ignored. Please use sparingly.
  1004. // Compiler-dependent macros to declare that functions take printf-like
  1005. // or scanf-like arguments. They are null except for versions of gcc
  1006. // that are known to support the features properly. Functions declared
  1007. // with these attributes will cause compilation warnings if there is a
  1008. // mismatch between the format string and subsequent function parameter
  1009. // types.
  1010. // Source compatibility only, ID string not emitted in object file
  1011. // __alloc_size can be used to label function arguments that represent the
  1012. // size of memory that the function allocates and returns. The one-argument
  1013. // form labels a single argument that gives the allocation size (where the
  1014. // arguments are numbered from 1):
  1015. //
  1016. // void *malloc(size_t __size) __alloc_size(1);
  1017. //
  1018. // The two-argument form handles the case where the size is calculated as the
  1019. // product of two arguments:
  1020. //
  1021. // void *calloc(size_t __count, size_t __size) __alloc_size(1,2);
  1022. // COMPILATION ENVIRONMENTS -- see compat(5) for additional detail
  1023. //
  1024. // DEFAULT By default newly complied code will get POSIX APIs plus
  1025. // Apple API extensions in scope.
  1026. //
  1027. // Most users will use this compilation environment to avoid
  1028. // behavioral differences between 32 and 64 bit code.
  1029. //
  1030. // LEGACY Defining _NONSTD_SOURCE will get pre-POSIX APIs plus Apple
  1031. // API extensions in scope.
  1032. //
  1033. // This is generally equivalent to the Tiger release compilation
  1034. // environment, except that it cannot be applied to 64 bit code;
  1035. // its use is discouraged.
  1036. //
  1037. // We expect this environment to be deprecated in the future.
  1038. //
  1039. // STRICT Defining _POSIX_C_SOURCE or _XOPEN_SOURCE restricts the
  1040. // available APIs to exactly the set of APIs defined by the
  1041. // corresponding standard, based on the value defined.
  1042. //
  1043. // A correct, portable definition for _POSIX_C_SOURCE is 200112L.
  1044. // A correct, portable definition for _XOPEN_SOURCE is 600L.
  1045. //
  1046. // Apple API extensions are not visible in this environment,
  1047. // which can cause Apple specific code to fail to compile,
  1048. // or behave incorrectly if prototypes are not in scope or
  1049. // warnings about missing prototypes are not enabled or ignored.
  1050. //
  1051. // In any compilation environment, for correct symbol resolution to occur,
  1052. // function prototypes must be in scope. It is recommended that all Apple
  1053. // tools users add either the "-Wall" or "-Wimplicit-function-declaration"
  1054. // compiler flags to their projects to be warned when a function is being
  1055. // used without a prototype in scope.
  1056. // These settings are particular to each product.
  1057. // Platform: MacOSX
  1058. // #undef __DARWIN_ONLY_UNIX_CONFORMANCE (automatically set for 64-bit)
  1059. // The __DARWIN_ALIAS macros are used to do symbol renaming; they allow
  1060. // legacy code to use the old symbol, thus maintaining binary compatibility
  1061. // while new code can use a standards compliant version of the same function.
  1062. //
  1063. // __DARWIN_ALIAS is used by itself if the function signature has not
  1064. // changed, it is used along with a #ifdef check for __DARWIN_UNIX03
  1065. // if the signature has changed. Because the __LP64__ environment
  1066. // only supports UNIX03 semantics it causes __DARWIN_UNIX03 to be
  1067. // defined, but causes __DARWIN_ALIAS to do no symbol mangling.
  1068. //
  1069. // As a special case, when XCode is used to target a specific version of the
  1070. // OS, the manifest constant __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__
  1071. // will be defined by the compiler, with the digits representing major version
  1072. // time 100 + minor version times 10 (e.g. 10.5 := 1050). If we are targeting
  1073. // pre-10.5, and it is the default compilation environment, revert the
  1074. // compilation environment to pre-__DARWIN_UNIX03.
  1075. // symbol suffixes used for symbol versioning
  1076. // symbol versioning macros
  1077. // symbol release macros
  1078. // Copyright (c) 2010 Apple Inc. All rights reserved.
  1079. //
  1080. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1081. //
  1082. // This file contains Original Code and/or Modifications of Original Code
  1083. // as defined in and that are subject to the Apple Public Source License
  1084. // Version 2.0 (the 'License'). You may not use this file except in
  1085. // compliance with the License. The rights granted to you under the License
  1086. // may not be used to create, or enable the creation or redistribution of,
  1087. // unlawful or unlicensed copies of an Apple operating system, or to
  1088. // circumvent, violate, or enable the circumvention or violation of, any
  1089. // terms of an Apple operating system software license agreement.
  1090. //
  1091. // Please obtain a copy of the License at
  1092. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1093. //
  1094. // The Original Code and all software distributed under the License are
  1095. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1096. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1097. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1098. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1099. // Please see the License for the specific language governing rights and
  1100. // limitations under the License.
  1101. //
  1102. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1103. // POSIX.1 requires that the macros we test be defined before any standard
  1104. // header file is included. This permits us to convert values for feature
  1105. // testing, as necessary, using only _POSIX_C_SOURCE.
  1106. //
  1107. // Here's a quick run-down of the versions:
  1108. // defined(_POSIX_SOURCE) 1003.1-1988
  1109. // _POSIX_C_SOURCE == 1L 1003.1-1990
  1110. // _POSIX_C_SOURCE == 2L 1003.2-1992 C Language Binding Option
  1111. // _POSIX_C_SOURCE == 199309L 1003.1b-1993
  1112. // _POSIX_C_SOURCE == 199506L 1003.1c-1995, 1003.1i-1995,
  1113. // and the omnibus ISO/IEC 9945-1: 1996
  1114. // _POSIX_C_SOURCE == 200112L 1003.1-2001
  1115. // _POSIX_C_SOURCE == 200809L 1003.1-2008
  1116. //
  1117. // In addition, the X/Open Portability Guide, which is now the Single UNIX
  1118. // Specification, defines a feature-test macro which indicates the version of
  1119. // that specification, and which subsumes _POSIX_C_SOURCE.
  1120. // Deal with IEEE Std. 1003.1-1990, in which _POSIX_C_SOURCE == 1L.
  1121. // Deal with IEEE Std. 1003.2-1992, in which _POSIX_C_SOURCE == 2L.
  1122. // Deal with various X/Open Portability Guides and Single UNIX Spec.
  1123. // Deal with all versions of POSIX. The ordering relative to the tests above is
  1124. // important.
  1125. // POSIX C deprecation macros
  1126. // Copyright (c) 2010 Apple Inc. All rights reserved.
  1127. //
  1128. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1129. //
  1130. // This file contains Original Code and/or Modifications of Original Code
  1131. // as defined in and that are subject to the Apple Public Source License
  1132. // Version 2.0 (the 'License'). You may not use this file except in
  1133. // compliance with the License. The rights granted to you under the License
  1134. // may not be used to create, or enable the creation or redistribution of,
  1135. // unlawful or unlicensed copies of an Apple operating system, or to
  1136. // circumvent, violate, or enable the circumvention or violation of, any
  1137. // terms of an Apple operating system software license agreement.
  1138. //
  1139. // Please obtain a copy of the License at
  1140. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1141. //
  1142. // The Original Code and all software distributed under the License are
  1143. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1144. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1145. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1146. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1147. // Please see the License for the specific language governing rights and
  1148. // limitations under the License.
  1149. //
  1150. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1151. // Set a single macro which will always be defined and can be used to determine
  1152. // the appropriate namespace. For POSIX, these values will correspond to
  1153. // _POSIX_C_SOURCE value. Currently there are two additional levels corresponding
  1154. // to ANSI (_ANSI_SOURCE) and Darwin extensions (_DARWIN_C_SOURCE)
  1155. // If the developer has neither requested a strict language mode nor a version
  1156. // of POSIX, turn on functionality provided by __STDC_WANT_LIB_EXT1__ as part
  1157. // of __DARWIN_C_FULL.
  1158. // long long is not supported in c89 (__STRICT_ANSI__), but g++ -ansi and
  1159. // c99 still want long longs. While not perfect, we allow long longs for
  1160. // g++.
  1161. // ****************************************
  1162. //
  1163. // Public darwin-specific feature macros
  1164. //
  1165. // _DARWIN_FEATURE_64_BIT_INODE indicates that the ino_t type is 64-bit, and
  1166. // structures modified for 64-bit inodes (like struct stat) will be used.
  1167. // _DARWIN_FEATURE_64_ONLY_BIT_INODE indicates that the ino_t type may only
  1168. // be 64-bit; there is no support for 32-bit ino_t when this macro is defined
  1169. // (and non-zero). There is no struct stat64 either, as the regular
  1170. // struct stat will already be the 64-bit version.
  1171. // _DARWIN_FEATURE_ONLY_VERS_1050 indicates that only those APIs updated
  1172. // in 10.5 exists; no pre-10.5 variants are available.
  1173. // _DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE indicates only UNIX conforming API
  1174. // are available (the legacy BSD APIs are not available)
  1175. // _DARWIN_FEATURE_UNIX_CONFORMANCE indicates whether UNIX conformance is on,
  1176. // and specifies the conformance level (3 is SUSv3)
  1177. // This macro casts away the qualifier from the variable
  1178. //
  1179. // Note: use at your own risk, removing qualifiers can result in
  1180. // catastrophic run-time failures.
  1181. // __XNU_PRIVATE_EXTERN is a linkage decoration indicating that a symbol can be
  1182. // used from other compilation units, but not other libraries or executables.
  1183. // Architecture validation for current SDK
  1184. // Similar to OS_ENUM/OS_CLOSED_ENUM/OS_OPTIONS/OS_CLOSED_OPTIONS
  1185. //
  1186. // This provides more advanced type checking on compilers supporting
  1187. // the proper extensions, even in C.
  1188. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  1189. //
  1190. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1191. //
  1192. // This file contains Original Code and/or Modifications of Original Code
  1193. // as defined in and that are subject to the Apple Public Source License
  1194. // Version 2.0 (the 'License'). You may not use this file except in
  1195. // compliance with the License. The rights granted to you under the License
  1196. // may not be used to create, or enable the creation or redistribution of,
  1197. // unlawful or unlicensed copies of an Apple operating system, or to
  1198. // circumvent, violate, or enable the circumvention or violation of, any
  1199. // terms of an Apple operating system software license agreement.
  1200. //
  1201. // Please obtain a copy of the License at
  1202. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1203. //
  1204. // The Original Code and all software distributed under the License are
  1205. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1206. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1207. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1208. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1209. // Please see the License for the specific language governing rights and
  1210. // limitations under the License.
  1211. //
  1212. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1213. // Copyright (c) 2000-2003 Apple Computer, Inc. All rights reserved.
  1214. //
  1215. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1216. //
  1217. // This file contains Original Code and/or Modifications of Original Code
  1218. // as defined in and that are subject to the Apple Public Source License
  1219. // Version 2.0 (the 'License'). You may not use this file except in
  1220. // compliance with the License. The rights granted to you under the License
  1221. // may not be used to create, or enable the creation or redistribution of,
  1222. // unlawful or unlicensed copies of an Apple operating system, or to
  1223. // circumvent, violate, or enable the circumvention or violation of, any
  1224. // terms of an Apple operating system software license agreement.
  1225. //
  1226. // Please obtain a copy of the License at
  1227. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1228. //
  1229. // The Original Code and all software distributed under the License are
  1230. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1231. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1232. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1233. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1234. // Please see the License for the specific language governing rights and
  1235. // limitations under the License.
  1236. //
  1237. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1238. // This header file contains integer types. It's intended to also contain
  1239. // flotaing point and other arithmetic types, as needed, later.
  1240. type X__int8_t = int8 /* _types.h:37:33 */
  1241. type X__uint8_t = uint8 /* _types.h:41:33 */
  1242. type X__int16_t = int16 /* _types.h:42:33 */
  1243. type X__uint16_t = uint16 /* _types.h:43:33 */
  1244. type X__int32_t = int32 /* _types.h:44:33 */
  1245. type X__uint32_t = uint32 /* _types.h:45:33 */
  1246. type X__int64_t = int64 /* _types.h:46:33 */
  1247. type X__uint64_t = uint64 /* _types.h:47:33 */
  1248. type X__darwin_intptr_t = int64 /* _types.h:49:33 */
  1249. type X__darwin_natural_t = uint32 /* _types.h:50:33 */
  1250. // The rune type below is declared to be an ``int'' instead of the more natural
  1251. // ``unsigned long'' or ``long''. Two things are happening here. It is not
  1252. // unsigned so that EOF (-1) can be naturally assigned to it and used. Also,
  1253. // it looks like 10646 will be a 31 bit standard. This means that if your
  1254. // ints cannot hold 32 bits, you will be in trouble. The reason an int was
  1255. // chosen over a long is that the is*() and to*() routines take ints (says
  1256. // ANSI C), but they use __darwin_ct_rune_t instead of int. By changing it
  1257. // here, you lose a bit of ANSI conformance, but your programs will still
  1258. // work.
  1259. //
  1260. // NOTE: rune_t is not covered by ANSI nor other standards, and should not
  1261. // be instantiated outside of lib/libc/locale. Use wchar_t. wchar_t and
  1262. // rune_t must be the same type. Also wint_t must be no narrower than
  1263. // wchar_t, and should also be able to hold all members of the largest
  1264. // character set plus one extra value (WEOF). wint_t must be at least 16 bits.
  1265. type X__darwin_ct_rune_t = int32 /* _types.h:70:33 */ // ct_rune_t
  1266. // mbstate_t is an opaque object to keep conversion state, during multibyte
  1267. // stream conversions. The content must not be referenced by user programs.
  1268. type X__mbstate_t = struct {
  1269. F__ccgo_pad1 [0]uint64
  1270. F__mbstate8 [128]int8
  1271. } /* _types.h:79:3 */
  1272. type X__darwin_mbstate_t = X__mbstate_t /* _types.h:81:33 */ // mbstate_t
  1273. type X__darwin_ptrdiff_t = int64 /* _types.h:84:33 */ // ptr1 - ptr2
  1274. type X__darwin_size_t = uint64 /* _types.h:92:33 */ // sizeof()
  1275. type X__darwin_va_list = X__builtin_va_list /* _types.h:98:33 */ // va_list
  1276. type X__darwin_wchar_t = int32 /* _types.h:104:33 */ // wchar_t
  1277. type X__darwin_rune_t = X__darwin_wchar_t /* _types.h:109:33 */ // rune_t
  1278. type X__darwin_wint_t = int32 /* _types.h:112:33 */ // wint_t
  1279. type X__darwin_clock_t = uint64 /* _types.h:117:33 */ // clock()
  1280. type X__darwin_socklen_t = X__uint32_t /* _types.h:118:33 */ // socklen_t (duh)
  1281. type X__darwin_ssize_t = int64 /* _types.h:119:33 */ // byte count or error
  1282. type X__darwin_time_t = int64 /* _types.h:120:33 */ // time()
  1283. // Type definitions; takes common type definitions that must be used
  1284. // in multiple header files due to [XSI], removes them from the system
  1285. // space, and puts them in the implementation space.
  1286. type X__darwin_blkcnt_t = X__int64_t /* _types.h:55:25 */ // total blocks
  1287. type X__darwin_blksize_t = X__int32_t /* _types.h:56:25 */ // preferred block size
  1288. type X__darwin_dev_t = X__int32_t /* _types.h:57:25 */ // dev_t
  1289. type X__darwin_fsblkcnt_t = uint32 /* _types.h:58:25 */ // Used by statvfs and fstatvfs
  1290. type X__darwin_fsfilcnt_t = uint32 /* _types.h:59:25 */ // Used by statvfs and fstatvfs
  1291. type X__darwin_gid_t = X__uint32_t /* _types.h:60:25 */ // [???] process and group IDs
  1292. type X__darwin_id_t = X__uint32_t /* _types.h:61:25 */ // [XSI] pid_t, uid_t, or gid_t
  1293. type X__darwin_ino64_t = X__uint64_t /* _types.h:62:25 */ // [???] Used for 64 bit inodes
  1294. type X__darwin_ino_t = X__darwin_ino64_t /* _types.h:64:26 */ // [???] Used for inodes
  1295. type X__darwin_mach_port_name_t = X__darwin_natural_t /* _types.h:68:28 */ // Used by mach
  1296. type X__darwin_mach_port_t = X__darwin_mach_port_name_t /* _types.h:69:35 */ // Used by mach
  1297. type X__darwin_mode_t = X__uint16_t /* _types.h:70:25 */ // [???] Some file attributes
  1298. type X__darwin_off_t = X__int64_t /* _types.h:71:25 */ // [???] Used for file sizes
  1299. type X__darwin_pid_t = X__int32_t /* _types.h:72:25 */ // [???] process and group IDs
  1300. type X__darwin_sigset_t = X__uint32_t /* _types.h:73:25 */ // [???] signal set
  1301. type X__darwin_suseconds_t = X__int32_t /* _types.h:74:25 */ // [???] microseconds
  1302. type X__darwin_uid_t = X__uint32_t /* _types.h:75:25 */ // [???] user IDs
  1303. type X__darwin_useconds_t = X__uint32_t /* _types.h:76:25 */ // [???] microseconds
  1304. type X__darwin_uuid_t = [16]uint8 /* _types.h:77:25 */
  1305. type X__darwin_uuid_string_t = [37]int8 /* _types.h:78:17 */
  1306. // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  1307. //
  1308. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1309. //
  1310. // This file contains Original Code and/or Modifications of Original Code
  1311. // as defined in and that are subject to the Apple Public Source License
  1312. // Version 2.0 (the 'License'). You may not use this file except in
  1313. // compliance with the License. The rights granted to you under the License
  1314. // may not be used to create, or enable the creation or redistribution of,
  1315. // unlawful or unlicensed copies of an Apple operating system, or to
  1316. // circumvent, violate, or enable the circumvention or violation of, any
  1317. // terms of an Apple operating system software license agreement.
  1318. //
  1319. // Please obtain a copy of the License at
  1320. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1321. //
  1322. // The Original Code and all software distributed under the License are
  1323. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1324. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1325. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1326. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1327. // Please see the License for the specific language governing rights and
  1328. // limitations under the License.
  1329. //
  1330. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1331. // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  1332. //
  1333. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1334. //
  1335. // This file contains Original Code and/or Modifications of Original Code
  1336. // as defined in and that are subject to the Apple Public Source License
  1337. // Version 2.0 (the 'License'). You may not use this file except in
  1338. // compliance with the License. The rights granted to you under the License
  1339. // may not be used to create, or enable the creation or redistribution of,
  1340. // unlawful or unlicensed copies of an Apple operating system, or to
  1341. // circumvent, violate, or enable the circumvention or violation of, any
  1342. // terms of an Apple operating system software license agreement.
  1343. //
  1344. // Please obtain a copy of the License at
  1345. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1346. //
  1347. // The Original Code and all software distributed under the License are
  1348. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1349. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1350. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1351. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1352. // Please see the License for the specific language governing rights and
  1353. // limitations under the License.
  1354. //
  1355. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1356. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  1357. // Copyright (c) 1991, 1993
  1358. // The Regents of the University of California. All rights reserved.
  1359. //
  1360. // This code is derived from software contributed to Berkeley by
  1361. // Berkeley Software Design, Inc.
  1362. //
  1363. // Redistribution and use in source and binary forms, with or without
  1364. // modification, are permitted provided that the following conditions
  1365. // are met:
  1366. // 1. Redistributions of source code must retain the above copyright
  1367. // notice, this list of conditions and the following disclaimer.
  1368. // 2. Redistributions in binary form must reproduce the above copyright
  1369. // notice, this list of conditions and the following disclaimer in the
  1370. // documentation and/or other materials provided with the distribution.
  1371. // 3. All advertising materials mentioning features or use of this software
  1372. // must display the following acknowledgement:
  1373. // This product includes software developed by the University of
  1374. // California, Berkeley and its contributors.
  1375. // 4. Neither the name of the University nor the names of its contributors
  1376. // may be used to endorse or promote products derived from this software
  1377. // without specific prior written permission.
  1378. //
  1379. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1380. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1381. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1382. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1383. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1384. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1385. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1386. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1387. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1388. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1389. // SUCH DAMAGE.
  1390. //
  1391. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  1392. // pthread opaque structures
  1393. type X__darwin_pthread_handler_rec = struct {
  1394. F__routine uintptr
  1395. F__arg uintptr
  1396. F__next uintptr
  1397. } /* _pthread_types.h:57:1 */
  1398. type X_opaque_pthread_attr_t = struct {
  1399. F__sig int64
  1400. F__opaque [56]int8
  1401. } /* _pthread_types.h:63:1 */
  1402. type X_opaque_pthread_cond_t = struct {
  1403. F__sig int64
  1404. F__opaque [40]int8
  1405. } /* _pthread_types.h:68:1 */
  1406. type X_opaque_pthread_condattr_t = struct {
  1407. F__sig int64
  1408. F__opaque [8]int8
  1409. } /* _pthread_types.h:73:1 */
  1410. type X_opaque_pthread_mutex_t = struct {
  1411. F__sig int64
  1412. F__opaque [56]int8
  1413. } /* _pthread_types.h:78:1 */
  1414. type X_opaque_pthread_mutexattr_t = struct {
  1415. F__sig int64
  1416. F__opaque [8]int8
  1417. } /* _pthread_types.h:83:1 */
  1418. type X_opaque_pthread_once_t = struct {
  1419. F__sig int64
  1420. F__opaque [8]int8
  1421. } /* _pthread_types.h:88:1 */
  1422. type X_opaque_pthread_rwlock_t = struct {
  1423. F__sig int64
  1424. F__opaque [192]int8
  1425. } /* _pthread_types.h:93:1 */
  1426. type X_opaque_pthread_rwlockattr_t = struct {
  1427. F__sig int64
  1428. F__opaque [16]int8
  1429. } /* _pthread_types.h:98:1 */
  1430. type X_opaque_pthread_t = struct {
  1431. F__sig int64
  1432. F__cleanup_stack uintptr
  1433. F__opaque [8176]int8
  1434. } /* _pthread_types.h:103:1 */
  1435. type X__darwin_pthread_attr_t = X_opaque_pthread_attr_t /* _pthread_types.h:109:39 */
  1436. type X__darwin_pthread_cond_t = X_opaque_pthread_cond_t /* _pthread_types.h:110:39 */
  1437. type X__darwin_pthread_condattr_t = X_opaque_pthread_condattr_t /* _pthread_types.h:111:43 */
  1438. type X__darwin_pthread_key_t = uint64 /* _pthread_types.h:112:23 */
  1439. type X__darwin_pthread_mutex_t = X_opaque_pthread_mutex_t /* _pthread_types.h:113:40 */
  1440. type X__darwin_pthread_mutexattr_t = X_opaque_pthread_mutexattr_t /* _pthread_types.h:114:44 */
  1441. type X__darwin_pthread_once_t = X_opaque_pthread_once_t /* _pthread_types.h:115:39 */
  1442. type X__darwin_pthread_rwlock_t = X_opaque_pthread_rwlock_t /* _pthread_types.h:116:41 */
  1443. type X__darwin_pthread_rwlockattr_t = X_opaque_pthread_rwlockattr_t /* _pthread_types.h:117:45 */
  1444. type X__darwin_pthread_t = uintptr /* _pthread_types.h:118:34 */
  1445. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  1446. //
  1447. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1448. //
  1449. // This file contains Original Code and/or Modifications of Original Code
  1450. // as defined in and that are subject to the Apple Public Source License
  1451. // Version 2.0 (the 'License'). You may not use this file except in
  1452. // compliance with the License. The rights granted to you under the License
  1453. // may not be used to create, or enable the creation or redistribution of,
  1454. // unlawful or unlicensed copies of an Apple operating system, or to
  1455. // circumvent, violate, or enable the circumvention or violation of, any
  1456. // terms of an Apple operating system software license agreement.
  1457. //
  1458. // Please obtain a copy of the License at
  1459. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1460. //
  1461. // The Original Code and all software distributed under the License are
  1462. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1463. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1464. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1465. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1466. // Please see the License for the specific language governing rights and
  1467. // limitations under the License.
  1468. //
  1469. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1470. type X__darwin_nl_item = int32 /* _types.h:40:14 */
  1471. type X__darwin_wctrans_t = int32 /* _types.h:41:14 */
  1472. type X__darwin_wctype_t = X__uint32_t /* _types.h:43:20 */
  1473. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  1474. //
  1475. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1476. //
  1477. // This file contains Original Code and/or Modifications of Original Code
  1478. // as defined in and that are subject to the Apple Public Source License
  1479. // Version 2.0 (the 'License'). You may not use this file except in
  1480. // compliance with the License. The rights granted to you under the License
  1481. // may not be used to create, or enable the creation or redistribution of,
  1482. // unlawful or unlicensed copies of an Apple operating system, or to
  1483. // circumvent, violate, or enable the circumvention or violation of, any
  1484. // terms of an Apple operating system software license agreement.
  1485. //
  1486. // Please obtain a copy of the License at
  1487. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1488. //
  1489. // The Original Code and all software distributed under the License are
  1490. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1491. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1492. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1493. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1494. // Please see the License for the specific language governing rights and
  1495. // limitations under the License.
  1496. //
  1497. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1498. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  1499. //
  1500. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1501. //
  1502. // This file contains Original Code and/or Modifications of Original Code
  1503. // as defined in and that are subject to the Apple Public Source License
  1504. // Version 2.0 (the 'License'). You may not use this file except in
  1505. // compliance with the License. The rights granted to you under the License
  1506. // may not be used to create, or enable the creation or redistribution of,
  1507. // unlawful or unlicensed copies of an Apple operating system, or to
  1508. // circumvent, violate, or enable the circumvention or violation of, any
  1509. // terms of an Apple operating system software license agreement.
  1510. //
  1511. // Please obtain a copy of the License at
  1512. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1513. //
  1514. // The Original Code and all software distributed under the License are
  1515. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1516. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1517. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1518. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1519. // Please see the License for the specific language governing rights and
  1520. // limitations under the License.
  1521. //
  1522. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1523. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  1524. // Copyright (c) 2000-2008 Apple Inc. All rights reserved.
  1525. //
  1526. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1527. //
  1528. // This file contains Original Code and/or Modifications of Original Code
  1529. // as defined in and that are subject to the Apple Public Source License
  1530. // Version 2.0 (the 'License'). You may not use this file except in
  1531. // compliance with the License. The rights granted to you under the License
  1532. // may not be used to create, or enable the creation or redistribution of,
  1533. // unlawful or unlicensed copies of an Apple operating system, or to
  1534. // circumvent, violate, or enable the circumvention or violation of, any
  1535. // terms of an Apple operating system software license agreement.
  1536. //
  1537. // Please obtain a copy of the License at
  1538. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1539. //
  1540. // The Original Code and all software distributed under the License are
  1541. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1542. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1543. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1544. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1545. // Please see the License for the specific language governing rights and
  1546. // limitations under the License.
  1547. //
  1548. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1549. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  1550. // Copyright (c) 1990, 1993
  1551. // The Regents of the University of California. All rights reserved.
  1552. //
  1553. // Redistribution and use in source and binary forms, with or without
  1554. // modification, are permitted provided that the following conditions
  1555. // are met:
  1556. // 1. Redistributions of source code must retain the above copyright
  1557. // notice, this list of conditions and the following disclaimer.
  1558. // 2. Redistributions in binary form must reproduce the above copyright
  1559. // notice, this list of conditions and the following disclaimer in the
  1560. // documentation and/or other materials provided with the distribution.
  1561. // 3. All advertising materials mentioning features or use of this software
  1562. // must display the following acknowledgement:
  1563. // This product includes software developed by the University of
  1564. // California, Berkeley and its contributors.
  1565. // 4. Neither the name of the University nor the names of its contributors
  1566. // may be used to endorse or promote products derived from this software
  1567. // without specific prior written permission.
  1568. //
  1569. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1570. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1571. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1572. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1573. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1574. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1575. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1576. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1577. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1578. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1579. // SUCH DAMAGE.
  1580. //
  1581. // @(#)types.h 8.3 (Berkeley) 1/5/94
  1582. // Copyright (c) 2000-2003 Apple Computer, Inc. All rights reserved.
  1583. //
  1584. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1585. //
  1586. // This file contains Original Code and/or Modifications of Original Code
  1587. // as defined in and that are subject to the Apple Public Source License
  1588. // Version 2.0 (the 'License'). You may not use this file except in
  1589. // compliance with the License. The rights granted to you under the License
  1590. // may not be used to create, or enable the creation or redistribution of,
  1591. // unlawful or unlicensed copies of an Apple operating system, or to
  1592. // circumvent, violate, or enable the circumvention or violation of, any
  1593. // terms of an Apple operating system software license agreement.
  1594. //
  1595. // Please obtain a copy of the License at
  1596. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1597. //
  1598. // The Original Code and all software distributed under the License are
  1599. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1600. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1601. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1602. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1603. // Please see the License for the specific language governing rights and
  1604. // limitations under the License.
  1605. //
  1606. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1607. // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  1608. //
  1609. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1610. //
  1611. // This file contains Original Code and/or Modifications of Original Code
  1612. // as defined in and that are subject to the Apple Public Source License
  1613. // Version 2.0 (the 'License'). You may not use this file except in
  1614. // compliance with the License. The rights granted to you under the License
  1615. // may not be used to create, or enable the creation or redistribution of,
  1616. // unlawful or unlicensed copies of an Apple operating system, or to
  1617. // circumvent, violate, or enable the circumvention or violation of, any
  1618. // terms of an Apple operating system software license agreement.
  1619. //
  1620. // Please obtain a copy of the License at
  1621. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1622. //
  1623. // The Original Code and all software distributed under the License are
  1624. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1625. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1626. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1627. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1628. // Please see the License for the specific language governing rights and
  1629. // limitations under the License.
  1630. //
  1631. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1632. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  1633. // Copyright (c) 1991, 1993
  1634. // The Regents of the University of California. All rights reserved.
  1635. //
  1636. // This code is derived from software contributed to Berkeley by
  1637. // Berkeley Software Design, Inc.
  1638. //
  1639. // Redistribution and use in source and binary forms, with or without
  1640. // modification, are permitted provided that the following conditions
  1641. // are met:
  1642. // 1. Redistributions of source code must retain the above copyright
  1643. // notice, this list of conditions and the following disclaimer.
  1644. // 2. Redistributions in binary form must reproduce the above copyright
  1645. // notice, this list of conditions and the following disclaimer in the
  1646. // documentation and/or other materials provided with the distribution.
  1647. // 3. All advertising materials mentioning features or use of this software
  1648. // must display the following acknowledgement:
  1649. // This product includes software developed by the University of
  1650. // California, Berkeley and its contributors.
  1651. // 4. Neither the name of the University nor the names of its contributors
  1652. // may be used to endorse or promote products derived from this software
  1653. // without specific prior written permission.
  1654. //
  1655. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1656. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1657. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1658. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1659. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1660. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1661. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1662. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1663. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1664. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1665. // SUCH DAMAGE.
  1666. //
  1667. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  1668. // Basic integral types. Omit the typedef if
  1669. // not possible for a machine/compiler combination.
  1670. // Copyright (c) 2012 Apple Inc. All rights reserved.
  1671. //
  1672. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1673. //
  1674. // This file contains Original Code and/or Modifications of Original Code
  1675. // as defined in and that are subject to the Apple Public Source License
  1676. // Version 2.0 (the 'License'). You may not use this file except in
  1677. // compliance with the License. The rights granted to you under the License
  1678. // may not be used to create, or enable the creation or redistribution of,
  1679. // unlawful or unlicensed copies of an Apple operating system, or to
  1680. // circumvent, violate, or enable the circumvention or violation of, any
  1681. // terms of an Apple operating system software license agreement.
  1682. //
  1683. // Please obtain a copy of the License at
  1684. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1685. //
  1686. // The Original Code and all software distributed under the License are
  1687. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1688. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1689. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1690. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1691. // Please see the License for the specific language governing rights and
  1692. // limitations under the License.
  1693. //
  1694. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1695. type Int8_t = int8 /* _int8_t.h:30:33 */
  1696. // Copyright (c) 2012 Apple Inc. All rights reserved.
  1697. //
  1698. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1699. //
  1700. // This file contains Original Code and/or Modifications of Original Code
  1701. // as defined in and that are subject to the Apple Public Source License
  1702. // Version 2.0 (the 'License'). You may not use this file except in
  1703. // compliance with the License. The rights granted to you under the License
  1704. // may not be used to create, or enable the creation or redistribution of,
  1705. // unlawful or unlicensed copies of an Apple operating system, or to
  1706. // circumvent, violate, or enable the circumvention or violation of, any
  1707. // terms of an Apple operating system software license agreement.
  1708. //
  1709. // Please obtain a copy of the License at
  1710. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1711. //
  1712. // The Original Code and all software distributed under the License are
  1713. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1714. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1715. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1716. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1717. // Please see the License for the specific language governing rights and
  1718. // limitations under the License.
  1719. //
  1720. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1721. type Int16_t = int16 /* _int16_t.h:30:33 */
  1722. // Copyright (c) 2012 Apple Inc. All rights reserved.
  1723. //
  1724. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1725. //
  1726. // This file contains Original Code and/or Modifications of Original Code
  1727. // as defined in and that are subject to the Apple Public Source License
  1728. // Version 2.0 (the 'License'). You may not use this file except in
  1729. // compliance with the License. The rights granted to you under the License
  1730. // may not be used to create, or enable the creation or redistribution of,
  1731. // unlawful or unlicensed copies of an Apple operating system, or to
  1732. // circumvent, violate, or enable the circumvention or violation of, any
  1733. // terms of an Apple operating system software license agreement.
  1734. //
  1735. // Please obtain a copy of the License at
  1736. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1737. //
  1738. // The Original Code and all software distributed under the License are
  1739. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1740. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1741. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1742. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1743. // Please see the License for the specific language governing rights and
  1744. // limitations under the License.
  1745. //
  1746. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1747. type Int32_t = int32 /* _int32_t.h:30:33 */
  1748. // Copyright (c) 2012 Apple Inc. All rights reserved.
  1749. //
  1750. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1751. //
  1752. // This file contains Original Code and/or Modifications of Original Code
  1753. // as defined in and that are subject to the Apple Public Source License
  1754. // Version 2.0 (the 'License'). You may not use this file except in
  1755. // compliance with the License. The rights granted to you under the License
  1756. // may not be used to create, or enable the creation or redistribution of,
  1757. // unlawful or unlicensed copies of an Apple operating system, or to
  1758. // circumvent, violate, or enable the circumvention or violation of, any
  1759. // terms of an Apple operating system software license agreement.
  1760. //
  1761. // Please obtain a copy of the License at
  1762. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1763. //
  1764. // The Original Code and all software distributed under the License are
  1765. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1766. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1767. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1768. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1769. // Please see the License for the specific language governing rights and
  1770. // limitations under the License.
  1771. //
  1772. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1773. type Int64_t = int64 /* _int64_t.h:30:33 */
  1774. // Copyright (c) 2016 Apple Inc. All rights reserved.
  1775. //
  1776. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1777. //
  1778. // This file contains Original Code and/or Modifications of Original Code
  1779. // as defined in and that are subject to the Apple Public Source License
  1780. // Version 2.0 (the 'License'). You may not use this file except in
  1781. // compliance with the License. The rights granted to you under the License
  1782. // may not be used to create, or enable the creation or redistribution of,
  1783. // unlawful or unlicensed copies of an Apple operating system, or to
  1784. // circumvent, violate, or enable the circumvention or violation of, any
  1785. // terms of an Apple operating system software license agreement.
  1786. //
  1787. // Please obtain a copy of the License at
  1788. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1789. //
  1790. // The Original Code and all software distributed under the License are
  1791. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1792. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1793. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1794. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1795. // Please see the License for the specific language governing rights and
  1796. // limitations under the License.
  1797. //
  1798. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1799. type U_int8_t = uint8 /* _u_int8_t.h:30:33 */
  1800. // Copyright (c) 2012 Apple Inc. All rights reserved.
  1801. //
  1802. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1803. //
  1804. // This file contains Original Code and/or Modifications of Original Code
  1805. // as defined in and that are subject to the Apple Public Source License
  1806. // Version 2.0 (the 'License'). You may not use this file except in
  1807. // compliance with the License. The rights granted to you under the License
  1808. // may not be used to create, or enable the creation or redistribution of,
  1809. // unlawful or unlicensed copies of an Apple operating system, or to
  1810. // circumvent, violate, or enable the circumvention or violation of, any
  1811. // terms of an Apple operating system software license agreement.
  1812. //
  1813. // Please obtain a copy of the License at
  1814. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1815. //
  1816. // The Original Code and all software distributed under the License are
  1817. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1818. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1819. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1820. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1821. // Please see the License for the specific language governing rights and
  1822. // limitations under the License.
  1823. //
  1824. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1825. type U_int16_t = uint16 /* _u_int16_t.h:30:41 */
  1826. // Copyright (c) 2012 Apple Inc. All rights reserved.
  1827. //
  1828. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1829. //
  1830. // This file contains Original Code and/or Modifications of Original Code
  1831. // as defined in and that are subject to the Apple Public Source License
  1832. // Version 2.0 (the 'License'). You may not use this file except in
  1833. // compliance with the License. The rights granted to you under the License
  1834. // may not be used to create, or enable the creation or redistribution of,
  1835. // unlawful or unlicensed copies of an Apple operating system, or to
  1836. // circumvent, violate, or enable the circumvention or violation of, any
  1837. // terms of an Apple operating system software license agreement.
  1838. //
  1839. // Please obtain a copy of the License at
  1840. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1841. //
  1842. // The Original Code and all software distributed under the License are
  1843. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1844. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1845. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1846. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1847. // Please see the License for the specific language governing rights and
  1848. // limitations under the License.
  1849. //
  1850. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1851. type U_int32_t = uint32 /* _u_int32_t.h:30:33 */
  1852. // Copyright (c) 2012 Apple Inc. All rights reserved.
  1853. //
  1854. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1855. //
  1856. // This file contains Original Code and/or Modifications of Original Code
  1857. // as defined in and that are subject to the Apple Public Source License
  1858. // Version 2.0 (the 'License'). You may not use this file except in
  1859. // compliance with the License. The rights granted to you under the License
  1860. // may not be used to create, or enable the creation or redistribution of,
  1861. // unlawful or unlicensed copies of an Apple operating system, or to
  1862. // circumvent, violate, or enable the circumvention or violation of, any
  1863. // terms of an Apple operating system software license agreement.
  1864. //
  1865. // Please obtain a copy of the License at
  1866. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1867. //
  1868. // The Original Code and all software distributed under the License are
  1869. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1870. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1871. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1872. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1873. // Please see the License for the specific language governing rights and
  1874. // limitations under the License.
  1875. //
  1876. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1877. type U_int64_t = uint64 /* _u_int64_t.h:30:33 */
  1878. type Register_t = Int64_t /* types.h:87:33 */
  1879. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  1880. //
  1881. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1882. //
  1883. // This file contains Original Code and/or Modifications of Original Code
  1884. // as defined in and that are subject to the Apple Public Source License
  1885. // Version 2.0 (the 'License'). You may not use this file except in
  1886. // compliance with the License. The rights granted to you under the License
  1887. // may not be used to create, or enable the creation or redistribution of,
  1888. // unlawful or unlicensed copies of an Apple operating system, or to
  1889. // circumvent, violate, or enable the circumvention or violation of, any
  1890. // terms of an Apple operating system software license agreement.
  1891. //
  1892. // Please obtain a copy of the License at
  1893. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1894. //
  1895. // The Original Code and all software distributed under the License are
  1896. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1897. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1898. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1899. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1900. // Please see the License for the specific language governing rights and
  1901. // limitations under the License.
  1902. //
  1903. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1904. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  1905. //
  1906. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1907. //
  1908. // This file contains Original Code and/or Modifications of Original Code
  1909. // as defined in and that are subject to the Apple Public Source License
  1910. // Version 2.0 (the 'License'). You may not use this file except in
  1911. // compliance with the License. The rights granted to you under the License
  1912. // may not be used to create, or enable the creation or redistribution of,
  1913. // unlawful or unlicensed copies of an Apple operating system, or to
  1914. // circumvent, violate, or enable the circumvention or violation of, any
  1915. // terms of an Apple operating system software license agreement.
  1916. //
  1917. // Please obtain a copy of the License at
  1918. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1919. //
  1920. // The Original Code and all software distributed under the License are
  1921. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1922. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1923. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1924. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1925. // Please see the License for the specific language governing rights and
  1926. // limitations under the License.
  1927. //
  1928. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1929. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  1930. type Intptr_t = X__darwin_intptr_t /* _intptr_t.h:32:33 */
  1931. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  1932. //
  1933. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1934. //
  1935. // This file contains Original Code and/or Modifications of Original Code
  1936. // as defined in and that are subject to the Apple Public Source License
  1937. // Version 2.0 (the 'License'). You may not use this file except in
  1938. // compliance with the License. The rights granted to you under the License
  1939. // may not be used to create, or enable the creation or redistribution of,
  1940. // unlawful or unlicensed copies of an Apple operating system, or to
  1941. // circumvent, violate, or enable the circumvention or violation of, any
  1942. // terms of an Apple operating system software license agreement.
  1943. //
  1944. // Please obtain a copy of the License at
  1945. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1946. //
  1947. // The Original Code and all software distributed under the License are
  1948. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1949. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1950. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1951. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1952. // Please see the License for the specific language governing rights and
  1953. // limitations under the License.
  1954. //
  1955. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1956. type Uintptr_t = uint64 /* _uintptr_t.h:30:33 */
  1957. // These types are used for reserving the largest possible size.
  1958. type User_addr_t = U_int64_t /* types.h:97:33 */
  1959. type User_size_t = U_int64_t /* types.h:98:33 */
  1960. type User_ssize_t = Int64_t /* types.h:99:33 */
  1961. type User_long_t = Int64_t /* types.h:100:33 */
  1962. type User_ulong_t = U_int64_t /* types.h:101:33 */
  1963. type User_time_t = Int64_t /* types.h:102:33 */
  1964. type User_off_t = Int64_t /* types.h:103:33 */
  1965. // This defines the size of syscall arguments after copying into the kernel:
  1966. type Syscall_arg_t = U_int64_t /* types.h:111:33 */
  1967. type Socklen_t = X__darwin_socklen_t /* _socklen_t.h:31:33 */
  1968. type Uint64_t = uint64 /* stdint.h:98:25 */
  1969. type Int_least64_t = Int64_t /* stdint.h:110:25 */
  1970. type Uint_least64_t = Uint64_t /* stdint.h:111:26 */
  1971. type Int_fast64_t = Int64_t /* stdint.h:112:25 */
  1972. type Uint_fast64_t = Uint64_t /* stdint.h:113:26 */
  1973. type Uint32_t = uint32 /* stdint.h:172:25 */
  1974. type Int_least32_t = Int32_t /* stdint.h:184:25 */
  1975. type Uint_least32_t = Uint32_t /* stdint.h:185:26 */
  1976. type Int_fast32_t = Int32_t /* stdint.h:186:25 */
  1977. type Uint_fast32_t = Uint32_t /* stdint.h:187:26 */
  1978. type Uint16_t = uint16 /* stdint.h:207:25 */
  1979. type Int_least16_t = Int16_t /* stdint.h:215:25 */
  1980. type Uint_least16_t = Uint16_t /* stdint.h:216:26 */
  1981. type Int_fast16_t = Int16_t /* stdint.h:217:25 */
  1982. type Uint_fast16_t = Uint16_t /* stdint.h:218:26 */
  1983. type Uint8_t = uint8 /* stdint.h:226:24 */
  1984. type Int_least8_t = Int8_t /* stdint.h:232:24 */
  1985. type Uint_least8_t = Uint8_t /* stdint.h:233:25 */
  1986. type Int_fast8_t = Int8_t /* stdint.h:234:24 */
  1987. type Uint_fast8_t = Uint8_t /* stdint.h:235:25 */
  1988. // prevent glibc sys/types.h from defining conflicting types
  1989. // C99 7.18.1.4 Integer types capable of holding object pointers.
  1990. // C99 7.18.1.5 Greatest-width integer types.
  1991. type Intmax_t = int64 /* stdint.h:262:26 */
  1992. type Uintmax_t = uint64 /* stdint.h:263:26 */
  1993. // C99 7.18.4 Macros for minimum-width integer constants.
  1994. //
  1995. // The standard requires that integer constant macros be defined for all the
  1996. // minimum-width types defined above. As 8-, 16-, 32-, and 64-bit minimum-width
  1997. // types are required, the corresponding integer constant macros are defined
  1998. // here. This implementation also defines minimum-width types for every other
  1999. // integer width that the target implements, so corresponding macros are
  2000. // defined below, too.
  2001. //
  2002. // These macros are defined using the same successive-shrinking approach as
  2003. // the type definitions above. It is likewise important that macros are defined
  2004. // in order of decending width.
  2005. //
  2006. // Note that C++ should not check __STDC_CONSTANT_MACROS here, contrary to the
  2007. // claims of the C standard (see C++ 18.3.1p2, [cstdint.syn]).
  2008. // C99 7.18.2.1 Limits of exact-width integer types.
  2009. // C99 7.18.2.2 Limits of minimum-width integer types.
  2010. // C99 7.18.2.3 Limits of fastest minimum-width integer types.
  2011. //
  2012. // The presence of limit macros are completely optional in C99. This
  2013. // implementation defines limits for all of the types (exact- and
  2014. // minimum-width) that it defines above, using the limits of the minimum-width
  2015. // type for any types that do not have exact-width representations.
  2016. //
  2017. // As in the type definitions, this section takes an approach of
  2018. // successive-shrinking to determine which limits to use for the standard (8,
  2019. // 16, 32, 64) bit widths when they don't have exact representations. It is
  2020. // therefore important that the definitions be kept in order of decending
  2021. // widths.
  2022. //
  2023. // Note that C++ should not check __STDC_LIMIT_MACROS here, contrary to the
  2024. // claims of the C standard (see C++ 18.3.1p2, [cstdint.syn]).
  2025. // Some utility macros
  2026. // C99 7.18.2.4 Limits of integer types capable of holding object pointers.
  2027. // C99 7.18.3 Limits of other integer types.
  2028. // ISO9899:2011 7.20 (C11 Annex K): Define RSIZE_MAX if __STDC_WANT_LIB_EXT1__
  2029. // is enabled.
  2030. // C99 7.18.2.5 Limits of greatest-width integer types.
  2031. // C99 7.18.3 Limits of other integer types.
  2032. // 7.18.4.2 Macros for greatest-width integer constants.
  2033. // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  2034. //
  2035. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2036. //
  2037. // This file contains Original Code and/or Modifications of Original Code
  2038. // as defined in and that are subject to the Apple Public Source License
  2039. // Version 2.0 (the 'License'). You may not use this file except in
  2040. // compliance with the License. The rights granted to you under the License
  2041. // may not be used to create, or enable the creation or redistribution of,
  2042. // unlawful or unlicensed copies of an Apple operating system, or to
  2043. // circumvent, violate, or enable the circumvention or violation of, any
  2044. // terms of an Apple operating system software license agreement.
  2045. //
  2046. // Please obtain a copy of the License at
  2047. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2048. //
  2049. // The Original Code and all software distributed under the License are
  2050. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2051. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2052. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2053. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2054. // Please see the License for the specific language governing rights and
  2055. // limitations under the License.
  2056. //
  2057. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2058. // Copyright (c) 1982, 1986, 1990, 1993
  2059. // The Regents of the University of California. All rights reserved.
  2060. //
  2061. // Redistribution and use in source and binary forms, with or without
  2062. // modification, are permitted provided that the following conditions
  2063. // are met:
  2064. // 1. Redistributions of source code must retain the above copyright
  2065. // notice, this list of conditions and the following disclaimer.
  2066. // 2. Redistributions in binary form must reproduce the above copyright
  2067. // notice, this list of conditions and the following disclaimer in the
  2068. // documentation and/or other materials provided with the distribution.
  2069. // 3. All advertising materials mentioning features or use of this software
  2070. // must display the following acknowledgement:
  2071. // This product includes software developed by the University of
  2072. // California, Berkeley and its contributors.
  2073. // 4. Neither the name of the University nor the names of its contributors
  2074. // may be used to endorse or promote products derived from this software
  2075. // without specific prior written permission.
  2076. //
  2077. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  2078. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  2079. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  2080. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  2081. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  2082. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  2083. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  2084. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  2085. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  2086. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  2087. // SUCH DAMAGE.
  2088. //
  2089. // @(#)in.h 8.3 (Berkeley) 1/3/94
  2090. // $FreeBSD: src/sys/netinet/in.h,v 1.48.2.2 2001/04/21 14:53:06 ume Exp $
  2091. // Copyright (c) 2002 Apple Computer, Inc. All rights reserved.
  2092. //
  2093. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2094. //
  2095. // This file contains Original Code and/or Modifications of Original Code
  2096. // as defined in and that are subject to the Apple Public Source License
  2097. // Version 2.0 (the 'License'). You may not use this file except in
  2098. // compliance with the License. The rights granted to you under the License
  2099. // may not be used to create, or enable the creation or redistribution of,
  2100. // unlawful or unlicensed copies of an Apple operating system, or to
  2101. // circumvent, violate, or enable the circumvention or violation of, any
  2102. // terms of an Apple operating system software license agreement.
  2103. //
  2104. // Please obtain a copy of the License at
  2105. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2106. //
  2107. // The Original Code and all software distributed under the License are
  2108. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2109. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2110. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2111. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2112. // Please see the License for the specific language governing rights and
  2113. // limitations under the License.
  2114. //
  2115. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2116. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  2117. //
  2118. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2119. //
  2120. // This file contains Original Code and/or Modifications of Original Code
  2121. // as defined in and that are subject to the Apple Public Source License
  2122. // Version 2.0 (the 'License'). You may not use this file except in
  2123. // compliance with the License. The rights granted to you under the License
  2124. // may not be used to create, or enable the creation or redistribution of,
  2125. // unlawful or unlicensed copies of an Apple operating system, or to
  2126. // circumvent, violate, or enable the circumvention or violation of, any
  2127. // terms of an Apple operating system software license agreement.
  2128. //
  2129. // Please obtain a copy of the License at
  2130. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2131. //
  2132. // The Original Code and all software distributed under the License are
  2133. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2134. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2135. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2136. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2137. // Please see the License for the specific language governing rights and
  2138. // limitations under the License.
  2139. //
  2140. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2141. //===---- stdint.h - Standard header for sized integer types --------------===* *
  2142. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  2143. // See https://llvm.org/LICENSE.txt for license information.
  2144. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  2145. //
  2146. // \*===----------------------------------------------------------------------===
  2147. // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  2148. //
  2149. // @APPLE_LICENSE_HEADER_START@
  2150. //
  2151. // This file contains Original Code and/or Modifications of Original Code
  2152. // as defined in and that are subject to the Apple Public Source License
  2153. // Version 2.0 (the 'License'). You may not use this file except in
  2154. // compliance with the License. Please obtain a copy of the License at
  2155. // http://www.opensource.apple.com/apsl/ and read it before using this
  2156. // file.
  2157. //
  2158. // The Original Code and all software distributed under the License are
  2159. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2160. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2161. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2162. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2163. // Please see the License for the specific language governing rights and
  2164. // limitations under the License.
  2165. //
  2166. // @APPLE_LICENSE_HEADER_END@
  2167. //
  2168. // These macros are for use in OS header files. They enable function prototypes
  2169. // and Objective-C methods to be tagged with the OS version in which they
  2170. // were first available; and, if applicable, the OS version in which they
  2171. // became deprecated.
  2172. //
  2173. // The desktop Mac OS X and iOS each have different version numbers.
  2174. // The __OSX_AVAILABLE_STARTING() macro allows you to specify both the desktop
  2175. // and iOS version numbers. For instance:
  2176. // __OSX_AVAILABLE_STARTING(__MAC_10_2,__IPHONE_2_0)
  2177. // means the function/method was first available on Mac OS X 10.2 on the desktop
  2178. // and first available in iOS 2.0 on the iPhone.
  2179. //
  2180. // If a function is available on one platform, but not the other a _NA (not
  2181. // applicable) parameter is used. For instance:
  2182. // __OSX_AVAILABLE_STARTING(__MAC_10_3,__IPHONE_NA)
  2183. // means that the function/method was first available on Mac OS X 10.3, and it
  2184. // currently not implemented on the iPhone.
  2185. //
  2186. // At some point, a function/method may be deprecated. That means Apple
  2187. // recommends applications stop using the function, either because there is a
  2188. // better replacement or the functionality is being phased out. Deprecated
  2189. // functions/methods can be tagged with a __OSX_AVAILABLE_BUT_DEPRECATED()
  2190. // macro which specifies the OS version where the function became available
  2191. // as well as the OS version in which it became deprecated. For instance:
  2192. // __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0,__MAC_10_5,__IPHONE_NA,__IPHONE_NA)
  2193. // means that the function/method was introduced in Mac OS X 10.0, then
  2194. // became deprecated beginning in Mac OS X 10.5. On iOS the function
  2195. // has never been available.
  2196. //
  2197. // For these macros to function properly, a program must specify the OS version range
  2198. // it is targeting. The min OS version is specified as an option to the compiler:
  2199. // -mmacosx-version-min=10.x when building for Mac OS X, and -miphoneos-version-min=y.z
  2200. // when building for the iPhone. The upper bound for the OS version is rarely needed,
  2201. // but it can be set on the command line via: -D__MAC_OS_X_VERSION_MAX_ALLOWED=10x0 for
  2202. // Mac OS X and __IPHONE_OS_VERSION_MAX_ALLOWED = y0z00 for iOS.
  2203. //
  2204. // Examples:
  2205. //
  2206. // A function available in Mac OS X 10.5 and later, but not on the phone:
  2207. //
  2208. // extern void mymacfunc() __OSX_AVAILABLE_STARTING(__MAC_10_5,__IPHONE_NA);
  2209. //
  2210. //
  2211. // An Objective-C method in Mac OS X 10.5 and later, but not on the phone:
  2212. //
  2213. // @interface MyClass : NSObject
  2214. // -(void) mymacmethod __OSX_AVAILABLE_STARTING(__MAC_10_5,__IPHONE_NA);
  2215. // @end
  2216. //
  2217. //
  2218. // An enum available on the phone, but not available on Mac OS X:
  2219. //
  2220. // #if __IPHONE_OS_VERSION_MIN_REQUIRED
  2221. // enum { myEnum = 1 };
  2222. // #endif
  2223. // Note: this works when targeting the Mac OS X platform because
  2224. // __IPHONE_OS_VERSION_MIN_REQUIRED is undefined which evaluates to zero.
  2225. //
  2226. //
  2227. // An enum with values added in different iPhoneOS versions:
  2228. //
  2229. // enum {
  2230. // myX = 1, // Usable on iPhoneOS 2.1 and later
  2231. // myY = 2, // Usable on iPhoneOS 3.0 and later
  2232. // myZ = 3, // Usable on iPhoneOS 3.0 and later
  2233. // ...
  2234. // Note: you do not want to use #if with enumeration values
  2235. // when a client needs to see all values at compile time
  2236. // and use runtime logic to only use the viable values.
  2237. //
  2238. //
  2239. // It is also possible to use the *_VERSION_MIN_REQUIRED in source code to make one
  2240. // source base that can be compiled to target a range of OS versions. It is best
  2241. // to not use the _MAC_* and __IPHONE_* macros for comparisons, but rather their values.
  2242. // That is because you might get compiled on an old OS that does not define a later
  2243. // OS version macro, and in the C preprocessor undefined values evaluate to zero
  2244. // in expresssions, which could cause the #if expression to evaluate in an unexpected
  2245. // way.
  2246. //
  2247. // #ifdef __MAC_OS_X_VERSION_MIN_REQUIRED
  2248. // // code only compiled when targeting Mac OS X and not iPhone
  2249. // // note use of 1050 instead of __MAC_10_5
  2250. // #if __MAC_OS_X_VERSION_MIN_REQUIRED < 1050
  2251. // // code in here might run on pre-Leopard OS
  2252. // #else
  2253. // // code here can assume Leopard or later
  2254. // #endif
  2255. // #endif
  2256. //
  2257. //
  2258. // __API_TO_BE_DEPRECATED is used as a version number in API that will be deprecated
  2259. // in an upcoming release. This soft deprecation is an intermediate step before formal
  2260. // deprecation to notify developers about the API before compiler warnings are generated.
  2261. // You can find all places in your code that use soft deprecated API by redefining the
  2262. // value of this macro to your current minimum deployment target, for example:
  2263. // (macOS)
  2264. // clang -D__API_TO_BE_DEPRECATED=10.12 <other compiler flags>
  2265. // (iOS)
  2266. // clang -D__API_TO_BE_DEPRECATED=11.0 <other compiler flags>
  2267. // __MAC_NA is not defined to a value but is uses as a token by macros to indicate that the API is unavailable
  2268. // __IPHONE_NA is not defined to a value but is uses as a token by macros to indicate that the API is unavailable
  2269. // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  2270. //
  2271. // @APPLE_LICENSE_HEADER_START@
  2272. //
  2273. // This file contains Original Code and/or Modifications of Original Code
  2274. // as defined in and that are subject to the Apple Public Source License
  2275. // Version 2.0 (the 'License'). You may not use this file except in
  2276. // compliance with the License. Please obtain a copy of the License at
  2277. // http://www.opensource.apple.com/apsl/ and read it before using this
  2278. // file.
  2279. //
  2280. // The Original Code and all software distributed under the License are
  2281. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2282. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2283. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2284. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2285. // Please see the License for the specific language governing rights and
  2286. // limitations under the License.
  2287. //
  2288. // @APPLE_LICENSE_HEADER_END@
  2289. //
  2290. // File: AvailabilityInternal.h
  2291. //
  2292. // Contains: implementation details of __OSX_AVAILABLE_* macros from <Availability.h>
  2293. //
  2294. // compiler for Mac OS X sets __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__
  2295. // make sure a default max version is set
  2296. //
  2297. // Macros for defining which versions/platform a given symbol can be used.
  2298. //
  2299. // @see http://clang.llvm.org/docs/AttributeReference.html#availability
  2300. //
  2301. // Evaluate to nothing for compilers that don't support availability.
  2302. // Swift compiler version
  2303. // Allows for project-agnostic “epochs” for frameworks imported into Swift via the Clang importer, like #if _compiler_version for Swift
  2304. // Example:
  2305. //
  2306. // #if __swift_compiler_version_at_least(800, 2, 20)
  2307. // - (nonnull NSString *)description;
  2308. // #else
  2309. // - (NSString *)description;
  2310. // #endif
  2311. // If __SPI_AVAILABLE has not been defined elsewhere, disable it.
  2312. // for use to document app extension usage
  2313. // for use marking APIs available info for Mac OSX
  2314. // for use marking APIs available info for iOS
  2315. // for use marking APIs available info for tvOS
  2316. // for use marking APIs available info for Watch OS
  2317. // for use marking APIs unavailable for swift
  2318. //
  2319. // Macros for defining which versions/platform a given symbol can be used.
  2320. //
  2321. // @see http://clang.llvm.org/docs/AttributeReference.html#availability
  2322. //
  2323. // * Note that these macros are only compatible with clang compilers that
  2324. // * support the following target selection options:
  2325. // *
  2326. // * -mmacosx-version-min
  2327. // * -miphoneos-version-min
  2328. // * -mwatchos-version-min
  2329. // * -mtvos-version-min
  2330. //
  2331. // Evaluate to nothing for compilers that don't support availability.
  2332. // If SPI decorations have not been defined elsewhere, disable them.
  2333. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2334. //
  2335. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2336. //
  2337. // This file contains Original Code and/or Modifications of Original Code
  2338. // as defined in and that are subject to the Apple Public Source License
  2339. // Version 2.0 (the 'License'). You may not use this file except in
  2340. // compliance with the License. The rights granted to you under the License
  2341. // may not be used to create, or enable the creation or redistribution of,
  2342. // unlawful or unlicensed copies of an Apple operating system, or to
  2343. // circumvent, violate, or enable the circumvention or violation of, any
  2344. // terms of an Apple operating system software license agreement.
  2345. //
  2346. // Please obtain a copy of the License at
  2347. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2348. //
  2349. // The Original Code and all software distributed under the License are
  2350. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2351. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2352. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2353. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2354. // Please see the License for the specific language governing rights and
  2355. // limitations under the License.
  2356. //
  2357. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2358. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  2359. //
  2360. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2361. //
  2362. // This file contains Original Code and/or Modifications of Original Code
  2363. // as defined in and that are subject to the Apple Public Source License
  2364. // Version 2.0 (the 'License'). You may not use this file except in
  2365. // compliance with the License. The rights granted to you under the License
  2366. // may not be used to create, or enable the creation or redistribution of,
  2367. // unlawful or unlicensed copies of an Apple operating system, or to
  2368. // circumvent, violate, or enable the circumvention or violation of, any
  2369. // terms of an Apple operating system software license agreement.
  2370. //
  2371. // Please obtain a copy of the License at
  2372. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2373. //
  2374. // The Original Code and all software distributed under the License are
  2375. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2376. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2377. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2378. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2379. // Please see the License for the specific language governing rights and
  2380. // limitations under the License.
  2381. //
  2382. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2383. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  2384. type In_addr_t = X__uint32_t /* _in_addr_t.h:31:25 */ // base type for internet address
  2385. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2386. //
  2387. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2388. //
  2389. // This file contains Original Code and/or Modifications of Original Code
  2390. // as defined in and that are subject to the Apple Public Source License
  2391. // Version 2.0 (the 'License'). You may not use this file except in
  2392. // compliance with the License. The rights granted to you under the License
  2393. // may not be used to create, or enable the creation or redistribution of,
  2394. // unlawful or unlicensed copies of an Apple operating system, or to
  2395. // circumvent, violate, or enable the circumvention or violation of, any
  2396. // terms of an Apple operating system software license agreement.
  2397. //
  2398. // Please obtain a copy of the License at
  2399. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2400. //
  2401. // The Original Code and all software distributed under the License are
  2402. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2403. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2404. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2405. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2406. // Please see the License for the specific language governing rights and
  2407. // limitations under the License.
  2408. //
  2409. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2410. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  2411. //
  2412. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2413. //
  2414. // This file contains Original Code and/or Modifications of Original Code
  2415. // as defined in and that are subject to the Apple Public Source License
  2416. // Version 2.0 (the 'License'). You may not use this file except in
  2417. // compliance with the License. The rights granted to you under the License
  2418. // may not be used to create, or enable the creation or redistribution of,
  2419. // unlawful or unlicensed copies of an Apple operating system, or to
  2420. // circumvent, violate, or enable the circumvention or violation of, any
  2421. // terms of an Apple operating system software license agreement.
  2422. //
  2423. // Please obtain a copy of the License at
  2424. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2425. //
  2426. // The Original Code and all software distributed under the License are
  2427. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2428. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2429. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2430. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2431. // Please see the License for the specific language governing rights and
  2432. // limitations under the License.
  2433. //
  2434. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2435. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  2436. type In_port_t = X__uint16_t /* _in_port_t.h:31:33 */
  2437. // Copyright (c) 2017 Apple Inc. All rights reserved.
  2438. //
  2439. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2440. //
  2441. // This file contains Original Code and/or Modifications of Original Code
  2442. // as defined in and that are subject to the Apple Public Source License
  2443. // Version 2.0 (the 'License'). You may not use this file except in
  2444. // compliance with the License. The rights granted to you under the License
  2445. // may not be used to create, or enable the creation or redistribution of,
  2446. // unlawful or unlicensed copies of an Apple operating system, or to
  2447. // circumvent, violate, or enable the circumvention or violation of, any
  2448. // terms of an Apple operating system software license agreement.
  2449. //
  2450. // Please obtain a copy of the License at
  2451. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2452. //
  2453. // The Original Code and all software distributed under the License are
  2454. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2455. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2456. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2457. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2458. // Please see the License for the specific language governing rights and
  2459. // limitations under the License.
  2460. //
  2461. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2462. type U_char = uint8 /* _u_char.h:30:25 */
  2463. // Copyright (c) 2017 Apple Inc. All rights reserved.
  2464. //
  2465. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2466. //
  2467. // This file contains Original Code and/or Modifications of Original Code
  2468. // as defined in and that are subject to the Apple Public Source License
  2469. // Version 2.0 (the 'License'). You may not use this file except in
  2470. // compliance with the License. The rights granted to you under the License
  2471. // may not be used to create, or enable the creation or redistribution of,
  2472. // unlawful or unlicensed copies of an Apple operating system, or to
  2473. // circumvent, violate, or enable the circumvention or violation of, any
  2474. // terms of an Apple operating system software license agreement.
  2475. //
  2476. // Please obtain a copy of the License at
  2477. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2478. //
  2479. // The Original Code and all software distributed under the License are
  2480. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2481. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2482. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2483. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2484. // Please see the License for the specific language governing rights and
  2485. // limitations under the License.
  2486. //
  2487. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2488. type U_short = uint16 /* _u_short.h:30:25 */
  2489. // Copyright (c) 2017 Apple Inc. All rights reserved.
  2490. //
  2491. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2492. //
  2493. // This file contains Original Code and/or Modifications of Original Code
  2494. // as defined in and that are subject to the Apple Public Source License
  2495. // Version 2.0 (the 'License'). You may not use this file except in
  2496. // compliance with the License. The rights granted to you under the License
  2497. // may not be used to create, or enable the creation or redistribution of,
  2498. // unlawful or unlicensed copies of an Apple operating system, or to
  2499. // circumvent, violate, or enable the circumvention or violation of, any
  2500. // terms of an Apple operating system software license agreement.
  2501. //
  2502. // Please obtain a copy of the License at
  2503. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2504. //
  2505. // The Original Code and all software distributed under the License are
  2506. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2507. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2508. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2509. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2510. // Please see the License for the specific language governing rights and
  2511. // limitations under the License.
  2512. //
  2513. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2514. type U_int = uint32 /* _u_int.h:30:25 */
  2515. type U_long = uint64 /* types.h:88:33 */
  2516. type Ushort = uint16 /* types.h:91:33 */ // Sys V compatibility
  2517. type Uint = uint32 /* types.h:92:33 */ // Sys V compatibility
  2518. type U_quad_t = U_int64_t /* types.h:95:33 */ // quads
  2519. type Quad_t = Int64_t /* types.h:96:33 */
  2520. type Qaddr_t = uintptr /* types.h:97:16 */
  2521. // Copyright (c) 2017 Apple Inc. All rights reserved.
  2522. //
  2523. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2524. //
  2525. // This file contains Original Code and/or Modifications of Original Code
  2526. // as defined in and that are subject to the Apple Public Source License
  2527. // Version 2.0 (the 'License'). You may not use this file except in
  2528. // compliance with the License. The rights granted to you under the License
  2529. // may not be used to create, or enable the creation or redistribution of,
  2530. // unlawful or unlicensed copies of an Apple operating system, or to
  2531. // circumvent, violate, or enable the circumvention or violation of, any
  2532. // terms of an Apple operating system software license agreement.
  2533. //
  2534. // Please obtain a copy of the License at
  2535. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2536. //
  2537. // The Original Code and all software distributed under the License are
  2538. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2539. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2540. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2541. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2542. // Please see the License for the specific language governing rights and
  2543. // limitations under the License.
  2544. //
  2545. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2546. type Caddr_t = uintptr /* _caddr_t.h:30:14 */
  2547. type Daddr_t = Int32_t /* types.h:101:33 */ // disk address
  2548. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2549. //
  2550. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2551. //
  2552. // This file contains Original Code and/or Modifications of Original Code
  2553. // as defined in and that are subject to the Apple Public Source License
  2554. // Version 2.0 (the 'License'). You may not use this file except in
  2555. // compliance with the License. The rights granted to you under the License
  2556. // may not be used to create, or enable the creation or redistribution of,
  2557. // unlawful or unlicensed copies of an Apple operating system, or to
  2558. // circumvent, violate, or enable the circumvention or violation of, any
  2559. // terms of an Apple operating system software license agreement.
  2560. //
  2561. // Please obtain a copy of the License at
  2562. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2563. //
  2564. // The Original Code and all software distributed under the License are
  2565. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2566. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2567. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2568. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2569. // Please see the License for the specific language governing rights and
  2570. // limitations under the License.
  2571. //
  2572. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2573. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  2574. //
  2575. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2576. //
  2577. // This file contains Original Code and/or Modifications of Original Code
  2578. // as defined in and that are subject to the Apple Public Source License
  2579. // Version 2.0 (the 'License'). You may not use this file except in
  2580. // compliance with the License. The rights granted to you under the License
  2581. // may not be used to create, or enable the creation or redistribution of,
  2582. // unlawful or unlicensed copies of an Apple operating system, or to
  2583. // circumvent, violate, or enable the circumvention or violation of, any
  2584. // terms of an Apple operating system software license agreement.
  2585. //
  2586. // Please obtain a copy of the License at
  2587. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2588. //
  2589. // The Original Code and all software distributed under the License are
  2590. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2591. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2592. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2593. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2594. // Please see the License for the specific language governing rights and
  2595. // limitations under the License.
  2596. //
  2597. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2598. type Dev_t = X__darwin_dev_t /* _dev_t.h:31:31 */ // device number
  2599. type Fixpt_t = U_int32_t /* types.h:105:33 */ // fixed point number
  2600. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2601. //
  2602. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2603. //
  2604. // This file contains Original Code and/or Modifications of Original Code
  2605. // as defined in and that are subject to the Apple Public Source License
  2606. // Version 2.0 (the 'License'). You may not use this file except in
  2607. // compliance with the License. The rights granted to you under the License
  2608. // may not be used to create, or enable the creation or redistribution of,
  2609. // unlawful or unlicensed copies of an Apple operating system, or to
  2610. // circumvent, violate, or enable the circumvention or violation of, any
  2611. // terms of an Apple operating system software license agreement.
  2612. //
  2613. // Please obtain a copy of the License at
  2614. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2615. //
  2616. // The Original Code and all software distributed under the License are
  2617. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2618. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2619. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2620. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2621. // Please see the License for the specific language governing rights and
  2622. // limitations under the License.
  2623. //
  2624. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2625. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  2626. //
  2627. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2628. //
  2629. // This file contains Original Code and/or Modifications of Original Code
  2630. // as defined in and that are subject to the Apple Public Source License
  2631. // Version 2.0 (the 'License'). You may not use this file except in
  2632. // compliance with the License. The rights granted to you under the License
  2633. // may not be used to create, or enable the creation or redistribution of,
  2634. // unlawful or unlicensed copies of an Apple operating system, or to
  2635. // circumvent, violate, or enable the circumvention or violation of, any
  2636. // terms of an Apple operating system software license agreement.
  2637. //
  2638. // Please obtain a copy of the License at
  2639. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2640. //
  2641. // The Original Code and all software distributed under the License are
  2642. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2643. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2644. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2645. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2646. // Please see the License for the specific language governing rights and
  2647. // limitations under the License.
  2648. //
  2649. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2650. type Blkcnt_t = X__darwin_blkcnt_t /* _blkcnt_t.h:31:34 */
  2651. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2652. //
  2653. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2654. //
  2655. // This file contains Original Code and/or Modifications of Original Code
  2656. // as defined in and that are subject to the Apple Public Source License
  2657. // Version 2.0 (the 'License'). You may not use this file except in
  2658. // compliance with the License. The rights granted to you under the License
  2659. // may not be used to create, or enable the creation or redistribution of,
  2660. // unlawful or unlicensed copies of an Apple operating system, or to
  2661. // circumvent, violate, or enable the circumvention or violation of, any
  2662. // terms of an Apple operating system software license agreement.
  2663. //
  2664. // Please obtain a copy of the License at
  2665. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2666. //
  2667. // The Original Code and all software distributed under the License are
  2668. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2669. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2670. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2671. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2672. // Please see the License for the specific language governing rights and
  2673. // limitations under the License.
  2674. //
  2675. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2676. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  2677. //
  2678. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2679. //
  2680. // This file contains Original Code and/or Modifications of Original Code
  2681. // as defined in and that are subject to the Apple Public Source License
  2682. // Version 2.0 (the 'License'). You may not use this file except in
  2683. // compliance with the License. The rights granted to you under the License
  2684. // may not be used to create, or enable the creation or redistribution of,
  2685. // unlawful or unlicensed copies of an Apple operating system, or to
  2686. // circumvent, violate, or enable the circumvention or violation of, any
  2687. // terms of an Apple operating system software license agreement.
  2688. //
  2689. // Please obtain a copy of the License at
  2690. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2691. //
  2692. // The Original Code and all software distributed under the License are
  2693. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2694. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2695. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2696. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2697. // Please see the License for the specific language governing rights and
  2698. // limitations under the License.
  2699. //
  2700. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2701. type Blksize_t = X__darwin_blksize_t /* _blksize_t.h:31:35 */
  2702. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2703. //
  2704. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2705. //
  2706. // This file contains Original Code and/or Modifications of Original Code
  2707. // as defined in and that are subject to the Apple Public Source License
  2708. // Version 2.0 (the 'License'). You may not use this file except in
  2709. // compliance with the License. The rights granted to you under the License
  2710. // may not be used to create, or enable the creation or redistribution of,
  2711. // unlawful or unlicensed copies of an Apple operating system, or to
  2712. // circumvent, violate, or enable the circumvention or violation of, any
  2713. // terms of an Apple operating system software license agreement.
  2714. //
  2715. // Please obtain a copy of the License at
  2716. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2717. //
  2718. // The Original Code and all software distributed under the License are
  2719. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2720. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2721. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2722. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2723. // Please see the License for the specific language governing rights and
  2724. // limitations under the License.
  2725. //
  2726. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2727. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  2728. //
  2729. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2730. //
  2731. // This file contains Original Code and/or Modifications of Original Code
  2732. // as defined in and that are subject to the Apple Public Source License
  2733. // Version 2.0 (the 'License'). You may not use this file except in
  2734. // compliance with the License. The rights granted to you under the License
  2735. // may not be used to create, or enable the creation or redistribution of,
  2736. // unlawful or unlicensed copies of an Apple operating system, or to
  2737. // circumvent, violate, or enable the circumvention or violation of, any
  2738. // terms of an Apple operating system software license agreement.
  2739. //
  2740. // Please obtain a copy of the License at
  2741. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2742. //
  2743. // The Original Code and all software distributed under the License are
  2744. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2745. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2746. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2747. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2748. // Please see the License for the specific language governing rights and
  2749. // limitations under the License.
  2750. //
  2751. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2752. type Gid_t = X__darwin_gid_t /* _gid_t.h:31:25 */
  2753. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2754. //
  2755. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2756. //
  2757. // This file contains Original Code and/or Modifications of Original Code
  2758. // as defined in and that are subject to the Apple Public Source License
  2759. // Version 2.0 (the 'License'). You may not use this file except in
  2760. // compliance with the License. The rights granted to you under the License
  2761. // may not be used to create, or enable the creation or redistribution of,
  2762. // unlawful or unlicensed copies of an Apple operating system, or to
  2763. // circumvent, violate, or enable the circumvention or violation of, any
  2764. // terms of an Apple operating system software license agreement.
  2765. //
  2766. // Please obtain a copy of the License at
  2767. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2768. //
  2769. // The Original Code and all software distributed under the License are
  2770. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2771. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2772. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2773. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2774. // Please see the License for the specific language governing rights and
  2775. // limitations under the License.
  2776. //
  2777. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2778. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2779. //
  2780. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2781. //
  2782. // This file contains Original Code and/or Modifications of Original Code
  2783. // as defined in and that are subject to the Apple Public Source License
  2784. // Version 2.0 (the 'License'). You may not use this file except in
  2785. // compliance with the License. The rights granted to you under the License
  2786. // may not be used to create, or enable the creation or redistribution of,
  2787. // unlawful or unlicensed copies of an Apple operating system, or to
  2788. // circumvent, violate, or enable the circumvention or violation of, any
  2789. // terms of an Apple operating system software license agreement.
  2790. //
  2791. // Please obtain a copy of the License at
  2792. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2793. //
  2794. // The Original Code and all software distributed under the License are
  2795. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2796. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2797. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2798. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2799. // Please see the License for the specific language governing rights and
  2800. // limitations under the License.
  2801. //
  2802. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2803. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2804. //
  2805. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2806. //
  2807. // This file contains Original Code and/or Modifications of Original Code
  2808. // as defined in and that are subject to the Apple Public Source License
  2809. // Version 2.0 (the 'License'). You may not use this file except in
  2810. // compliance with the License. The rights granted to you under the License
  2811. // may not be used to create, or enable the creation or redistribution of,
  2812. // unlawful or unlicensed copies of an Apple operating system, or to
  2813. // circumvent, violate, or enable the circumvention or violation of, any
  2814. // terms of an Apple operating system software license agreement.
  2815. //
  2816. // Please obtain a copy of the License at
  2817. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2818. //
  2819. // The Original Code and all software distributed under the License are
  2820. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2821. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2822. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2823. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2824. // Please see the License for the specific language governing rights and
  2825. // limitations under the License.
  2826. //
  2827. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2828. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  2829. //
  2830. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2831. //
  2832. // This file contains Original Code and/or Modifications of Original Code
  2833. // as defined in and that are subject to the Apple Public Source License
  2834. // Version 2.0 (the 'License'). You may not use this file except in
  2835. // compliance with the License. The rights granted to you under the License
  2836. // may not be used to create, or enable the creation or redistribution of,
  2837. // unlawful or unlicensed copies of an Apple operating system, or to
  2838. // circumvent, violate, or enable the circumvention or violation of, any
  2839. // terms of an Apple operating system software license agreement.
  2840. //
  2841. // Please obtain a copy of the License at
  2842. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2843. //
  2844. // The Original Code and all software distributed under the License are
  2845. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2846. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2847. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2848. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2849. // Please see the License for the specific language governing rights and
  2850. // limitations under the License.
  2851. //
  2852. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2853. type Ino_t = X__darwin_ino_t /* _ino_t.h:31:33 */ // inode number
  2854. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2855. //
  2856. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2857. //
  2858. // This file contains Original Code and/or Modifications of Original Code
  2859. // as defined in and that are subject to the Apple Public Source License
  2860. // Version 2.0 (the 'License'). You may not use this file except in
  2861. // compliance with the License. The rights granted to you under the License
  2862. // may not be used to create, or enable the creation or redistribution of,
  2863. // unlawful or unlicensed copies of an Apple operating system, or to
  2864. // circumvent, violate, or enable the circumvention or violation of, any
  2865. // terms of an Apple operating system software license agreement.
  2866. //
  2867. // Please obtain a copy of the License at
  2868. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2869. //
  2870. // The Original Code and all software distributed under the License are
  2871. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2872. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2873. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2874. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2875. // Please see the License for the specific language governing rights and
  2876. // limitations under the License.
  2877. //
  2878. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2879. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  2880. //
  2881. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2882. //
  2883. // This file contains Original Code and/or Modifications of Original Code
  2884. // as defined in and that are subject to the Apple Public Source License
  2885. // Version 2.0 (the 'License'). You may not use this file except in
  2886. // compliance with the License. The rights granted to you under the License
  2887. // may not be used to create, or enable the creation or redistribution of,
  2888. // unlawful or unlicensed copies of an Apple operating system, or to
  2889. // circumvent, violate, or enable the circumvention or violation of, any
  2890. // terms of an Apple operating system software license agreement.
  2891. //
  2892. // Please obtain a copy of the License at
  2893. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2894. //
  2895. // The Original Code and all software distributed under the License are
  2896. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2897. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2898. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2899. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2900. // Please see the License for the specific language governing rights and
  2901. // limitations under the License.
  2902. //
  2903. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2904. type Ino64_t = X__darwin_ino64_t /* _ino64_t.h:31:33 */ // 64bit inode number
  2905. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2906. //
  2907. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2908. //
  2909. // This file contains Original Code and/or Modifications of Original Code
  2910. // as defined in and that are subject to the Apple Public Source License
  2911. // Version 2.0 (the 'License'). You may not use this file except in
  2912. // compliance with the License. The rights granted to you under the License
  2913. // may not be used to create, or enable the creation or redistribution of,
  2914. // unlawful or unlicensed copies of an Apple operating system, or to
  2915. // circumvent, violate, or enable the circumvention or violation of, any
  2916. // terms of an Apple operating system software license agreement.
  2917. //
  2918. // Please obtain a copy of the License at
  2919. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2920. //
  2921. // The Original Code and all software distributed under the License are
  2922. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2923. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2924. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2925. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2926. // Please see the License for the specific language governing rights and
  2927. // limitations under the License.
  2928. //
  2929. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2930. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  2931. //
  2932. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2933. //
  2934. // This file contains Original Code and/or Modifications of Original Code
  2935. // as defined in and that are subject to the Apple Public Source License
  2936. // Version 2.0 (the 'License'). You may not use this file except in
  2937. // compliance with the License. The rights granted to you under the License
  2938. // may not be used to create, or enable the creation or redistribution of,
  2939. // unlawful or unlicensed copies of an Apple operating system, or to
  2940. // circumvent, violate, or enable the circumvention or violation of, any
  2941. // terms of an Apple operating system software license agreement.
  2942. //
  2943. // Please obtain a copy of the License at
  2944. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2945. //
  2946. // The Original Code and all software distributed under the License are
  2947. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2948. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2949. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2950. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2951. // Please see the License for the specific language governing rights and
  2952. // limitations under the License.
  2953. //
  2954. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2955. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  2956. type Key_t = X__int32_t /* _key_t.h:31:26 */ // IPC key (for Sys V IPC)
  2957. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2958. //
  2959. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2960. //
  2961. // This file contains Original Code and/or Modifications of Original Code
  2962. // as defined in and that are subject to the Apple Public Source License
  2963. // Version 2.0 (the 'License'). You may not use this file except in
  2964. // compliance with the License. The rights granted to you under the License
  2965. // may not be used to create, or enable the creation or redistribution of,
  2966. // unlawful or unlicensed copies of an Apple operating system, or to
  2967. // circumvent, violate, or enable the circumvention or violation of, any
  2968. // terms of an Apple operating system software license agreement.
  2969. //
  2970. // Please obtain a copy of the License at
  2971. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2972. //
  2973. // The Original Code and all software distributed under the License are
  2974. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2975. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2976. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2977. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2978. // Please see the License for the specific language governing rights and
  2979. // limitations under the License.
  2980. //
  2981. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2982. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  2983. //
  2984. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2985. //
  2986. // This file contains Original Code and/or Modifications of Original Code
  2987. // as defined in and that are subject to the Apple Public Source License
  2988. // Version 2.0 (the 'License'). You may not use this file except in
  2989. // compliance with the License. The rights granted to you under the License
  2990. // may not be used to create, or enable the creation or redistribution of,
  2991. // unlawful or unlicensed copies of an Apple operating system, or to
  2992. // circumvent, violate, or enable the circumvention or violation of, any
  2993. // terms of an Apple operating system software license agreement.
  2994. //
  2995. // Please obtain a copy of the License at
  2996. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2997. //
  2998. // The Original Code and all software distributed under the License are
  2999. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3000. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3001. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3002. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3003. // Please see the License for the specific language governing rights and
  3004. // limitations under the License.
  3005. //
  3006. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3007. type Mode_t = X__darwin_mode_t /* _mode_t.h:31:33 */
  3008. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3009. //
  3010. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3011. //
  3012. // This file contains Original Code and/or Modifications of Original Code
  3013. // as defined in and that are subject to the Apple Public Source License
  3014. // Version 2.0 (the 'License'). You may not use this file except in
  3015. // compliance with the License. The rights granted to you under the License
  3016. // may not be used to create, or enable the creation or redistribution of,
  3017. // unlawful or unlicensed copies of an Apple operating system, or to
  3018. // circumvent, violate, or enable the circumvention or violation of, any
  3019. // terms of an Apple operating system software license agreement.
  3020. //
  3021. // Please obtain a copy of the License at
  3022. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3023. //
  3024. // The Original Code and all software distributed under the License are
  3025. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3026. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3027. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3028. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3029. // Please see the License for the specific language governing rights and
  3030. // limitations under the License.
  3031. //
  3032. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3033. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  3034. //
  3035. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3036. //
  3037. // This file contains Original Code and/or Modifications of Original Code
  3038. // as defined in and that are subject to the Apple Public Source License
  3039. // Version 2.0 (the 'License'). You may not use this file except in
  3040. // compliance with the License. The rights granted to you under the License
  3041. // may not be used to create, or enable the creation or redistribution of,
  3042. // unlawful or unlicensed copies of an Apple operating system, or to
  3043. // circumvent, violate, or enable the circumvention or violation of, any
  3044. // terms of an Apple operating system software license agreement.
  3045. //
  3046. // Please obtain a copy of the License at
  3047. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3048. //
  3049. // The Original Code and all software distributed under the License are
  3050. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3051. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3052. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3053. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3054. // Please see the License for the specific language governing rights and
  3055. // limitations under the License.
  3056. //
  3057. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3058. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  3059. type Nlink_t = X__uint16_t /* _nlink_t.h:31:27 */ // link count
  3060. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3061. //
  3062. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3063. //
  3064. // This file contains Original Code and/or Modifications of Original Code
  3065. // as defined in and that are subject to the Apple Public Source License
  3066. // Version 2.0 (the 'License'). You may not use this file except in
  3067. // compliance with the License. The rights granted to you under the License
  3068. // may not be used to create, or enable the creation or redistribution of,
  3069. // unlawful or unlicensed copies of an Apple operating system, or to
  3070. // circumvent, violate, or enable the circumvention or violation of, any
  3071. // terms of an Apple operating system software license agreement.
  3072. //
  3073. // Please obtain a copy of the License at
  3074. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3075. //
  3076. // The Original Code and all software distributed under the License are
  3077. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3078. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3079. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3080. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3081. // Please see the License for the specific language governing rights and
  3082. // limitations under the License.
  3083. //
  3084. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3085. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  3086. //
  3087. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3088. //
  3089. // This file contains Original Code and/or Modifications of Original Code
  3090. // as defined in and that are subject to the Apple Public Source License
  3091. // Version 2.0 (the 'License'). You may not use this file except in
  3092. // compliance with the License. The rights granted to you under the License
  3093. // may not be used to create, or enable the creation or redistribution of,
  3094. // unlawful or unlicensed copies of an Apple operating system, or to
  3095. // circumvent, violate, or enable the circumvention or violation of, any
  3096. // terms of an Apple operating system software license agreement.
  3097. //
  3098. // Please obtain a copy of the License at
  3099. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3100. //
  3101. // The Original Code and all software distributed under the License are
  3102. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3103. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3104. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3105. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3106. // Please see the License for the specific language governing rights and
  3107. // limitations under the License.
  3108. //
  3109. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3110. type Id_t = X__darwin_id_t /* _id_t.h:31:25 */ // can hold pid_t, gid_t, or uid_t
  3111. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3112. //
  3113. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3114. //
  3115. // This file contains Original Code and/or Modifications of Original Code
  3116. // as defined in and that are subject to the Apple Public Source License
  3117. // Version 2.0 (the 'License'). You may not use this file except in
  3118. // compliance with the License. The rights granted to you under the License
  3119. // may not be used to create, or enable the creation or redistribution of,
  3120. // unlawful or unlicensed copies of an Apple operating system, or to
  3121. // circumvent, violate, or enable the circumvention or violation of, any
  3122. // terms of an Apple operating system software license agreement.
  3123. //
  3124. // Please obtain a copy of the License at
  3125. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3126. //
  3127. // The Original Code and all software distributed under the License are
  3128. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3129. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3130. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3131. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3132. // Please see the License for the specific language governing rights and
  3133. // limitations under the License.
  3134. //
  3135. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3136. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  3137. //
  3138. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3139. //
  3140. // This file contains Original Code and/or Modifications of Original Code
  3141. // as defined in and that are subject to the Apple Public Source License
  3142. // Version 2.0 (the 'License'). You may not use this file except in
  3143. // compliance with the License. The rights granted to you under the License
  3144. // may not be used to create, or enable the creation or redistribution of,
  3145. // unlawful or unlicensed copies of an Apple operating system, or to
  3146. // circumvent, violate, or enable the circumvention or violation of, any
  3147. // terms of an Apple operating system software license agreement.
  3148. //
  3149. // Please obtain a copy of the License at
  3150. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3151. //
  3152. // The Original Code and all software distributed under the License are
  3153. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3154. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3155. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3156. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3157. // Please see the License for the specific language governing rights and
  3158. // limitations under the License.
  3159. //
  3160. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3161. type Pid_t = X__darwin_pid_t /* _pid_t.h:31:31 */
  3162. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3163. //
  3164. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3165. //
  3166. // This file contains Original Code and/or Modifications of Original Code
  3167. // as defined in and that are subject to the Apple Public Source License
  3168. // Version 2.0 (the 'License'). You may not use this file except in
  3169. // compliance with the License. The rights granted to you under the License
  3170. // may not be used to create, or enable the creation or redistribution of,
  3171. // unlawful or unlicensed copies of an Apple operating system, or to
  3172. // circumvent, violate, or enable the circumvention or violation of, any
  3173. // terms of an Apple operating system software license agreement.
  3174. //
  3175. // Please obtain a copy of the License at
  3176. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3177. //
  3178. // The Original Code and all software distributed under the License are
  3179. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3180. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3181. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3182. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3183. // Please see the License for the specific language governing rights and
  3184. // limitations under the License.
  3185. //
  3186. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3187. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  3188. //
  3189. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3190. //
  3191. // This file contains Original Code and/or Modifications of Original Code
  3192. // as defined in and that are subject to the Apple Public Source License
  3193. // Version 2.0 (the 'License'). You may not use this file except in
  3194. // compliance with the License. The rights granted to you under the License
  3195. // may not be used to create, or enable the creation or redistribution of,
  3196. // unlawful or unlicensed copies of an Apple operating system, or to
  3197. // circumvent, violate, or enable the circumvention or violation of, any
  3198. // terms of an Apple operating system software license agreement.
  3199. //
  3200. // Please obtain a copy of the License at
  3201. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3202. //
  3203. // The Original Code and all software distributed under the License are
  3204. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3205. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3206. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3207. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3208. // Please see the License for the specific language governing rights and
  3209. // limitations under the License.
  3210. //
  3211. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3212. type Off_t = X__darwin_off_t /* _off_t.h:31:33 */
  3213. type Segsz_t = Int32_t /* types.h:125:33 */ // segment size
  3214. type Swblk_t = Int32_t /* types.h:126:33 */ // swap offset
  3215. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3216. //
  3217. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3218. //
  3219. // This file contains Original Code and/or Modifications of Original Code
  3220. // as defined in and that are subject to the Apple Public Source License
  3221. // Version 2.0 (the 'License'). You may not use this file except in
  3222. // compliance with the License. The rights granted to you under the License
  3223. // may not be used to create, or enable the creation or redistribution of,
  3224. // unlawful or unlicensed copies of an Apple operating system, or to
  3225. // circumvent, violate, or enable the circumvention or violation of, any
  3226. // terms of an Apple operating system software license agreement.
  3227. //
  3228. // Please obtain a copy of the License at
  3229. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3230. //
  3231. // The Original Code and all software distributed under the License are
  3232. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3233. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3234. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3235. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3236. // Please see the License for the specific language governing rights and
  3237. // limitations under the License.
  3238. //
  3239. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3240. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  3241. //
  3242. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3243. //
  3244. // This file contains Original Code and/or Modifications of Original Code
  3245. // as defined in and that are subject to the Apple Public Source License
  3246. // Version 2.0 (the 'License'). You may not use this file except in
  3247. // compliance with the License. The rights granted to you under the License
  3248. // may not be used to create, or enable the creation or redistribution of,
  3249. // unlawful or unlicensed copies of an Apple operating system, or to
  3250. // circumvent, violate, or enable the circumvention or violation of, any
  3251. // terms of an Apple operating system software license agreement.
  3252. //
  3253. // Please obtain a copy of the License at
  3254. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3255. //
  3256. // The Original Code and all software distributed under the License are
  3257. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3258. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3259. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3260. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3261. // Please see the License for the specific language governing rights and
  3262. // limitations under the License.
  3263. //
  3264. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3265. type Uid_t = X__darwin_uid_t /* _uid_t.h:31:31 */
  3266. // Major, minor numbers, dev_t's.
  3267. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3268. //
  3269. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3270. //
  3271. // This file contains Original Code and/or Modifications of Original Code
  3272. // as defined in and that are subject to the Apple Public Source License
  3273. // Version 2.0 (the 'License'). You may not use this file except in
  3274. // compliance with the License. The rights granted to you under the License
  3275. // may not be used to create, or enable the creation or redistribution of,
  3276. // unlawful or unlicensed copies of an Apple operating system, or to
  3277. // circumvent, violate, or enable the circumvention or violation of, any
  3278. // terms of an Apple operating system software license agreement.
  3279. //
  3280. // Please obtain a copy of the License at
  3281. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3282. //
  3283. // The Original Code and all software distributed under the License are
  3284. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3285. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3286. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3287. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3288. // Please see the License for the specific language governing rights and
  3289. // limitations under the License.
  3290. //
  3291. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3292. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  3293. //
  3294. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3295. //
  3296. // This file contains Original Code and/or Modifications of Original Code
  3297. // as defined in and that are subject to the Apple Public Source License
  3298. // Version 2.0 (the 'License'). You may not use this file except in
  3299. // compliance with the License. The rights granted to you under the License
  3300. // may not be used to create, or enable the creation or redistribution of,
  3301. // unlawful or unlicensed copies of an Apple operating system, or to
  3302. // circumvent, violate, or enable the circumvention or violation of, any
  3303. // terms of an Apple operating system software license agreement.
  3304. //
  3305. // Please obtain a copy of the License at
  3306. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3307. //
  3308. // The Original Code and all software distributed under the License are
  3309. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3310. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3311. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3312. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3313. // Please see the License for the specific language governing rights and
  3314. // limitations under the License.
  3315. //
  3316. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3317. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  3318. type Clock_t = X__darwin_clock_t /* _clock_t.h:31:33 */
  3319. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3320. //
  3321. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3322. //
  3323. // This file contains Original Code and/or Modifications of Original Code
  3324. // as defined in and that are subject to the Apple Public Source License
  3325. // Version 2.0 (the 'License'). You may not use this file except in
  3326. // compliance with the License. The rights granted to you under the License
  3327. // may not be used to create, or enable the creation or redistribution of,
  3328. // unlawful or unlicensed copies of an Apple operating system, or to
  3329. // circumvent, violate, or enable the circumvention or violation of, any
  3330. // terms of an Apple operating system software license agreement.
  3331. //
  3332. // Please obtain a copy of the License at
  3333. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3334. //
  3335. // The Original Code and all software distributed under the License are
  3336. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3337. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3338. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3339. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3340. // Please see the License for the specific language governing rights and
  3341. // limitations under the License.
  3342. //
  3343. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3344. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3345. //
  3346. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3347. //
  3348. // This file contains Original Code and/or Modifications of Original Code
  3349. // as defined in and that are subject to the Apple Public Source License
  3350. // Version 2.0 (the 'License'). You may not use this file except in
  3351. // compliance with the License. The rights granted to you under the License
  3352. // may not be used to create, or enable the creation or redistribution of,
  3353. // unlawful or unlicensed copies of an Apple operating system, or to
  3354. // circumvent, violate, or enable the circumvention or violation of, any
  3355. // terms of an Apple operating system software license agreement.
  3356. //
  3357. // Please obtain a copy of the License at
  3358. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3359. //
  3360. // The Original Code and all software distributed under the License are
  3361. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3362. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3363. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3364. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3365. // Please see the License for the specific language governing rights and
  3366. // limitations under the License.
  3367. //
  3368. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3369. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  3370. //
  3371. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3372. //
  3373. // This file contains Original Code and/or Modifications of Original Code
  3374. // as defined in and that are subject to the Apple Public Source License
  3375. // Version 2.0 (the 'License'). You may not use this file except in
  3376. // compliance with the License. The rights granted to you under the License
  3377. // may not be used to create, or enable the creation or redistribution of,
  3378. // unlawful or unlicensed copies of an Apple operating system, or to
  3379. // circumvent, violate, or enable the circumvention or violation of, any
  3380. // terms of an Apple operating system software license agreement.
  3381. //
  3382. // Please obtain a copy of the License at
  3383. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3384. //
  3385. // The Original Code and all software distributed under the License are
  3386. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3387. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3388. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3389. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3390. // Please see the License for the specific language governing rights and
  3391. // limitations under the License.
  3392. //
  3393. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3394. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  3395. type Ssize_t = X__darwin_ssize_t /* _ssize_t.h:31:33 */
  3396. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3397. //
  3398. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3399. //
  3400. // This file contains Original Code and/or Modifications of Original Code
  3401. // as defined in and that are subject to the Apple Public Source License
  3402. // Version 2.0 (the 'License'). You may not use this file except in
  3403. // compliance with the License. The rights granted to you under the License
  3404. // may not be used to create, or enable the creation or redistribution of,
  3405. // unlawful or unlicensed copies of an Apple operating system, or to
  3406. // circumvent, violate, or enable the circumvention or violation of, any
  3407. // terms of an Apple operating system software license agreement.
  3408. //
  3409. // Please obtain a copy of the License at
  3410. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3411. //
  3412. // The Original Code and all software distributed under the License are
  3413. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3414. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3415. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3416. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3417. // Please see the License for the specific language governing rights and
  3418. // limitations under the License.
  3419. //
  3420. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3421. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  3422. //
  3423. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3424. //
  3425. // This file contains Original Code and/or Modifications of Original Code
  3426. // as defined in and that are subject to the Apple Public Source License
  3427. // Version 2.0 (the 'License'). You may not use this file except in
  3428. // compliance with the License. The rights granted to you under the License
  3429. // may not be used to create, or enable the creation or redistribution of,
  3430. // unlawful or unlicensed copies of an Apple operating system, or to
  3431. // circumvent, violate, or enable the circumvention or violation of, any
  3432. // terms of an Apple operating system software license agreement.
  3433. //
  3434. // Please obtain a copy of the License at
  3435. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3436. //
  3437. // The Original Code and all software distributed under the License are
  3438. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3439. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3440. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3441. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3442. // Please see the License for the specific language governing rights and
  3443. // limitations under the License.
  3444. //
  3445. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3446. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  3447. type Time_t = X__darwin_time_t /* _time_t.h:31:33 */
  3448. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3449. //
  3450. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3451. //
  3452. // This file contains Original Code and/or Modifications of Original Code
  3453. // as defined in and that are subject to the Apple Public Source License
  3454. // Version 2.0 (the 'License'). You may not use this file except in
  3455. // compliance with the License. The rights granted to you under the License
  3456. // may not be used to create, or enable the creation or redistribution of,
  3457. // unlawful or unlicensed copies of an Apple operating system, or to
  3458. // circumvent, violate, or enable the circumvention or violation of, any
  3459. // terms of an Apple operating system software license agreement.
  3460. //
  3461. // Please obtain a copy of the License at
  3462. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3463. //
  3464. // The Original Code and all software distributed under the License are
  3465. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3466. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3467. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3468. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3469. // Please see the License for the specific language governing rights and
  3470. // limitations under the License.
  3471. //
  3472. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3473. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  3474. //
  3475. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3476. //
  3477. // This file contains Original Code and/or Modifications of Original Code
  3478. // as defined in and that are subject to the Apple Public Source License
  3479. // Version 2.0 (the 'License'). You may not use this file except in
  3480. // compliance with the License. The rights granted to you under the License
  3481. // may not be used to create, or enable the creation or redistribution of,
  3482. // unlawful or unlicensed copies of an Apple operating system, or to
  3483. // circumvent, violate, or enable the circumvention or violation of, any
  3484. // terms of an Apple operating system software license agreement.
  3485. //
  3486. // Please obtain a copy of the License at
  3487. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3488. //
  3489. // The Original Code and all software distributed under the License are
  3490. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3491. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3492. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3493. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3494. // Please see the License for the specific language governing rights and
  3495. // limitations under the License.
  3496. //
  3497. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3498. type Useconds_t = X__darwin_useconds_t /* _useconds_t.h:31:33 */
  3499. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3500. //
  3501. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3502. //
  3503. // This file contains Original Code and/or Modifications of Original Code
  3504. // as defined in and that are subject to the Apple Public Source License
  3505. // Version 2.0 (the 'License'). You may not use this file except in
  3506. // compliance with the License. The rights granted to you under the License
  3507. // may not be used to create, or enable the creation or redistribution of,
  3508. // unlawful or unlicensed copies of an Apple operating system, or to
  3509. // circumvent, violate, or enable the circumvention or violation of, any
  3510. // terms of an Apple operating system software license agreement.
  3511. //
  3512. // Please obtain a copy of the License at
  3513. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3514. //
  3515. // The Original Code and all software distributed under the License are
  3516. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3517. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3518. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3519. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3520. // Please see the License for the specific language governing rights and
  3521. // limitations under the License.
  3522. //
  3523. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3524. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  3525. //
  3526. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3527. //
  3528. // This file contains Original Code and/or Modifications of Original Code
  3529. // as defined in and that are subject to the Apple Public Source License
  3530. // Version 2.0 (the 'License'). You may not use this file except in
  3531. // compliance with the License. The rights granted to you under the License
  3532. // may not be used to create, or enable the creation or redistribution of,
  3533. // unlawful or unlicensed copies of an Apple operating system, or to
  3534. // circumvent, violate, or enable the circumvention or violation of, any
  3535. // terms of an Apple operating system software license agreement.
  3536. //
  3537. // Please obtain a copy of the License at
  3538. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3539. //
  3540. // The Original Code and all software distributed under the License are
  3541. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3542. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3543. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3544. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3545. // Please see the License for the specific language governing rights and
  3546. // limitations under the License.
  3547. //
  3548. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3549. type Suseconds_t = X__darwin_suseconds_t /* _suseconds_t.h:31:33 */
  3550. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3551. //
  3552. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3553. //
  3554. // This file contains Original Code and/or Modifications of Original Code
  3555. // as defined in and that are subject to the Apple Public Source License
  3556. // Version 2.0 (the 'License'). You may not use this file except in
  3557. // compliance with the License. The rights granted to you under the License
  3558. // may not be used to create, or enable the creation or redistribution of,
  3559. // unlawful or unlicensed copies of an Apple operating system, or to
  3560. // circumvent, violate, or enable the circumvention or violation of, any
  3561. // terms of an Apple operating system software license agreement.
  3562. //
  3563. // Please obtain a copy of the License at
  3564. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3565. //
  3566. // The Original Code and all software distributed under the License are
  3567. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3568. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3569. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3570. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3571. // Please see the License for the specific language governing rights and
  3572. // limitations under the License.
  3573. //
  3574. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3575. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  3576. //
  3577. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3578. //
  3579. // This file contains Original Code and/or Modifications of Original Code
  3580. // as defined in and that are subject to the Apple Public Source License
  3581. // Version 2.0 (the 'License'). You may not use this file except in
  3582. // compliance with the License. The rights granted to you under the License
  3583. // may not be used to create, or enable the creation or redistribution of,
  3584. // unlawful or unlicensed copies of an Apple operating system, or to
  3585. // circumvent, violate, or enable the circumvention or violation of, any
  3586. // terms of an Apple operating system software license agreement.
  3587. //
  3588. // Please obtain a copy of the License at
  3589. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3590. //
  3591. // The Original Code and all software distributed under the License are
  3592. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3593. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3594. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3595. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3596. // Please see the License for the specific language governing rights and
  3597. // limitations under the License.
  3598. //
  3599. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3600. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  3601. type Rsize_t = X__darwin_size_t /* _rsize_t.h:31:32 */
  3602. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3603. //
  3604. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3605. //
  3606. // This file contains Original Code and/or Modifications of Original Code
  3607. // as defined in and that are subject to the Apple Public Source License
  3608. // Version 2.0 (the 'License'). You may not use this file except in
  3609. // compliance with the License. The rights granted to you under the License
  3610. // may not be used to create, or enable the creation or redistribution of,
  3611. // unlawful or unlicensed copies of an Apple operating system, or to
  3612. // circumvent, violate, or enable the circumvention or violation of, any
  3613. // terms of an Apple operating system software license agreement.
  3614. //
  3615. // Please obtain a copy of the License at
  3616. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3617. //
  3618. // The Original Code and all software distributed under the License are
  3619. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3620. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3621. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3622. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3623. // Please see the License for the specific language governing rights and
  3624. // limitations under the License.
  3625. //
  3626. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3627. type Errno_t = int32 /* _errno_t.h:30:32 */
  3628. // This code is present here in order to maintain historical backward
  3629. // compatability, and is intended to be removed at some point in the
  3630. // future; please include <sys/select.h> instead.
  3631. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3632. //
  3633. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3634. //
  3635. // This file contains Original Code and/or Modifications of Original Code
  3636. // as defined in and that are subject to the Apple Public Source License
  3637. // Version 2.0 (the 'License'). You may not use this file except in
  3638. // compliance with the License. The rights granted to you under the License
  3639. // may not be used to create, or enable the creation or redistribution of,
  3640. // unlawful or unlicensed copies of an Apple operating system, or to
  3641. // circumvent, violate, or enable the circumvention or violation of, any
  3642. // terms of an Apple operating system software license agreement.
  3643. //
  3644. // Please obtain a copy of the License at
  3645. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3646. //
  3647. // The Original Code and all software distributed under the License are
  3648. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3649. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3650. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3651. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3652. // Please see the License for the specific language governing rights and
  3653. // limitations under the License.
  3654. //
  3655. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3656. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  3657. //
  3658. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3659. //
  3660. // This file contains Original Code and/or Modifications of Original Code
  3661. // as defined in and that are subject to the Apple Public Source License
  3662. // Version 2.0 (the 'License'). You may not use this file except in
  3663. // compliance with the License. The rights granted to you under the License
  3664. // may not be used to create, or enable the creation or redistribution of,
  3665. // unlawful or unlicensed copies of an Apple operating system, or to
  3666. // circumvent, violate, or enable the circumvention or violation of, any
  3667. // terms of an Apple operating system software license agreement.
  3668. //
  3669. // Please obtain a copy of the License at
  3670. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3671. //
  3672. // The Original Code and all software distributed under the License are
  3673. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3674. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3675. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3676. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3677. // Please see the License for the specific language governing rights and
  3678. // limitations under the License.
  3679. //
  3680. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3681. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  3682. // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  3683. //
  3684. // @APPLE_LICENSE_HEADER_START@
  3685. //
  3686. // This file contains Original Code and/or Modifications of Original Code
  3687. // as defined in and that are subject to the Apple Public Source License
  3688. // Version 2.0 (the 'License'). You may not use this file except in
  3689. // compliance with the License. Please obtain a copy of the License at
  3690. // http://www.opensource.apple.com/apsl/ and read it before using this
  3691. // file.
  3692. //
  3693. // The Original Code and all software distributed under the License are
  3694. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3695. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3696. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3697. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3698. // Please see the License for the specific language governing rights and
  3699. // limitations under the License.
  3700. //
  3701. // @APPLE_LICENSE_HEADER_END@
  3702. // Select uses bit masks of file descriptors in longs. These macros
  3703. // manipulate such bit fields (the filesystem macros use chars). The
  3704. // extra protection here is to permit application redefinition above
  3705. // the default size.
  3706. type Fd_set1 = struct{ Ffds_bits [32]X__int32_t } /* _fd_def.h:50:9 */
  3707. // This code is present here in order to maintain historical backward
  3708. // compatability, and is intended to be removed at some point in the
  3709. // future; please include <sys/select.h> instead.
  3710. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3711. //
  3712. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3713. //
  3714. // This file contains Original Code and/or Modifications of Original Code
  3715. // as defined in and that are subject to the Apple Public Source License
  3716. // Version 2.0 (the 'License'). You may not use this file except in
  3717. // compliance with the License. The rights granted to you under the License
  3718. // may not be used to create, or enable the creation or redistribution of,
  3719. // unlawful or unlicensed copies of an Apple operating system, or to
  3720. // circumvent, violate, or enable the circumvention or violation of, any
  3721. // terms of an Apple operating system software license agreement.
  3722. //
  3723. // Please obtain a copy of the License at
  3724. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3725. //
  3726. // The Original Code and all software distributed under the License are
  3727. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3728. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3729. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3730. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3731. // Please see the License for the specific language governing rights and
  3732. // limitations under the License.
  3733. //
  3734. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3735. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  3736. //
  3737. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3738. //
  3739. // This file contains Original Code and/or Modifications of Original Code
  3740. // as defined in and that are subject to the Apple Public Source License
  3741. // Version 2.0 (the 'License'). You may not use this file except in
  3742. // compliance with the License. The rights granted to you under the License
  3743. // may not be used to create, or enable the creation or redistribution of,
  3744. // unlawful or unlicensed copies of an Apple operating system, or to
  3745. // circumvent, violate, or enable the circumvention or violation of, any
  3746. // terms of an Apple operating system software license agreement.
  3747. //
  3748. // Please obtain a copy of the License at
  3749. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3750. //
  3751. // The Original Code and all software distributed under the License are
  3752. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3753. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3754. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3755. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3756. // Please see the License for the specific language governing rights and
  3757. // limitations under the License.
  3758. //
  3759. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3760. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  3761. // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  3762. //
  3763. // @APPLE_LICENSE_HEADER_START@
  3764. //
  3765. // This file contains Original Code and/or Modifications of Original Code
  3766. // as defined in and that are subject to the Apple Public Source License
  3767. // Version 2.0 (the 'License'). You may not use this file except in
  3768. // compliance with the License. Please obtain a copy of the License at
  3769. // http://www.opensource.apple.com/apsl/ and read it before using this
  3770. // file.
  3771. //
  3772. // The Original Code and all software distributed under the License are
  3773. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3774. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3775. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3776. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3777. // Please see the License for the specific language governing rights and
  3778. // limitations under the License.
  3779. //
  3780. // @APPLE_LICENSE_HEADER_END@
  3781. // Select uses bit masks of file descriptors in longs. These macros
  3782. // manipulate such bit fields (the filesystem macros use chars). The
  3783. // extra protection here is to permit application redefinition above
  3784. // the default size.
  3785. type Fd_set = Fd_set1 /* _fd_def.h:52:3 */
  3786. // Use the built-in bzero function instead of the library version so that
  3787. // we do not pollute the namespace or introduce prototype warnings.
  3788. type Fd_mask = X__int32_t /* types.h:189:25 */
  3789. // Select uses bit masks of file descriptors in longs. These macros
  3790. // manipulate such bit fields (the filesystem macros use chars). The
  3791. // extra protection here is to permit application redefinition above
  3792. // the default size.
  3793. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3794. //
  3795. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3796. //
  3797. // This file contains Original Code and/or Modifications of Original Code
  3798. // as defined in and that are subject to the Apple Public Source License
  3799. // Version 2.0 (the 'License'). You may not use this file except in
  3800. // compliance with the License. The rights granted to you under the License
  3801. // may not be used to create, or enable the creation or redistribution of,
  3802. // unlawful or unlicensed copies of an Apple operating system, or to
  3803. // circumvent, violate, or enable the circumvention or violation of, any
  3804. // terms of an Apple operating system software license agreement.
  3805. //
  3806. // Please obtain a copy of the License at
  3807. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3808. //
  3809. // The Original Code and all software distributed under the License are
  3810. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3811. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3812. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3813. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3814. // Please see the License for the specific language governing rights and
  3815. // limitations under the License.
  3816. //
  3817. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3818. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3819. //
  3820. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3821. //
  3822. // This file contains Original Code and/or Modifications of Original Code
  3823. // as defined in and that are subject to the Apple Public Source License
  3824. // Version 2.0 (the 'License'). You may not use this file except in
  3825. // compliance with the License. The rights granted to you under the License
  3826. // may not be used to create, or enable the creation or redistribution of,
  3827. // unlawful or unlicensed copies of an Apple operating system, or to
  3828. // circumvent, violate, or enable the circumvention or violation of, any
  3829. // terms of an Apple operating system software license agreement.
  3830. //
  3831. // Please obtain a copy of the License at
  3832. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3833. //
  3834. // The Original Code and all software distributed under the License are
  3835. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3836. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3837. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3838. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3839. // Please see the License for the specific language governing rights and
  3840. // limitations under the License.
  3841. //
  3842. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3843. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3844. //
  3845. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3846. //
  3847. // This file contains Original Code and/or Modifications of Original Code
  3848. // as defined in and that are subject to the Apple Public Source License
  3849. // Version 2.0 (the 'License'). You may not use this file except in
  3850. // compliance with the License. The rights granted to you under the License
  3851. // may not be used to create, or enable the creation or redistribution of,
  3852. // unlawful or unlicensed copies of an Apple operating system, or to
  3853. // circumvent, violate, or enable the circumvention or violation of, any
  3854. // terms of an Apple operating system software license agreement.
  3855. //
  3856. // Please obtain a copy of the License at
  3857. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3858. //
  3859. // The Original Code and all software distributed under the License are
  3860. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3861. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3862. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3863. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3864. // Please see the License for the specific language governing rights and
  3865. // limitations under the License.
  3866. //
  3867. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3868. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3869. //
  3870. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3871. //
  3872. // This file contains Original Code and/or Modifications of Original Code
  3873. // as defined in and that are subject to the Apple Public Source License
  3874. // Version 2.0 (the 'License'). You may not use this file except in
  3875. // compliance with the License. The rights granted to you under the License
  3876. // may not be used to create, or enable the creation or redistribution of,
  3877. // unlawful or unlicensed copies of an Apple operating system, or to
  3878. // circumvent, violate, or enable the circumvention or violation of, any
  3879. // terms of an Apple operating system software license agreement.
  3880. //
  3881. // Please obtain a copy of the License at
  3882. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3883. //
  3884. // The Original Code and all software distributed under the License are
  3885. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3886. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3887. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3888. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3889. // Please see the License for the specific language governing rights and
  3890. // limitations under the License.
  3891. //
  3892. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3893. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3894. //
  3895. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3896. //
  3897. // This file contains Original Code and/or Modifications of Original Code
  3898. // as defined in and that are subject to the Apple Public Source License
  3899. // Version 2.0 (the 'License'). You may not use this file except in
  3900. // compliance with the License. The rights granted to you under the License
  3901. // may not be used to create, or enable the creation or redistribution of,
  3902. // unlawful or unlicensed copies of an Apple operating system, or to
  3903. // circumvent, violate, or enable the circumvention or violation of, any
  3904. // terms of an Apple operating system software license agreement.
  3905. //
  3906. // Please obtain a copy of the License at
  3907. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3908. //
  3909. // The Original Code and all software distributed under the License are
  3910. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3911. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3912. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3913. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3914. // Please see the License for the specific language governing rights and
  3915. // limitations under the License.
  3916. //
  3917. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3918. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3919. //
  3920. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3921. //
  3922. // This file contains Original Code and/or Modifications of Original Code
  3923. // as defined in and that are subject to the Apple Public Source License
  3924. // Version 2.0 (the 'License'). You may not use this file except in
  3925. // compliance with the License. The rights granted to you under the License
  3926. // may not be used to create, or enable the creation or redistribution of,
  3927. // unlawful or unlicensed copies of an Apple operating system, or to
  3928. // circumvent, violate, or enable the circumvention or violation of, any
  3929. // terms of an Apple operating system software license agreement.
  3930. //
  3931. // Please obtain a copy of the License at
  3932. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3933. //
  3934. // The Original Code and all software distributed under the License are
  3935. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3936. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3937. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3938. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3939. // Please see the License for the specific language governing rights and
  3940. // limitations under the License.
  3941. //
  3942. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3943. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3944. //
  3945. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3946. //
  3947. // This file contains Original Code and/or Modifications of Original Code
  3948. // as defined in and that are subject to the Apple Public Source License
  3949. // Version 2.0 (the 'License'). You may not use this file except in
  3950. // compliance with the License. The rights granted to you under the License
  3951. // may not be used to create, or enable the creation or redistribution of,
  3952. // unlawful or unlicensed copies of an Apple operating system, or to
  3953. // circumvent, violate, or enable the circumvention or violation of, any
  3954. // terms of an Apple operating system software license agreement.
  3955. //
  3956. // Please obtain a copy of the License at
  3957. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3958. //
  3959. // The Original Code and all software distributed under the License are
  3960. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3961. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3962. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3963. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3964. // Please see the License for the specific language governing rights and
  3965. // limitations under the License.
  3966. //
  3967. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3968. // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  3969. //
  3970. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3971. //
  3972. // This file contains Original Code and/or Modifications of Original Code
  3973. // as defined in and that are subject to the Apple Public Source License
  3974. // Version 2.0 (the 'License'). You may not use this file except in
  3975. // compliance with the License. The rights granted to you under the License
  3976. // may not be used to create, or enable the creation or redistribution of,
  3977. // unlawful or unlicensed copies of an Apple operating system, or to
  3978. // circumvent, violate, or enable the circumvention or violation of, any
  3979. // terms of an Apple operating system software license agreement.
  3980. //
  3981. // Please obtain a copy of the License at
  3982. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3983. //
  3984. // The Original Code and all software distributed under the License are
  3985. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3986. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3987. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3988. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3989. // Please see the License for the specific language governing rights and
  3990. // limitations under the License.
  3991. //
  3992. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3993. type Pthread_attr_t = X__darwin_pthread_attr_t /* _pthread_attr_t.h:31:33 */
  3994. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3995. //
  3996. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3997. //
  3998. // This file contains Original Code and/or Modifications of Original Code
  3999. // as defined in and that are subject to the Apple Public Source License
  4000. // Version 2.0 (the 'License'). You may not use this file except in
  4001. // compliance with the License. The rights granted to you under the License
  4002. // may not be used to create, or enable the creation or redistribution of,
  4003. // unlawful or unlicensed copies of an Apple operating system, or to
  4004. // circumvent, violate, or enable the circumvention or violation of, any
  4005. // terms of an Apple operating system software license agreement.
  4006. //
  4007. // Please obtain a copy of the License at
  4008. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4009. //
  4010. // The Original Code and all software distributed under the License are
  4011. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4012. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4013. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4014. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4015. // Please see the License for the specific language governing rights and
  4016. // limitations under the License.
  4017. //
  4018. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4019. // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  4020. //
  4021. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4022. //
  4023. // This file contains Original Code and/or Modifications of Original Code
  4024. // as defined in and that are subject to the Apple Public Source License
  4025. // Version 2.0 (the 'License'). You may not use this file except in
  4026. // compliance with the License. The rights granted to you under the License
  4027. // may not be used to create, or enable the creation or redistribution of,
  4028. // unlawful or unlicensed copies of an Apple operating system, or to
  4029. // circumvent, violate, or enable the circumvention or violation of, any
  4030. // terms of an Apple operating system software license agreement.
  4031. //
  4032. // Please obtain a copy of the License at
  4033. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4034. //
  4035. // The Original Code and all software distributed under the License are
  4036. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4037. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4038. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4039. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4040. // Please see the License for the specific language governing rights and
  4041. // limitations under the License.
  4042. //
  4043. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4044. type Pthread_cond_t = X__darwin_pthread_cond_t /* _pthread_cond_t.h:31:33 */
  4045. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4046. //
  4047. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4048. //
  4049. // This file contains Original Code and/or Modifications of Original Code
  4050. // as defined in and that are subject to the Apple Public Source License
  4051. // Version 2.0 (the 'License'). You may not use this file except in
  4052. // compliance with the License. The rights granted to you under the License
  4053. // may not be used to create, or enable the creation or redistribution of,
  4054. // unlawful or unlicensed copies of an Apple operating system, or to
  4055. // circumvent, violate, or enable the circumvention or violation of, any
  4056. // terms of an Apple operating system software license agreement.
  4057. //
  4058. // Please obtain a copy of the License at
  4059. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4060. //
  4061. // The Original Code and all software distributed under the License are
  4062. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4063. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4064. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4065. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4066. // Please see the License for the specific language governing rights and
  4067. // limitations under the License.
  4068. //
  4069. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4070. // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  4071. //
  4072. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4073. //
  4074. // This file contains Original Code and/or Modifications of Original Code
  4075. // as defined in and that are subject to the Apple Public Source License
  4076. // Version 2.0 (the 'License'). You may not use this file except in
  4077. // compliance with the License. The rights granted to you under the License
  4078. // may not be used to create, or enable the creation or redistribution of,
  4079. // unlawful or unlicensed copies of an Apple operating system, or to
  4080. // circumvent, violate, or enable the circumvention or violation of, any
  4081. // terms of an Apple operating system software license agreement.
  4082. //
  4083. // Please obtain a copy of the License at
  4084. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4085. //
  4086. // The Original Code and all software distributed under the License are
  4087. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4088. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4089. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4090. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4091. // Please see the License for the specific language governing rights and
  4092. // limitations under the License.
  4093. //
  4094. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4095. type Pthread_condattr_t = X__darwin_pthread_condattr_t /* _pthread_condattr_t.h:31:37 */
  4096. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4097. //
  4098. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4099. //
  4100. // This file contains Original Code and/or Modifications of Original Code
  4101. // as defined in and that are subject to the Apple Public Source License
  4102. // Version 2.0 (the 'License'). You may not use this file except in
  4103. // compliance with the License. The rights granted to you under the License
  4104. // may not be used to create, or enable the creation or redistribution of,
  4105. // unlawful or unlicensed copies of an Apple operating system, or to
  4106. // circumvent, violate, or enable the circumvention or violation of, any
  4107. // terms of an Apple operating system software license agreement.
  4108. //
  4109. // Please obtain a copy of the License at
  4110. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4111. //
  4112. // The Original Code and all software distributed under the License are
  4113. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4114. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4115. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4116. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4117. // Please see the License for the specific language governing rights and
  4118. // limitations under the License.
  4119. //
  4120. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4121. // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  4122. //
  4123. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4124. //
  4125. // This file contains Original Code and/or Modifications of Original Code
  4126. // as defined in and that are subject to the Apple Public Source License
  4127. // Version 2.0 (the 'License'). You may not use this file except in
  4128. // compliance with the License. The rights granted to you under the License
  4129. // may not be used to create, or enable the creation or redistribution of,
  4130. // unlawful or unlicensed copies of an Apple operating system, or to
  4131. // circumvent, violate, or enable the circumvention or violation of, any
  4132. // terms of an Apple operating system software license agreement.
  4133. //
  4134. // Please obtain a copy of the License at
  4135. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4136. //
  4137. // The Original Code and all software distributed under the License are
  4138. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4139. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4140. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4141. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4142. // Please see the License for the specific language governing rights and
  4143. // limitations under the License.
  4144. //
  4145. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4146. type Pthread_mutex_t = X__darwin_pthread_mutex_t /* _pthread_mutex_t.h:31:34 */
  4147. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4148. //
  4149. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4150. //
  4151. // This file contains Original Code and/or Modifications of Original Code
  4152. // as defined in and that are subject to the Apple Public Source License
  4153. // Version 2.0 (the 'License'). You may not use this file except in
  4154. // compliance with the License. The rights granted to you under the License
  4155. // may not be used to create, or enable the creation or redistribution of,
  4156. // unlawful or unlicensed copies of an Apple operating system, or to
  4157. // circumvent, violate, or enable the circumvention or violation of, any
  4158. // terms of an Apple operating system software license agreement.
  4159. //
  4160. // Please obtain a copy of the License at
  4161. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4162. //
  4163. // The Original Code and all software distributed under the License are
  4164. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4165. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4166. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4167. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4168. // Please see the License for the specific language governing rights and
  4169. // limitations under the License.
  4170. //
  4171. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4172. // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  4173. //
  4174. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4175. //
  4176. // This file contains Original Code and/or Modifications of Original Code
  4177. // as defined in and that are subject to the Apple Public Source License
  4178. // Version 2.0 (the 'License'). You may not use this file except in
  4179. // compliance with the License. The rights granted to you under the License
  4180. // may not be used to create, or enable the creation or redistribution of,
  4181. // unlawful or unlicensed copies of an Apple operating system, or to
  4182. // circumvent, violate, or enable the circumvention or violation of, any
  4183. // terms of an Apple operating system software license agreement.
  4184. //
  4185. // Please obtain a copy of the License at
  4186. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4187. //
  4188. // The Original Code and all software distributed under the License are
  4189. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4190. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4191. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4192. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4193. // Please see the License for the specific language governing rights and
  4194. // limitations under the License.
  4195. //
  4196. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4197. type Pthread_mutexattr_t = X__darwin_pthread_mutexattr_t /* _pthread_mutexattr_t.h:31:38 */
  4198. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4199. //
  4200. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4201. //
  4202. // This file contains Original Code and/or Modifications of Original Code
  4203. // as defined in and that are subject to the Apple Public Source License
  4204. // Version 2.0 (the 'License'). You may not use this file except in
  4205. // compliance with the License. The rights granted to you under the License
  4206. // may not be used to create, or enable the creation or redistribution of,
  4207. // unlawful or unlicensed copies of an Apple operating system, or to
  4208. // circumvent, violate, or enable the circumvention or violation of, any
  4209. // terms of an Apple operating system software license agreement.
  4210. //
  4211. // Please obtain a copy of the License at
  4212. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4213. //
  4214. // The Original Code and all software distributed under the License are
  4215. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4216. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4217. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4218. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4219. // Please see the License for the specific language governing rights and
  4220. // limitations under the License.
  4221. //
  4222. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4223. // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  4224. //
  4225. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4226. //
  4227. // This file contains Original Code and/or Modifications of Original Code
  4228. // as defined in and that are subject to the Apple Public Source License
  4229. // Version 2.0 (the 'License'). You may not use this file except in
  4230. // compliance with the License. The rights granted to you under the License
  4231. // may not be used to create, or enable the creation or redistribution of,
  4232. // unlawful or unlicensed copies of an Apple operating system, or to
  4233. // circumvent, violate, or enable the circumvention or violation of, any
  4234. // terms of an Apple operating system software license agreement.
  4235. //
  4236. // Please obtain a copy of the License at
  4237. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4238. //
  4239. // The Original Code and all software distributed under the License are
  4240. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4241. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4242. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4243. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4244. // Please see the License for the specific language governing rights and
  4245. // limitations under the License.
  4246. //
  4247. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4248. type Pthread_once_t = X__darwin_pthread_once_t /* _pthread_once_t.h:31:33 */
  4249. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4250. //
  4251. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4252. //
  4253. // This file contains Original Code and/or Modifications of Original Code
  4254. // as defined in and that are subject to the Apple Public Source License
  4255. // Version 2.0 (the 'License'). You may not use this file except in
  4256. // compliance with the License. The rights granted to you under the License
  4257. // may not be used to create, or enable the creation or redistribution of,
  4258. // unlawful or unlicensed copies of an Apple operating system, or to
  4259. // circumvent, violate, or enable the circumvention or violation of, any
  4260. // terms of an Apple operating system software license agreement.
  4261. //
  4262. // Please obtain a copy of the License at
  4263. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4264. //
  4265. // The Original Code and all software distributed under the License are
  4266. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4267. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4268. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4269. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4270. // Please see the License for the specific language governing rights and
  4271. // limitations under the License.
  4272. //
  4273. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4274. // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  4275. //
  4276. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4277. //
  4278. // This file contains Original Code and/or Modifications of Original Code
  4279. // as defined in and that are subject to the Apple Public Source License
  4280. // Version 2.0 (the 'License'). You may not use this file except in
  4281. // compliance with the License. The rights granted to you under the License
  4282. // may not be used to create, or enable the creation or redistribution of,
  4283. // unlawful or unlicensed copies of an Apple operating system, or to
  4284. // circumvent, violate, or enable the circumvention or violation of, any
  4285. // terms of an Apple operating system software license agreement.
  4286. //
  4287. // Please obtain a copy of the License at
  4288. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4289. //
  4290. // The Original Code and all software distributed under the License are
  4291. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4292. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4293. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4294. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4295. // Please see the License for the specific language governing rights and
  4296. // limitations under the License.
  4297. //
  4298. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4299. type Pthread_rwlock_t = X__darwin_pthread_rwlock_t /* _pthread_rwlock_t.h:31:35 */
  4300. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4301. //
  4302. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4303. //
  4304. // This file contains Original Code and/or Modifications of Original Code
  4305. // as defined in and that are subject to the Apple Public Source License
  4306. // Version 2.0 (the 'License'). You may not use this file except in
  4307. // compliance with the License. The rights granted to you under the License
  4308. // may not be used to create, or enable the creation or redistribution of,
  4309. // unlawful or unlicensed copies of an Apple operating system, or to
  4310. // circumvent, violate, or enable the circumvention or violation of, any
  4311. // terms of an Apple operating system software license agreement.
  4312. //
  4313. // Please obtain a copy of the License at
  4314. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4315. //
  4316. // The Original Code and all software distributed under the License are
  4317. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4318. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4319. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4320. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4321. // Please see the License for the specific language governing rights and
  4322. // limitations under the License.
  4323. //
  4324. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4325. // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  4326. //
  4327. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4328. //
  4329. // This file contains Original Code and/or Modifications of Original Code
  4330. // as defined in and that are subject to the Apple Public Source License
  4331. // Version 2.0 (the 'License'). You may not use this file except in
  4332. // compliance with the License. The rights granted to you under the License
  4333. // may not be used to create, or enable the creation or redistribution of,
  4334. // unlawful or unlicensed copies of an Apple operating system, or to
  4335. // circumvent, violate, or enable the circumvention or violation of, any
  4336. // terms of an Apple operating system software license agreement.
  4337. //
  4338. // Please obtain a copy of the License at
  4339. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4340. //
  4341. // The Original Code and all software distributed under the License are
  4342. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4343. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4344. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4345. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4346. // Please see the License for the specific language governing rights and
  4347. // limitations under the License.
  4348. //
  4349. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4350. type Pthread_rwlockattr_t = X__darwin_pthread_rwlockattr_t /* _pthread_rwlockattr_t.h:31:39 */
  4351. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4352. //
  4353. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4354. //
  4355. // This file contains Original Code and/or Modifications of Original Code
  4356. // as defined in and that are subject to the Apple Public Source License
  4357. // Version 2.0 (the 'License'). You may not use this file except in
  4358. // compliance with the License. The rights granted to you under the License
  4359. // may not be used to create, or enable the creation or redistribution of,
  4360. // unlawful or unlicensed copies of an Apple operating system, or to
  4361. // circumvent, violate, or enable the circumvention or violation of, any
  4362. // terms of an Apple operating system software license agreement.
  4363. //
  4364. // Please obtain a copy of the License at
  4365. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4366. //
  4367. // The Original Code and all software distributed under the License are
  4368. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4369. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4370. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4371. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4372. // Please see the License for the specific language governing rights and
  4373. // limitations under the License.
  4374. //
  4375. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4376. // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  4377. //
  4378. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4379. //
  4380. // This file contains Original Code and/or Modifications of Original Code
  4381. // as defined in and that are subject to the Apple Public Source License
  4382. // Version 2.0 (the 'License'). You may not use this file except in
  4383. // compliance with the License. The rights granted to you under the License
  4384. // may not be used to create, or enable the creation or redistribution of,
  4385. // unlawful or unlicensed copies of an Apple operating system, or to
  4386. // circumvent, violate, or enable the circumvention or violation of, any
  4387. // terms of an Apple operating system software license agreement.
  4388. //
  4389. // Please obtain a copy of the License at
  4390. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4391. //
  4392. // The Original Code and all software distributed under the License are
  4393. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4394. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4395. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4396. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4397. // Please see the License for the specific language governing rights and
  4398. // limitations under the License.
  4399. //
  4400. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4401. type Pthread_t = X__darwin_pthread_t /* _pthread_t.h:31:28 */
  4402. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4403. //
  4404. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4405. //
  4406. // This file contains Original Code and/or Modifications of Original Code
  4407. // as defined in and that are subject to the Apple Public Source License
  4408. // Version 2.0 (the 'License'). You may not use this file except in
  4409. // compliance with the License. The rights granted to you under the License
  4410. // may not be used to create, or enable the creation or redistribution of,
  4411. // unlawful or unlicensed copies of an Apple operating system, or to
  4412. // circumvent, violate, or enable the circumvention or violation of, any
  4413. // terms of an Apple operating system software license agreement.
  4414. //
  4415. // Please obtain a copy of the License at
  4416. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4417. //
  4418. // The Original Code and all software distributed under the License are
  4419. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4420. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4421. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4422. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4423. // Please see the License for the specific language governing rights and
  4424. // limitations under the License.
  4425. //
  4426. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4427. // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  4428. //
  4429. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4430. //
  4431. // This file contains Original Code and/or Modifications of Original Code
  4432. // as defined in and that are subject to the Apple Public Source License
  4433. // Version 2.0 (the 'License'). You may not use this file except in
  4434. // compliance with the License. The rights granted to you under the License
  4435. // may not be used to create, or enable the creation or redistribution of,
  4436. // unlawful or unlicensed copies of an Apple operating system, or to
  4437. // circumvent, violate, or enable the circumvention or violation of, any
  4438. // terms of an Apple operating system software license agreement.
  4439. //
  4440. // Please obtain a copy of the License at
  4441. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4442. //
  4443. // The Original Code and all software distributed under the License are
  4444. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4445. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4446. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4447. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4448. // Please see the License for the specific language governing rights and
  4449. // limitations under the License.
  4450. //
  4451. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4452. type Pthread_key_t = X__darwin_pthread_key_t /* _pthread_key_t.h:31:32 */
  4453. // statvfs and fstatvfs
  4454. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4455. //
  4456. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4457. //
  4458. // This file contains Original Code and/or Modifications of Original Code
  4459. // as defined in and that are subject to the Apple Public Source License
  4460. // Version 2.0 (the 'License'). You may not use this file except in
  4461. // compliance with the License. The rights granted to you under the License
  4462. // may not be used to create, or enable the creation or redistribution of,
  4463. // unlawful or unlicensed copies of an Apple operating system, or to
  4464. // circumvent, violate, or enable the circumvention or violation of, any
  4465. // terms of an Apple operating system software license agreement.
  4466. //
  4467. // Please obtain a copy of the License at
  4468. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4469. //
  4470. // The Original Code and all software distributed under the License are
  4471. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4472. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4473. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4474. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4475. // Please see the License for the specific language governing rights and
  4476. // limitations under the License.
  4477. //
  4478. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4479. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  4480. //
  4481. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4482. //
  4483. // This file contains Original Code and/or Modifications of Original Code
  4484. // as defined in and that are subject to the Apple Public Source License
  4485. // Version 2.0 (the 'License'). You may not use this file except in
  4486. // compliance with the License. The rights granted to you under the License
  4487. // may not be used to create, or enable the creation or redistribution of,
  4488. // unlawful or unlicensed copies of an Apple operating system, or to
  4489. // circumvent, violate, or enable the circumvention or violation of, any
  4490. // terms of an Apple operating system software license agreement.
  4491. //
  4492. // Please obtain a copy of the License at
  4493. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4494. //
  4495. // The Original Code and all software distributed under the License are
  4496. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4497. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4498. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4499. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4500. // Please see the License for the specific language governing rights and
  4501. // limitations under the License.
  4502. //
  4503. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4504. type Fsblkcnt_t = X__darwin_fsblkcnt_t /* _fsblkcnt_t.h:31:41 */
  4505. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4506. //
  4507. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4508. //
  4509. // This file contains Original Code and/or Modifications of Original Code
  4510. // as defined in and that are subject to the Apple Public Source License
  4511. // Version 2.0 (the 'License'). You may not use this file except in
  4512. // compliance with the License. The rights granted to you under the License
  4513. // may not be used to create, or enable the creation or redistribution of,
  4514. // unlawful or unlicensed copies of an Apple operating system, or to
  4515. // circumvent, violate, or enable the circumvention or violation of, any
  4516. // terms of an Apple operating system software license agreement.
  4517. //
  4518. // Please obtain a copy of the License at
  4519. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4520. //
  4521. // The Original Code and all software distributed under the License are
  4522. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4523. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4524. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4525. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4526. // Please see the License for the specific language governing rights and
  4527. // limitations under the License.
  4528. //
  4529. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4530. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  4531. //
  4532. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4533. //
  4534. // This file contains Original Code and/or Modifications of Original Code
  4535. // as defined in and that are subject to the Apple Public Source License
  4536. // Version 2.0 (the 'License'). You may not use this file except in
  4537. // compliance with the License. The rights granted to you under the License
  4538. // may not be used to create, or enable the creation or redistribution of,
  4539. // unlawful or unlicensed copies of an Apple operating system, or to
  4540. // circumvent, violate, or enable the circumvention or violation of, any
  4541. // terms of an Apple operating system software license agreement.
  4542. //
  4543. // Please obtain a copy of the License at
  4544. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4545. //
  4546. // The Original Code and all software distributed under the License are
  4547. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4548. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4549. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4550. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4551. // Please see the License for the specific language governing rights and
  4552. // limitations under the License.
  4553. //
  4554. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4555. type Fsfilcnt_t = X__darwin_fsfilcnt_t /* _fsfilcnt_t.h:31:41 */
  4556. // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  4557. //
  4558. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4559. //
  4560. // This file contains Original Code and/or Modifications of Original Code
  4561. // as defined in and that are subject to the Apple Public Source License
  4562. // Version 2.0 (the 'License'). You may not use this file except in
  4563. // compliance with the License. The rights granted to you under the License
  4564. // may not be used to create, or enable the creation or redistribution of,
  4565. // unlawful or unlicensed copies of an Apple operating system, or to
  4566. // circumvent, violate, or enable the circumvention or violation of, any
  4567. // terms of an Apple operating system software license agreement.
  4568. //
  4569. // Please obtain a copy of the License at
  4570. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4571. //
  4572. // The Original Code and all software distributed under the License are
  4573. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4574. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4575. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4576. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4577. // Please see the License for the specific language governing rights and
  4578. // limitations under the License.
  4579. //
  4580. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4581. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  4582. // Copyright (c) 1991, 1993
  4583. // The Regents of the University of California. All rights reserved.
  4584. //
  4585. // This code is derived from software contributed to Berkeley by
  4586. // Berkeley Software Design, Inc.
  4587. //
  4588. // Redistribution and use in source and binary forms, with or without
  4589. // modification, are permitted provided that the following conditions
  4590. // are met:
  4591. // 1. Redistributions of source code must retain the above copyright
  4592. // notice, this list of conditions and the following disclaimer.
  4593. // 2. Redistributions in binary form must reproduce the above copyright
  4594. // notice, this list of conditions and the following disclaimer in the
  4595. // documentation and/or other materials provided with the distribution.
  4596. // 3. All advertising materials mentioning features or use of this software
  4597. // must display the following acknowledgement:
  4598. // This product includes software developed by the University of
  4599. // California, Berkeley and its contributors.
  4600. // 4. Neither the name of the University nor the names of its contributors
  4601. // may be used to endorse or promote products derived from this software
  4602. // without specific prior written permission.
  4603. //
  4604. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  4605. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  4606. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  4607. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  4608. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  4609. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  4610. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  4611. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  4612. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  4613. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  4614. // SUCH DAMAGE.
  4615. //
  4616. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  4617. // Copyright (c) 2004-2007 Apple Inc. All rights reserved.
  4618. //
  4619. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4620. //
  4621. // This file contains Original Code and/or Modifications of Original Code
  4622. // as defined in and that are subject to the Apple Public Source License
  4623. // Version 2.0 (the 'License'). You may not use this file except in
  4624. // compliance with the License. The rights granted to you under the License
  4625. // may not be used to create, or enable the creation or redistribution of,
  4626. // unlawful or unlicensed copies of an Apple operating system, or to
  4627. // circumvent, violate, or enable the circumvention or violation of, any
  4628. // terms of an Apple operating system software license agreement.
  4629. //
  4630. // Please obtain a copy of the License at
  4631. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4632. //
  4633. // The Original Code and all software distributed under the License are
  4634. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4635. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4636. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4637. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4638. // Please see the License for the specific language governing rights and
  4639. // limitations under the License.
  4640. //
  4641. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4642. // Copyright (c) 2008 Apple Computer, Inc. All rights reserved.
  4643. //
  4644. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4645. //
  4646. // This file contains Original Code and/or Modifications of Original Code
  4647. // as defined in and that are subject to the Apple Public Source License
  4648. // Version 2.0 (the 'License'). You may not use this file except in
  4649. // compliance with the License. The rights granted to you under the License
  4650. // may not be used to create, or enable the creation or redistribution of,
  4651. // unlawful or unlicensed copies of an Apple operating system, or to
  4652. // circumvent, violate, or enable the circumvention or violation of, any
  4653. // terms of an Apple operating system software license agreement.
  4654. //
  4655. // Please obtain a copy of the License at
  4656. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4657. //
  4658. // The Original Code and all software distributed under the License are
  4659. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4660. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4661. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4662. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4663. // Please see the License for the specific language governing rights and
  4664. // limitations under the License.
  4665. //
  4666. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4667. // Copyright (c) 2000-2003 Apple Computer, Inc. All rights reserved.
  4668. //
  4669. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4670. //
  4671. // This file contains Original Code and/or Modifications of Original Code
  4672. // as defined in and that are subject to the Apple Public Source License
  4673. // Version 2.0 (the 'License'). You may not use this file except in
  4674. // compliance with the License. The rights granted to you under the License
  4675. // may not be used to create, or enable the creation or redistribution of,
  4676. // unlawful or unlicensed copies of an Apple operating system, or to
  4677. // circumvent, violate, or enable the circumvention or violation of, any
  4678. // terms of an Apple operating system software license agreement.
  4679. //
  4680. // Please obtain a copy of the License at
  4681. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4682. //
  4683. // The Original Code and all software distributed under the License are
  4684. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4685. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4686. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4687. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4688. // Please see the License for the specific language governing rights and
  4689. // limitations under the License.
  4690. //
  4691. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4692. // Round p (pointer or byte index) up to a correctly-aligned value for all
  4693. // data types (int, long, ...). The result is unsigned int and must be
  4694. // cast to any desired pointer type.
  4695. // Copyright (c) 2016-2018 Apple Inc. All rights reserved.
  4696. //
  4697. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4698. //
  4699. // This file contains Original Code and/or Modifications of Original Code
  4700. // as defined in and that are subject to the Apple Public Source License
  4701. // Version 2.0 (the 'License'). You may not use this file except in
  4702. // compliance with the License. The rights granted to you under the License
  4703. // may not be used to create, or enable the creation or redistribution of,
  4704. // unlawful or unlicensed copies of an Apple operating system, or to
  4705. // circumvent, violate, or enable the circumvention or violation of, any
  4706. // terms of an Apple operating system software license agreement.
  4707. //
  4708. // Please obtain a copy of the License at
  4709. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4710. //
  4711. // The Original Code and all software distributed under the License are
  4712. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4713. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4714. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4715. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4716. // Please see the License for the specific language governing rights and
  4717. // limitations under the License.
  4718. //
  4719. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4720. // Kernel event subclass identifiers for KEV_NETWORK_CLASS
  4721. // KEV_INET_SUBCLASS event codes
  4722. // Define Data-Link event subclass, and associated
  4723. // events.
  4724. // KEV_INET6_SUBCLASS event codes
  4725. // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  4726. //
  4727. // @APPLE_LICENSE_HEADER_START@
  4728. //
  4729. // This file contains Original Code and/or Modifications of Original Code
  4730. // as defined in and that are subject to the Apple Public Source License
  4731. // Version 2.0 (the 'License'). You may not use this file except in
  4732. // compliance with the License. Please obtain a copy of the License at
  4733. // http://www.opensource.apple.com/apsl/ and read it before using this
  4734. // file.
  4735. //
  4736. // The Original Code and all software distributed under the License are
  4737. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4738. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4739. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4740. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4741. // Please see the License for the specific language governing rights and
  4742. // limitations under the License.
  4743. //
  4744. // @APPLE_LICENSE_HEADER_END@
  4745. // Definitions related to sockets: types, address families, options.
  4746. // Data types.
  4747. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4748. //
  4749. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4750. //
  4751. // This file contains Original Code and/or Modifications of Original Code
  4752. // as defined in and that are subject to the Apple Public Source License
  4753. // Version 2.0 (the 'License'). You may not use this file except in
  4754. // compliance with the License. The rights granted to you under the License
  4755. // may not be used to create, or enable the creation or redistribution of,
  4756. // unlawful or unlicensed copies of an Apple operating system, or to
  4757. // circumvent, violate, or enable the circumvention or violation of, any
  4758. // terms of an Apple operating system software license agreement.
  4759. //
  4760. // Please obtain a copy of the License at
  4761. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4762. //
  4763. // The Original Code and all software distributed under the License are
  4764. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4765. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4766. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4767. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4768. // Please see the License for the specific language governing rights and
  4769. // limitations under the License.
  4770. //
  4771. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4772. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4773. //
  4774. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4775. //
  4776. // This file contains Original Code and/or Modifications of Original Code
  4777. // as defined in and that are subject to the Apple Public Source License
  4778. // Version 2.0 (the 'License'). You may not use this file except in
  4779. // compliance with the License. The rights granted to you under the License
  4780. // may not be used to create, or enable the creation or redistribution of,
  4781. // unlawful or unlicensed copies of an Apple operating system, or to
  4782. // circumvent, violate, or enable the circumvention or violation of, any
  4783. // terms of an Apple operating system software license agreement.
  4784. //
  4785. // Please obtain a copy of the License at
  4786. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4787. //
  4788. // The Original Code and all software distributed under the License are
  4789. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4790. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4791. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4792. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4793. // Please see the License for the specific language governing rights and
  4794. // limitations under the License.
  4795. //
  4796. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4797. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4798. //
  4799. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4800. //
  4801. // This file contains Original Code and/or Modifications of Original Code
  4802. // as defined in and that are subject to the Apple Public Source License
  4803. // Version 2.0 (the 'License'). You may not use this file except in
  4804. // compliance with the License. The rights granted to you under the License
  4805. // may not be used to create, or enable the creation or redistribution of,
  4806. // unlawful or unlicensed copies of an Apple operating system, or to
  4807. // circumvent, violate, or enable the circumvention or violation of, any
  4808. // terms of an Apple operating system software license agreement.
  4809. //
  4810. // Please obtain a copy of the License at
  4811. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4812. //
  4813. // The Original Code and all software distributed under the License are
  4814. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4815. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4816. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4817. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4818. // Please see the License for the specific language governing rights and
  4819. // limitations under the License.
  4820. //
  4821. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4822. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4823. //
  4824. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4825. //
  4826. // This file contains Original Code and/or Modifications of Original Code
  4827. // as defined in and that are subject to the Apple Public Source License
  4828. // Version 2.0 (the 'License'). You may not use this file except in
  4829. // compliance with the License. The rights granted to you under the License
  4830. // may not be used to create, or enable the creation or redistribution of,
  4831. // unlawful or unlicensed copies of an Apple operating system, or to
  4832. // circumvent, violate, or enable the circumvention or violation of, any
  4833. // terms of an Apple operating system software license agreement.
  4834. //
  4835. // Please obtain a copy of the License at
  4836. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4837. //
  4838. // The Original Code and all software distributed under the License are
  4839. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4840. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4841. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4842. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4843. // Please see the License for the specific language governing rights and
  4844. // limitations under the License.
  4845. //
  4846. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4847. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  4848. //
  4849. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4850. //
  4851. // This file contains Original Code and/or Modifications of Original Code
  4852. // as defined in and that are subject to the Apple Public Source License
  4853. // Version 2.0 (the 'License'). You may not use this file except in
  4854. // compliance with the License. The rights granted to you under the License
  4855. // may not be used to create, or enable the creation or redistribution of,
  4856. // unlawful or unlicensed copies of an Apple operating system, or to
  4857. // circumvent, violate, or enable the circumvention or violation of, any
  4858. // terms of an Apple operating system software license agreement.
  4859. //
  4860. // Please obtain a copy of the License at
  4861. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4862. //
  4863. // The Original Code and all software distributed under the License are
  4864. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4865. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4866. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4867. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4868. // Please see the License for the specific language governing rights and
  4869. // limitations under the License.
  4870. //
  4871. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4872. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  4873. type Sa_family_t = X__uint8_t /* _sa_family_t.h:31:33 */
  4874. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4875. //
  4876. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4877. //
  4878. // This file contains Original Code and/or Modifications of Original Code
  4879. // as defined in and that are subject to the Apple Public Source License
  4880. // Version 2.0 (the 'License'). You may not use this file except in
  4881. // compliance with the License. The rights granted to you under the License
  4882. // may not be used to create, or enable the creation or redistribution of,
  4883. // unlawful or unlicensed copies of an Apple operating system, or to
  4884. // circumvent, violate, or enable the circumvention or violation of, any
  4885. // terms of an Apple operating system software license agreement.
  4886. //
  4887. // Please obtain a copy of the License at
  4888. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4889. //
  4890. // The Original Code and all software distributed under the License are
  4891. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4892. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4893. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4894. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4895. // Please see the License for the specific language governing rights and
  4896. // limitations under the License.
  4897. //
  4898. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4899. // XXX Not explicitly defined by POSIX, but function return types are
  4900. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4901. //
  4902. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4903. //
  4904. // This file contains Original Code and/or Modifications of Original Code
  4905. // as defined in and that are subject to the Apple Public Source License
  4906. // Version 2.0 (the 'License'). You may not use this file except in
  4907. // compliance with the License. The rights granted to you under the License
  4908. // may not be used to create, or enable the creation or redistribution of,
  4909. // unlawful or unlicensed copies of an Apple operating system, or to
  4910. // circumvent, violate, or enable the circumvention or violation of, any
  4911. // terms of an Apple operating system software license agreement.
  4912. //
  4913. // Please obtain a copy of the License at
  4914. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4915. //
  4916. // The Original Code and all software distributed under the License are
  4917. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4918. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4919. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4920. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4921. // Please see the License for the specific language governing rights and
  4922. // limitations under the License.
  4923. //
  4924. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4925. // XXX Not explicitly defined by POSIX, but function return types are
  4926. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4927. //
  4928. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4929. //
  4930. // This file contains Original Code and/or Modifications of Original Code
  4931. // as defined in and that are subject to the Apple Public Source License
  4932. // Version 2.0 (the 'License'). You may not use this file except in
  4933. // compliance with the License. The rights granted to you under the License
  4934. // may not be used to create, or enable the creation or redistribution of,
  4935. // unlawful or unlicensed copies of an Apple operating system, or to
  4936. // circumvent, violate, or enable the circumvention or violation of, any
  4937. // terms of an Apple operating system software license agreement.
  4938. //
  4939. // Please obtain a copy of the License at
  4940. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4941. //
  4942. // The Original Code and all software distributed under the License are
  4943. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4944. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4945. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4946. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4947. // Please see the License for the specific language governing rights and
  4948. // limitations under the License.
  4949. //
  4950. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4951. // [XSI] The iovec structure shall be defined as described in <sys/uio.h>.
  4952. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4953. //
  4954. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4955. //
  4956. // This file contains Original Code and/or Modifications of Original Code
  4957. // as defined in and that are subject to the Apple Public Source License
  4958. // Version 2.0 (the 'License'). You may not use this file except in
  4959. // compliance with the License. The rights granted to you under the License
  4960. // may not be used to create, or enable the creation or redistribution of,
  4961. // unlawful or unlicensed copies of an Apple operating system, or to
  4962. // circumvent, violate, or enable the circumvention or violation of, any
  4963. // terms of an Apple operating system software license agreement.
  4964. //
  4965. // Please obtain a copy of the License at
  4966. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4967. //
  4968. // The Original Code and all software distributed under the License are
  4969. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4970. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4971. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4972. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4973. // Please see the License for the specific language governing rights and
  4974. // limitations under the License.
  4975. //
  4976. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4977. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4978. //
  4979. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4980. //
  4981. // This file contains Original Code and/or Modifications of Original Code
  4982. // as defined in and that are subject to the Apple Public Source License
  4983. // Version 2.0 (the 'License'). You may not use this file except in
  4984. // compliance with the License. The rights granted to you under the License
  4985. // may not be used to create, or enable the creation or redistribution of,
  4986. // unlawful or unlicensed copies of an Apple operating system, or to
  4987. // circumvent, violate, or enable the circumvention or violation of, any
  4988. // terms of an Apple operating system software license agreement.
  4989. //
  4990. // Please obtain a copy of the License at
  4991. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4992. //
  4993. // The Original Code and all software distributed under the License are
  4994. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4995. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4996. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4997. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4998. // Please see the License for the specific language governing rights and
  4999. // limitations under the License.
  5000. //
  5001. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5002. type Iovec = struct {
  5003. Fiov_base uintptr
  5004. Fiov_len Size_t
  5005. } /* _iovec_t.h:31:1 */
  5006. // Types
  5007. // Option flags per-socket.
  5008. // (ATOMIC proto)
  5009. // Additional options, not kept in so_options.
  5010. // Network Service Type for option SO_NET_SERVICE_TYPE
  5011. //
  5012. // The vast majority of sockets should use Best Effort that is the default
  5013. // Network Service Type. Other Network Service Types have to be used only if
  5014. // the traffic actually matches the description of the Network Service Type.
  5015. //
  5016. // Network Service Types do not represent priorities but rather describe
  5017. // different categories of delay, jitter and loss parameters.
  5018. // Those parameters may influence protocols from layer 4 protocols like TCP
  5019. // to layer 2 protocols like Wi-Fi. The Network Service Type can determine
  5020. // how the traffic is queued and scheduled by the host networking stack and
  5021. // by other entities on the network like switches and routers. For example
  5022. // for Wi-Fi, the Network Service Type can select the marking of the
  5023. // layer 2 packet with the appropriate WMM Access Category.
  5024. //
  5025. // There is no point in attempting to game the system and use
  5026. // a Network Service Type that does not correspond to the actual
  5027. // traffic characteristic but one that seems to have a higher precedence.
  5028. // The reason is that for service classes that have lower tolerance
  5029. // for delay and jitter, the queues size is lower than for service
  5030. // classes that are more tolerant to delay and jitter.
  5031. //
  5032. // For example using a voice service type for bulk data transfer will lead
  5033. // to disastrous results as soon as congestion happens because the voice
  5034. // queue overflows and packets get dropped. This is not only bad for the bulk
  5035. // data transfer but it is also bad for VoIP apps that legitimately are using
  5036. // the voice service type.
  5037. //
  5038. // The characteristics of the Network Service Types are based on the service
  5039. // classes defined in RFC 4594 "Configuration Guidelines for DiffServ Service
  5040. // Classes"
  5041. //
  5042. // When system detects the outgoing interface belongs to a DiffServ domain
  5043. // that follows the recommendation of the IETF draft "Guidelines for DiffServ to
  5044. // IEEE 802.11 Mapping", the packet will marked at layer 3 with a DSCP value
  5045. // that corresponds to Network Service Type.
  5046. //
  5047. // NET_SERVICE_TYPE_BE
  5048. // "Best Effort", unclassified/standard. This is the default service
  5049. // class and cover the majority of the traffic.
  5050. //
  5051. // NET_SERVICE_TYPE_BK
  5052. // "Background", high delay tolerant, loss tolerant. elastic flow,
  5053. // variable size & long-lived. E.g: non-interactive network bulk transfer
  5054. // like synching or backup.
  5055. //
  5056. // NET_SERVICE_TYPE_RD
  5057. // "Responsive Data", a notch higher than "Best Effort", medium delay
  5058. // tolerant, elastic & inelastic flow, bursty, long-lived. E.g. email,
  5059. // instant messaging, for which there is a sense of interactivity and
  5060. // urgency (user waiting for output).
  5061. //
  5062. // NET_SERVICE_TYPE_OAM
  5063. // "Operations, Administration, and Management", medium delay tolerant,
  5064. // low-medium loss tolerant, elastic & inelastic flows, variable size.
  5065. // E.g. VPN tunnels.
  5066. //
  5067. // NET_SERVICE_TYPE_AV
  5068. // "Multimedia Audio/Video Streaming", medium delay tolerant, low-medium
  5069. // loss tolerant, elastic flow, constant packet interval, variable rate
  5070. // and size. E.g. video and audio playback with buffering.
  5071. //
  5072. // NET_SERVICE_TYPE_RV
  5073. // "Responsive Multimedia Audio/Video", low delay tolerant, low-medium
  5074. // loss tolerant, elastic flow, variable packet interval, rate and size.
  5075. // E.g. screen sharing.
  5076. //
  5077. // NET_SERVICE_TYPE_VI
  5078. // "Interactive Video", low delay tolerant, low-medium loss tolerant,
  5079. // elastic flow, constant packet interval, variable rate & size. E.g.
  5080. // video telephony.
  5081. //
  5082. // NET_SERVICE_TYPE_SIG
  5083. // "Signaling", low delay tolerant, low loss tolerant, inelastic flow,
  5084. // jitter tolerant, rate is bursty but short, variable size. E.g. SIP.
  5085. //
  5086. // NET_SERVICE_TYPE_VO
  5087. // "Interactive Voice", very low delay tolerant, very low loss tolerant,
  5088. // inelastic flow, constant packet rate, somewhat fixed size.
  5089. // E.g. VoIP.
  5090. // These are supported values for SO_NETSVC_MARKING_LEVEL
  5091. type Sae_associd_t = X__uint32_t /* socket.h:289:20 */
  5092. type Sae_connid_t = X__uint32_t /* socket.h:293:20 */
  5093. // connectx() flag parameters
  5094. // sockaddr endpoints
  5095. type Sa_endpoints = struct {
  5096. Fsae_srcif uint32
  5097. F__ccgo_pad1 [4]byte
  5098. Fsae_srcaddr uintptr
  5099. Fsae_srcaddrlen Socklen_t
  5100. F__ccgo_pad2 [4]byte
  5101. Fsae_dstaddr uintptr
  5102. Fsae_dstaddrlen Socklen_t
  5103. F__ccgo_pad3 [4]byte
  5104. } /* socket.h:303:9 */
  5105. // connectx() flag parameters
  5106. // sockaddr endpoints
  5107. type Sockaddr = struct {
  5108. Fsa_len X__uint8_t
  5109. Fsa_family Sa_family_t
  5110. Fsa_data [14]int8
  5111. } /* socket.h:303:9 */
  5112. // connectx() flag parameters
  5113. // sockaddr endpoints
  5114. type Sa_endpoints_t = Sa_endpoints /* socket.h:309:3 */
  5115. // Structure used for manipulating linger option.
  5116. type Linger = struct {
  5117. Fl_onoff int32
  5118. Fl_linger int32
  5119. } /* socket.h:315:1 */
  5120. // Structure to control non-portable Sockets extension to POSIX
  5121. type So_np_extensions = struct {
  5122. Fnpx_flags U_int32_t
  5123. Fnpx_mask U_int32_t
  5124. } /* socket.h:333:1 */
  5125. // Structure used by kernel to pass protocol
  5126. // information in raw sockets.
  5127. type Sockproto = struct {
  5128. Fsp_family X__uint16_t
  5129. Fsp_protocol X__uint16_t
  5130. } /* socket.h:420:1 */
  5131. // RFC 2553: protocol-independent placeholder for socket addresses
  5132. // [XSI] sockaddr_storage
  5133. type Sockaddr_storage = struct {
  5134. Fss_len X__uint8_t
  5135. Fss_family Sa_family_t
  5136. F__ss_pad1 [6]int8
  5137. F__ss_align X__int64_t
  5138. F__ss_pad2 [112]int8
  5139. } /* socket.h:440:1 */
  5140. // Protocol families, same as address families for now.
  5141. // These do not have socket-layer support:
  5142. // Definitions for network related sysctl, CTL_NET.
  5143. //
  5144. // Second level is protocol family.
  5145. // Third level is protocol number.
  5146. //
  5147. // Further levels are defined by the individual families below.
  5148. // PF_ROUTE - Routing table
  5149. //
  5150. // Three additional levels are defined:
  5151. // Fourth: address family, 0 is wildcard
  5152. // Fifth: type of info, defined below
  5153. // Sixth: flag(s) to mask with for NET_RT_FLAGS
  5154. // Allows read access non-local host's MAC address
  5155. // if the process has neighbor cache entitlement.
  5156. // Maximum queue length specifiable by listen.
  5157. // [XSI] Message header for recvmsg and sendmsg calls.
  5158. // Used value-result for recvmsg, value only for sendmsg.
  5159. type Msghdr = struct {
  5160. Fmsg_name uintptr
  5161. Fmsg_namelen Socklen_t
  5162. F__ccgo_pad1 [4]byte
  5163. Fmsg_iov uintptr
  5164. Fmsg_iovlen int32
  5165. F__ccgo_pad2 [4]byte
  5166. Fmsg_control uintptr
  5167. Fmsg_controllen Socklen_t
  5168. Fmsg_flags int32
  5169. } /* socket.h:546:1 */
  5170. // Header for ancillary data objects in msg_control buffer.
  5171. // Used for additional information with/about a datagram
  5172. // not expressible by flags. The format is a sequence
  5173. // of message elements headed by cmsghdr structures.
  5174. type Cmsghdr = struct {
  5175. Fcmsg_len Socklen_t
  5176. Fcmsg_level int32
  5177. Fcmsg_type int32
  5178. } /* socket.h:587:1 */
  5179. // given pointer to struct cmsghdr, return pointer to data
  5180. // RFC 2292 requires to check msg_controllen, in case that the kernel returns
  5181. // an empty list for some reasons.
  5182. // Given pointer to struct cmsghdr, return pointer to next cmsghdr
  5183. // RFC 2292 says that CMSG_NXTHDR(mhdr, NULL) is equivalent to CMSG_FIRSTHDR(mhdr)
  5184. // RFC 2292 additions
  5185. // "Socket"-level control message types:
  5186. // howto arguments for shutdown(2), specified by Posix.1g.
  5187. // sendfile(2) header/trailer struct
  5188. type Sf_hdtr = struct {
  5189. Fheaders uintptr
  5190. Fhdr_cnt int32
  5191. F__ccgo_pad1 [4]byte
  5192. Ftrailers uintptr
  5193. Ftrl_cnt int32
  5194. F__ccgo_pad2 [4]byte
  5195. } /* socket.h:678:1 */
  5196. // The following two #includes insure htonl and family are defined
  5197. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  5198. //
  5199. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5200. //
  5201. // This file contains Original Code and/or Modifications of Original Code
  5202. // as defined in and that are subject to the Apple Public Source License
  5203. // Version 2.0 (the 'License'). You may not use this file except in
  5204. // compliance with the License. The rights granted to you under the License
  5205. // may not be used to create, or enable the creation or redistribution of,
  5206. // unlawful or unlicensed copies of an Apple operating system, or to
  5207. // circumvent, violate, or enable the circumvention or violation of, any
  5208. // terms of an Apple operating system software license agreement.
  5209. //
  5210. // Please obtain a copy of the License at
  5211. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5212. //
  5213. // The Original Code and all software distributed under the License are
  5214. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5215. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5216. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5217. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5218. // Please see the License for the specific language governing rights and
  5219. // limitations under the License.
  5220. //
  5221. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5222. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  5223. // Copyright (c) 2004, 2006 Apple Computer, Inc. All rights reserved.
  5224. //
  5225. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5226. //
  5227. // This file contains Original Code and/or Modifications of Original Code
  5228. // as defined in and that are subject to the Apple Public Source License
  5229. // Version 2.0 (the 'License'). You may not use this file except in
  5230. // compliance with the License. The rights granted to you under the License
  5231. // may not be used to create, or enable the creation or redistribution of,
  5232. // unlawful or unlicensed copies of an Apple operating system, or to
  5233. // circumvent, violate, or enable the circumvention or violation of, any
  5234. // terms of an Apple operating system software license agreement.
  5235. //
  5236. // Please obtain a copy of the License at
  5237. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5238. //
  5239. // The Original Code and all software distributed under the License are
  5240. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5241. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5242. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5243. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5244. // Please see the License for the specific language governing rights and
  5245. // limitations under the License.
  5246. //
  5247. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5248. // Copyright (c) 1995 NeXT Computer, Inc. All rights reserved.
  5249. // Copyright (c) 2000-2002 Apple Computer, Inc. All rights reserved.
  5250. //
  5251. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5252. //
  5253. // This file contains Original Code and/or Modifications of Original Code
  5254. // as defined in and that are subject to the Apple Public Source License
  5255. // Version 2.0 (the 'License'). You may not use this file except in
  5256. // compliance with the License. The rights granted to you under the License
  5257. // may not be used to create, or enable the creation or redistribution of,
  5258. // unlawful or unlicensed copies of an Apple operating system, or to
  5259. // circumvent, violate, or enable the circumvention or violation of, any
  5260. // terms of an Apple operating system software license agreement.
  5261. //
  5262. // Please obtain a copy of the License at
  5263. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5264. //
  5265. // The Original Code and all software distributed under the License are
  5266. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5267. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5268. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5269. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5270. // Please see the License for the specific language governing rights and
  5271. // limitations under the License.
  5272. //
  5273. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5274. // Copyright (c) 1987, 1991, 1993
  5275. // The Regents of the University of California. All rights reserved.
  5276. //
  5277. // Redistribution and use in source and binary forms, with or without
  5278. // modification, are permitted provided that the following conditions
  5279. // are met:
  5280. // 1. Redistributions of source code must retain the above copyright
  5281. // notice, this list of conditions and the following disclaimer.
  5282. // 2. Redistributions in binary form must reproduce the above copyright
  5283. // notice, this list of conditions and the following disclaimer in the
  5284. // documentation and/or other materials provided with the distribution.
  5285. // 3. All advertising materials mentioning features or use of this software
  5286. // must display the following acknowledgement:
  5287. // This product includes software developed by the University of
  5288. // California, Berkeley and its contributors.
  5289. // 4. Neither the name of the University nor the names of its contributors
  5290. // may be used to endorse or promote products derived from this software
  5291. // without specific prior written permission.
  5292. //
  5293. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  5294. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  5295. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  5296. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  5297. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  5298. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  5299. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  5300. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  5301. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  5302. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  5303. // SUCH DAMAGE.
  5304. // Constants and structures defined by the internet system,
  5305. // Per RFC 790, September 1981, and numerous additions.
  5306. // Protocols (RFC 1700)
  5307. // 55-57: Unassigned
  5308. // 101-252: Partly Unassigned
  5309. // 253-254: Experimentation and testing; 255: Reserved (RFC3692)
  5310. // BSD Private, local use, namespace incursion
  5311. // last return value of *_input(), meaning "all job for this pkt is done".
  5312. // Local port number conventions:
  5313. //
  5314. // When a user does a bind(2) or connect(2) with a port number of zero,
  5315. // a non-conflicting local port address is chosen.
  5316. // The default range is IPPORT_RESERVED through
  5317. // IPPORT_USERRESERVED, although that is settable by sysctl.
  5318. //
  5319. // A user may set the IPPROTO_IP option IP_PORTRANGE to change this
  5320. // default assignment range.
  5321. //
  5322. // The value IP_PORTRANGE_DEFAULT causes the default behavior.
  5323. //
  5324. // The value IP_PORTRANGE_HIGH changes the range of candidate port numbers
  5325. // into the "high" range. These are reserved for client outbound connections
  5326. // which do not want to be filtered by any firewalls.
  5327. //
  5328. // The value IP_PORTRANGE_LOW changes the range to the "low" are
  5329. // that is (by convention) restricted to privileged processes. This
  5330. // convention is based on "vouchsafe" principles only. It is only secure
  5331. // if you trust the remote host to restrict these ports.
  5332. //
  5333. // The default range of ports and the high range can be changed by
  5334. // sysctl(3). (net.inet.ip.port{hi,low}{first,last}_auto)
  5335. //
  5336. // Changing those values has bad security implications if you are
  5337. // using a a stateless firewall that is allowing packets outside of that
  5338. // range in order to allow transparent outgoing connections.
  5339. //
  5340. // Such a firewall configuration will generally depend on the use of these
  5341. // default values. If you change them, you may find your Security
  5342. // Administrator looking for you with a heavy object.
  5343. //
  5344. // For a slightly more orthodox text view on this:
  5345. //
  5346. // ftp://ftp.isi.edu/in-notes/iana/assignments/port-numbers
  5347. //
  5348. // port numbers are divided into three ranges:
  5349. //
  5350. // 0 - 1023 Well Known Ports
  5351. // 1024 - 49151 Registered Ports
  5352. // 49152 - 65535 Dynamic and/or Private Ports
  5353. //
  5354. // Ports < IPPORT_RESERVED are reserved for
  5355. // privileged processes (e.g. root). (IP_PORTRANGE_LOW)
  5356. // Ports > IPPORT_USERRESERVED are reserved
  5357. // for servers, not necessarily privileged. (IP_PORTRANGE_DEFAULT)
  5358. // Default local port range to use by setting IP_PORTRANGE_HIGH
  5359. // Scanning for a free reserved port return a value below IPPORT_RESERVED,
  5360. // but higher than IPPORT_RESERVEDSTART. Traditionally the start value was
  5361. // 512, but that conflicts with some well-known-services that firewalls may
  5362. // have a fit if we use.
  5363. // Internet address (a structure for historical reasons)
  5364. type In_addr = struct{ Fs_addr In_addr_t } /* in.h:301:1 */
  5365. // Definitions of bits in internet address integers.
  5366. // On subnets, the decomposition of addresses to host and net parts
  5367. // is done according to subnet mask, not the masks here.
  5368. // Socket address, internet style.
  5369. type Sockaddr_in = struct {
  5370. Fsin_len X__uint8_t
  5371. Fsin_family Sa_family_t
  5372. Fsin_port In_port_t
  5373. Fsin_addr struct{ Fs_addr In_addr_t }
  5374. Fsin_zero [8]int8
  5375. } /* in.h:375:1 */
  5376. // Structure used to describe IP options.
  5377. // Used to store options internally, to pass them to a process,
  5378. // or to restore options retrieved earlier.
  5379. // The ip_dst is used for the first-hop gateway when using a source route
  5380. // (this gets put into the header proper).
  5381. type Ip_opts = struct {
  5382. Fip_dst struct{ Fs_addr In_addr_t }
  5383. Fip_opts [40]int8
  5384. } /* in.h:398:1 */
  5385. // Options for use with [gs]etsockopt at the IP level.
  5386. // First word of comment is data type; bool is stored in int.
  5387. // for IPSEC
  5388. // These older firewall socket option codes are maintained for backward compatibility.
  5389. // IPv4 Source Filter Multicast API [RFC3678]
  5390. // The following option is private; do not use it from user applications.
  5391. // Protocol Independent Multicast API [RFC3678]
  5392. // Defaults and limits for options
  5393. // The imo_membership vector for each socket is now dynamically allocated at
  5394. // run-time, bounded by USHRT_MAX, and is reallocated when needed, sized
  5395. // according to a power-of-two increment.
  5396. // Default resource limits for IPv4 multicast source filtering.
  5397. // These may be modified by sysctl.
  5398. // Argument structure for IP_ADD_MEMBERSHIP and IP_DROP_MEMBERSHIP.
  5399. type Ip_mreq = struct {
  5400. Fimr_multiaddr struct{ Fs_addr In_addr_t }
  5401. Fimr_interface struct{ Fs_addr In_addr_t }
  5402. } /* in.h:506:1 */
  5403. // Modified argument structure for IP_MULTICAST_IF, obtained from Linux.
  5404. // This is used to specify an interface index for multicast sends, as
  5405. // the IPv4 legacy APIs do not support this (unless IP_SENDIF is available).
  5406. type Ip_mreqn = struct {
  5407. Fimr_multiaddr struct{ Fs_addr In_addr_t }
  5408. Fimr_address struct{ Fs_addr In_addr_t }
  5409. Fimr_ifindex int32
  5410. } /* in.h:516:1 */
  5411. // Argument structure for IPv4 Multicast Source Filter APIs. [RFC3678]
  5412. type Ip_mreq_source = struct {
  5413. Fimr_multiaddr struct{ Fs_addr In_addr_t }
  5414. Fimr_sourceaddr struct{ Fs_addr In_addr_t }
  5415. Fimr_interface struct{ Fs_addr In_addr_t }
  5416. } /* in.h:526:1 */
  5417. // Argument structures for Protocol-Independent Multicast Source
  5418. // Filter APIs. [RFC3678]
  5419. type Group_req = struct {
  5420. Fgr_interface Uint32_t
  5421. F__ccgo_pad1 [4]byte
  5422. Fgr_group struct {
  5423. Fss_len X__uint8_t
  5424. Fss_family Sa_family_t
  5425. F__ss_pad1 [6]int8
  5426. F__ss_align X__int64_t
  5427. F__ss_pad2 [112]int8
  5428. }
  5429. } /* in.h:536:1 */
  5430. type Group_source_req = struct {
  5431. Fgsr_interface Uint32_t
  5432. F__ccgo_pad1 [4]byte
  5433. Fgsr_group struct {
  5434. Fss_len X__uint8_t
  5435. Fss_family Sa_family_t
  5436. F__ss_pad1 [6]int8
  5437. F__ss_align X__int64_t
  5438. F__ss_pad2 [112]int8
  5439. }
  5440. Fgsr_source struct {
  5441. Fss_len X__uint8_t
  5442. Fss_family Sa_family_t
  5443. F__ss_pad1 [6]int8
  5444. F__ss_align X__int64_t
  5445. F__ss_pad2 [112]int8
  5446. }
  5447. } /* in.h:541:1 */
  5448. // The following structure is private; do not use it from user applications.
  5449. // It is used to communicate IP_MSFILTER/IPV6_MSFILTER information between
  5450. // the RFC 3678 libc functions and the kernel.
  5451. type X__msfilterreq = struct {
  5452. Fmsfr_ifindex Uint32_t
  5453. Fmsfr_fmode Uint32_t
  5454. Fmsfr_nsrcs Uint32_t
  5455. F__msfr_align Uint32_t
  5456. Fmsfr_group struct {
  5457. Fss_len X__uint8_t
  5458. Fss_family Sa_family_t
  5459. F__ss_pad1 [6]int8
  5460. F__ss_align X__int64_t
  5461. F__ss_pad2 [112]int8
  5462. }
  5463. Fmsfr_srcs uintptr
  5464. } /* in.h:554:1 */
  5465. // Filter modes; also used to represent per-socket filter mode internally.
  5466. // Argument for IP_PORTRANGE:
  5467. // - which range to search when port is unspecified at bind() or connect()
  5468. // IP_PKTINFO: Packet information (equivalent to RFC2292 sec 5 for IPv4)
  5469. // This structure is used for
  5470. //
  5471. // 1. Receiving ancilliary data about the datagram if IP_PKTINFO sockopt is
  5472. // set on the socket. In this case ipi_ifindex will contain the interface
  5473. // index the datagram was received on, ipi_addr is the IP address the
  5474. // datagram was received to.
  5475. //
  5476. // 2. Sending a datagram using a specific interface or IP source address.
  5477. // if ipi_ifindex is set to non-zero when in_pktinfo is passed as
  5478. // ancilliary data of type IP_PKTINFO, this will be used as the source
  5479. // interface to send the datagram from. If ipi_ifindex is null, ip_spec_dst
  5480. // will be used for the source address.
  5481. //
  5482. // Note: if IP_BOUND_IF is set on the socket, ipi_ifindex in the ancillary
  5483. // IP_PKTINFO option silently overrides the bound interface when it is
  5484. // specified during send time.
  5485. type In_pktinfo = struct {
  5486. Fipi_ifindex uint32
  5487. Fipi_spec_dst struct{ Fs_addr In_addr_t }
  5488. Fipi_addr struct{ Fs_addr In_addr_t }
  5489. } /* in.h:617:1 */
  5490. // Definitions for inet sysctl operations.
  5491. //
  5492. // Third level is protocol number.
  5493. // Fourth level is desired variable within that protocol.
  5494. // Names for IP sysctl objects
  5495. // INET6 stuff
  5496. // Copyright (c) 2008-2018 Apple Inc. All rights reserved.
  5497. //
  5498. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5499. //
  5500. // This file contains Original Code and/or Modifications of Original Code
  5501. // as defined in and that are subject to the Apple Public Source License
  5502. // Version 2.0 (the 'License'). You may not use this file except in
  5503. // compliance with the License. The rights granted to you under the License
  5504. // may not be used to create, or enable the creation or redistribution of,
  5505. // unlawful or unlicensed copies of an Apple operating system, or to
  5506. // circumvent, violate, or enable the circumvention or violation of, any
  5507. // terms of an Apple operating system software license agreement.
  5508. //
  5509. // Please obtain a copy of the License at
  5510. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5511. //
  5512. // The Original Code and all software distributed under the License are
  5513. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5514. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5515. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5516. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5517. // Please see the License for the specific language governing rights and
  5518. // limitations under the License.
  5519. //
  5520. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5521. // Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
  5522. // All rights reserved.
  5523. //
  5524. // Redistribution and use in source and binary forms, with or without
  5525. // modification, are permitted provided that the following conditions
  5526. // are met:
  5527. // 1. Redistributions of source code must retain the above copyright
  5528. // notice, this list of conditions and the following disclaimer.
  5529. // 2. Redistributions in binary form must reproduce the above copyright
  5530. // notice, this list of conditions and the following disclaimer in the
  5531. // documentation and/or other materials provided with the distribution.
  5532. // 3. Neither the name of the project nor the names of its contributors
  5533. // may be used to endorse or promote products derived from this software
  5534. // without specific prior written permission.
  5535. //
  5536. // THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
  5537. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  5538. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  5539. // ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
  5540. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  5541. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  5542. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  5543. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  5544. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  5545. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  5546. // SUCH DAMAGE.
  5547. // Copyright (c) 1982, 1986, 1990, 1993
  5548. // The Regents of the University of California. All rights reserved.
  5549. //
  5550. // Redistribution and use in source and binary forms, with or without
  5551. // modification, are permitted provided that the following conditions
  5552. // are met:
  5553. // 1. Redistributions of source code must retain the above copyright
  5554. // notice, this list of conditions and the following disclaimer.
  5555. // 2. Redistributions in binary form must reproduce the above copyright
  5556. // notice, this list of conditions and the following disclaimer in the
  5557. // documentation and/or other materials provided with the distribution.
  5558. // 3. All advertising materials mentioning features or use of this software
  5559. // must display the following acknowledgement:
  5560. // This product includes software developed by the University of
  5561. // California, Berkeley and its contributors.
  5562. // 4. Neither the name of the University nor the names of its contributors
  5563. // may be used to endorse or promote products derived from this software
  5564. // without specific prior written permission.
  5565. //
  5566. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  5567. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  5568. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  5569. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  5570. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  5571. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  5572. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  5573. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  5574. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  5575. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  5576. // SUCH DAMAGE.
  5577. //
  5578. // @(#)in.h 8.3 (Berkeley) 1/3/94
  5579. // Copyright (c) 2002 Apple Computer, Inc. All rights reserved.
  5580. //
  5581. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5582. //
  5583. // This file contains Original Code and/or Modifications of Original Code
  5584. // as defined in and that are subject to the Apple Public Source License
  5585. // Version 2.0 (the 'License'). You may not use this file except in
  5586. // compliance with the License. The rights granted to you under the License
  5587. // may not be used to create, or enable the creation or redistribution of,
  5588. // unlawful or unlicensed copies of an Apple operating system, or to
  5589. // circumvent, violate, or enable the circumvention or violation of, any
  5590. // terms of an Apple operating system software license agreement.
  5591. //
  5592. // Please obtain a copy of the License at
  5593. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5594. //
  5595. // The Original Code and all software distributed under the License are
  5596. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5597. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5598. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5599. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5600. // Please see the License for the specific language governing rights and
  5601. // limitations under the License.
  5602. //
  5603. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5604. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  5605. //
  5606. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5607. //
  5608. // This file contains Original Code and/or Modifications of Original Code
  5609. // as defined in and that are subject to the Apple Public Source License
  5610. // Version 2.0 (the 'License'). You may not use this file except in
  5611. // compliance with the License. The rights granted to you under the License
  5612. // may not be used to create, or enable the creation or redistribution of,
  5613. // unlawful or unlicensed copies of an Apple operating system, or to
  5614. // circumvent, violate, or enable the circumvention or violation of, any
  5615. // terms of an Apple operating system software license agreement.
  5616. //
  5617. // Please obtain a copy of the License at
  5618. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5619. //
  5620. // The Original Code and all software distributed under the License are
  5621. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5622. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5623. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5624. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5625. // Please see the License for the specific language governing rights and
  5626. // limitations under the License.
  5627. //
  5628. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5629. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  5630. //
  5631. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5632. //
  5633. // This file contains Original Code and/or Modifications of Original Code
  5634. // as defined in and that are subject to the Apple Public Source License
  5635. // Version 2.0 (the 'License'). You may not use this file except in
  5636. // compliance with the License. The rights granted to you under the License
  5637. // may not be used to create, or enable the creation or redistribution of,
  5638. // unlawful or unlicensed copies of an Apple operating system, or to
  5639. // circumvent, violate, or enable the circumvention or violation of, any
  5640. // terms of an Apple operating system software license agreement.
  5641. //
  5642. // Please obtain a copy of the License at
  5643. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5644. //
  5645. // The Original Code and all software distributed under the License are
  5646. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5647. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5648. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5649. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5650. // Please see the License for the specific language governing rights and
  5651. // limitations under the License.
  5652. //
  5653. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5654. // Identification of the network protocol stack
  5655. // for *BSD-current/release: http://www.kame.net/dev/cvsweb.cgi/kame/COVERAGE
  5656. // has the table of implementation/integration differences.
  5657. // Local port number conventions:
  5658. //
  5659. // Ports < IPPORT_RESERVED are reserved for privileged processes (e.g. root),
  5660. // unless a kernel is compiled with IPNOPRIVPORTS defined.
  5661. //
  5662. // When a user does a bind(2) or connect(2) with a port number of zero,
  5663. // a non-conflicting local port address is chosen.
  5664. //
  5665. // The default range is IPPORT_ANONMIN to IPPORT_ANONMAX, although
  5666. // that is settable by sysctl(3); net.inet.ip.anonportmin and
  5667. // net.inet.ip.anonportmax respectively.
  5668. //
  5669. // A user may set the IPPROTO_IP option IP_PORTRANGE to change this
  5670. // default assignment range.
  5671. //
  5672. // The value IP_PORTRANGE_DEFAULT causes the default behavior.
  5673. //
  5674. // The value IP_PORTRANGE_HIGH is the same as IP_PORTRANGE_DEFAULT,
  5675. // and exists only for FreeBSD compatibility purposes.
  5676. //
  5677. // The value IP_PORTRANGE_LOW changes the range to the "low" are
  5678. // that is (by convention) restricted to privileged processes.
  5679. // This convention is based on "vouchsafe" principles only.
  5680. // It is only secure if you trust the remote host to restrict these ports.
  5681. // The range is IPPORT_RESERVEDMIN to IPPORT_RESERVEDMAX.
  5682. // IPv6 address
  5683. type In6_addr = struct {
  5684. F__u6_addr struct {
  5685. F__ccgo_pad1 [0]uint32
  5686. F__u6_addr8 [16]X__uint8_t
  5687. }
  5688. } /* in6.h:151:9 */
  5689. // Definitions for inet sysctl operations.
  5690. //
  5691. // Third level is protocol number.
  5692. // Fourth level is desired variable within that protocol.
  5693. // Names for IP sysctl objects
  5694. // INET6 stuff
  5695. // Copyright (c) 2008-2018 Apple Inc. All rights reserved.
  5696. //
  5697. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5698. //
  5699. // This file contains Original Code and/or Modifications of Original Code
  5700. // as defined in and that are subject to the Apple Public Source License
  5701. // Version 2.0 (the 'License'). You may not use this file except in
  5702. // compliance with the License. The rights granted to you under the License
  5703. // may not be used to create, or enable the creation or redistribution of,
  5704. // unlawful or unlicensed copies of an Apple operating system, or to
  5705. // circumvent, violate, or enable the circumvention or violation of, any
  5706. // terms of an Apple operating system software license agreement.
  5707. //
  5708. // Please obtain a copy of the License at
  5709. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5710. //
  5711. // The Original Code and all software distributed under the License are
  5712. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5713. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5714. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5715. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5716. // Please see the License for the specific language governing rights and
  5717. // limitations under the License.
  5718. //
  5719. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5720. // Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
  5721. // All rights reserved.
  5722. //
  5723. // Redistribution and use in source and binary forms, with or without
  5724. // modification, are permitted provided that the following conditions
  5725. // are met:
  5726. // 1. Redistributions of source code must retain the above copyright
  5727. // notice, this list of conditions and the following disclaimer.
  5728. // 2. Redistributions in binary form must reproduce the above copyright
  5729. // notice, this list of conditions and the following disclaimer in the
  5730. // documentation and/or other materials provided with the distribution.
  5731. // 3. Neither the name of the project nor the names of its contributors
  5732. // may be used to endorse or promote products derived from this software
  5733. // without specific prior written permission.
  5734. //
  5735. // THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
  5736. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  5737. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  5738. // ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
  5739. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  5740. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  5741. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  5742. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  5743. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  5744. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  5745. // SUCH DAMAGE.
  5746. // Copyright (c) 1982, 1986, 1990, 1993
  5747. // The Regents of the University of California. All rights reserved.
  5748. //
  5749. // Redistribution and use in source and binary forms, with or without
  5750. // modification, are permitted provided that the following conditions
  5751. // are met:
  5752. // 1. Redistributions of source code must retain the above copyright
  5753. // notice, this list of conditions and the following disclaimer.
  5754. // 2. Redistributions in binary form must reproduce the above copyright
  5755. // notice, this list of conditions and the following disclaimer in the
  5756. // documentation and/or other materials provided with the distribution.
  5757. // 3. All advertising materials mentioning features or use of this software
  5758. // must display the following acknowledgement:
  5759. // This product includes software developed by the University of
  5760. // California, Berkeley and its contributors.
  5761. // 4. Neither the name of the University nor the names of its contributors
  5762. // may be used to endorse or promote products derived from this software
  5763. // without specific prior written permission.
  5764. //
  5765. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  5766. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  5767. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  5768. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  5769. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  5770. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  5771. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  5772. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  5773. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  5774. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  5775. // SUCH DAMAGE.
  5776. //
  5777. // @(#)in.h 8.3 (Berkeley) 1/3/94
  5778. // Copyright (c) 2002 Apple Computer, Inc. All rights reserved.
  5779. //
  5780. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5781. //
  5782. // This file contains Original Code and/or Modifications of Original Code
  5783. // as defined in and that are subject to the Apple Public Source License
  5784. // Version 2.0 (the 'License'). You may not use this file except in
  5785. // compliance with the License. The rights granted to you under the License
  5786. // may not be used to create, or enable the creation or redistribution of,
  5787. // unlawful or unlicensed copies of an Apple operating system, or to
  5788. // circumvent, violate, or enable the circumvention or violation of, any
  5789. // terms of an Apple operating system software license agreement.
  5790. //
  5791. // Please obtain a copy of the License at
  5792. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5793. //
  5794. // The Original Code and all software distributed under the License are
  5795. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5796. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5797. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5798. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5799. // Please see the License for the specific language governing rights and
  5800. // limitations under the License.
  5801. //
  5802. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5803. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  5804. //
  5805. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5806. //
  5807. // This file contains Original Code and/or Modifications of Original Code
  5808. // as defined in and that are subject to the Apple Public Source License
  5809. // Version 2.0 (the 'License'). You may not use this file except in
  5810. // compliance with the License. The rights granted to you under the License
  5811. // may not be used to create, or enable the creation or redistribution of,
  5812. // unlawful or unlicensed copies of an Apple operating system, or to
  5813. // circumvent, violate, or enable the circumvention or violation of, any
  5814. // terms of an Apple operating system software license agreement.
  5815. //
  5816. // Please obtain a copy of the License at
  5817. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5818. //
  5819. // The Original Code and all software distributed under the License are
  5820. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5821. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5822. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5823. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5824. // Please see the License for the specific language governing rights and
  5825. // limitations under the License.
  5826. //
  5827. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5828. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  5829. //
  5830. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5831. //
  5832. // This file contains Original Code and/or Modifications of Original Code
  5833. // as defined in and that are subject to the Apple Public Source License
  5834. // Version 2.0 (the 'License'). You may not use this file except in
  5835. // compliance with the License. The rights granted to you under the License
  5836. // may not be used to create, or enable the creation or redistribution of,
  5837. // unlawful or unlicensed copies of an Apple operating system, or to
  5838. // circumvent, violate, or enable the circumvention or violation of, any
  5839. // terms of an Apple operating system software license agreement.
  5840. //
  5841. // Please obtain a copy of the License at
  5842. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5843. //
  5844. // The Original Code and all software distributed under the License are
  5845. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5846. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5847. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5848. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5849. // Please see the License for the specific language governing rights and
  5850. // limitations under the License.
  5851. //
  5852. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5853. // Identification of the network protocol stack
  5854. // for *BSD-current/release: http://www.kame.net/dev/cvsweb.cgi/kame/COVERAGE
  5855. // has the table of implementation/integration differences.
  5856. // Local port number conventions:
  5857. //
  5858. // Ports < IPPORT_RESERVED are reserved for privileged processes (e.g. root),
  5859. // unless a kernel is compiled with IPNOPRIVPORTS defined.
  5860. //
  5861. // When a user does a bind(2) or connect(2) with a port number of zero,
  5862. // a non-conflicting local port address is chosen.
  5863. //
  5864. // The default range is IPPORT_ANONMIN to IPPORT_ANONMAX, although
  5865. // that is settable by sysctl(3); net.inet.ip.anonportmin and
  5866. // net.inet.ip.anonportmax respectively.
  5867. //
  5868. // A user may set the IPPROTO_IP option IP_PORTRANGE to change this
  5869. // default assignment range.
  5870. //
  5871. // The value IP_PORTRANGE_DEFAULT causes the default behavior.
  5872. //
  5873. // The value IP_PORTRANGE_HIGH is the same as IP_PORTRANGE_DEFAULT,
  5874. // and exists only for FreeBSD compatibility purposes.
  5875. //
  5876. // The value IP_PORTRANGE_LOW changes the range to the "low" are
  5877. // that is (by convention) restricted to privileged processes.
  5878. // This convention is based on "vouchsafe" principles only.
  5879. // It is only secure if you trust the remote host to restrict these ports.
  5880. // The range is IPPORT_RESERVEDMIN to IPPORT_RESERVEDMAX.
  5881. // IPv6 address
  5882. type In6_addr_t = In6_addr /* in6.h:157:3 */
  5883. // Socket address for IPv6
  5884. type Sockaddr_in6 = struct {
  5885. Fsin6_len X__uint8_t
  5886. Fsin6_family Sa_family_t
  5887. Fsin6_port In_port_t
  5888. Fsin6_flowinfo X__uint32_t
  5889. Fsin6_addr struct {
  5890. F__u6_addr struct {
  5891. F__ccgo_pad1 [0]uint32
  5892. F__u6_addr8 [16]X__uint8_t
  5893. }
  5894. }
  5895. Fsin6_scope_id X__uint32_t
  5896. } /* in6.h:169:1 */
  5897. // Equality
  5898. // NOTE: Some of kernel programming environment (for example, openbsd/sparc)
  5899. // does not supply memcmp(). For userland memcmp() is preferred as it is
  5900. // in ANSI standard.
  5901. // Unspecified
  5902. // Loopback
  5903. // IPv4 compatible
  5904. // Mapped
  5905. // 6to4
  5906. // KAME Scope Values
  5907. // Unicast Scope
  5908. // Note that we must check topmost 10 bits only, not 16 bits (see RFC2373).
  5909. // Multicast
  5910. // Unique Local IPv6 Unicast Addresses (per RFC 4193)
  5911. // Multicast Scope
  5912. // Options for use with [gs]etsockopt at the IPV6 level.
  5913. // First word of comment is data type; bool is stored in int.
  5914. // no hdrincl
  5915. // RFC 3542 define the following socket options in a manner incompatible
  5916. // with RFC 2292:
  5917. // IPV6_PKTINFO
  5918. // IPV6_HOPLIMIT
  5919. // IPV6_NEXTHOP
  5920. // IPV6_HOPOPTS
  5921. // IPV6_DSTOPTS
  5922. // IPV6_RTHDR
  5923. //
  5924. // To use the new IPv6 Sockets options introduced by RFC 3542
  5925. // the constant __APPLE_USE_RFC_3542 must be defined before
  5926. // including <netinet/in.h>
  5927. //
  5928. // To use the old IPv6 Sockets options from RFC 2292
  5929. // the constant __APPLE_USE_RFC_2292 must be defined before
  5930. // including <netinet/in.h>
  5931. //
  5932. // Note that eventually RFC 3542 is going to be the
  5933. // default and RFC 2292 will be obsolete.
  5934. // buf/cmsghdr; set/get IPv6 options [obsoleted by RFC3542]
  5935. // APPLE: NOTE the value of those 2 options is kept unchanged from
  5936. // previous version of darwin/OS X for binary compatibility reasons
  5937. // and differ from FreeBSD (values 57 and 61). See below.
  5938. // to define items, should talk with KAME guys first, for *BSD compatibility
  5939. // Defaults and limits for options
  5940. // The im6o_membership vector for each socket is now dynamically allocated at
  5941. // run-time, bounded by USHRT_MAX, and is reallocated when needed, sized
  5942. // according to a power-of-two increment.
  5943. // Default resource limits for IPv6 multicast source filtering.
  5944. // These may be modified by sysctl.
  5945. // Argument structure for IPV6_JOIN_GROUP and IPV6_LEAVE_GROUP.
  5946. type Ipv6_mreq = struct {
  5947. Fipv6mr_multiaddr struct {
  5948. F__u6_addr struct {
  5949. F__ccgo_pad1 [0]uint32
  5950. F__u6_addr8 [16]X__uint8_t
  5951. }
  5952. }
  5953. Fipv6mr_interface uint32
  5954. } /* in6.h:527:1 */
  5955. // IPV6_2292PKTINFO: Packet information(RFC2292 sec 5)
  5956. type In6_pktinfo = struct {
  5957. Fipi6_addr struct {
  5958. F__u6_addr struct {
  5959. F__ccgo_pad1 [0]uint32
  5960. F__u6_addr8 [16]X__uint8_t
  5961. }
  5962. }
  5963. Fipi6_ifindex uint32
  5964. } /* in6.h:535:1 */
  5965. // Control structure for IPV6_RECVPATHMTU socket option.
  5966. type Ip6_mtuinfo = struct {
  5967. Fip6m_addr struct {
  5968. Fsin6_len X__uint8_t
  5969. Fsin6_family Sa_family_t
  5970. Fsin6_port In_port_t
  5971. Fsin6_flowinfo X__uint32_t
  5972. Fsin6_addr struct {
  5973. F__u6_addr struct {
  5974. F__ccgo_pad1 [0]uint32
  5975. F__u6_addr8 [16]X__uint8_t
  5976. }
  5977. }
  5978. Fsin6_scope_id X__uint32_t
  5979. }
  5980. Fip6m_mtu Uint32_t
  5981. } /* in6.h:543:1 */
  5982. // Structures returned by network data base library. All addresses are
  5983. // supplied in host order, and returned in network order (suitable for
  5984. // use in system calls).
  5985. type Hostent = struct {
  5986. Fh_name uintptr
  5987. Fh_aliases uintptr
  5988. Fh_addrtype int32
  5989. Fh_length int32
  5990. Fh_addr_list uintptr
  5991. } /* netdb.h:112:1 */
  5992. // Assumption here is that a network number
  5993. // fits in an unsigned long -- probably a poor one.
  5994. type Netent = struct {
  5995. Fn_name uintptr
  5996. Fn_aliases uintptr
  5997. Fn_addrtype int32
  5998. Fn_net Uint32_t
  5999. } /* netdb.h:127:1 */
  6000. type Servent = struct {
  6001. Fs_name uintptr
  6002. Fs_aliases uintptr
  6003. Fs_port int32
  6004. F__ccgo_pad1 [4]byte
  6005. Fs_proto uintptr
  6006. } /* netdb.h:134:1 */
  6007. type Protoent = struct {
  6008. Fp_name uintptr
  6009. Fp_aliases uintptr
  6010. Fp_proto int32
  6011. F__ccgo_pad1 [4]byte
  6012. } /* netdb.h:141:1 */
  6013. type Addrinfo = struct {
  6014. Fai_flags int32
  6015. Fai_family int32
  6016. Fai_socktype int32
  6017. Fai_protocol int32
  6018. Fai_addrlen Socklen_t
  6019. F__ccgo_pad1 [4]byte
  6020. Fai_canonname uintptr
  6021. Fai_addr uintptr
  6022. Fai_next uintptr
  6023. } /* netdb.h:147:1 */
  6024. type Rpcent = struct {
  6025. Fr_name uintptr
  6026. Fr_aliases uintptr
  6027. Fr_number int32
  6028. F__ccgo_pad1 [4]byte
  6029. } /* netdb.h:159:1 */
  6030. var _ int8 /* gen.c:2:13: */