socket_darwin_arm64.go 260 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111
  1. // Code generated by 'ccgo sys/socket/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 sys/socket/socket_darwin_arm64.go -pkgname socket', DO NOT EDIT.
  2. package socket
  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:379:1:
  15. AF_CCITT = 10 // socket.h:373:1:
  16. AF_CHAOS = 5 // socket.h:367:1:
  17. AF_CNT = 21 // socket.h:384:1:
  18. AF_COIP = 20 // socket.h:383:1:
  19. AF_DATAKIT = 9 // socket.h:372:1:
  20. AF_DECnet = 12 // socket.h:375:1:
  21. AF_DLI = 13 // socket.h:376:1:
  22. AF_E164 = 28 // socket.h:391:1:
  23. AF_ECMA = 8 // socket.h:371:1:
  24. AF_HYLINK = 15 // socket.h:378:1:
  25. AF_IEEE80211 = 37 // socket.h:403:1:
  26. AF_IMPLINK = 3 // socket.h:365:1:
  27. AF_INET = 2 // socket.h:363:1:
  28. AF_INET6 = 30 // socket.h:394:1:
  29. AF_IPX = 23 // socket.h:386:1:
  30. AF_ISDN = 28 // socket.h:390:1:
  31. AF_ISO = 7 // socket.h:369:1:
  32. AF_LAT = 14 // socket.h:377:1:
  33. AF_LINK = 18 // socket.h:381:1:
  34. AF_LOCAL = 1 // socket.h:361:1:
  35. AF_MAX = 41 // socket.h:406:1:
  36. AF_NATM = 31 // socket.h:396:1:
  37. AF_NDRV = 27 // socket.h:389:1:
  38. AF_NETBIOS = 33 // socket.h:398:1:
  39. AF_NS = 6 // socket.h:368:1:
  40. AF_OSI = 7 // socket.h:370:1:
  41. AF_PPP = 34 // socket.h:399:1:
  42. AF_PUP = 4 // socket.h:366:1:
  43. AF_RESERVED_36 = 36 // socket.h:402:1:
  44. AF_ROUTE = 17 // socket.h:380:1:
  45. AF_SIP = 24 // socket.h:387:1:
  46. AF_SNA = 11 // socket.h:374:1:
  47. AF_SYSTEM = 32 // socket.h:397:1:
  48. AF_UNIX = 1 // socket.h:359:1:
  49. AF_UNSPEC = 0 // socket.h:358:1:
  50. AF_UTUN = 38 // socket.h:404:1:
  51. AF_VSOCK = 40 // socket.h:405:1:
  52. BIG_ENDIAN = 4321 // endian.h:72:1:
  53. BYTE_ORDER = 1234 // endian.h:75:1:
  54. CONNECT_DATA_AUTHENTICATED = 0x4 // socket.h:304:1:
  55. CONNECT_DATA_IDEMPOTENT = 0x2 // socket.h:303:1:
  56. CONNECT_RESUME_ON_READ_WRITE = 0x1 // socket.h:302:1:
  57. FD_SETSIZE = 1024 // _fd_setsize.h:29:1:
  58. INT16_MAX = 32767 // stdint.h:599:1:
  59. INT16_MIN = -32768 // stdint.h:600:1:
  60. INT32_MAX = 2147483647 // stdint.h:555:1:
  61. INT32_MIN = -2147483648 // stdint.h:556:1:
  62. INT64_MAX = 9223372036854775807 // stdint.h:461:1:
  63. INT64_MIN = -9223372036854775808 // stdint.h:462:1:
  64. INT8_MAX = 127 // stdint.h:621:1:
  65. INT8_MIN = -128 // stdint.h:622:1:
  66. INTMAX_MAX = 9223372036854775807 // stdint.h:663:1:
  67. INTMAX_MIN = -9223372036854775808 // stdint.h:662:1:
  68. INTPTR_MAX = 9223372036854775807 // stdint.h:649:1:
  69. INTPTR_MIN = -9223372036854775808 // stdint.h:648:1:
  70. INT_FAST16_MAX = 32767 // stdint.h:615:1:
  71. INT_FAST16_MIN = -32768 // stdint.h:614:1:
  72. INT_FAST32_MAX = 2147483647 // stdint.h:574:1:
  73. INT_FAST32_MIN = -2147483648 // stdint.h:573:1:
  74. INT_FAST64_MAX = 9223372036854775807 // stdint.h:483:1:
  75. INT_FAST64_MIN = -9223372036854775808 // stdint.h:482:1:
  76. INT_FAST8_MAX = 127 // stdint.h:634:1:
  77. INT_FAST8_MIN = -128 // stdint.h:633:1:
  78. INT_LEAST16_MAX = 32767 // stdint.h:612:1:
  79. INT_LEAST16_MIN = -32768 // stdint.h:611:1:
  80. INT_LEAST32_MAX = 2147483647 // stdint.h:571:1:
  81. INT_LEAST32_MIN = -2147483648 // stdint.h:570:1:
  82. INT_LEAST64_MAX = 9223372036854775807 // stdint.h:480:1:
  83. INT_LEAST64_MIN = -9223372036854775808 // stdint.h:479:1:
  84. INT_LEAST8_MAX = 127 // stdint.h:631:1:
  85. INT_LEAST8_MIN = -128 // stdint.h:630:1:
  86. KEV_DL_ADDMULTI = 7 // net_kev.h:61:1:
  87. KEV_DL_AWDL_RESTRICTED = 26 // net_kev.h:80:1:
  88. KEV_DL_AWDL_UNRESTRICTED = 27 // net_kev.h:81:1:
  89. KEV_DL_DELMULTI = 8 // net_kev.h:62:1:
  90. KEV_DL_IFCAP_CHANGED = 19 // net_kev.h:73:1:
  91. KEV_DL_IFDELEGATE_CHANGED = 25 // net_kev.h:79:1:
  92. KEV_DL_IF_ATTACHED = 9 // net_kev.h:63:1:
  93. KEV_DL_IF_DETACHED = 11 // net_kev.h:65:1:
  94. KEV_DL_IF_DETACHING = 10 // net_kev.h:64:1:
  95. KEV_DL_IF_IDLE_ROUTE_REFCNT = 18 // net_kev.h:72:1:
  96. KEV_DL_ISSUES = 24 // net_kev.h:78:1:
  97. KEV_DL_LINK_ADDRESS_CHANGED = 16 // net_kev.h:70:1:
  98. KEV_DL_LINK_OFF = 12 // net_kev.h:66:1:
  99. KEV_DL_LINK_ON = 13 // net_kev.h:67:1:
  100. KEV_DL_LINK_QUALITY_METRIC_CHANGED = 20 // net_kev.h:74:1:
  101. KEV_DL_LOW_POWER_MODE_CHANGED = 30 // net_kev.h:84:1:
  102. KEV_DL_NODE_ABSENCE = 22 // net_kev.h:76:1:
  103. KEV_DL_NODE_PRESENCE = 21 // net_kev.h:75:1:
  104. KEV_DL_PRIMARY_ELECTED = 23 // net_kev.h:77:1:
  105. KEV_DL_PROTO_ATTACHED = 14 // net_kev.h:68:1:
  106. KEV_DL_PROTO_DETACHED = 15 // net_kev.h:69:1:
  107. KEV_DL_QOS_MODE_CHANGED = 29 // net_kev.h:83:1:
  108. KEV_DL_RRC_STATE_CHANGED = 28 // net_kev.h:82:1:
  109. KEV_DL_SIFFLAGS = 1 // net_kev.h:55:1:
  110. KEV_DL_SIFGENERIC = 6 // net_kev.h:60:1:
  111. KEV_DL_SIFMEDIA = 5 // net_kev.h:59:1:
  112. KEV_DL_SIFMETRICS = 2 // net_kev.h:56:1:
  113. KEV_DL_SIFMTU = 3 // net_kev.h:57:1:
  114. KEV_DL_SIFPHYS = 4 // net_kev.h:58:1:
  115. KEV_DL_SUBCLASS = 2 // net_kev.h:50:1:
  116. KEV_DL_WAKEFLAGS_CHANGED = 17 // net_kev.h:71:1:
  117. KEV_INET6_ADDR_DELETED = 3 // net_kev.h:93:1:
  118. KEV_INET6_CHANGED_ADDR = 2 // net_kev.h:92:1:
  119. KEV_INET6_DEFROUTER = 6 // net_kev.h:96:1:
  120. KEV_INET6_NEW_LL_ADDR = 4 // net_kev.h:94:1:
  121. KEV_INET6_NEW_RTADV_ADDR = 5 // net_kev.h:95:1:
  122. KEV_INET6_NEW_USER_ADDR = 1 // net_kev.h:91:1:
  123. KEV_INET6_REQUEST_NAT64_PREFIX = 7 // net_kev.h:97:1:
  124. KEV_INET6_SUBCLASS = 6 // net_kev.h:89:1:
  125. KEV_INET_ADDR_DELETED = 3 // net_kev.h:39:1:
  126. KEV_INET_ARPCOLLISION = 7 // net_kev.h:43:1:
  127. KEV_INET_ARPRTRALIVE = 10 // net_kev.h:48:1:
  128. KEV_INET_ARPRTRFAILURE = 9 // net_kev.h:47:1:
  129. KEV_INET_CHANGED_ADDR = 2 // net_kev.h:38:1:
  130. KEV_INET_NEW_ADDR = 1 // net_kev.h:37:1:
  131. KEV_INET_PORTINUSE = 8 // net_kev.h:45:1:
  132. KEV_INET_SIFBRDADDR = 5 // net_kev.h:41:1:
  133. KEV_INET_SIFDSTADDR = 4 // net_kev.h:40:1:
  134. KEV_INET_SIFNETMASK = 6 // net_kev.h:42:1:
  135. KEV_INET_SUBCLASS = 1 // net_kev.h:35:1:
  136. LITTLE_ENDIAN = 1234 // endian.h:71:1:
  137. MAC_OS_VERSION_11_0 = 110000 // AvailabilityVersions.h:238:1:
  138. MAC_OS_VERSION_12_0 = 120000 // AvailabilityVersions.h:239:1:
  139. MAC_OS_X_VERSION_10_0 = 1000 // AvailabilityVersions.h:206:1:
  140. MAC_OS_X_VERSION_10_1 = 1010 // AvailabilityVersions.h:207:1:
  141. MAC_OS_X_VERSION_10_10 = 101000 // AvailabilityVersions.h:216:1:
  142. MAC_OS_X_VERSION_10_10_2 = 101002 // AvailabilityVersions.h:217:1:
  143. MAC_OS_X_VERSION_10_10_3 = 101003 // AvailabilityVersions.h:218:1:
  144. MAC_OS_X_VERSION_10_11 = 101100 // AvailabilityVersions.h:219:1:
  145. MAC_OS_X_VERSION_10_11_2 = 101102 // AvailabilityVersions.h:220:1:
  146. MAC_OS_X_VERSION_10_11_3 = 101103 // AvailabilityVersions.h:221:1:
  147. MAC_OS_X_VERSION_10_11_4 = 101104 // AvailabilityVersions.h:222:1:
  148. MAC_OS_X_VERSION_10_12 = 101200 // AvailabilityVersions.h:223:1:
  149. MAC_OS_X_VERSION_10_12_1 = 101201 // AvailabilityVersions.h:224:1:
  150. MAC_OS_X_VERSION_10_12_2 = 101202 // AvailabilityVersions.h:225:1:
  151. MAC_OS_X_VERSION_10_12_4 = 101204 // AvailabilityVersions.h:226:1:
  152. MAC_OS_X_VERSION_10_13 = 101300 // AvailabilityVersions.h:227:1:
  153. MAC_OS_X_VERSION_10_13_1 = 101301 // AvailabilityVersions.h:228:1:
  154. MAC_OS_X_VERSION_10_13_2 = 101302 // AvailabilityVersions.h:229:1:
  155. MAC_OS_X_VERSION_10_13_4 = 101304 // AvailabilityVersions.h:230:1:
  156. MAC_OS_X_VERSION_10_14 = 101400 // AvailabilityVersions.h:231:1:
  157. MAC_OS_X_VERSION_10_14_1 = 101401 // AvailabilityVersions.h:232:1:
  158. MAC_OS_X_VERSION_10_14_4 = 101404 // AvailabilityVersions.h:233:1:
  159. MAC_OS_X_VERSION_10_14_6 = 101406 // AvailabilityVersions.h:234:1:
  160. MAC_OS_X_VERSION_10_15 = 101500 // AvailabilityVersions.h:235:1:
  161. MAC_OS_X_VERSION_10_15_1 = 101501 // AvailabilityVersions.h:236:1:
  162. MAC_OS_X_VERSION_10_16 = 101600 // AvailabilityVersions.h:237:1:
  163. MAC_OS_X_VERSION_10_2 = 1020 // AvailabilityVersions.h:208:1:
  164. MAC_OS_X_VERSION_10_3 = 1030 // AvailabilityVersions.h:209:1:
  165. MAC_OS_X_VERSION_10_4 = 1040 // AvailabilityVersions.h:210:1:
  166. MAC_OS_X_VERSION_10_5 = 1050 // AvailabilityVersions.h:211:1:
  167. MAC_OS_X_VERSION_10_6 = 1060 // AvailabilityVersions.h:212:1:
  168. MAC_OS_X_VERSION_10_7 = 1070 // AvailabilityVersions.h:213:1:
  169. MAC_OS_X_VERSION_10_8 = 1080 // AvailabilityVersions.h:214:1:
  170. MAC_OS_X_VERSION_10_9 = 1090 // AvailabilityVersions.h:215:1:
  171. MSG_CTRUNC = 0x20 // socket.h:569:1:
  172. MSG_DONTROUTE = 0x4 // socket.h:566:1:
  173. MSG_DONTWAIT = 0x80 // socket.h:572:1:
  174. MSG_EOF = 0x100 // socket.h:573:1:
  175. MSG_EOR = 0x8 // socket.h:567:1:
  176. MSG_FLUSH = 0x400 // socket.h:578:1:
  177. MSG_HAVEMORE = 0x2000 // socket.h:581:1:
  178. MSG_HOLD = 0x800 // socket.h:579:1:
  179. MSG_NEEDSA = 0x10000 // socket.h:584:1:
  180. MSG_NOSIGNAL = 0x80000 // socket.h:588:1:
  181. MSG_OOB = 0x1 // socket.h:564:1:
  182. MSG_PEEK = 0x2 // socket.h:565:1:
  183. MSG_RCVMORE = 0x4000 // socket.h:582:1:
  184. MSG_SEND = 0x1000 // socket.h:580:1:
  185. MSG_TRUNC = 0x10 // socket.h:568:1:
  186. MSG_WAITALL = 0x40 // socket.h:570:1:
  187. MSG_WAITSTREAM = 0x200 // socket.h:576:1:
  188. NBBY = 8 // types.h:186:1:
  189. NETSVC_MRKNG_LVL_L2 = 1 // socket.h:287:1:
  190. NETSVC_MRKNG_LVL_L3L2_ALL = 2 // socket.h:288:1:
  191. NETSVC_MRKNG_LVL_L3L2_BK = 3 // socket.h:289:1:
  192. NETSVC_MRKNG_UNKNOWN = 0 // socket.h:286:1:
  193. NET_MAXID = 41 // socket.h:512:1:
  194. NET_RT_DUMP = 1 // socket.h:525:1:
  195. NET_RT_DUMP2 = 7 // socket.h:531:1:
  196. NET_RT_FLAGS = 2 // socket.h:526:1:
  197. NET_RT_FLAGS_PRIV = 10 // socket.h:536:1:
  198. NET_RT_IFLIST = 3 // socket.h:527:1:
  199. NET_RT_IFLIST2 = 6 // socket.h:530:1:
  200. NET_RT_MAXID = 11 // socket.h:537:1:
  201. NET_RT_STAT = 4 // socket.h:528:1:
  202. NET_RT_TRASH = 5 // socket.h:529:1:
  203. NET_SERVICE_TYPE_AV = 6 // socket.h:280:1:
  204. NET_SERVICE_TYPE_BE = 0 // socket.h:274:1:
  205. NET_SERVICE_TYPE_BK = 1 // socket.h:275:1:
  206. NET_SERVICE_TYPE_OAM = 7 // socket.h:281:1:
  207. NET_SERVICE_TYPE_RD = 8 // socket.h:282:1:
  208. NET_SERVICE_TYPE_RV = 5 // socket.h:279:1:
  209. NET_SERVICE_TYPE_SIG = 2 // socket.h:276:1:
  210. NET_SERVICE_TYPE_VI = 3 // socket.h:277:1:
  211. NET_SERVICE_TYPE_VO = 4 // socket.h:278:1:
  212. PDP_ENDIAN = 3412 // endian.h:73:1:
  213. PF_APPLETALK = 16 // socket.h:474:1:
  214. PF_CCITT = 10 // socket.h:468:1:
  215. PF_CHAOS = 5 // socket.h:462:1:
  216. PF_CNT = 21 // socket.h:479:1:
  217. PF_COIP = 20 // socket.h:478:1:
  218. PF_DATAKIT = 9 // socket.h:467:1:
  219. PF_DECnet = 12 // socket.h:470:1:
  220. PF_DLI = 13 // socket.h:471:1:
  221. PF_ECMA = 8 // socket.h:466:1:
  222. PF_HYLINK = 15 // socket.h:473:1:
  223. PF_IMPLINK = 3 // socket.h:460:1:
  224. PF_INET = 2 // socket.h:459:1:
  225. PF_INET6 = 30 // socket.h:487:1:
  226. PF_IPX = 23 // socket.h:481:1:
  227. PF_ISDN = 28 // socket.h:485:1:
  228. PF_ISO = 7 // socket.h:464:1:
  229. PF_KEY = 29 // socket.h:486:1:
  230. PF_LAT = 14 // socket.h:472:1:
  231. PF_LINK = 18 // socket.h:476:1:
  232. PF_LOCAL = 1 // socket.h:457:1:
  233. PF_MAX = 41 // socket.h:495:1:
  234. PF_NATM = 31 // socket.h:488:1:
  235. PF_NDRV = 27 // socket.h:484:1:
  236. PF_NETBIOS = 33 // socket.h:490:1:
  237. PF_NS = 6 // socket.h:463:1:
  238. PF_OSI = 7 // socket.h:465:1:
  239. PF_PIP = 25 // socket.h:483:1:
  240. PF_PPP = 34 // socket.h:491:1:
  241. PF_PUP = 4 // socket.h:461:1:
  242. PF_RESERVED_36 = 36 // socket.h:492:1:
  243. PF_ROUTE = 17 // socket.h:475:1:
  244. PF_RTIP = 22 // socket.h:482:1:
  245. PF_SIP = 24 // socket.h:480:1:
  246. PF_SNA = 11 // socket.h:469:1:
  247. PF_SYSTEM = 32 // socket.h:489:1:
  248. PF_UNIX = 1 // socket.h:458:1:
  249. PF_UNSPEC = 0 // socket.h:456:1:
  250. PF_UTUN = 38 // socket.h:493:1:
  251. PF_VSOCK = 40 // socket.h:494:1:
  252. PF_XTP = 19 // socket.h:477:1:
  253. PTRDIFF_MAX = 9223372036854775807 // stdint.h:652:1:
  254. PTRDIFF_MIN = -9223372036854775808 // stdint.h:651:1:
  255. RSIZE_MAX = 9223372036854775807 // stdint.h:658:1:
  256. SAE_ASSOCID_ANY = 0 // socket.h:294:1:
  257. SAE_CONNID_ANY = 0 // socket.h:298:1:
  258. SCM_CREDS = 0x03 // socket.h:674:1:
  259. SCM_RIGHTS = 0x01 // socket.h:671:1:
  260. SCM_TIMESTAMP = 0x02 // socket.h:673:1:
  261. SCM_TIMESTAMP_MONOTONIC = 0x04 // socket.h:675:1:
  262. SHUT_RD = 0 // socket.h:683:1:
  263. SHUT_RDWR = 2 // socket.h:685:1:
  264. SHUT_WR = 1 // socket.h:684:1:
  265. SIG_ATOMIC_MAX = 2147483647 // stdint.h:668:1:
  266. SIG_ATOMIC_MIN = -2147483648 // stdint.h:667:1:
  267. SIZE_MAX = 18446744073709551615 // stdint.h:653:1:
  268. SOCK_DGRAM = 2 // socket.h:113:1:
  269. SOCK_MAXADDRLEN = 255 // socket.h:419:1:
  270. SOCK_RAW = 3 // socket.h:114:1:
  271. SOCK_RDM = 4 // socket.h:116:1:
  272. SOCK_SEQPACKET = 5 // socket.h:118:1:
  273. SOCK_STREAM = 1 // socket.h:112:1:
  274. SOL_SOCKET = 0xffff // socket.h:352:1:
  275. SOMAXCONN = 128 // socket.h:546:1:
  276. SONPX_SETOPTSHUT = 0x000000001 // socket.h:342:1:
  277. SO_ACCEPTCONN = 0x0002 // socket.h:124:1:
  278. SO_BROADCAST = 0x0020 // socket.h:128:1:
  279. SO_DEBUG = 0x0001 // socket.h:123:1:
  280. SO_DONTROUTE = 0x0010 // socket.h:127:1:
  281. SO_DONTTRUNC = 0x2000 // socket.h:143:1:
  282. SO_ERROR = 0x1007 // socket.h:161:1:
  283. SO_KEEPALIVE = 0x0008 // socket.h:126:1:
  284. SO_LABEL = 0x1010 // socket.h:164:1:
  285. SO_LINGER = 0x0080 // socket.h:131:1:
  286. SO_LINGER_SEC = 0x1080 // socket.h:177:1:
  287. SO_NETSVC_MARKING_LEVEL = 0x1119 // socket.h:186:1:
  288. SO_NET_SERVICE_TYPE = 0x1116 // socket.h:183:1:
  289. SO_NKE = 0x1021 // socket.h:168:1:
  290. SO_NOADDRERR = 0x1023 // socket.h:170:1:
  291. SO_NOSIGPIPE = 0x1022 // socket.h:169:1:
  292. SO_NOTIFYCONFLICT = 0x1026 // socket.h:174:1:
  293. SO_NP_EXTENSIONS = 0x1083 // socket.h:179:1:
  294. SO_NREAD = 0x1020 // socket.h:167:1:
  295. SO_NUMRCVPKT = 0x1112 // socket.h:182:1:
  296. SO_NWRITE = 0x1024 // socket.h:171:1:
  297. SO_OOBINLINE = 0x0100 // socket.h:135:1:
  298. SO_PEERLABEL = 0x1011 // socket.h:165:1:
  299. SO_RANDOMPORT = 0x1082 // socket.h:178:1:
  300. SO_RCVBUF = 0x1002 // socket.h:156:1:
  301. SO_RCVLOWAT = 0x1004 // socket.h:158:1:
  302. SO_RCVTIMEO = 0x1006 // socket.h:160:1:
  303. SO_REUSEADDR = 0x0004 // socket.h:125:1:
  304. SO_REUSEPORT = 0x0200 // socket.h:137:1:
  305. SO_REUSESHAREUID = 0x1025 // socket.h:172:1:
  306. SO_SNDBUF = 0x1001 // socket.h:155:1:
  307. SO_SNDLOWAT = 0x1003 // socket.h:157:1:
  308. SO_SNDTIMEO = 0x1005 // socket.h:159:1:
  309. SO_TIMESTAMP = 0x0400 // socket.h:138:1:
  310. SO_TIMESTAMP_MONOTONIC = 0x0800 // socket.h:139:1:
  311. SO_TYPE = 0x1008 // socket.h:162:1:
  312. SO_UPCALLCLOSEWAIT = 0x1027 // socket.h:175:1:
  313. SO_USELOOPBACK = 0x0040 // socket.h:130:1:
  314. SO_WANTMORE = 0x4000 // socket.h:145:1:
  315. SO_WANTOOBFLAG = 0x8000 // socket.h:146:1:
  316. UINT16_MAX = 65535 // stdint.h:601:1:
  317. UINT32_MAX = 4294967295 // stdint.h:557:1:
  318. UINT64_MAX = 18446744073709551615 // stdint.h:463:1:
  319. UINT8_MAX = 255 // stdint.h:623:1:
  320. UINTMAX_MAX = 18446744073709551615 // stdint.h:664:1:
  321. UINTPTR_MAX = 18446744073709551615 // stdint.h:650:1:
  322. UINT_FAST16_MAX = 65535 // stdint.h:616:1:
  323. UINT_FAST32_MAX = 4294967295 // stdint.h:575:1:
  324. UINT_FAST64_MAX = 18446744073709551615 // stdint.h:484:1:
  325. UINT_FAST8_MAX = 255 // stdint.h:635:1:
  326. UINT_LEAST16_MAX = 65535 // stdint.h:613:1:
  327. UINT_LEAST32_MAX = 4294967295 // stdint.h:572:1:
  328. UINT_LEAST64_MAX = 18446744073709551615 // stdint.h:481:1:
  329. UINT_LEAST8_MAX = 255 // stdint.h:632:1:
  330. WCHAR_MAX = 2147483647 // stdint.h:678:1:
  331. WCHAR_MIN = -2147483648 // stdint.h:682:1:
  332. WINT_MAX = 2147483647 // stdint.h:674:1:
  333. WINT_MIN = -2147483648 // stdint.h:673:1:
  334. X_ARM_ARCH_H = 0 // arch.h:29:1:
  335. X_ARM_MACHTYPES_H_ = 0 // types.h:43:1:
  336. X_ARM__ENDIAN_H_ = 0 // endian.h:43:1:
  337. X_ARM__PARAM_H_ = 0 // _param.h:6:1:
  338. X_BLKCNT_T = 0 // _blkcnt_t.h:29:1:
  339. X_BLKSIZE_T = 0 // _blksize_t.h:29:1:
  340. X_BSD_ARM__TYPES_H_ = 0 // _types.h:5:1:
  341. X_BSD_MACHINE_ENDIAN_H_ = 0 // endian.h:32:1:
  342. X_BSD_MACHINE_TYPES_H_ = 0 // types.h:32:1:
  343. X_BSD_MACHINE__PARAM_H_ = 0 // _param.h:29:1:
  344. X_BSD_MACHINE__TYPES_H_ = 0 // _types.h:29:1:
  345. X_CADDR_T = 0 // _caddr_t.h:29:1:
  346. X_CDEFS_H_ = 0 // cdefs.h:68:1:
  347. X_CLOCK_T = 0 // _clock_t.h:29:1:
  348. X_DARWIN_FEATURE_64_BIT_INODE = 1 // cdefs.h:774:1:
  349. X_DARWIN_FEATURE_ONLY_64_BIT_INODE = 1 // cdefs.h:784:1:
  350. X_DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE = 1 // cdefs.h:800:1:
  351. X_DARWIN_FEATURE_ONLY_VERS_1050 = 1 // cdefs.h:792:1:
  352. X_DARWIN_FEATURE_UNIX_CONFORMANCE = 3 // cdefs.h:808:1:
  353. X_DEV_T = 0 // _dev_t.h:29:1:
  354. X_ERRNO_T = 0 // _errno_t.h:29:1:
  355. X_FD_SET = 0 // _fd_def.h:29:1:
  356. X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
  357. X_FSBLKCNT_T = 0 // _fsblkcnt_t.h:29:1:
  358. X_FSFILCNT_T = 0 // _fsfilcnt_t.h:29:1:
  359. X_GID_T = 0 // _gid_t.h:29:1:
  360. X_ID_T = 0 // _id_t.h:29:1:
  361. X_INO64_T = 0 // _ino64_t.h:29:1:
  362. X_INO_T = 0 // _ino_t.h:29:1:
  363. X_INT16_T = 0 // _int16_t.h:29:1:
  364. X_INT32_T = 0 // _int32_t.h:29:1:
  365. X_INT64_T = 0 // _int64_t.h:29:1:
  366. X_INT8_T = 0 // _int8_t.h:29:1:
  367. X_INTPTR_T = 0 // _intptr_t.h:29:1:
  368. X_IN_ADDR_T = 0 // _in_addr_t.h:29:1:
  369. X_IN_PORT_T = 0 // _in_port_t.h:29:1:
  370. X_KEY_T = 0 // _key_t.h:29:1:
  371. X_LP64 = 1 // <predefined>:1:1:
  372. X_MACHTYPES_H_ = 0 // types.h:44:1:
  373. X_MODE_T = 0 // _mode_t.h:29:1:
  374. X_NET_NETKEV_H_ = 0 // net_kev.h:30:1:
  375. X_NLINK_T = 0 // _nlink_t.h:29:1:
  376. X_Nonnull = 0 // cdefs.h:268:1:
  377. X_Null_unspecified = 0 // cdefs.h:271:1:
  378. X_Nullable = 0 // cdefs.h:265:1:
  379. X_OFF_T = 0 // _off_t.h:29:1:
  380. X_OS_OSBYTEORDERARM_H = 0 // OSByteOrder.h:6:1:
  381. X_OS__OSBYTEORDER_H = 0 // _OSByteOrder.h:30:1:
  382. X_PID_T = 0 // _pid_t.h:29:1:
  383. X_PTHREAD_ATTR_T = 0 // _pthread_attr_t.h:29:1:
  384. X_PTHREAD_CONDATTR_T = 0 // _pthread_condattr_t.h:29:1:
  385. X_PTHREAD_COND_T = 0 // _pthread_cond_t.h:29:1:
  386. X_PTHREAD_KEY_T = 0 // _pthread_key_t.h:29:1:
  387. X_PTHREAD_MUTEXATTR_T = 0 // _pthread_mutexattr_t.h:29:1:
  388. X_PTHREAD_MUTEX_T = 0 // _pthread_mutex_t.h:29:1:
  389. X_PTHREAD_ONCE_T = 0 // _pthread_once_t.h:29:1:
  390. X_PTHREAD_RWLOCKATTR_T = 0 // _pthread_rwlockattr_t.h:29:1:
  391. X_PTHREAD_RWLOCK_T = 0 // _pthread_rwlock_t.h:29:1:
  392. X_PTHREAD_T = 0 // _pthread_t.h:29:1:
  393. X_QUAD_HIGHWORD = 1 // endian.h:56:1:
  394. X_QUAD_LOWWORD = 0 // endian.h:57:1:
  395. X_RSIZE_T = 0 // _rsize_t.h:29:1:
  396. X_SA_FAMILY_T = 0 // _sa_family_t.h:29:1:
  397. X_SIZE_T = 0 // _size_t.h:29:1:
  398. X_SOCKLEN_T = 0 // _socklen_t.h:29:1:
  399. X_SSIZE_T = 0 // _ssize_t.h:29:1:
  400. X_SS_MAXSIZE = 128 // socket.h:434:1:
  401. X_STRUCT_IOVEC = 0 // _iovec_t.h:29:1:
  402. X_SUSECONDS_T = 0 // _suseconds_t.h:29:1:
  403. X_SYS_SOCKET_H_ = 0 // socket.h:73:1:
  404. X_SYS_TYPES_H_ = 0 // types.h:70:1:
  405. X_SYS__ENDIAN_H_ = 0 // _endian.h:91:1:
  406. X_SYS__PTHREAD_TYPES_H_ = 0 // _pthread_types.h:30:1:
  407. X_SYS__TYPES_H_ = 0 // _types.h:30:1:
  408. X_TIME_T = 0 // _time_t.h:29:1:
  409. X_UID_T = 0 // _uid_t.h:29:1:
  410. X_UINTPTR_T = 0 // _uintptr_t.h:29:1:
  411. X_USECONDS_T = 0 // _useconds_t.h:29:1:
  412. X_U_CHAR = 0 // _u_char.h:29:1:
  413. X_U_INT = 0 // _u_int.h:29:1:
  414. X_U_INT16_T = 0 // _u_int16_t.h:29:1:
  415. X_U_INT32_T = 0 // _u_int32_t.h:29:1:
  416. X_U_INT64_T = 0 // _u_int64_t.h:29:1:
  417. X_U_INT8_T = 0 // _u_int8_t.h:29:1:
  418. X_U_LONG = 0 // types.h:89:1:
  419. X_U_SHORT = 0 // _u_short.h:29:1:
  420. Pseudo_AF_HDRCMPLT = 35 // socket.h:400:1:
  421. Pseudo_AF_KEY = 29 // socket.h:392:1:
  422. Pseudo_AF_PIP = 25 // socket.h:388:1:
  423. Pseudo_AF_RTIP = 22 // socket.h:385:1:
  424. Pseudo_AF_XTP = 19 // socket.h:382:1:
  425. )
  426. type Ptrdiff_t = int64 /* <builtin>:3:26 */
  427. type Size_t = uint64 /* <builtin>:9:23 */
  428. type Wchar_t = int32 /* <builtin>:15:24 */
  429. type X__int128_t = struct {
  430. Flo int64
  431. Fhi int64
  432. } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
  433. type X__uint128_t = struct {
  434. Flo uint64
  435. Fhi uint64
  436. } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
  437. type X__builtin_va_list = uintptr /* <builtin>:46:14 */
  438. type X__float128 = float64 /* <builtin>:47:21 */
  439. var X__darwin_check_fd_set_overflow uintptr /* <builtin>:146:5: */
  440. // Copyright (c) 2000-2019 Apple Inc. All rights reserved.
  441. //
  442. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  443. //
  444. // This file contains Original Code and/or Modifications of Original Code
  445. // as defined in and that are subject to the Apple Public Source License
  446. // Version 2.0 (the 'License'). You may not use this file except in
  447. // compliance with the License. The rights granted to you under the License
  448. // may not be used to create, or enable the creation or redistribution of,
  449. // unlawful or unlicensed copies of an Apple operating system, or to
  450. // circumvent, violate, or enable the circumvention or violation of, any
  451. // terms of an Apple operating system software license agreement.
  452. //
  453. // Please obtain a copy of the License at
  454. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  455. //
  456. // The Original Code and all software distributed under the License are
  457. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  458. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  459. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  460. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  461. // Please see the License for the specific language governing rights and
  462. // limitations under the License.
  463. //
  464. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  465. // Copyright (c) 1998, 1999 Apple Computer, Inc. All Rights Reserved
  466. // Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved
  467. // Copyright (c) 1982, 1985, 1986, 1988, 1993, 1994
  468. // The Regents of the University of California. All rights reserved.
  469. //
  470. // Redistribution and use in source and binary forms, with or without
  471. // modification, are permitted provided that the following conditions
  472. // are met:
  473. // 1. Redistributions of source code must retain the above copyright
  474. // notice, this list of conditions and the following disclaimer.
  475. // 2. Redistributions in binary form must reproduce the above copyright
  476. // notice, this list of conditions and the following disclaimer in the
  477. // documentation and/or other materials provided with the distribution.
  478. // 3. All advertising materials mentioning features or use of this software
  479. // must display the following acknowledgement:
  480. // This product includes software developed by the University of
  481. // California, Berkeley and its contributors.
  482. // 4. Neither the name of the University nor the names of its contributors
  483. // may be used to endorse or promote products derived from this software
  484. // without specific prior written permission.
  485. //
  486. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  487. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  488. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  489. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  490. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  491. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  492. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  493. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  494. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  495. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  496. // SUCH DAMAGE.
  497. //
  498. // @(#)socket.h 8.4 (Berkeley) 2/21/94
  499. // $FreeBSD: src/sys/sys/socket.h,v 1.39.2.7 2001/07/03 11:02:01 ume Exp $
  500. // NOTICE: This file was modified by SPARTA, Inc. in 2005 to introduce
  501. // support for mandatory and extensible security protections. This notice
  502. // is included in support of clause 2.2 (b) of the Apple Public License,
  503. // Version 2.0.
  504. // Copyright (c) 2000-2008 Apple Inc. All rights reserved.
  505. //
  506. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  507. //
  508. // This file contains Original Code and/or Modifications of Original Code
  509. // as defined in and that are subject to the Apple Public Source License
  510. // Version 2.0 (the 'License'). You may not use this file except in
  511. // compliance with the License. The rights granted to you under the License
  512. // may not be used to create, or enable the creation or redistribution of,
  513. // unlawful or unlicensed copies of an Apple operating system, or to
  514. // circumvent, violate, or enable the circumvention or violation of, any
  515. // terms of an Apple operating system software license agreement.
  516. //
  517. // Please obtain a copy of the License at
  518. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  519. //
  520. // The Original Code and all software distributed under the License are
  521. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  522. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  523. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  524. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  525. // Please see the License for the specific language governing rights and
  526. // limitations under the License.
  527. //
  528. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  529. // Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved
  530. // Copyright (c) 1982, 1986, 1991, 1993, 1994
  531. // The Regents of the University of California. All rights reserved.
  532. // (c) UNIX System Laboratories, Inc.
  533. // All or some portions of this file are derived from material licensed
  534. // to the University of California by American Telephone and Telegraph
  535. // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  536. // the permission of UNIX System Laboratories, Inc.
  537. //
  538. // Redistribution and use in source and binary forms, with or without
  539. // modification, are permitted provided that the following conditions
  540. // are met:
  541. // 1. Redistributions of source code must retain the above copyright
  542. // notice, this list of conditions and the following disclaimer.
  543. // 2. Redistributions in binary form must reproduce the above copyright
  544. // notice, this list of conditions and the following disclaimer in the
  545. // documentation and/or other materials provided with the distribution.
  546. // 3. All advertising materials mentioning features or use of this software
  547. // must display the following acknowledgement:
  548. // This product includes software developed by the University of
  549. // California, Berkeley and its contributors.
  550. // 4. Neither the name of the University nor the names of its contributors
  551. // may be used to endorse or promote products derived from this software
  552. // without specific prior written permission.
  553. //
  554. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  555. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  556. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  557. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  558. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  559. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  560. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  561. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  562. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  563. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  564. // SUCH DAMAGE.
  565. //
  566. // @(#)types.h 8.4 (Berkeley) 1/21/94
  567. // Copyright (c) 2002 Apple Computer, Inc. All rights reserved.
  568. //
  569. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  570. //
  571. // This file contains Original Code and/or Modifications of Original Code
  572. // as defined in and that are subject to the Apple Public Source License
  573. // Version 2.0 (the 'License'). You may not use this file except in
  574. // compliance with the License. The rights granted to you under the License
  575. // may not be used to create, or enable the creation or redistribution of,
  576. // unlawful or unlicensed copies of an Apple operating system, or to
  577. // circumvent, violate, or enable the circumvention or violation of, any
  578. // terms of an Apple operating system software license agreement.
  579. //
  580. // Please obtain a copy of the License at
  581. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  582. //
  583. // The Original Code and all software distributed under the License are
  584. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  585. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  586. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  587. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  588. // Please see the License for the specific language governing rights and
  589. // limitations under the License.
  590. //
  591. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  592. // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  593. //
  594. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  595. //
  596. // This file contains Original Code and/or Modifications of Original Code
  597. // as defined in and that are subject to the Apple Public Source License
  598. // Version 2.0 (the 'License'). You may not use this file except in
  599. // compliance with the License. The rights granted to you under the License
  600. // may not be used to create, or enable the creation or redistribution of,
  601. // unlawful or unlicensed copies of an Apple operating system, or to
  602. // circumvent, violate, or enable the circumvention or violation of, any
  603. // terms of an Apple operating system software license agreement.
  604. //
  605. // Please obtain a copy of the License at
  606. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  607. //
  608. // The Original Code and all software distributed under the License are
  609. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  610. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  611. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  612. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  613. // Please see the License for the specific language governing rights and
  614. // limitations under the License.
  615. //
  616. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  617. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  618. // Copyright (c) 1991, 1993
  619. // The Regents of the University of California. All rights reserved.
  620. //
  621. // This code is derived from software contributed to Berkeley by
  622. // Berkeley Software Design, Inc.
  623. //
  624. // Redistribution and use in source and binary forms, with or without
  625. // modification, are permitted provided that the following conditions
  626. // are met:
  627. // 1. Redistributions of source code must retain the above copyright
  628. // notice, this list of conditions and the following disclaimer.
  629. // 2. Redistributions in binary form must reproduce the above copyright
  630. // notice, this list of conditions and the following disclaimer in the
  631. // documentation and/or other materials provided with the distribution.
  632. // 3. All advertising materials mentioning features or use of this software
  633. // must display the following acknowledgement:
  634. // This product includes software developed by the University of
  635. // California, Berkeley and its contributors.
  636. // 4. Neither the name of the University nor the names of its contributors
  637. // may be used to endorse or promote products derived from this software
  638. // without specific prior written permission.
  639. //
  640. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  641. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  642. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  643. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  644. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  645. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  646. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  647. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  648. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  649. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  650. // SUCH DAMAGE.
  651. //
  652. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  653. // This SDK is designed to work with clang and specific versions of
  654. // gcc >= 4.0 with Apple's patch sets
  655. // Compatibility with compilers and environments that don't support compiler
  656. // feature checking function-like macros.
  657. // The __CONCAT macro is used to concatenate parts of symbol names, e.g.
  658. // with "#define OLD(foo) __CONCAT(old,foo)", OLD(foo) produces oldfoo.
  659. // The __CONCAT macro is a bit tricky -- make sure you don't put spaces
  660. // in between its arguments. __CONCAT can also concatenate double-quoted
  661. // strings produced by the __STRING macro, but this only works with ANSI C.
  662. // In non-ANSI C environments, new programs will want ANSI-only C keywords
  663. // deleted from the program and old programs will want them left alone.
  664. // When using a compiler other than gcc, programs using the ANSI C keywords
  665. // const, inline etc. as normal identifiers should define -DNO_ANSI_KEYWORDS.
  666. // When using "gcc -traditional", we assume that this is the intent; if
  667. // __GNUC__ is defined but __STDC__ is not, we leave the new keywords alone.
  668. // __pure2 can be used for functions that are only a function of their scalar
  669. // arguments (meaning they can't dereference pointers).
  670. //
  671. // __stateful_pure can be used for functions that have no side effects,
  672. // but depend on the state of the memory.
  673. // __unused denotes variables and functions that may not be used, preventing
  674. // the compiler from warning about it if not used.
  675. // __used forces variables and functions to be included even if it appears
  676. // to the compiler that they are not used (and would thust be discarded).
  677. // __cold marks code used for debugging or that is rarely taken
  678. // and tells the compiler to optimize for size and outline code.
  679. // __exported denotes symbols that should be exported even when symbols
  680. // are hidden by default.
  681. // __exported_push/_exported_pop are pragmas used to delimit a range of
  682. // symbols that should be exported even when symbols are hidden by default.
  683. // __deprecated causes the compiler to produce a warning when encountering
  684. // code using the deprecated functionality.
  685. // __deprecated_msg() does the same, and compilers that support it will print
  686. // a message along with the deprecation warning.
  687. // This may require turning on such warning with the -Wdeprecated flag.
  688. // __deprecated_enum_msg() should be used on enums, and compilers that support
  689. // it will print the deprecation warning.
  690. // __kpi_deprecated() specifically indicates deprecation of kernel programming
  691. // interfaces in Kernel.framework used by KEXTs.
  692. // __unavailable causes the compiler to error out when encountering
  693. // code using the tagged function
  694. // Delete pseudo-keywords wherever they are not available or needed.
  695. // We use `__restrict' as a way to define the `restrict' type qualifier
  696. // without disturbing older software that is unaware of C99 keywords.
  697. // Compatibility with compilers and environments that don't support the
  698. // nullability feature.
  699. // __disable_tail_calls causes the compiler to not perform tail call
  700. // optimization inside the marked function.
  701. // __not_tail_called causes the compiler to prevent tail call optimization
  702. // on statically bound calls to the function. It has no effect on indirect
  703. // calls. Virtual functions, objective-c methods, and functions marked as
  704. // "always_inline" cannot be marked as __not_tail_called.
  705. // __result_use_check warns callers of a function that not using the function
  706. // return value is a bug, i.e. dismissing malloc() return value results in a
  707. // memory leak.
  708. // __swift_unavailable causes the compiler to mark a symbol as specifically
  709. // unavailable in Swift, regardless of any other availability in C.
  710. // __abortlike is the attribute to put on functions like abort() that are
  711. // typically used to mark assertions. These optimize the codegen
  712. // for outlining while still maintaining debugability.
  713. // Declaring inline functions within headers is error-prone due to differences
  714. // across various versions of the C language and extensions. __header_inline
  715. // can be used to declare inline functions within system headers. In cases
  716. // where you want to force inlining instead of letting the compiler make
  717. // the decision, you can use __header_always_inline.
  718. //
  719. // Be aware that using inline for functions which compilers may also provide
  720. // builtins can behave differently under various compilers. If you intend to
  721. // provide an inline version of such a function, you may want to use a macro
  722. // instead.
  723. //
  724. // The check for !__GNUC__ || __clang__ is because gcc doesn't correctly
  725. // support c99 inline in some cases:
  726. // http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55965
  727. // Compiler-dependent macros that bracket portions of code where the
  728. // "-Wunreachable-code" warning should be ignored. Please use sparingly.
  729. // Compiler-dependent macros to declare that functions take printf-like
  730. // or scanf-like arguments. They are null except for versions of gcc
  731. // that are known to support the features properly. Functions declared
  732. // with these attributes will cause compilation warnings if there is a
  733. // mismatch between the format string and subsequent function parameter
  734. // types.
  735. // Source compatibility only, ID string not emitted in object file
  736. // __alloc_size can be used to label function arguments that represent the
  737. // size of memory that the function allocates and returns. The one-argument
  738. // form labels a single argument that gives the allocation size (where the
  739. // arguments are numbered from 1):
  740. //
  741. // void *malloc(size_t __size) __alloc_size(1);
  742. //
  743. // The two-argument form handles the case where the size is calculated as the
  744. // product of two arguments:
  745. //
  746. // void *calloc(size_t __count, size_t __size) __alloc_size(1,2);
  747. // COMPILATION ENVIRONMENTS -- see compat(5) for additional detail
  748. //
  749. // DEFAULT By default newly complied code will get POSIX APIs plus
  750. // Apple API extensions in scope.
  751. //
  752. // Most users will use this compilation environment to avoid
  753. // behavioral differences between 32 and 64 bit code.
  754. //
  755. // LEGACY Defining _NONSTD_SOURCE will get pre-POSIX APIs plus Apple
  756. // API extensions in scope.
  757. //
  758. // This is generally equivalent to the Tiger release compilation
  759. // environment, except that it cannot be applied to 64 bit code;
  760. // its use is discouraged.
  761. //
  762. // We expect this environment to be deprecated in the future.
  763. //
  764. // STRICT Defining _POSIX_C_SOURCE or _XOPEN_SOURCE restricts the
  765. // available APIs to exactly the set of APIs defined by the
  766. // corresponding standard, based on the value defined.
  767. //
  768. // A correct, portable definition for _POSIX_C_SOURCE is 200112L.
  769. // A correct, portable definition for _XOPEN_SOURCE is 600L.
  770. //
  771. // Apple API extensions are not visible in this environment,
  772. // which can cause Apple specific code to fail to compile,
  773. // or behave incorrectly if prototypes are not in scope or
  774. // warnings about missing prototypes are not enabled or ignored.
  775. //
  776. // In any compilation environment, for correct symbol resolution to occur,
  777. // function prototypes must be in scope. It is recommended that all Apple
  778. // tools users add either the "-Wall" or "-Wimplicit-function-declaration"
  779. // compiler flags to their projects to be warned when a function is being
  780. // used without a prototype in scope.
  781. // These settings are particular to each product.
  782. // Platform: MacOSX
  783. // The __DARWIN_ALIAS macros are used to do symbol renaming; they allow
  784. // legacy code to use the old symbol, thus maintaining binary compatibility
  785. // while new code can use a standards compliant version of the same function.
  786. //
  787. // __DARWIN_ALIAS is used by itself if the function signature has not
  788. // changed, it is used along with a #ifdef check for __DARWIN_UNIX03
  789. // if the signature has changed. Because the __LP64__ environment
  790. // only supports UNIX03 semantics it causes __DARWIN_UNIX03 to be
  791. // defined, but causes __DARWIN_ALIAS to do no symbol mangling.
  792. //
  793. // As a special case, when XCode is used to target a specific version of the
  794. // OS, the manifest constant __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__
  795. // will be defined by the compiler, with the digits representing major version
  796. // time 100 + minor version times 10 (e.g. 10.5 := 1050). If we are targeting
  797. // pre-10.5, and it is the default compilation environment, revert the
  798. // compilation environment to pre-__DARWIN_UNIX03.
  799. // symbol suffixes used for symbol versioning
  800. // symbol versioning macros
  801. // symbol release macros
  802. // Copyright (c) 2010 Apple Inc. All rights reserved.
  803. //
  804. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  805. //
  806. // This file contains Original Code and/or Modifications of Original Code
  807. // as defined in and that are subject to the Apple Public Source License
  808. // Version 2.0 (the 'License'). You may not use this file except in
  809. // compliance with the License. The rights granted to you under the License
  810. // may not be used to create, or enable the creation or redistribution of,
  811. // unlawful or unlicensed copies of an Apple operating system, or to
  812. // circumvent, violate, or enable the circumvention or violation of, any
  813. // terms of an Apple operating system software license agreement.
  814. //
  815. // Please obtain a copy of the License at
  816. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  817. //
  818. // The Original Code and all software distributed under the License are
  819. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  820. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  821. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  822. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  823. // Please see the License for the specific language governing rights and
  824. // limitations under the License.
  825. //
  826. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  827. // POSIX.1 requires that the macros we test be defined before any standard
  828. // header file is included. This permits us to convert values for feature
  829. // testing, as necessary, using only _POSIX_C_SOURCE.
  830. //
  831. // Here's a quick run-down of the versions:
  832. // defined(_POSIX_SOURCE) 1003.1-1988
  833. // _POSIX_C_SOURCE == 1L 1003.1-1990
  834. // _POSIX_C_SOURCE == 2L 1003.2-1992 C Language Binding Option
  835. // _POSIX_C_SOURCE == 199309L 1003.1b-1993
  836. // _POSIX_C_SOURCE == 199506L 1003.1c-1995, 1003.1i-1995,
  837. // and the omnibus ISO/IEC 9945-1: 1996
  838. // _POSIX_C_SOURCE == 200112L 1003.1-2001
  839. // _POSIX_C_SOURCE == 200809L 1003.1-2008
  840. //
  841. // In addition, the X/Open Portability Guide, which is now the Single UNIX
  842. // Specification, defines a feature-test macro which indicates the version of
  843. // that specification, and which subsumes _POSIX_C_SOURCE.
  844. // Deal with IEEE Std. 1003.1-1990, in which _POSIX_C_SOURCE == 1L.
  845. // Deal with IEEE Std. 1003.2-1992, in which _POSIX_C_SOURCE == 2L.
  846. // Deal with various X/Open Portability Guides and Single UNIX Spec.
  847. // Deal with all versions of POSIX. The ordering relative to the tests above is
  848. // important.
  849. // POSIX C deprecation macros
  850. // Copyright (c) 2010 Apple Inc. All rights reserved.
  851. //
  852. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  853. //
  854. // This file contains Original Code and/or Modifications of Original Code
  855. // as defined in and that are subject to the Apple Public Source License
  856. // Version 2.0 (the 'License'). You may not use this file except in
  857. // compliance with the License. The rights granted to you under the License
  858. // may not be used to create, or enable the creation or redistribution of,
  859. // unlawful or unlicensed copies of an Apple operating system, or to
  860. // circumvent, violate, or enable the circumvention or violation of, any
  861. // terms of an Apple operating system software license agreement.
  862. //
  863. // Please obtain a copy of the License at
  864. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  865. //
  866. // The Original Code and all software distributed under the License are
  867. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  868. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  869. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  870. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  871. // Please see the License for the specific language governing rights and
  872. // limitations under the License.
  873. //
  874. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  875. // Set a single macro which will always be defined and can be used to determine
  876. // the appropriate namespace. For POSIX, these values will correspond to
  877. // _POSIX_C_SOURCE value. Currently there are two additional levels corresponding
  878. // to ANSI (_ANSI_SOURCE) and Darwin extensions (_DARWIN_C_SOURCE)
  879. // If the developer has neither requested a strict language mode nor a version
  880. // of POSIX, turn on functionality provided by __STDC_WANT_LIB_EXT1__ as part
  881. // of __DARWIN_C_FULL.
  882. // long long is not supported in c89 (__STRICT_ANSI__), but g++ -ansi and
  883. // c99 still want long longs. While not perfect, we allow long longs for
  884. // g++.
  885. // ****************************************
  886. //
  887. // Public darwin-specific feature macros
  888. //
  889. // _DARWIN_FEATURE_64_BIT_INODE indicates that the ino_t type is 64-bit, and
  890. // structures modified for 64-bit inodes (like struct stat) will be used.
  891. // _DARWIN_FEATURE_64_ONLY_BIT_INODE indicates that the ino_t type may only
  892. // be 64-bit; there is no support for 32-bit ino_t when this macro is defined
  893. // (and non-zero). There is no struct stat64 either, as the regular
  894. // struct stat will already be the 64-bit version.
  895. // _DARWIN_FEATURE_ONLY_VERS_1050 indicates that only those APIs updated
  896. // in 10.5 exists; no pre-10.5 variants are available.
  897. // _DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE indicates only UNIX conforming API
  898. // are available (the legacy BSD APIs are not available)
  899. // _DARWIN_FEATURE_UNIX_CONFORMANCE indicates whether UNIX conformance is on,
  900. // and specifies the conformance level (3 is SUSv3)
  901. // This macro casts away the qualifier from the variable
  902. //
  903. // Note: use at your own risk, removing qualifiers can result in
  904. // catastrophic run-time failures.
  905. // __XNU_PRIVATE_EXTERN is a linkage decoration indicating that a symbol can be
  906. // used from other compilation units, but not other libraries or executables.
  907. // We intentionally define to nothing pointer attributes which do not have an
  908. // impact on the ABI. __indexable and __bidi_indexable are not defined because
  909. // of the ABI incompatibility that makes the diagnostic preferable.
  910. // Similarly, we intentionally define to nothing the
  911. // __ptrcheck_abi_assume_single and __ptrcheck_abi_assume_unsafe_indexable
  912. // macros because they do not lead to an ABI incompatibility. However, we do not
  913. // define the indexable and unsafe_indexable ones because the diagnostic is
  914. // better than the silent ABI break.
  915. // __unsafe_forge intrinsics are defined as regular C casts.
  916. // decay operates normally; attribute is meaningless without pointer checks.
  917. // Architecture validation for current SDK
  918. // Similar to OS_ENUM/OS_CLOSED_ENUM/OS_OPTIONS/OS_CLOSED_OPTIONS
  919. //
  920. // This provides more advanced type checking on compilers supporting
  921. // the proper extensions, even in C.
  922. // Machine type dependent parameters.
  923. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  924. //
  925. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  926. //
  927. // This file contains Original Code and/or Modifications of Original Code
  928. // as defined in and that are subject to the Apple Public Source License
  929. // Version 2.0 (the 'License'). You may not use this file except in
  930. // compliance with the License. The rights granted to you under the License
  931. // may not be used to create, or enable the creation or redistribution of,
  932. // unlawful or unlicensed copies of an Apple operating system, or to
  933. // circumvent, violate, or enable the circumvention or violation of, any
  934. // terms of an Apple operating system software license agreement.
  935. //
  936. // Please obtain a copy of the License at
  937. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  938. //
  939. // The Original Code and all software distributed under the License are
  940. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  941. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  942. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  943. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  944. // Please see the License for the specific language governing rights and
  945. // limitations under the License.
  946. //
  947. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  948. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  949. // Copyright (c) 2000-2008 Apple Inc. All rights reserved.
  950. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  951. // Copyright (c) 1990, 1993
  952. // The Regents of the University of California. All rights reserved.
  953. //
  954. // Redistribution and use in source and binary forms, with or without
  955. // modification, are permitted provided that the following conditions
  956. // are met:
  957. // 1. Redistributions of source code must retain the above copyright
  958. // notice, this list of conditions and the following disclaimer.
  959. // 2. Redistributions in binary form must reproduce the above copyright
  960. // notice, this list of conditions and the following disclaimer in the
  961. // documentation and/or other materials provided with the distribution.
  962. // 3. All advertising materials mentioning features or use of this software
  963. // must display the following acknowledgement:
  964. // This product includes software developed by the University of
  965. // California, Berkeley and its contributors.
  966. // 4. Neither the name of the University nor the names of its contributors
  967. // may be used to endorse or promote products derived from this software
  968. // without specific prior written permission.
  969. //
  970. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  971. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  972. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  973. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  974. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  975. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  976. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  977. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  978. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  979. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  980. // SUCH DAMAGE.
  981. //
  982. // @(#)types.h 8.3 (Berkeley) 1/5/94
  983. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  984. // This header file contains integer types. It's intended to also contain
  985. // flotaing point and other arithmetic types, as needed, later.
  986. type X__int8_t = int8 /* _types.h:15:33 */
  987. type X__uint8_t = uint8 /* _types.h:19:33 */
  988. type X__int16_t = int16 /* _types.h:20:33 */
  989. type X__uint16_t = uint16 /* _types.h:21:33 */
  990. type X__int32_t = int32 /* _types.h:22:33 */
  991. type X__uint32_t = uint32 /* _types.h:23:33 */
  992. type X__int64_t = int64 /* _types.h:24:33 */
  993. type X__uint64_t = uint64 /* _types.h:25:33 */
  994. type X__darwin_intptr_t = int64 /* _types.h:27:33 */
  995. type X__darwin_natural_t = uint32 /* _types.h:28:33 */
  996. // The rune type below is declared to be an ``int'' instead of the more natural
  997. // ``unsigned long'' or ``long''. Two things are happening here. It is not
  998. // unsigned so that EOF (-1) can be naturally assigned to it and used. Also,
  999. // it looks like 10646 will be a 31 bit standard. This means that if your
  1000. // ints cannot hold 32 bits, you will be in trouble. The reason an int was
  1001. // chosen over a long is that the is*() and to*() routines take ints (says
  1002. // ANSI C), but they use __darwin_ct_rune_t instead of int. By changing it
  1003. // here, you lose a bit of ANSI conformance, but your programs will still
  1004. // work.
  1005. //
  1006. // NOTE: rune_t is not covered by ANSI nor other standards, and should not
  1007. // be instantiated outside of lib/libc/locale. Use wchar_t. wchar_t and
  1008. // rune_t must be the same type. Also wint_t must be no narrower than
  1009. // wchar_t, and should also be able to hold all members of the largest
  1010. // character set plus one extra value (WEOF). wint_t must be at least 16 bits.
  1011. type X__darwin_ct_rune_t = int32 /* _types.h:48:33 */ // ct_rune_t
  1012. // mbstate_t is an opaque object to keep conversion state, during multibyte
  1013. // stream conversions. The content must not be referenced by user programs.
  1014. type X__mbstate_t = struct {
  1015. F__ccgo_pad1 [0]uint64
  1016. F__mbstate8 [128]int8
  1017. } /* _types.h:57:3 */
  1018. type X__darwin_mbstate_t = X__mbstate_t /* _types.h:59:33 */ // mbstate_t
  1019. type X__darwin_ptrdiff_t = int64 /* _types.h:62:33 */ // ptr1 - ptr2
  1020. type X__darwin_size_t = uint64 /* _types.h:70:33 */ // sizeof()
  1021. type X__darwin_va_list = X__builtin_va_list /* _types.h:76:33 */ // va_list
  1022. type X__darwin_wchar_t = int32 /* _types.h:82:33 */ // wchar_t
  1023. type X__darwin_rune_t = X__darwin_wchar_t /* _types.h:87:33 */ // rune_t
  1024. type X__darwin_wint_t = int32 /* _types.h:90:33 */ // wint_t
  1025. type X__darwin_clock_t = uint64 /* _types.h:95:33 */ // clock()
  1026. type X__darwin_socklen_t = X__uint32_t /* _types.h:96:33 */ // socklen_t (duh)
  1027. type X__darwin_ssize_t = int64 /* _types.h:97:33 */ // byte count or error
  1028. type X__darwin_time_t = int64 /* _types.h:98:33 */ // time()
  1029. // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  1030. //
  1031. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1032. //
  1033. // This file contains Original Code and/or Modifications of Original Code
  1034. // as defined in and that are subject to the Apple Public Source License
  1035. // Version 2.0 (the 'License'). You may not use this file except in
  1036. // compliance with the License. The rights granted to you under the License
  1037. // may not be used to create, or enable the creation or redistribution of,
  1038. // unlawful or unlicensed copies of an Apple operating system, or to
  1039. // circumvent, violate, or enable the circumvention or violation of, any
  1040. // terms of an Apple operating system software license agreement.
  1041. //
  1042. // Please obtain a copy of the License at
  1043. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1044. //
  1045. // The Original Code and all software distributed under the License are
  1046. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1047. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1048. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1049. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1050. // Please see the License for the specific language governing rights and
  1051. // limitations under the License.
  1052. //
  1053. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1054. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  1055. // Copyright (c) 1991, 1993
  1056. // The Regents of the University of California. All rights reserved.
  1057. //
  1058. // This code is derived from software contributed to Berkeley by
  1059. // Berkeley Software Design, Inc.
  1060. //
  1061. // Redistribution and use in source and binary forms, with or without
  1062. // modification, are permitted provided that the following conditions
  1063. // are met:
  1064. // 1. Redistributions of source code must retain the above copyright
  1065. // notice, this list of conditions and the following disclaimer.
  1066. // 2. Redistributions in binary form must reproduce the above copyright
  1067. // notice, this list of conditions and the following disclaimer in the
  1068. // documentation and/or other materials provided with the distribution.
  1069. // 3. All advertising materials mentioning features or use of this software
  1070. // must display the following acknowledgement:
  1071. // This product includes software developed by the University of
  1072. // California, Berkeley and its contributors.
  1073. // 4. Neither the name of the University nor the names of its contributors
  1074. // may be used to endorse or promote products derived from this software
  1075. // without specific prior written permission.
  1076. //
  1077. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1078. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1079. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1080. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1081. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1082. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1083. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1084. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1085. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1086. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1087. // SUCH DAMAGE.
  1088. //
  1089. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  1090. // Basic integral types. Omit the typedef if
  1091. // not possible for a machine/compiler combination.
  1092. // Copyright (c) 2012 Apple Inc. All rights reserved.
  1093. //
  1094. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1095. //
  1096. // This file contains Original Code and/or Modifications of Original Code
  1097. // as defined in and that are subject to the Apple Public Source License
  1098. // Version 2.0 (the 'License'). You may not use this file except in
  1099. // compliance with the License. The rights granted to you under the License
  1100. // may not be used to create, or enable the creation or redistribution of,
  1101. // unlawful or unlicensed copies of an Apple operating system, or to
  1102. // circumvent, violate, or enable the circumvention or violation of, any
  1103. // terms of an Apple operating system software license agreement.
  1104. //
  1105. // Please obtain a copy of the License at
  1106. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1107. //
  1108. // The Original Code and all software distributed under the License are
  1109. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1110. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1111. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1112. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1113. // Please see the License for the specific language governing rights and
  1114. // limitations under the License.
  1115. //
  1116. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1117. type Int8_t = int8 /* _int8_t.h:30:31 */
  1118. // Copyright (c) 2012 Apple Inc. All rights reserved.
  1119. //
  1120. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1121. //
  1122. // This file contains Original Code and/or Modifications of Original Code
  1123. // as defined in and that are subject to the Apple Public Source License
  1124. // Version 2.0 (the 'License'). You may not use this file except in
  1125. // compliance with the License. The rights granted to you under the License
  1126. // may not be used to create, or enable the creation or redistribution of,
  1127. // unlawful or unlicensed copies of an Apple operating system, or to
  1128. // circumvent, violate, or enable the circumvention or violation of, any
  1129. // terms of an Apple operating system software license agreement.
  1130. //
  1131. // Please obtain a copy of the License at
  1132. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1133. //
  1134. // The Original Code and all software distributed under the License are
  1135. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1136. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1137. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1138. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1139. // Please see the License for the specific language governing rights and
  1140. // limitations under the License.
  1141. //
  1142. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1143. type Int16_t = int16 /* _int16_t.h:30:33 */
  1144. // Copyright (c) 2012 Apple Inc. All rights reserved.
  1145. //
  1146. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1147. //
  1148. // This file contains Original Code and/or Modifications of Original Code
  1149. // as defined in and that are subject to the Apple Public Source License
  1150. // Version 2.0 (the 'License'). You may not use this file except in
  1151. // compliance with the License. The rights granted to you under the License
  1152. // may not be used to create, or enable the creation or redistribution of,
  1153. // unlawful or unlicensed copies of an Apple operating system, or to
  1154. // circumvent, violate, or enable the circumvention or violation of, any
  1155. // terms of an Apple operating system software license agreement.
  1156. //
  1157. // Please obtain a copy of the License at
  1158. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1159. //
  1160. // The Original Code and all software distributed under the License are
  1161. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1162. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1163. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1164. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1165. // Please see the License for the specific language governing rights and
  1166. // limitations under the License.
  1167. //
  1168. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1169. type Int32_t = int32 /* _int32_t.h:30:33 */
  1170. // Copyright (c) 2012 Apple Inc. All rights reserved.
  1171. //
  1172. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1173. //
  1174. // This file contains Original Code and/or Modifications of Original Code
  1175. // as defined in and that are subject to the Apple Public Source License
  1176. // Version 2.0 (the 'License'). You may not use this file except in
  1177. // compliance with the License. The rights granted to you under the License
  1178. // may not be used to create, or enable the creation or redistribution of,
  1179. // unlawful or unlicensed copies of an Apple operating system, or to
  1180. // circumvent, violate, or enable the circumvention or violation of, any
  1181. // terms of an Apple operating system software license agreement.
  1182. //
  1183. // Please obtain a copy of the License at
  1184. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1185. //
  1186. // The Original Code and all software distributed under the License are
  1187. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1188. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1189. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1190. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1191. // Please see the License for the specific language governing rights and
  1192. // limitations under the License.
  1193. //
  1194. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1195. type Int64_t = int64 /* _int64_t.h:30:33 */
  1196. // Copyright (c) 2016 Apple Inc. All rights reserved.
  1197. //
  1198. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1199. //
  1200. // This file contains Original Code and/or Modifications of Original Code
  1201. // as defined in and that are subject to the Apple Public Source License
  1202. // Version 2.0 (the 'License'). You may not use this file except in
  1203. // compliance with the License. The rights granted to you under the License
  1204. // may not be used to create, or enable the creation or redistribution of,
  1205. // unlawful or unlicensed copies of an Apple operating system, or to
  1206. // circumvent, violate, or enable the circumvention or violation of, any
  1207. // terms of an Apple operating system software license agreement.
  1208. //
  1209. // Please obtain a copy of the License at
  1210. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1211. //
  1212. // The Original Code and all software distributed under the License are
  1213. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1214. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1215. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1216. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1217. // Please see the License for the specific language governing rights and
  1218. // limitations under the License.
  1219. //
  1220. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1221. type U_int8_t = uint8 /* _u_int8_t.h:30:33 */
  1222. // Copyright (c) 2012 Apple Inc. All rights reserved.
  1223. //
  1224. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1225. //
  1226. // This file contains Original Code and/or Modifications of Original Code
  1227. // as defined in and that are subject to the Apple Public Source License
  1228. // Version 2.0 (the 'License'). You may not use this file except in
  1229. // compliance with the License. The rights granted to you under the License
  1230. // may not be used to create, or enable the creation or redistribution of,
  1231. // unlawful or unlicensed copies of an Apple operating system, or to
  1232. // circumvent, violate, or enable the circumvention or violation of, any
  1233. // terms of an Apple operating system software license agreement.
  1234. //
  1235. // Please obtain a copy of the License at
  1236. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1237. //
  1238. // The Original Code and all software distributed under the License are
  1239. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1240. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1241. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1242. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1243. // Please see the License for the specific language governing rights and
  1244. // limitations under the License.
  1245. //
  1246. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1247. type U_int16_t = uint16 /* _u_int16_t.h:30:41 */
  1248. // Copyright (c) 2012 Apple Inc. All rights reserved.
  1249. //
  1250. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1251. //
  1252. // This file contains Original Code and/or Modifications of Original Code
  1253. // as defined in and that are subject to the Apple Public Source License
  1254. // Version 2.0 (the 'License'). You may not use this file except in
  1255. // compliance with the License. The rights granted to you under the License
  1256. // may not be used to create, or enable the creation or redistribution of,
  1257. // unlawful or unlicensed copies of an Apple operating system, or to
  1258. // circumvent, violate, or enable the circumvention or violation of, any
  1259. // terms of an Apple operating system software license agreement.
  1260. //
  1261. // Please obtain a copy of the License at
  1262. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1263. //
  1264. // The Original Code and all software distributed under the License are
  1265. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1266. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1267. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1268. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1269. // Please see the License for the specific language governing rights and
  1270. // limitations under the License.
  1271. //
  1272. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1273. type U_int32_t = uint32 /* _u_int32_t.h:30:33 */
  1274. // Copyright (c) 2012 Apple Inc. All rights reserved.
  1275. //
  1276. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1277. //
  1278. // This file contains Original Code and/or Modifications of Original Code
  1279. // as defined in and that are subject to the Apple Public Source License
  1280. // Version 2.0 (the 'License'). You may not use this file except in
  1281. // compliance with the License. The rights granted to you under the License
  1282. // may not be used to create, or enable the creation or redistribution of,
  1283. // unlawful or unlicensed copies of an Apple operating system, or to
  1284. // circumvent, violate, or enable the circumvention or violation of, any
  1285. // terms of an Apple operating system software license agreement.
  1286. //
  1287. // Please obtain a copy of the License at
  1288. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1289. //
  1290. // The Original Code and all software distributed under the License are
  1291. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1292. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1293. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1294. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1295. // Please see the License for the specific language governing rights and
  1296. // limitations under the License.
  1297. //
  1298. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1299. type U_int64_t = uint64 /* _u_int64_t.h:30:33 */
  1300. type Register_t = Int64_t /* types.h:66:33 */
  1301. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  1302. //
  1303. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1304. //
  1305. // This file contains Original Code and/or Modifications of Original Code
  1306. // as defined in and that are subject to the Apple Public Source License
  1307. // Version 2.0 (the 'License'). You may not use this file except in
  1308. // compliance with the License. The rights granted to you under the License
  1309. // may not be used to create, or enable the creation or redistribution of,
  1310. // unlawful or unlicensed copies of an Apple operating system, or to
  1311. // circumvent, violate, or enable the circumvention or violation of, any
  1312. // terms of an Apple operating system software license agreement.
  1313. //
  1314. // Please obtain a copy of the License at
  1315. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1316. //
  1317. // The Original Code and all software distributed under the License are
  1318. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1319. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1320. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1321. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1322. // Please see the License for the specific language governing rights and
  1323. // limitations under the License.
  1324. //
  1325. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1326. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  1327. //
  1328. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1329. //
  1330. // This file contains Original Code and/or Modifications of Original Code
  1331. // as defined in and that are subject to the Apple Public Source License
  1332. // Version 2.0 (the 'License'). You may not use this file except in
  1333. // compliance with the License. The rights granted to you under the License
  1334. // may not be used to create, or enable the creation or redistribution of,
  1335. // unlawful or unlicensed copies of an Apple operating system, or to
  1336. // circumvent, violate, or enable the circumvention or violation of, any
  1337. // terms of an Apple operating system software license agreement.
  1338. //
  1339. // Please obtain a copy of the License at
  1340. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1341. //
  1342. // The Original Code and all software distributed under the License are
  1343. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1344. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1345. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1346. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1347. // Please see the License for the specific language governing rights and
  1348. // limitations under the License.
  1349. //
  1350. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1351. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  1352. type Intptr_t = X__darwin_intptr_t /* _intptr_t.h:32:33 */
  1353. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  1354. //
  1355. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1356. //
  1357. // This file contains Original Code and/or Modifications of Original Code
  1358. // as defined in and that are subject to the Apple Public Source License
  1359. // Version 2.0 (the 'License'). You may not use this file except in
  1360. // compliance with the License. The rights granted to you under the License
  1361. // may not be used to create, or enable the creation or redistribution of,
  1362. // unlawful or unlicensed copies of an Apple operating system, or to
  1363. // circumvent, violate, or enable the circumvention or violation of, any
  1364. // terms of an Apple operating system software license agreement.
  1365. //
  1366. // Please obtain a copy of the License at
  1367. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1368. //
  1369. // The Original Code and all software distributed under the License are
  1370. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1371. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1372. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1373. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1374. // Please see the License for the specific language governing rights and
  1375. // limitations under the License.
  1376. //
  1377. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1378. type Uintptr_t = uint64 /* _uintptr_t.h:34:33 */
  1379. // These types are used for reserving the largest possible size.
  1380. type User_addr_t = U_int64_t /* types.h:77:33 */
  1381. type User_size_t = U_int64_t /* types.h:78:33 */
  1382. type User_ssize_t = Int64_t /* types.h:79:33 */
  1383. type User_long_t = Int64_t /* types.h:80:33 */
  1384. type User_ulong_t = U_int64_t /* types.h:81:33 */
  1385. type User_time_t = Int64_t /* types.h:82:33 */
  1386. type User_off_t = Int64_t /* types.h:83:33 */
  1387. // This defines the size of syscall arguments after copying into the kernel:
  1388. type Syscall_arg_t = U_int64_t /* types.h:104:33 */
  1389. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  1390. //
  1391. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1392. //
  1393. // This file contains Original Code and/or Modifications of Original Code
  1394. // as defined in and that are subject to the Apple Public Source License
  1395. // Version 2.0 (the 'License'). You may not use this file except in
  1396. // compliance with the License. The rights granted to you under the License
  1397. // may not be used to create, or enable the creation or redistribution of,
  1398. // unlawful or unlicensed copies of an Apple operating system, or to
  1399. // circumvent, violate, or enable the circumvention or violation of, any
  1400. // terms of an Apple operating system software license agreement.
  1401. //
  1402. // Please obtain a copy of the License at
  1403. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1404. //
  1405. // The Original Code and all software distributed under the License are
  1406. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1407. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1408. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1409. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1410. // Please see the License for the specific language governing rights and
  1411. // limitations under the License.
  1412. //
  1413. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1414. // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  1415. //
  1416. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1417. //
  1418. // This file contains Original Code and/or Modifications of Original Code
  1419. // as defined in and that are subject to the Apple Public Source License
  1420. // Version 2.0 (the 'License'). You may not use this file except in
  1421. // compliance with the License. The rights granted to you under the License
  1422. // may not be used to create, or enable the creation or redistribution of,
  1423. // unlawful or unlicensed copies of an Apple operating system, or to
  1424. // circumvent, violate, or enable the circumvention or violation of, any
  1425. // terms of an Apple operating system software license agreement.
  1426. //
  1427. // Please obtain a copy of the License at
  1428. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1429. //
  1430. // The Original Code and all software distributed under the License are
  1431. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1432. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1433. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1434. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1435. // Please see the License for the specific language governing rights and
  1436. // limitations under the License.
  1437. //
  1438. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1439. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  1440. // Copyright (c) 1991, 1993
  1441. // The Regents of the University of California. All rights reserved.
  1442. //
  1443. // This code is derived from software contributed to Berkeley by
  1444. // Berkeley Software Design, Inc.
  1445. //
  1446. // Redistribution and use in source and binary forms, with or without
  1447. // modification, are permitted provided that the following conditions
  1448. // are met:
  1449. // 1. Redistributions of source code must retain the above copyright
  1450. // notice, this list of conditions and the following disclaimer.
  1451. // 2. Redistributions in binary form must reproduce the above copyright
  1452. // notice, this list of conditions and the following disclaimer in the
  1453. // documentation and/or other materials provided with the distribution.
  1454. // 3. All advertising materials mentioning features or use of this software
  1455. // must display the following acknowledgement:
  1456. // This product includes software developed by the University of
  1457. // California, Berkeley and its contributors.
  1458. // 4. Neither the name of the University nor the names of its contributors
  1459. // may be used to endorse or promote products derived from this software
  1460. // without specific prior written permission.
  1461. //
  1462. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1463. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1464. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1465. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1466. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1467. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1468. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1469. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1470. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1471. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1472. // SUCH DAMAGE.
  1473. //
  1474. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  1475. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  1476. //
  1477. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1478. //
  1479. // This file contains Original Code and/or Modifications of Original Code
  1480. // as defined in and that are subject to the Apple Public Source License
  1481. // Version 2.0 (the 'License'). You may not use this file except in
  1482. // compliance with the License. The rights granted to you under the License
  1483. // may not be used to create, or enable the creation or redistribution of,
  1484. // unlawful or unlicensed copies of an Apple operating system, or to
  1485. // circumvent, violate, or enable the circumvention or violation of, any
  1486. // terms of an Apple operating system software license agreement.
  1487. //
  1488. // Please obtain a copy of the License at
  1489. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1490. //
  1491. // The Original Code and all software distributed under the License are
  1492. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1493. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1494. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1495. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1496. // Please see the License for the specific language governing rights and
  1497. // limitations under the License.
  1498. //
  1499. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1500. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  1501. // Type definitions; takes common type definitions that must be used
  1502. // in multiple header files due to [XSI], removes them from the system
  1503. // space, and puts them in the implementation space.
  1504. type X__darwin_blkcnt_t = X__int64_t /* _types.h:55:25 */ // total blocks
  1505. type X__darwin_blksize_t = X__int32_t /* _types.h:56:25 */ // preferred block size
  1506. type X__darwin_dev_t = X__int32_t /* _types.h:57:25 */ // dev_t
  1507. type X__darwin_fsblkcnt_t = uint32 /* _types.h:58:25 */ // Used by statvfs and fstatvfs
  1508. type X__darwin_fsfilcnt_t = uint32 /* _types.h:59:25 */ // Used by statvfs and fstatvfs
  1509. type X__darwin_gid_t = X__uint32_t /* _types.h:60:25 */ // [???] process and group IDs
  1510. type X__darwin_id_t = X__uint32_t /* _types.h:61:25 */ // [XSI] pid_t, uid_t, or gid_t
  1511. type X__darwin_ino64_t = X__uint64_t /* _types.h:62:25 */ // [???] Used for 64 bit inodes
  1512. type X__darwin_ino_t = X__darwin_ino64_t /* _types.h:64:26 */ // [???] Used for inodes
  1513. type X__darwin_mach_port_name_t = X__darwin_natural_t /* _types.h:68:28 */ // Used by mach
  1514. type X__darwin_mach_port_t = X__darwin_mach_port_name_t /* _types.h:69:35 */ // Used by mach
  1515. type X__darwin_mode_t = X__uint16_t /* _types.h:70:25 */ // [???] Some file attributes
  1516. type X__darwin_off_t = X__int64_t /* _types.h:71:25 */ // [???] Used for file sizes
  1517. type X__darwin_pid_t = X__int32_t /* _types.h:72:25 */ // [???] process and group IDs
  1518. type X__darwin_sigset_t = X__uint32_t /* _types.h:73:25 */ // [???] signal set
  1519. type X__darwin_suseconds_t = X__int32_t /* _types.h:74:25 */ // [???] microseconds
  1520. type X__darwin_uid_t = X__uint32_t /* _types.h:75:25 */ // [???] user IDs
  1521. type X__darwin_useconds_t = X__uint32_t /* _types.h:76:25 */ // [???] microseconds
  1522. type X__darwin_uuid_t = [16]uint8 /* _types.h:77:25 */
  1523. type X__darwin_uuid_string_t = [37]int8 /* _types.h:78:17 */
  1524. // Copyright (c) 2003-2013 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 (c) 2000-2018 Apple Inc. All rights reserved.
  1550. //
  1551. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1552. //
  1553. // This file contains Original Code and/or Modifications of Original Code
  1554. // as defined in and that are subject to the Apple Public Source License
  1555. // Version 2.0 (the 'License'). You may not use this file except in
  1556. // compliance with the License. The rights granted to you under the License
  1557. // may not be used to create, or enable the creation or redistribution of,
  1558. // unlawful or unlicensed copies of an Apple operating system, or to
  1559. // circumvent, violate, or enable the circumvention or violation of, any
  1560. // terms of an Apple operating system software license agreement.
  1561. //
  1562. // Please obtain a copy of the License at
  1563. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1564. //
  1565. // The Original Code and all software distributed under the License are
  1566. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1567. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1568. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1569. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1570. // Please see the License for the specific language governing rights and
  1571. // limitations under the License.
  1572. //
  1573. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1574. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  1575. // Copyright (c) 1991, 1993
  1576. // The Regents of the University of California. All rights reserved.
  1577. //
  1578. // This code is derived from software contributed to Berkeley by
  1579. // Berkeley Software Design, Inc.
  1580. //
  1581. // Redistribution and use in source and binary forms, with or without
  1582. // modification, are permitted provided that the following conditions
  1583. // are met:
  1584. // 1. Redistributions of source code must retain the above copyright
  1585. // notice, this list of conditions and the following disclaimer.
  1586. // 2. Redistributions in binary form must reproduce the above copyright
  1587. // notice, this list of conditions and the following disclaimer in the
  1588. // documentation and/or other materials provided with the distribution.
  1589. // 3. All advertising materials mentioning features or use of this software
  1590. // must display the following acknowledgement:
  1591. // This product includes software developed by the University of
  1592. // California, Berkeley and its contributors.
  1593. // 4. Neither the name of the University nor the names of its contributors
  1594. // may be used to endorse or promote products derived from this software
  1595. // without specific prior written permission.
  1596. //
  1597. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1598. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1599. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1600. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1601. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1602. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1603. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1604. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1605. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1606. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1607. // SUCH DAMAGE.
  1608. //
  1609. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  1610. // pthread opaque structures
  1611. type X__darwin_pthread_handler_rec = struct {
  1612. F__routine uintptr
  1613. F__arg uintptr
  1614. F__next uintptr
  1615. } /* _pthread_types.h:57:1 */
  1616. type X_opaque_pthread_attr_t = struct {
  1617. F__sig int64
  1618. F__opaque [56]int8
  1619. } /* _pthread_types.h:63:1 */
  1620. type X_opaque_pthread_cond_t = struct {
  1621. F__sig int64
  1622. F__opaque [40]int8
  1623. } /* _pthread_types.h:68:1 */
  1624. type X_opaque_pthread_condattr_t = struct {
  1625. F__sig int64
  1626. F__opaque [8]int8
  1627. } /* _pthread_types.h:73:1 */
  1628. type X_opaque_pthread_mutex_t = struct {
  1629. F__sig int64
  1630. F__opaque [56]int8
  1631. } /* _pthread_types.h:78:1 */
  1632. type X_opaque_pthread_mutexattr_t = struct {
  1633. F__sig int64
  1634. F__opaque [8]int8
  1635. } /* _pthread_types.h:83:1 */
  1636. type X_opaque_pthread_once_t = struct {
  1637. F__sig int64
  1638. F__opaque [8]int8
  1639. } /* _pthread_types.h:88:1 */
  1640. type X_opaque_pthread_rwlock_t = struct {
  1641. F__sig int64
  1642. F__opaque [192]int8
  1643. } /* _pthread_types.h:93:1 */
  1644. type X_opaque_pthread_rwlockattr_t = struct {
  1645. F__sig int64
  1646. F__opaque [16]int8
  1647. } /* _pthread_types.h:98:1 */
  1648. type X_opaque_pthread_t = struct {
  1649. F__sig int64
  1650. F__cleanup_stack uintptr
  1651. F__opaque [8176]int8
  1652. } /* _pthread_types.h:103:1 */
  1653. type X__darwin_pthread_attr_t = X_opaque_pthread_attr_t /* _pthread_types.h:109:39 */
  1654. type X__darwin_pthread_cond_t = X_opaque_pthread_cond_t /* _pthread_types.h:110:39 */
  1655. type X__darwin_pthread_condattr_t = X_opaque_pthread_condattr_t /* _pthread_types.h:111:43 */
  1656. type X__darwin_pthread_key_t = uint64 /* _pthread_types.h:112:23 */
  1657. type X__darwin_pthread_mutex_t = X_opaque_pthread_mutex_t /* _pthread_types.h:113:40 */
  1658. type X__darwin_pthread_mutexattr_t = X_opaque_pthread_mutexattr_t /* _pthread_types.h:114:44 */
  1659. type X__darwin_pthread_once_t = X_opaque_pthread_once_t /* _pthread_types.h:115:39 */
  1660. type X__darwin_pthread_rwlock_t = X_opaque_pthread_rwlock_t /* _pthread_types.h:116:41 */
  1661. type X__darwin_pthread_rwlockattr_t = X_opaque_pthread_rwlockattr_t /* _pthread_types.h:117:45 */
  1662. type X__darwin_pthread_t = uintptr /* _pthread_types.h:118:34 */
  1663. type Uint64_t = uint64 /* stdint.h:98:25 */
  1664. type Int_least64_t = Int64_t /* stdint.h:110:25 */
  1665. type Uint_least64_t = Uint64_t /* stdint.h:111:26 */
  1666. type Int_fast64_t = Int64_t /* stdint.h:112:25 */
  1667. type Uint_fast64_t = Uint64_t /* stdint.h:113:26 */
  1668. type Uint32_t = uint32 /* stdint.h:172:25 */
  1669. type Int_least32_t = Int32_t /* stdint.h:184:25 */
  1670. type Uint_least32_t = Uint32_t /* stdint.h:185:26 */
  1671. type Int_fast32_t = Int32_t /* stdint.h:186:25 */
  1672. type Uint_fast32_t = Uint32_t /* stdint.h:187:26 */
  1673. type Uint16_t = uint16 /* stdint.h:207:25 */
  1674. type Int_least16_t = Int16_t /* stdint.h:215:25 */
  1675. type Uint_least16_t = Uint16_t /* stdint.h:216:26 */
  1676. type Int_fast16_t = Int16_t /* stdint.h:217:25 */
  1677. type Uint_fast16_t = Uint16_t /* stdint.h:218:26 */
  1678. type Uint8_t = uint8 /* stdint.h:226:24 */
  1679. type Int_least8_t = Int8_t /* stdint.h:232:24 */
  1680. type Uint_least8_t = Uint8_t /* stdint.h:233:25 */
  1681. type Int_fast8_t = Int8_t /* stdint.h:234:24 */
  1682. type Uint_fast8_t = Uint8_t /* stdint.h:235:25 */
  1683. // prevent glibc sys/types.h from defining conflicting types
  1684. // C99 7.18.1.4 Integer types capable of holding object pointers.
  1685. // C99 7.18.1.5 Greatest-width integer types.
  1686. type Intmax_t = int64 /* stdint.h:262:26 */
  1687. type Uintmax_t = uint64 /* stdint.h:263:26 */
  1688. // Functions for byte reversed loads.
  1689. type X_OSUnalignedU16 = struct{ F__val Uint16_t } /* OSByteOrder.h:64:1 */
  1690. type X_OSUnalignedU32 = struct{ F__val Uint32_t } /* OSByteOrder.h:68:1 */
  1691. type X_OSUnalignedU64 = struct{ F__val Uint64_t } /* OSByteOrder.h:72:1 */
  1692. // Copyright (c) 2017 Apple Inc. All rights reserved.
  1693. //
  1694. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1695. //
  1696. // This file contains Original Code and/or Modifications of Original Code
  1697. // as defined in and that are subject to the Apple Public Source License
  1698. // Version 2.0 (the 'License'). You may not use this file except in
  1699. // compliance with the License. The rights granted to you under the License
  1700. // may not be used to create, or enable the creation or redistribution of,
  1701. // unlawful or unlicensed copies of an Apple operating system, or to
  1702. // circumvent, violate, or enable the circumvention or violation of, any
  1703. // terms of an Apple operating system software license agreement.
  1704. //
  1705. // Please obtain a copy of the License at
  1706. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1707. //
  1708. // The Original Code and all software distributed under the License are
  1709. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1710. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1711. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1712. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1713. // Please see the License for the specific language governing rights and
  1714. // limitations under the License.
  1715. //
  1716. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1717. type U_char = uint8 /* _u_char.h:30:25 */
  1718. // Copyright (c) 2017 Apple Inc. All rights reserved.
  1719. //
  1720. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1721. //
  1722. // This file contains Original Code and/or Modifications of Original Code
  1723. // as defined in and that are subject to the Apple Public Source License
  1724. // Version 2.0 (the 'License'). You may not use this file except in
  1725. // compliance with the License. The rights granted to you under the License
  1726. // may not be used to create, or enable the creation or redistribution of,
  1727. // unlawful or unlicensed copies of an Apple operating system, or to
  1728. // circumvent, violate, or enable the circumvention or violation of, any
  1729. // terms of an Apple operating system software license agreement.
  1730. //
  1731. // Please obtain a copy of the License at
  1732. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1733. //
  1734. // The Original Code and all software distributed under the License are
  1735. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1736. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1737. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1738. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1739. // Please see the License for the specific language governing rights and
  1740. // limitations under the License.
  1741. //
  1742. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1743. type U_short = uint16 /* _u_short.h:30:25 */
  1744. // Copyright (c) 2017 Apple Inc. All rights reserved.
  1745. //
  1746. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1747. //
  1748. // This file contains Original Code and/or Modifications of Original Code
  1749. // as defined in and that are subject to the Apple Public Source License
  1750. // Version 2.0 (the 'License'). You may not use this file except in
  1751. // compliance with the License. The rights granted to you under the License
  1752. // may not be used to create, or enable the creation or redistribution of,
  1753. // unlawful or unlicensed copies of an Apple operating system, or to
  1754. // circumvent, violate, or enable the circumvention or violation of, any
  1755. // terms of an Apple operating system software license agreement.
  1756. //
  1757. // Please obtain a copy of the License at
  1758. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1759. //
  1760. // The Original Code and all software distributed under the License are
  1761. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1762. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1763. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1764. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1765. // Please see the License for the specific language governing rights and
  1766. // limitations under the License.
  1767. //
  1768. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1769. type U_int = uint32 /* _u_int.h:30:25 */
  1770. type U_long = uint64 /* types.h:88:33 */
  1771. type Ushort = uint16 /* types.h:91:33 */ // Sys V compatibility
  1772. type Uint = uint32 /* types.h:92:33 */ // Sys V compatibility
  1773. type U_quad_t = U_int64_t /* types.h:95:33 */ // quads
  1774. type Quad_t = Int64_t /* types.h:96:33 */
  1775. type Qaddr_t = uintptr /* types.h:97:16 */
  1776. // Copyright (c) 2017 Apple Inc. All rights reserved.
  1777. //
  1778. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1779. //
  1780. // This file contains Original Code and/or Modifications of Original Code
  1781. // as defined in and that are subject to the Apple Public Source License
  1782. // Version 2.0 (the 'License'). You may not use this file except in
  1783. // compliance with the License. The rights granted to you under the License
  1784. // may not be used to create, or enable the creation or redistribution of,
  1785. // unlawful or unlicensed copies of an Apple operating system, or to
  1786. // circumvent, violate, or enable the circumvention or violation of, any
  1787. // terms of an Apple operating system software license agreement.
  1788. //
  1789. // Please obtain a copy of the License at
  1790. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1791. //
  1792. // The Original Code and all software distributed under the License are
  1793. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1794. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1795. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1796. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1797. // Please see the License for the specific language governing rights and
  1798. // limitations under the License.
  1799. //
  1800. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1801. type Caddr_t = uintptr /* _caddr_t.h:30:14 */
  1802. type Daddr_t = Int32_t /* types.h:101:33 */ // disk address
  1803. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  1804. //
  1805. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1806. //
  1807. // This file contains Original Code and/or Modifications of Original Code
  1808. // as defined in and that are subject to the Apple Public Source License
  1809. // Version 2.0 (the 'License'). You may not use this file except in
  1810. // compliance with the License. The rights granted to you under the License
  1811. // may not be used to create, or enable the creation or redistribution of,
  1812. // unlawful or unlicensed copies of an Apple operating system, or to
  1813. // circumvent, violate, or enable the circumvention or violation of, any
  1814. // terms of an Apple operating system software license agreement.
  1815. //
  1816. // Please obtain a copy of the License at
  1817. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1818. //
  1819. // The Original Code and all software distributed under the License are
  1820. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1821. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1822. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1823. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1824. // Please see the License for the specific language governing rights and
  1825. // limitations under the License.
  1826. //
  1827. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1828. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  1829. //
  1830. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1831. //
  1832. // This file contains Original Code and/or Modifications of Original Code
  1833. // as defined in and that are subject to the Apple Public Source License
  1834. // Version 2.0 (the 'License'). You may not use this file except in
  1835. // compliance with the License. The rights granted to you under the License
  1836. // may not be used to create, or enable the creation or redistribution of,
  1837. // unlawful or unlicensed copies of an Apple operating system, or to
  1838. // circumvent, violate, or enable the circumvention or violation of, any
  1839. // terms of an Apple operating system software license agreement.
  1840. //
  1841. // Please obtain a copy of the License at
  1842. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1843. //
  1844. // The Original Code and all software distributed under the License are
  1845. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1846. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1847. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1848. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1849. // Please see the License for the specific language governing rights and
  1850. // limitations under the License.
  1851. //
  1852. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1853. type Dev_t = X__darwin_dev_t /* _dev_t.h:31:31 */ // device number
  1854. type Fixpt_t = U_int32_t /* types.h:105:33 */ // fixed point number
  1855. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  1856. //
  1857. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1858. //
  1859. // This file contains Original Code and/or Modifications of Original Code
  1860. // as defined in and that are subject to the Apple Public Source License
  1861. // Version 2.0 (the 'License'). You may not use this file except in
  1862. // compliance with the License. The rights granted to you under the License
  1863. // may not be used to create, or enable the creation or redistribution of,
  1864. // unlawful or unlicensed copies of an Apple operating system, or to
  1865. // circumvent, violate, or enable the circumvention or violation of, any
  1866. // terms of an Apple operating system software license agreement.
  1867. //
  1868. // Please obtain a copy of the License at
  1869. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1870. //
  1871. // The Original Code and all software distributed under the License are
  1872. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1873. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1874. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1875. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1876. // Please see the License for the specific language governing rights and
  1877. // limitations under the License.
  1878. //
  1879. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1880. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  1881. //
  1882. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1883. //
  1884. // This file contains Original Code and/or Modifications of Original Code
  1885. // as defined in and that are subject to the Apple Public Source License
  1886. // Version 2.0 (the 'License'). You may not use this file except in
  1887. // compliance with the License. The rights granted to you under the License
  1888. // may not be used to create, or enable the creation or redistribution of,
  1889. // unlawful or unlicensed copies of an Apple operating system, or to
  1890. // circumvent, violate, or enable the circumvention or violation of, any
  1891. // terms of an Apple operating system software license agreement.
  1892. //
  1893. // Please obtain a copy of the License at
  1894. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1895. //
  1896. // The Original Code and all software distributed under the License are
  1897. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1898. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1899. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1900. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1901. // Please see the License for the specific language governing rights and
  1902. // limitations under the License.
  1903. //
  1904. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1905. type Blkcnt_t = X__darwin_blkcnt_t /* _blkcnt_t.h:31:34 */
  1906. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  1907. //
  1908. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1909. //
  1910. // This file contains Original Code and/or Modifications of Original Code
  1911. // as defined in and that are subject to the Apple Public Source License
  1912. // Version 2.0 (the 'License'). You may not use this file except in
  1913. // compliance with the License. The rights granted to you under the License
  1914. // may not be used to create, or enable the creation or redistribution of,
  1915. // unlawful or unlicensed copies of an Apple operating system, or to
  1916. // circumvent, violate, or enable the circumvention or violation of, any
  1917. // terms of an Apple operating system software license agreement.
  1918. //
  1919. // Please obtain a copy of the License at
  1920. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1921. //
  1922. // The Original Code and all software distributed under the License are
  1923. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1924. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1925. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1926. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1927. // Please see the License for the specific language governing rights and
  1928. // limitations under the License.
  1929. //
  1930. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1931. // Copyright (c) 2003-2007 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 Blksize_t = X__darwin_blksize_t /* _blksize_t.h:31:35 */
  1957. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  1958. //
  1959. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1960. //
  1961. // This file contains Original Code and/or Modifications of Original Code
  1962. // as defined in and that are subject to the Apple Public Source License
  1963. // Version 2.0 (the 'License'). You may not use this file except in
  1964. // compliance with the License. The rights granted to you under the License
  1965. // may not be used to create, or enable the creation or redistribution of,
  1966. // unlawful or unlicensed copies of an Apple operating system, or to
  1967. // circumvent, violate, or enable the circumvention or violation of, any
  1968. // terms of an Apple operating system software license agreement.
  1969. //
  1970. // Please obtain a copy of the License at
  1971. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1972. //
  1973. // The Original Code and all software distributed under the License are
  1974. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1975. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1976. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1977. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1978. // Please see the License for the specific language governing rights and
  1979. // limitations under the License.
  1980. //
  1981. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1982. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  1983. //
  1984. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1985. //
  1986. // This file contains Original Code and/or Modifications of Original Code
  1987. // as defined in and that are subject to the Apple Public Source License
  1988. // Version 2.0 (the 'License'). You may not use this file except in
  1989. // compliance with the License. The rights granted to you under the License
  1990. // may not be used to create, or enable the creation or redistribution of,
  1991. // unlawful or unlicensed copies of an Apple operating system, or to
  1992. // circumvent, violate, or enable the circumvention or violation of, any
  1993. // terms of an Apple operating system software license agreement.
  1994. //
  1995. // Please obtain a copy of the License at
  1996. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1997. //
  1998. // The Original Code and all software distributed under the License are
  1999. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2000. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2001. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2002. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2003. // Please see the License for the specific language governing rights and
  2004. // limitations under the License.
  2005. //
  2006. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2007. type Gid_t = X__darwin_gid_t /* _gid_t.h:31:25 */
  2008. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2009. //
  2010. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2011. //
  2012. // This file contains Original Code and/or Modifications of Original Code
  2013. // as defined in and that are subject to the Apple Public Source License
  2014. // Version 2.0 (the 'License'). You may not use this file except in
  2015. // compliance with the License. The rights granted to you under the License
  2016. // may not be used to create, or enable the creation or redistribution of,
  2017. // unlawful or unlicensed copies of an Apple operating system, or to
  2018. // circumvent, violate, or enable the circumvention or violation of, any
  2019. // terms of an Apple operating system software license agreement.
  2020. //
  2021. // Please obtain a copy of the License at
  2022. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2023. //
  2024. // The Original Code and all software distributed under the License are
  2025. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2026. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2027. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2028. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2029. // Please see the License for the specific language governing rights and
  2030. // limitations under the License.
  2031. //
  2032. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2033. // Copyright (c) 2000-2007 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 1995 NeXT Computer, Inc. All rights reserved.
  2059. type In_addr_t = X__uint32_t /* _in_addr_t.h:31:25 */ // base type for internet address
  2060. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2061. //
  2062. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2063. //
  2064. // This file contains Original Code and/or Modifications of Original Code
  2065. // as defined in and that are subject to the Apple Public Source License
  2066. // Version 2.0 (the 'License'). You may not use this file except in
  2067. // compliance with the License. The rights granted to you under the License
  2068. // may not be used to create, or enable the creation or redistribution of,
  2069. // unlawful or unlicensed copies of an Apple operating system, or to
  2070. // circumvent, violate, or enable the circumvention or violation of, any
  2071. // terms of an Apple operating system software license agreement.
  2072. //
  2073. // Please obtain a copy of the License at
  2074. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2075. //
  2076. // The Original Code and all software distributed under the License are
  2077. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2078. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2079. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2080. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2081. // Please see the License for the specific language governing rights and
  2082. // limitations under the License.
  2083. //
  2084. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2085. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  2086. //
  2087. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2088. //
  2089. // This file contains Original Code and/or Modifications of Original Code
  2090. // as defined in and that are subject to the Apple Public Source License
  2091. // Version 2.0 (the 'License'). You may not use this file except in
  2092. // compliance with the License. The rights granted to you under the License
  2093. // may not be used to create, or enable the creation or redistribution of,
  2094. // unlawful or unlicensed copies of an Apple operating system, or to
  2095. // circumvent, violate, or enable the circumvention or violation of, any
  2096. // terms of an Apple operating system software license agreement.
  2097. //
  2098. // Please obtain a copy of the License at
  2099. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2100. //
  2101. // The Original Code and all software distributed under the License are
  2102. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2103. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2104. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2105. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2106. // Please see the License for the specific language governing rights and
  2107. // limitations under the License.
  2108. //
  2109. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2110. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  2111. type In_port_t = X__uint16_t /* _in_port_t.h:31:33 */
  2112. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2113. //
  2114. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2115. //
  2116. // This file contains Original Code and/or Modifications of Original Code
  2117. // as defined in and that are subject to the Apple Public Source License
  2118. // Version 2.0 (the 'License'). You may not use this file except in
  2119. // compliance with the License. The rights granted to you under the License
  2120. // may not be used to create, or enable the creation or redistribution of,
  2121. // unlawful or unlicensed copies of an Apple operating system, or to
  2122. // circumvent, violate, or enable the circumvention or violation of, any
  2123. // terms of an Apple operating system software license agreement.
  2124. //
  2125. // Please obtain a copy of the License at
  2126. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2127. //
  2128. // The Original Code and all software distributed under the License are
  2129. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2130. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2131. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2132. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2133. // Please see the License for the specific language governing rights and
  2134. // limitations under the License.
  2135. //
  2136. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2137. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  2138. //
  2139. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2140. //
  2141. // This file contains Original Code and/or Modifications of Original Code
  2142. // as defined in and that are subject to the Apple Public Source License
  2143. // Version 2.0 (the 'License'). You may not use this file except in
  2144. // compliance with the License. The rights granted to you under the License
  2145. // may not be used to create, or enable the creation or redistribution of,
  2146. // unlawful or unlicensed copies of an Apple operating system, or to
  2147. // circumvent, violate, or enable the circumvention or violation of, any
  2148. // terms of an Apple operating system software license agreement.
  2149. //
  2150. // Please obtain a copy of the License at
  2151. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2152. //
  2153. // The Original Code and all software distributed under the License are
  2154. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2155. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2156. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2157. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2158. // Please see the License for the specific language governing rights and
  2159. // limitations under the License.
  2160. //
  2161. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2162. type Ino_t = X__darwin_ino_t /* _ino_t.h:31:33 */ // inode number
  2163. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2164. //
  2165. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2166. //
  2167. // This file contains Original Code and/or Modifications of Original Code
  2168. // as defined in and that are subject to the Apple Public Source License
  2169. // Version 2.0 (the 'License'). You may not use this file except in
  2170. // compliance with the License. The rights granted to you under the License
  2171. // may not be used to create, or enable the creation or redistribution of,
  2172. // unlawful or unlicensed copies of an Apple operating system, or to
  2173. // circumvent, violate, or enable the circumvention or violation of, any
  2174. // terms of an Apple operating system software license agreement.
  2175. //
  2176. // Please obtain a copy of the License at
  2177. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2178. //
  2179. // The Original Code and all software distributed under the License are
  2180. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2181. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2182. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2183. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2184. // Please see the License for the specific language governing rights and
  2185. // limitations under the License.
  2186. //
  2187. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2188. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  2189. //
  2190. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2191. //
  2192. // This file contains Original Code and/or Modifications of Original Code
  2193. // as defined in and that are subject to the Apple Public Source License
  2194. // Version 2.0 (the 'License'). You may not use this file except in
  2195. // compliance with the License. The rights granted to you under the License
  2196. // may not be used to create, or enable the creation or redistribution of,
  2197. // unlawful or unlicensed copies of an Apple operating system, or to
  2198. // circumvent, violate, or enable the circumvention or violation of, any
  2199. // terms of an Apple operating system software license agreement.
  2200. //
  2201. // Please obtain a copy of the License at
  2202. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2203. //
  2204. // The Original Code and all software distributed under the License are
  2205. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2206. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2207. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2208. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2209. // Please see the License for the specific language governing rights and
  2210. // limitations under the License.
  2211. //
  2212. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2213. type Ino64_t = X__darwin_ino64_t /* _ino64_t.h:31:33 */ // 64bit inode number
  2214. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2215. //
  2216. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2217. //
  2218. // This file contains Original Code and/or Modifications of Original Code
  2219. // as defined in and that are subject to the Apple Public Source License
  2220. // Version 2.0 (the 'License'). You may not use this file except in
  2221. // compliance with the License. The rights granted to you under the License
  2222. // may not be used to create, or enable the creation or redistribution of,
  2223. // unlawful or unlicensed copies of an Apple operating system, or to
  2224. // circumvent, violate, or enable the circumvention or violation of, any
  2225. // terms of an Apple operating system software license agreement.
  2226. //
  2227. // Please obtain a copy of the License at
  2228. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2229. //
  2230. // The Original Code and all software distributed under the License are
  2231. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2232. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2233. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2234. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2235. // Please see the License for the specific language governing rights and
  2236. // limitations under the License.
  2237. //
  2238. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2239. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  2240. //
  2241. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2242. //
  2243. // This file contains Original Code and/or Modifications of Original Code
  2244. // as defined in and that are subject to the Apple Public Source License
  2245. // Version 2.0 (the 'License'). You may not use this file except in
  2246. // compliance with the License. The rights granted to you under the License
  2247. // may not be used to create, or enable the creation or redistribution of,
  2248. // unlawful or unlicensed copies of an Apple operating system, or to
  2249. // circumvent, violate, or enable the circumvention or violation of, any
  2250. // terms of an Apple operating system software license agreement.
  2251. //
  2252. // Please obtain a copy of the License at
  2253. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2254. //
  2255. // The Original Code and all software distributed under the License are
  2256. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2257. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2258. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2259. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2260. // Please see the License for the specific language governing rights and
  2261. // limitations under the License.
  2262. //
  2263. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2264. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  2265. type Key_t = X__int32_t /* _key_t.h:31:26 */ // IPC key (for Sys V IPC)
  2266. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2267. //
  2268. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2269. //
  2270. // This file contains Original Code and/or Modifications of Original Code
  2271. // as defined in and that are subject to the Apple Public Source License
  2272. // Version 2.0 (the 'License'). You may not use this file except in
  2273. // compliance with the License. The rights granted to you under the License
  2274. // may not be used to create, or enable the creation or redistribution of,
  2275. // unlawful or unlicensed copies of an Apple operating system, or to
  2276. // circumvent, violate, or enable the circumvention or violation of, any
  2277. // terms of an Apple operating system software license agreement.
  2278. //
  2279. // Please obtain a copy of the License at
  2280. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2281. //
  2282. // The Original Code and all software distributed under the License are
  2283. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2284. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2285. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2286. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2287. // Please see the License for the specific language governing rights and
  2288. // limitations under the License.
  2289. //
  2290. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2291. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  2292. //
  2293. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2294. //
  2295. // This file contains Original Code and/or Modifications of Original Code
  2296. // as defined in and that are subject to the Apple Public Source License
  2297. // Version 2.0 (the 'License'). You may not use this file except in
  2298. // compliance with the License. The rights granted to you under the License
  2299. // may not be used to create, or enable the creation or redistribution of,
  2300. // unlawful or unlicensed copies of an Apple operating system, or to
  2301. // circumvent, violate, or enable the circumvention or violation of, any
  2302. // terms of an Apple operating system software license agreement.
  2303. //
  2304. // Please obtain a copy of the License at
  2305. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2306. //
  2307. // The Original Code and all software distributed under the License are
  2308. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2309. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2310. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2311. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2312. // Please see the License for the specific language governing rights and
  2313. // limitations under the License.
  2314. //
  2315. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2316. type Mode_t = X__darwin_mode_t /* _mode_t.h:31:33 */
  2317. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2318. //
  2319. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2320. //
  2321. // This file contains Original Code and/or Modifications of Original Code
  2322. // as defined in and that are subject to the Apple Public Source License
  2323. // Version 2.0 (the 'License'). You may not use this file except in
  2324. // compliance with the License. The rights granted to you under the License
  2325. // may not be used to create, or enable the creation or redistribution of,
  2326. // unlawful or unlicensed copies of an Apple operating system, or to
  2327. // circumvent, violate, or enable the circumvention or violation of, any
  2328. // terms of an Apple operating system software license agreement.
  2329. //
  2330. // Please obtain a copy of the License at
  2331. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2332. //
  2333. // The Original Code and all software distributed under the License are
  2334. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2335. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2336. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2337. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2338. // Please see the License for the specific language governing rights and
  2339. // limitations under the License.
  2340. //
  2341. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2342. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  2343. //
  2344. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2345. //
  2346. // This file contains Original Code and/or Modifications of Original Code
  2347. // as defined in and that are subject to the Apple Public Source License
  2348. // Version 2.0 (the 'License'). You may not use this file except in
  2349. // compliance with the License. The rights granted to you under the License
  2350. // may not be used to create, or enable the creation or redistribution of,
  2351. // unlawful or unlicensed copies of an Apple operating system, or to
  2352. // circumvent, violate, or enable the circumvention or violation of, any
  2353. // terms of an Apple operating system software license agreement.
  2354. //
  2355. // Please obtain a copy of the License at
  2356. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2357. //
  2358. // The Original Code and all software distributed under the License are
  2359. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2360. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2361. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2362. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2363. // Please see the License for the specific language governing rights and
  2364. // limitations under the License.
  2365. //
  2366. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2367. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  2368. type Nlink_t = X__uint16_t /* _nlink_t.h:31:27 */ // link count
  2369. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2370. //
  2371. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2372. //
  2373. // This file contains Original Code and/or Modifications of Original Code
  2374. // as defined in and that are subject to the Apple Public Source License
  2375. // Version 2.0 (the 'License'). You may not use this file except in
  2376. // compliance with the License. The rights granted to you under the License
  2377. // may not be used to create, or enable the creation or redistribution of,
  2378. // unlawful or unlicensed copies of an Apple operating system, or to
  2379. // circumvent, violate, or enable the circumvention or violation of, any
  2380. // terms of an Apple operating system software license agreement.
  2381. //
  2382. // Please obtain a copy of the License at
  2383. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2384. //
  2385. // The Original Code and all software distributed under the License are
  2386. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2387. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2388. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2389. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2390. // Please see the License for the specific language governing rights and
  2391. // limitations under the License.
  2392. //
  2393. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2394. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  2395. //
  2396. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2397. //
  2398. // This file contains Original Code and/or Modifications of Original Code
  2399. // as defined in and that are subject to the Apple Public Source License
  2400. // Version 2.0 (the 'License'). You may not use this file except in
  2401. // compliance with the License. The rights granted to you under the License
  2402. // may not be used to create, or enable the creation or redistribution of,
  2403. // unlawful or unlicensed copies of an Apple operating system, or to
  2404. // circumvent, violate, or enable the circumvention or violation of, any
  2405. // terms of an Apple operating system software license agreement.
  2406. //
  2407. // Please obtain a copy of the License at
  2408. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2409. //
  2410. // The Original Code and all software distributed under the License are
  2411. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2412. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2413. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2414. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2415. // Please see the License for the specific language governing rights and
  2416. // limitations under the License.
  2417. //
  2418. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2419. type Id_t = X__darwin_id_t /* _id_t.h:31:25 */ // can hold pid_t, gid_t, or uid_t
  2420. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2421. //
  2422. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2423. //
  2424. // This file contains Original Code and/or Modifications of Original Code
  2425. // as defined in and that are subject to the Apple Public Source License
  2426. // Version 2.0 (the 'License'). You may not use this file except in
  2427. // compliance with the License. The rights granted to you under the License
  2428. // may not be used to create, or enable the creation or redistribution of,
  2429. // unlawful or unlicensed copies of an Apple operating system, or to
  2430. // circumvent, violate, or enable the circumvention or violation of, any
  2431. // terms of an Apple operating system software license agreement.
  2432. //
  2433. // Please obtain a copy of the License at
  2434. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2435. //
  2436. // The Original Code and all software distributed under the License are
  2437. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2438. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2439. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2440. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2441. // Please see the License for the specific language governing rights and
  2442. // limitations under the License.
  2443. //
  2444. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2445. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  2446. //
  2447. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2448. //
  2449. // This file contains Original Code and/or Modifications of Original Code
  2450. // as defined in and that are subject to the Apple Public Source License
  2451. // Version 2.0 (the 'License'). You may not use this file except in
  2452. // compliance with the License. The rights granted to you under the License
  2453. // may not be used to create, or enable the creation or redistribution of,
  2454. // unlawful or unlicensed copies of an Apple operating system, or to
  2455. // circumvent, violate, or enable the circumvention or violation of, any
  2456. // terms of an Apple operating system software license agreement.
  2457. //
  2458. // Please obtain a copy of the License at
  2459. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2460. //
  2461. // The Original Code and all software distributed under the License are
  2462. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2463. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2464. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2465. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2466. // Please see the License for the specific language governing rights and
  2467. // limitations under the License.
  2468. //
  2469. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2470. type Pid_t = X__darwin_pid_t /* _pid_t.h:31:31 */
  2471. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2472. //
  2473. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2474. //
  2475. // This file contains Original Code and/or Modifications of Original Code
  2476. // as defined in and that are subject to the Apple Public Source License
  2477. // Version 2.0 (the 'License'). You may not use this file except in
  2478. // compliance with the License. The rights granted to you under the License
  2479. // may not be used to create, or enable the creation or redistribution of,
  2480. // unlawful or unlicensed copies of an Apple operating system, or to
  2481. // circumvent, violate, or enable the circumvention or violation of, any
  2482. // terms of an Apple operating system software license agreement.
  2483. //
  2484. // Please obtain a copy of the License at
  2485. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2486. //
  2487. // The Original Code and all software distributed under the License are
  2488. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2489. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2490. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2491. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2492. // Please see the License for the specific language governing rights and
  2493. // limitations under the License.
  2494. //
  2495. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2496. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  2497. //
  2498. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2499. //
  2500. // This file contains Original Code and/or Modifications of Original Code
  2501. // as defined in and that are subject to the Apple Public Source License
  2502. // Version 2.0 (the 'License'). You may not use this file except in
  2503. // compliance with the License. The rights granted to you under the License
  2504. // may not be used to create, or enable the creation or redistribution of,
  2505. // unlawful or unlicensed copies of an Apple operating system, or to
  2506. // circumvent, violate, or enable the circumvention or violation of, any
  2507. // terms of an Apple operating system software license agreement.
  2508. //
  2509. // Please obtain a copy of the License at
  2510. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2511. //
  2512. // The Original Code and all software distributed under the License are
  2513. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2514. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2515. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2516. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2517. // Please see the License for the specific language governing rights and
  2518. // limitations under the License.
  2519. //
  2520. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2521. type Off_t = X__darwin_off_t /* _off_t.h:31:33 */
  2522. type Segsz_t = Int32_t /* types.h:125:33 */ // segment size
  2523. type Swblk_t = Int32_t /* types.h:126:33 */ // swap offset
  2524. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2525. //
  2526. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2527. //
  2528. // This file contains Original Code and/or Modifications of Original Code
  2529. // as defined in and that are subject to the Apple Public Source License
  2530. // Version 2.0 (the 'License'). You may not use this file except in
  2531. // compliance with the License. The rights granted to you under the License
  2532. // may not be used to create, or enable the creation or redistribution of,
  2533. // unlawful or unlicensed copies of an Apple operating system, or to
  2534. // circumvent, violate, or enable the circumvention or violation of, any
  2535. // terms of an Apple operating system software license agreement.
  2536. //
  2537. // Please obtain a copy of the License at
  2538. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2539. //
  2540. // The Original Code and all software distributed under the License are
  2541. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2542. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2543. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2544. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2545. // Please see the License for the specific language governing rights and
  2546. // limitations under the License.
  2547. //
  2548. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2549. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  2550. //
  2551. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2552. //
  2553. // This file contains Original Code and/or Modifications of Original Code
  2554. // as defined in and that are subject to the Apple Public Source License
  2555. // Version 2.0 (the 'License'). You may not use this file except in
  2556. // compliance with the License. The rights granted to you under the License
  2557. // may not be used to create, or enable the creation or redistribution of,
  2558. // unlawful or unlicensed copies of an Apple operating system, or to
  2559. // circumvent, violate, or enable the circumvention or violation of, any
  2560. // terms of an Apple operating system software license agreement.
  2561. //
  2562. // Please obtain a copy of the License at
  2563. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2564. //
  2565. // The Original Code and all software distributed under the License are
  2566. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2567. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2568. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2569. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2570. // Please see the License for the specific language governing rights and
  2571. // limitations under the License.
  2572. //
  2573. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2574. type Uid_t = X__darwin_uid_t /* _uid_t.h:31:31 */
  2575. // Major, minor numbers, dev_t's.
  2576. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2577. //
  2578. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2579. //
  2580. // This file contains Original Code and/or Modifications of Original Code
  2581. // as defined in and that are subject to the Apple Public Source License
  2582. // Version 2.0 (the 'License'). You may not use this file except in
  2583. // compliance with the License. The rights granted to you under the License
  2584. // may not be used to create, or enable the creation or redistribution of,
  2585. // unlawful or unlicensed copies of an Apple operating system, or to
  2586. // circumvent, violate, or enable the circumvention or violation of, any
  2587. // terms of an Apple operating system software license agreement.
  2588. //
  2589. // Please obtain a copy of the License at
  2590. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2591. //
  2592. // The Original Code and all software distributed under the License are
  2593. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2594. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2595. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2596. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2597. // Please see the License for the specific language governing rights and
  2598. // limitations under the License.
  2599. //
  2600. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2601. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  2602. //
  2603. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2604. //
  2605. // This file contains Original Code and/or Modifications of Original Code
  2606. // as defined in and that are subject to the Apple Public Source License
  2607. // Version 2.0 (the 'License'). You may not use this file except in
  2608. // compliance with the License. The rights granted to you under the License
  2609. // may not be used to create, or enable the creation or redistribution of,
  2610. // unlawful or unlicensed copies of an Apple operating system, or to
  2611. // circumvent, violate, or enable the circumvention or violation of, any
  2612. // terms of an Apple operating system software license agreement.
  2613. //
  2614. // Please obtain a copy of the License at
  2615. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2616. //
  2617. // The Original Code and all software distributed under the License are
  2618. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2619. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2620. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2621. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2622. // Please see the License for the specific language governing rights and
  2623. // limitations under the License.
  2624. //
  2625. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2626. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  2627. type Clock_t = X__darwin_clock_t /* _clock_t.h:31:33 */
  2628. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2629. //
  2630. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2631. //
  2632. // This file contains Original Code and/or Modifications of Original Code
  2633. // as defined in and that are subject to the Apple Public Source License
  2634. // Version 2.0 (the 'License'). You may not use this file except in
  2635. // compliance with the License. The rights granted to you under the License
  2636. // may not be used to create, or enable the creation or redistribution of,
  2637. // unlawful or unlicensed copies of an Apple operating system, or to
  2638. // circumvent, violate, or enable the circumvention or violation of, any
  2639. // terms of an Apple operating system software license agreement.
  2640. //
  2641. // Please obtain a copy of the License at
  2642. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2643. //
  2644. // The Original Code and all software distributed under the License are
  2645. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2646. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2647. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2648. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2649. // Please see the License for the specific language governing rights and
  2650. // limitations under the License.
  2651. //
  2652. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2653. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  2654. //
  2655. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2656. //
  2657. // This file contains Original Code and/or Modifications of Original Code
  2658. // as defined in and that are subject to the Apple Public Source License
  2659. // Version 2.0 (the 'License'). You may not use this file except in
  2660. // compliance with the License. The rights granted to you under the License
  2661. // may not be used to create, or enable the creation or redistribution of,
  2662. // unlawful or unlicensed copies of an Apple operating system, or to
  2663. // circumvent, violate, or enable the circumvention or violation of, any
  2664. // terms of an Apple operating system software license agreement.
  2665. //
  2666. // Please obtain a copy of the License at
  2667. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2668. //
  2669. // The Original Code and all software distributed under the License are
  2670. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2671. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2672. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2673. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2674. // Please see the License for the specific language governing rights and
  2675. // limitations under the License.
  2676. //
  2677. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2678. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  2679. type Ssize_t = X__darwin_ssize_t /* _ssize_t.h:31:33 */
  2680. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2681. //
  2682. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2683. //
  2684. // This file contains Original Code and/or Modifications of Original Code
  2685. // as defined in and that are subject to the Apple Public Source License
  2686. // Version 2.0 (the 'License'). You may not use this file except in
  2687. // compliance with the License. The rights granted to you under the License
  2688. // may not be used to create, or enable the creation or redistribution of,
  2689. // unlawful or unlicensed copies of an Apple operating system, or to
  2690. // circumvent, violate, or enable the circumvention or violation of, any
  2691. // terms of an Apple operating system software license agreement.
  2692. //
  2693. // Please obtain a copy of the License at
  2694. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2695. //
  2696. // The Original Code and all software distributed under the License are
  2697. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2698. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2699. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2700. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2701. // Please see the License for the specific language governing rights and
  2702. // limitations under the License.
  2703. //
  2704. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2705. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  2706. //
  2707. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2708. //
  2709. // This file contains Original Code and/or Modifications of Original Code
  2710. // as defined in and that are subject to the Apple Public Source License
  2711. // Version 2.0 (the 'License'). You may not use this file except in
  2712. // compliance with the License. The rights granted to you under the License
  2713. // may not be used to create, or enable the creation or redistribution of,
  2714. // unlawful or unlicensed copies of an Apple operating system, or to
  2715. // circumvent, violate, or enable the circumvention or violation of, any
  2716. // terms of an Apple operating system software license agreement.
  2717. //
  2718. // Please obtain a copy of the License at
  2719. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2720. //
  2721. // The Original Code and all software distributed under the License are
  2722. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2723. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2724. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2725. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2726. // Please see the License for the specific language governing rights and
  2727. // limitations under the License.
  2728. //
  2729. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2730. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  2731. type Time_t = X__darwin_time_t /* _time_t.h:31:33 */
  2732. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2733. //
  2734. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2735. //
  2736. // This file contains Original Code and/or Modifications of Original Code
  2737. // as defined in and that are subject to the Apple Public Source License
  2738. // Version 2.0 (the 'License'). You may not use this file except in
  2739. // compliance with the License. The rights granted to you under the License
  2740. // may not be used to create, or enable the creation or redistribution of,
  2741. // unlawful or unlicensed copies of an Apple operating system, or to
  2742. // circumvent, violate, or enable the circumvention or violation of, any
  2743. // terms of an Apple operating system software license agreement.
  2744. //
  2745. // Please obtain a copy of the License at
  2746. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2747. //
  2748. // The Original Code and all software distributed under the License are
  2749. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2750. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2751. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2752. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2753. // Please see the License for the specific language governing rights and
  2754. // limitations under the License.
  2755. //
  2756. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2757. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  2758. //
  2759. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2760. //
  2761. // This file contains Original Code and/or Modifications of Original Code
  2762. // as defined in and that are subject to the Apple Public Source License
  2763. // Version 2.0 (the 'License'). You may not use this file except in
  2764. // compliance with the License. The rights granted to you under the License
  2765. // may not be used to create, or enable the creation or redistribution of,
  2766. // unlawful or unlicensed copies of an Apple operating system, or to
  2767. // circumvent, violate, or enable the circumvention or violation of, any
  2768. // terms of an Apple operating system software license agreement.
  2769. //
  2770. // Please obtain a copy of the License at
  2771. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2772. //
  2773. // The Original Code and all software distributed under the License are
  2774. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2775. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2776. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2777. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2778. // Please see the License for the specific language governing rights and
  2779. // limitations under the License.
  2780. //
  2781. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2782. type Useconds_t = X__darwin_useconds_t /* _useconds_t.h:31:33 */
  2783. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2784. //
  2785. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2786. //
  2787. // This file contains Original Code and/or Modifications of Original Code
  2788. // as defined in and that are subject to the Apple Public Source License
  2789. // Version 2.0 (the 'License'). You may not use this file except in
  2790. // compliance with the License. The rights granted to you under the License
  2791. // may not be used to create, or enable the creation or redistribution of,
  2792. // unlawful or unlicensed copies of an Apple operating system, or to
  2793. // circumvent, violate, or enable the circumvention or violation of, any
  2794. // terms of an Apple operating system software license agreement.
  2795. //
  2796. // Please obtain a copy of the License at
  2797. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2798. //
  2799. // The Original Code and all software distributed under the License are
  2800. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2801. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2802. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2803. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2804. // Please see the License for the specific language governing rights and
  2805. // limitations under the License.
  2806. //
  2807. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2808. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  2809. //
  2810. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2811. //
  2812. // This file contains Original Code and/or Modifications of Original Code
  2813. // as defined in and that are subject to the Apple Public Source License
  2814. // Version 2.0 (the 'License'). You may not use this file except in
  2815. // compliance with the License. The rights granted to you under the License
  2816. // may not be used to create, or enable the creation or redistribution of,
  2817. // unlawful or unlicensed copies of an Apple operating system, or to
  2818. // circumvent, violate, or enable the circumvention or violation of, any
  2819. // terms of an Apple operating system software license agreement.
  2820. //
  2821. // Please obtain a copy of the License at
  2822. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2823. //
  2824. // The Original Code and all software distributed under the License are
  2825. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2826. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2827. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2828. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2829. // Please see the License for the specific language governing rights and
  2830. // limitations under the License.
  2831. //
  2832. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2833. type Suseconds_t = X__darwin_suseconds_t /* _suseconds_t.h:31:33 */
  2834. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2835. //
  2836. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2837. //
  2838. // This file contains Original Code and/or Modifications of Original Code
  2839. // as defined in and that are subject to the Apple Public Source License
  2840. // Version 2.0 (the 'License'). You may not use this file except in
  2841. // compliance with the License. The rights granted to you under the License
  2842. // may not be used to create, or enable the creation or redistribution of,
  2843. // unlawful or unlicensed copies of an Apple operating system, or to
  2844. // circumvent, violate, or enable the circumvention or violation of, any
  2845. // terms of an Apple operating system software license agreement.
  2846. //
  2847. // Please obtain a copy of the License at
  2848. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2849. //
  2850. // The Original Code and all software distributed under the License are
  2851. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2852. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2853. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2854. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2855. // Please see the License for the specific language governing rights and
  2856. // limitations under the License.
  2857. //
  2858. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2859. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  2860. //
  2861. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2862. //
  2863. // This file contains Original Code and/or Modifications of Original Code
  2864. // as defined in and that are subject to the Apple Public Source License
  2865. // Version 2.0 (the 'License'). You may not use this file except in
  2866. // compliance with the License. The rights granted to you under the License
  2867. // may not be used to create, or enable the creation or redistribution of,
  2868. // unlawful or unlicensed copies of an Apple operating system, or to
  2869. // circumvent, violate, or enable the circumvention or violation of, any
  2870. // terms of an Apple operating system software license agreement.
  2871. //
  2872. // Please obtain a copy of the License at
  2873. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2874. //
  2875. // The Original Code and all software distributed under the License are
  2876. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2877. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2878. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2879. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2880. // Please see the License for the specific language governing rights and
  2881. // limitations under the License.
  2882. //
  2883. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2884. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  2885. type Rsize_t = X__darwin_size_t /* _rsize_t.h:31:32 */
  2886. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2887. //
  2888. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2889. //
  2890. // This file contains Original Code and/or Modifications of Original Code
  2891. // as defined in and that are subject to the Apple Public Source License
  2892. // Version 2.0 (the 'License'). You may not use this file except in
  2893. // compliance with the License. The rights granted to you under the License
  2894. // may not be used to create, or enable the creation or redistribution of,
  2895. // unlawful or unlicensed copies of an Apple operating system, or to
  2896. // circumvent, violate, or enable the circumvention or violation of, any
  2897. // terms of an Apple operating system software license agreement.
  2898. //
  2899. // Please obtain a copy of the License at
  2900. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2901. //
  2902. // The Original Code and all software distributed under the License are
  2903. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2904. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2905. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2906. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2907. // Please see the License for the specific language governing rights and
  2908. // limitations under the License.
  2909. //
  2910. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2911. type Errno_t = int32 /* _errno_t.h:30:32 */
  2912. // This code is present here in order to maintain historical backward
  2913. // compatability, and is intended to be removed at some point in the
  2914. // future; please include <sys/select.h> instead.
  2915. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2916. //
  2917. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2918. //
  2919. // This file contains Original Code and/or Modifications of Original Code
  2920. // as defined in and that are subject to the Apple Public Source License
  2921. // Version 2.0 (the 'License'). You may not use this file except in
  2922. // compliance with the License. The rights granted to you under the License
  2923. // may not be used to create, or enable the creation or redistribution of,
  2924. // unlawful or unlicensed copies of an Apple operating system, or to
  2925. // circumvent, violate, or enable the circumvention or violation of, any
  2926. // terms of an Apple operating system software license agreement.
  2927. //
  2928. // Please obtain a copy of the License at
  2929. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2930. //
  2931. // The Original Code and all software distributed under the License are
  2932. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2933. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2934. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2935. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2936. // Please see the License for the specific language governing rights and
  2937. // limitations under the License.
  2938. //
  2939. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2940. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  2941. //
  2942. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2943. //
  2944. // This file contains Original Code and/or Modifications of Original Code
  2945. // as defined in and that are subject to the Apple Public Source License
  2946. // Version 2.0 (the 'License'). You may not use this file except in
  2947. // compliance with the License. The rights granted to you under the License
  2948. // may not be used to create, or enable the creation or redistribution of,
  2949. // unlawful or unlicensed copies of an Apple operating system, or to
  2950. // circumvent, violate, or enable the circumvention or violation of, any
  2951. // terms of an Apple operating system software license agreement.
  2952. //
  2953. // Please obtain a copy of the License at
  2954. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2955. //
  2956. // The Original Code and all software distributed under the License are
  2957. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2958. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2959. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2960. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2961. // Please see the License for the specific language governing rights and
  2962. // limitations under the License.
  2963. //
  2964. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2965. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  2966. // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  2967. //
  2968. // @APPLE_LICENSE_HEADER_START@
  2969. //
  2970. // This file contains Original Code and/or Modifications of Original Code
  2971. // as defined in and that are subject to the Apple Public Source License
  2972. // Version 2.0 (the 'License'). You may not use this file except in
  2973. // compliance with the License. Please obtain a copy of the License at
  2974. // http://www.opensource.apple.com/apsl/ and read it before using this
  2975. // file.
  2976. //
  2977. // The Original Code and all software distributed under the License are
  2978. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2979. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2980. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2981. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2982. // Please see the License for the specific language governing rights and
  2983. // limitations under the License.
  2984. //
  2985. // @APPLE_LICENSE_HEADER_END@
  2986. //
  2987. // These macros are for use in OS header files. They enable function prototypes
  2988. // and Objective-C methods to be tagged with the OS version in which they
  2989. // were first available; and, if applicable, the OS version in which they
  2990. // became deprecated.
  2991. //
  2992. // The desktop Mac OS X and iOS each have different version numbers.
  2993. // The __OSX_AVAILABLE_STARTING() macro allows you to specify both the desktop
  2994. // and iOS version numbers. For instance:
  2995. // __OSX_AVAILABLE_STARTING(__MAC_10_2,__IPHONE_2_0)
  2996. // means the function/method was first available on Mac OS X 10.2 on the desktop
  2997. // and first available in iOS 2.0 on the iPhone.
  2998. //
  2999. // If a function is available on one platform, but not the other a _NA (not
  3000. // applicable) parameter is used. For instance:
  3001. // __OSX_AVAILABLE_STARTING(__MAC_10_3,__IPHONE_NA)
  3002. // means that the function/method was first available on Mac OS X 10.3, and it
  3003. // currently not implemented on the iPhone.
  3004. //
  3005. // At some point, a function/method may be deprecated. That means Apple
  3006. // recommends applications stop using the function, either because there is a
  3007. // better replacement or the functionality is being phased out. Deprecated
  3008. // functions/methods can be tagged with a __OSX_AVAILABLE_BUT_DEPRECATED()
  3009. // macro which specifies the OS version where the function became available
  3010. // as well as the OS version in which it became deprecated. For instance:
  3011. // __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0,__MAC_10_5,__IPHONE_NA,__IPHONE_NA)
  3012. // means that the function/method was introduced in Mac OS X 10.0, then
  3013. // became deprecated beginning in Mac OS X 10.5. On iOS the function
  3014. // has never been available.
  3015. //
  3016. // For these macros to function properly, a program must specify the OS version range
  3017. // it is targeting. The min OS version is specified as an option to the compiler:
  3018. // -mmacosx-version-min=10.x when building for Mac OS X, and -miphoneos-version-min=y.z
  3019. // when building for the iPhone. The upper bound for the OS version is rarely needed,
  3020. // but it can be set on the command line via: -D__MAC_OS_X_VERSION_MAX_ALLOWED=10x0 for
  3021. // Mac OS X and __IPHONE_OS_VERSION_MAX_ALLOWED = y0z00 for iOS.
  3022. //
  3023. // Examples:
  3024. //
  3025. // A function available in Mac OS X 10.5 and later, but not on the phone:
  3026. //
  3027. // extern void mymacfunc() __OSX_AVAILABLE_STARTING(__MAC_10_5,__IPHONE_NA);
  3028. //
  3029. //
  3030. // An Objective-C method in Mac OS X 10.5 and later, but not on the phone:
  3031. //
  3032. // @interface MyClass : NSObject
  3033. // -(void) mymacmethod __OSX_AVAILABLE_STARTING(__MAC_10_5,__IPHONE_NA);
  3034. // @end
  3035. //
  3036. //
  3037. // An enum available on the phone, but not available on Mac OS X:
  3038. //
  3039. // #if __IPHONE_OS_VERSION_MIN_REQUIRED
  3040. // enum { myEnum = 1 };
  3041. // #endif
  3042. // Note: this works when targeting the Mac OS X platform because
  3043. // __IPHONE_OS_VERSION_MIN_REQUIRED is undefined which evaluates to zero.
  3044. //
  3045. //
  3046. // An enum with values added in different iPhoneOS versions:
  3047. //
  3048. // enum {
  3049. // myX = 1, // Usable on iPhoneOS 2.1 and later
  3050. // myY = 2, // Usable on iPhoneOS 3.0 and later
  3051. // myZ = 3, // Usable on iPhoneOS 3.0 and later
  3052. // ...
  3053. // Note: you do not want to use #if with enumeration values
  3054. // when a client needs to see all values at compile time
  3055. // and use runtime logic to only use the viable values.
  3056. //
  3057. //
  3058. // It is also possible to use the *_VERSION_MIN_REQUIRED in source code to make one
  3059. // source base that can be compiled to target a range of OS versions. It is best
  3060. // to not use the _MAC_* and __IPHONE_* macros for comparisons, but rather their values.
  3061. // That is because you might get compiled on an old OS that does not define a later
  3062. // OS version macro, and in the C preprocessor undefined values evaluate to zero
  3063. // in expresssions, which could cause the #if expression to evaluate in an unexpected
  3064. // way.
  3065. //
  3066. // #ifdef __MAC_OS_X_VERSION_MIN_REQUIRED
  3067. // // code only compiled when targeting Mac OS X and not iPhone
  3068. // // note use of 1050 instead of __MAC_10_5
  3069. // #if __MAC_OS_X_VERSION_MIN_REQUIRED < 1050
  3070. // // code in here might run on pre-Leopard OS
  3071. // #else
  3072. // // code here can assume Leopard or later
  3073. // #endif
  3074. // #endif
  3075. //
  3076. //
  3077. // __API_TO_BE_DEPRECATED is used as a version number in API that will be deprecated
  3078. // in an upcoming release. This soft deprecation is an intermediate step before formal
  3079. // deprecation to notify developers about the API before compiler warnings are generated.
  3080. // You can find all places in your code that use soft deprecated API by redefining the
  3081. // value of this macro to your current minimum deployment target, for example:
  3082. // (macOS)
  3083. // clang -D__API_TO_BE_DEPRECATED=10.12 <other compiler flags>
  3084. // (iOS)
  3085. // clang -D__API_TO_BE_DEPRECATED=11.0 <other compiler flags>
  3086. // Copyright (c) 2019 by Apple Inc.. All rights reserved.
  3087. //
  3088. // @APPLE_LICENSE_HEADER_START@
  3089. //
  3090. // This file contains Original Code and/or Modifications of Original Code
  3091. // as defined in and that are subject to the Apple Public Source License
  3092. // Version 2.0 (the 'License'). You may not use this file except in
  3093. // compliance with the License. Please obtain a copy of the License at
  3094. // http://www.opensource.apple.com/apsl/ and read it before using this
  3095. // file.
  3096. //
  3097. // The Original Code and all software distributed under the License are
  3098. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3099. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3100. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3101. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3102. // Please see the License for the specific language governing rights and
  3103. // limitations under the License.
  3104. //
  3105. // @APPLE_LICENSE_HEADER_END@
  3106. // __MAC_NA is not defined to a value but is used as a token by macros to indicate that the API is unavailable
  3107. // __IPHONE_NA is not defined to a value but is used as a token by macros to indicate that the API is unavailable
  3108. // Set up standard Mac OS X versions
  3109. // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  3110. //
  3111. // @APPLE_LICENSE_HEADER_START@
  3112. //
  3113. // This file contains Original Code and/or Modifications of Original Code
  3114. // as defined in and that are subject to the Apple Public Source License
  3115. // Version 2.0 (the 'License'). You may not use this file except in
  3116. // compliance with the License. Please obtain a copy of the License at
  3117. // http://www.opensource.apple.com/apsl/ and read it before using this
  3118. // file.
  3119. //
  3120. // The Original Code and all software distributed under the License are
  3121. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3122. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3123. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3124. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3125. // Please see the License for the specific language governing rights and
  3126. // limitations under the License.
  3127. //
  3128. // @APPLE_LICENSE_HEADER_END@
  3129. //
  3130. // File: AvailabilityInternal.h
  3131. //
  3132. // Contains: implementation details of __OSX_AVAILABLE_* macros from <Availability.h>
  3133. //
  3134. // compiler for Mac OS X sets __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__
  3135. // make sure a default max version is set
  3136. //
  3137. // Macros for defining which versions/platform a given symbol can be used.
  3138. //
  3139. // @see http://clang.llvm.org/docs/AttributeReference.html#availability
  3140. //
  3141. // Evaluate to nothing for compilers that don't support availability.
  3142. // Swift compiler version
  3143. // Allows for project-agnostic "epochs" for frameworks imported into Swift via the Clang importer, like #if _compiler_version for Swift
  3144. // Example:
  3145. //
  3146. // #if __swift_compiler_version_at_least(800, 2, 20)
  3147. // - (nonnull NSString *)description;
  3148. // #else
  3149. // - (NSString *)description;
  3150. // #endif
  3151. // If __SPI_AVAILABLE has not been defined elsewhere, disable it.
  3152. // for use to document app extension usage
  3153. // for use marking APIs available info for Mac OSX
  3154. // for use marking APIs available info for iOS
  3155. // for use marking APIs available info for tvOS
  3156. // for use marking APIs available info for Watch OS
  3157. // for use marking APIs unavailable for swift
  3158. //
  3159. // Macros for defining which versions/platform a given symbol can be used.
  3160. //
  3161. // @see http://clang.llvm.org/docs/AttributeReference.html#availability
  3162. //
  3163. // * Note that these macros are only compatible with clang compilers that
  3164. // * support the following target selection options:
  3165. // *
  3166. // * -mmacosx-version-min
  3167. // * -miphoneos-version-min
  3168. // * -mwatchos-version-min
  3169. // * -mtvos-version-min
  3170. //
  3171. // Evaluate to nothing for compilers that don't support availability.
  3172. // If SPI decorations have not been defined elsewhere, disable them.
  3173. // Select uses bit masks of file descriptors in longs. These macros
  3174. // manipulate such bit fields (the filesystem macros use chars). The
  3175. // extra protection here is to permit application redefinition above
  3176. // the default size.
  3177. type Fd_set1 = struct{ Ffds_bits [32]X__int32_t } /* _fd_def.h:50:9 */
  3178. // This code is present here in order to maintain historical backward
  3179. // compatability, and is intended to be removed at some point in the
  3180. // future; please include <sys/select.h> instead.
  3181. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3182. //
  3183. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3184. //
  3185. // This file contains Original Code and/or Modifications of Original Code
  3186. // as defined in and that are subject to the Apple Public Source License
  3187. // Version 2.0 (the 'License'). You may not use this file except in
  3188. // compliance with the License. The rights granted to you under the License
  3189. // may not be used to create, or enable the creation or redistribution of,
  3190. // unlawful or unlicensed copies of an Apple operating system, or to
  3191. // circumvent, violate, or enable the circumvention or violation of, any
  3192. // terms of an Apple operating system software license agreement.
  3193. //
  3194. // Please obtain a copy of the License at
  3195. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3196. //
  3197. // The Original Code and all software distributed under the License are
  3198. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3199. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3200. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3201. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3202. // Please see the License for the specific language governing rights and
  3203. // limitations under the License.
  3204. //
  3205. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3206. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  3207. //
  3208. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3209. //
  3210. // This file contains Original Code and/or Modifications of Original Code
  3211. // as defined in and that are subject to the Apple Public Source License
  3212. // Version 2.0 (the 'License'). You may not use this file except in
  3213. // compliance with the License. The rights granted to you under the License
  3214. // may not be used to create, or enable the creation or redistribution of,
  3215. // unlawful or unlicensed copies of an Apple operating system, or to
  3216. // circumvent, violate, or enable the circumvention or violation of, any
  3217. // terms of an Apple operating system software license agreement.
  3218. //
  3219. // Please obtain a copy of the License at
  3220. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3221. //
  3222. // The Original Code and all software distributed under the License are
  3223. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3224. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3225. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3226. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3227. // Please see the License for the specific language governing rights and
  3228. // limitations under the License.
  3229. //
  3230. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3231. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  3232. // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  3233. //
  3234. // @APPLE_LICENSE_HEADER_START@
  3235. //
  3236. // This file contains Original Code and/or Modifications of Original Code
  3237. // as defined in and that are subject to the Apple Public Source License
  3238. // Version 2.0 (the 'License'). You may not use this file except in
  3239. // compliance with the License. Please obtain a copy of the License at
  3240. // http://www.opensource.apple.com/apsl/ and read it before using this
  3241. // file.
  3242. //
  3243. // The Original Code and all software distributed under the License are
  3244. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3245. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3246. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3247. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3248. // Please see the License for the specific language governing rights and
  3249. // limitations under the License.
  3250. //
  3251. // @APPLE_LICENSE_HEADER_END@
  3252. //
  3253. // These macros are for use in OS header files. They enable function prototypes
  3254. // and Objective-C methods to be tagged with the OS version in which they
  3255. // were first available; and, if applicable, the OS version in which they
  3256. // became deprecated.
  3257. //
  3258. // The desktop Mac OS X and iOS each have different version numbers.
  3259. // The __OSX_AVAILABLE_STARTING() macro allows you to specify both the desktop
  3260. // and iOS version numbers. For instance:
  3261. // __OSX_AVAILABLE_STARTING(__MAC_10_2,__IPHONE_2_0)
  3262. // means the function/method was first available on Mac OS X 10.2 on the desktop
  3263. // and first available in iOS 2.0 on the iPhone.
  3264. //
  3265. // If a function is available on one platform, but not the other a _NA (not
  3266. // applicable) parameter is used. For instance:
  3267. // __OSX_AVAILABLE_STARTING(__MAC_10_3,__IPHONE_NA)
  3268. // means that the function/method was first available on Mac OS X 10.3, and it
  3269. // currently not implemented on the iPhone.
  3270. //
  3271. // At some point, a function/method may be deprecated. That means Apple
  3272. // recommends applications stop using the function, either because there is a
  3273. // better replacement or the functionality is being phased out. Deprecated
  3274. // functions/methods can be tagged with a __OSX_AVAILABLE_BUT_DEPRECATED()
  3275. // macro which specifies the OS version where the function became available
  3276. // as well as the OS version in which it became deprecated. For instance:
  3277. // __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0,__MAC_10_5,__IPHONE_NA,__IPHONE_NA)
  3278. // means that the function/method was introduced in Mac OS X 10.0, then
  3279. // became deprecated beginning in Mac OS X 10.5. On iOS the function
  3280. // has never been available.
  3281. //
  3282. // For these macros to function properly, a program must specify the OS version range
  3283. // it is targeting. The min OS version is specified as an option to the compiler:
  3284. // -mmacosx-version-min=10.x when building for Mac OS X, and -miphoneos-version-min=y.z
  3285. // when building for the iPhone. The upper bound for the OS version is rarely needed,
  3286. // but it can be set on the command line via: -D__MAC_OS_X_VERSION_MAX_ALLOWED=10x0 for
  3287. // Mac OS X and __IPHONE_OS_VERSION_MAX_ALLOWED = y0z00 for iOS.
  3288. //
  3289. // Examples:
  3290. //
  3291. // A function available in Mac OS X 10.5 and later, but not on the phone:
  3292. //
  3293. // extern void mymacfunc() __OSX_AVAILABLE_STARTING(__MAC_10_5,__IPHONE_NA);
  3294. //
  3295. //
  3296. // An Objective-C method in Mac OS X 10.5 and later, but not on the phone:
  3297. //
  3298. // @interface MyClass : NSObject
  3299. // -(void) mymacmethod __OSX_AVAILABLE_STARTING(__MAC_10_5,__IPHONE_NA);
  3300. // @end
  3301. //
  3302. //
  3303. // An enum available on the phone, but not available on Mac OS X:
  3304. //
  3305. // #if __IPHONE_OS_VERSION_MIN_REQUIRED
  3306. // enum { myEnum = 1 };
  3307. // #endif
  3308. // Note: this works when targeting the Mac OS X platform because
  3309. // __IPHONE_OS_VERSION_MIN_REQUIRED is undefined which evaluates to zero.
  3310. //
  3311. //
  3312. // An enum with values added in different iPhoneOS versions:
  3313. //
  3314. // enum {
  3315. // myX = 1, // Usable on iPhoneOS 2.1 and later
  3316. // myY = 2, // Usable on iPhoneOS 3.0 and later
  3317. // myZ = 3, // Usable on iPhoneOS 3.0 and later
  3318. // ...
  3319. // Note: you do not want to use #if with enumeration values
  3320. // when a client needs to see all values at compile time
  3321. // and use runtime logic to only use the viable values.
  3322. //
  3323. //
  3324. // It is also possible to use the *_VERSION_MIN_REQUIRED in source code to make one
  3325. // source base that can be compiled to target a range of OS versions. It is best
  3326. // to not use the _MAC_* and __IPHONE_* macros for comparisons, but rather their values.
  3327. // That is because you might get compiled on an old OS that does not define a later
  3328. // OS version macro, and in the C preprocessor undefined values evaluate to zero
  3329. // in expresssions, which could cause the #if expression to evaluate in an unexpected
  3330. // way.
  3331. //
  3332. // #ifdef __MAC_OS_X_VERSION_MIN_REQUIRED
  3333. // // code only compiled when targeting Mac OS X and not iPhone
  3334. // // note use of 1050 instead of __MAC_10_5
  3335. // #if __MAC_OS_X_VERSION_MIN_REQUIRED < 1050
  3336. // // code in here might run on pre-Leopard OS
  3337. // #else
  3338. // // code here can assume Leopard or later
  3339. // #endif
  3340. // #endif
  3341. //
  3342. //
  3343. // __API_TO_BE_DEPRECATED is used as a version number in API that will be deprecated
  3344. // in an upcoming release. This soft deprecation is an intermediate step before formal
  3345. // deprecation to notify developers about the API before compiler warnings are generated.
  3346. // You can find all places in your code that use soft deprecated API by redefining the
  3347. // value of this macro to your current minimum deployment target, for example:
  3348. // (macOS)
  3349. // clang -D__API_TO_BE_DEPRECATED=10.12 <other compiler flags>
  3350. // (iOS)
  3351. // clang -D__API_TO_BE_DEPRECATED=11.0 <other compiler flags>
  3352. // Copyright (c) 2019 by Apple Inc.. All rights reserved.
  3353. //
  3354. // @APPLE_LICENSE_HEADER_START@
  3355. //
  3356. // This file contains Original Code and/or Modifications of Original Code
  3357. // as defined in and that are subject to the Apple Public Source License
  3358. // Version 2.0 (the 'License'). You may not use this file except in
  3359. // compliance with the License. Please obtain a copy of the License at
  3360. // http://www.opensource.apple.com/apsl/ and read it before using this
  3361. // file.
  3362. //
  3363. // The Original Code and all software distributed under the License are
  3364. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3365. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3366. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3367. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3368. // Please see the License for the specific language governing rights and
  3369. // limitations under the License.
  3370. //
  3371. // @APPLE_LICENSE_HEADER_END@
  3372. // __MAC_NA is not defined to a value but is used as a token by macros to indicate that the API is unavailable
  3373. // __IPHONE_NA is not defined to a value but is used as a token by macros to indicate that the API is unavailable
  3374. // Set up standard Mac OS X versions
  3375. // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  3376. //
  3377. // @APPLE_LICENSE_HEADER_START@
  3378. //
  3379. // This file contains Original Code and/or Modifications of Original Code
  3380. // as defined in and that are subject to the Apple Public Source License
  3381. // Version 2.0 (the 'License'). You may not use this file except in
  3382. // compliance with the License. Please obtain a copy of the License at
  3383. // http://www.opensource.apple.com/apsl/ and read it before using this
  3384. // file.
  3385. //
  3386. // The Original Code and all software distributed under the License are
  3387. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3388. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3389. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3390. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3391. // Please see the License for the specific language governing rights and
  3392. // limitations under the License.
  3393. //
  3394. // @APPLE_LICENSE_HEADER_END@
  3395. //
  3396. // File: AvailabilityInternal.h
  3397. //
  3398. // Contains: implementation details of __OSX_AVAILABLE_* macros from <Availability.h>
  3399. //
  3400. // compiler for Mac OS X sets __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__
  3401. // make sure a default max version is set
  3402. //
  3403. // Macros for defining which versions/platform a given symbol can be used.
  3404. //
  3405. // @see http://clang.llvm.org/docs/AttributeReference.html#availability
  3406. //
  3407. // Evaluate to nothing for compilers that don't support availability.
  3408. // Swift compiler version
  3409. // Allows for project-agnostic "epochs" for frameworks imported into Swift via the Clang importer, like #if _compiler_version for Swift
  3410. // Example:
  3411. //
  3412. // #if __swift_compiler_version_at_least(800, 2, 20)
  3413. // - (nonnull NSString *)description;
  3414. // #else
  3415. // - (NSString *)description;
  3416. // #endif
  3417. // If __SPI_AVAILABLE has not been defined elsewhere, disable it.
  3418. // for use to document app extension usage
  3419. // for use marking APIs available info for Mac OSX
  3420. // for use marking APIs available info for iOS
  3421. // for use marking APIs available info for tvOS
  3422. // for use marking APIs available info for Watch OS
  3423. // for use marking APIs unavailable for swift
  3424. //
  3425. // Macros for defining which versions/platform a given symbol can be used.
  3426. //
  3427. // @see http://clang.llvm.org/docs/AttributeReference.html#availability
  3428. //
  3429. // * Note that these macros are only compatible with clang compilers that
  3430. // * support the following target selection options:
  3431. // *
  3432. // * -mmacosx-version-min
  3433. // * -miphoneos-version-min
  3434. // * -mwatchos-version-min
  3435. // * -mtvos-version-min
  3436. //
  3437. // Evaluate to nothing for compilers that don't support availability.
  3438. // If SPI decorations have not been defined elsewhere, disable them.
  3439. // Select uses bit masks of file descriptors in longs. These macros
  3440. // manipulate such bit fields (the filesystem macros use chars). The
  3441. // extra protection here is to permit application redefinition above
  3442. // the default size.
  3443. type Fd_set = Fd_set1 /* _fd_def.h:52:3 */
  3444. // Use the built-in bzero function instead of the library version so that
  3445. // we do not pollute the namespace or introduce prototype warnings.
  3446. type Fd_mask = X__int32_t /* types.h:189:25 */
  3447. // Select uses bit masks of file descriptors in longs. These macros
  3448. // manipulate such bit fields (the filesystem macros use chars). The
  3449. // extra protection here is to permit application redefinition above
  3450. // the default size.
  3451. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3452. //
  3453. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3454. //
  3455. // This file contains Original Code and/or Modifications of Original Code
  3456. // as defined in and that are subject to the Apple Public Source License
  3457. // Version 2.0 (the 'License'). You may not use this file except in
  3458. // compliance with the License. The rights granted to you under the License
  3459. // may not be used to create, or enable the creation or redistribution of,
  3460. // unlawful or unlicensed copies of an Apple operating system, or to
  3461. // circumvent, violate, or enable the circumvention or violation of, any
  3462. // terms of an Apple operating system software license agreement.
  3463. //
  3464. // Please obtain a copy of the License at
  3465. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3466. //
  3467. // The Original Code and all software distributed under the License are
  3468. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3469. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3470. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3471. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3472. // Please see the License for the specific language governing rights and
  3473. // limitations under the License.
  3474. //
  3475. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3476. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3477. //
  3478. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3479. //
  3480. // This file contains Original Code and/or Modifications of Original Code
  3481. // as defined in and that are subject to the Apple Public Source License
  3482. // Version 2.0 (the 'License'). You may not use this file except in
  3483. // compliance with the License. The rights granted to you under the License
  3484. // may not be used to create, or enable the creation or redistribution of,
  3485. // unlawful or unlicensed copies of an Apple operating system, or to
  3486. // circumvent, violate, or enable the circumvention or violation of, any
  3487. // terms of an Apple operating system software license agreement.
  3488. //
  3489. // Please obtain a copy of the License at
  3490. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3491. //
  3492. // The Original Code and all software distributed under the License are
  3493. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3494. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3495. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3496. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3497. // Please see the License for the specific language governing rights and
  3498. // limitations under the License.
  3499. //
  3500. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3501. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3502. //
  3503. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3504. //
  3505. // This file contains Original Code and/or Modifications of Original Code
  3506. // as defined in and that are subject to the Apple Public Source License
  3507. // Version 2.0 (the 'License'). You may not use this file except in
  3508. // compliance with the License. The rights granted to you under the License
  3509. // may not be used to create, or enable the creation or redistribution of,
  3510. // unlawful or unlicensed copies of an Apple operating system, or to
  3511. // circumvent, violate, or enable the circumvention or violation of, any
  3512. // terms of an Apple operating system software license agreement.
  3513. //
  3514. // Please obtain a copy of the License at
  3515. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3516. //
  3517. // The Original Code and all software distributed under the License are
  3518. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3519. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3520. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3521. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3522. // Please see the License for the specific language governing rights and
  3523. // limitations under the License.
  3524. //
  3525. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3526. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3527. //
  3528. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3529. //
  3530. // This file contains Original Code and/or Modifications of Original Code
  3531. // as defined in and that are subject to the Apple Public Source License
  3532. // Version 2.0 (the 'License'). You may not use this file except in
  3533. // compliance with the License. The rights granted to you under the License
  3534. // may not be used to create, or enable the creation or redistribution of,
  3535. // unlawful or unlicensed copies of an Apple operating system, or to
  3536. // circumvent, violate, or enable the circumvention or violation of, any
  3537. // terms of an Apple operating system software license agreement.
  3538. //
  3539. // Please obtain a copy of the License at
  3540. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3541. //
  3542. // The Original Code and all software distributed under the License are
  3543. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3544. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3545. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3546. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3547. // Please see the License for the specific language governing rights and
  3548. // limitations under the License.
  3549. //
  3550. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3551. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3552. //
  3553. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3554. //
  3555. // This file contains Original Code and/or Modifications of Original Code
  3556. // as defined in and that are subject to the Apple Public Source License
  3557. // Version 2.0 (the 'License'). You may not use this file except in
  3558. // compliance with the License. The rights granted to you under the License
  3559. // may not be used to create, or enable the creation or redistribution of,
  3560. // unlawful or unlicensed copies of an Apple operating system, or to
  3561. // circumvent, violate, or enable the circumvention or violation of, any
  3562. // terms of an Apple operating system software license agreement.
  3563. //
  3564. // Please obtain a copy of the License at
  3565. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3566. //
  3567. // The Original Code and all software distributed under the License are
  3568. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3569. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3570. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3571. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3572. // Please see the License for the specific language governing rights and
  3573. // limitations under the License.
  3574. //
  3575. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3576. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3577. //
  3578. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3579. //
  3580. // This file contains Original Code and/or Modifications of Original Code
  3581. // as defined in and that are subject to the Apple Public Source License
  3582. // Version 2.0 (the 'License'). You may not use this file except in
  3583. // compliance with the License. The rights granted to you under the License
  3584. // may not be used to create, or enable the creation or redistribution of,
  3585. // unlawful or unlicensed copies of an Apple operating system, or to
  3586. // circumvent, violate, or enable the circumvention or violation of, any
  3587. // terms of an Apple operating system software license agreement.
  3588. //
  3589. // Please obtain a copy of the License at
  3590. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3591. //
  3592. // The Original Code and all software distributed under the License are
  3593. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3594. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3595. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3596. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3597. // Please see the License for the specific language governing rights and
  3598. // limitations under the License.
  3599. //
  3600. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3601. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3602. //
  3603. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3604. //
  3605. // This file contains Original Code and/or Modifications of Original Code
  3606. // as defined in and that are subject to the Apple Public Source License
  3607. // Version 2.0 (the 'License'). You may not use this file except in
  3608. // compliance with the License. The rights granted to you under the License
  3609. // may not be used to create, or enable the creation or redistribution of,
  3610. // unlawful or unlicensed copies of an Apple operating system, or to
  3611. // circumvent, violate, or enable the circumvention or violation of, any
  3612. // terms of an Apple operating system software license agreement.
  3613. //
  3614. // Please obtain a copy of the License at
  3615. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3616. //
  3617. // The Original Code and all software distributed under the License are
  3618. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3619. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3620. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3621. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3622. // Please see the License for the specific language governing rights and
  3623. // limitations under the License.
  3624. //
  3625. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3626. // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  3627. //
  3628. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3629. //
  3630. // This file contains Original Code and/or Modifications of Original Code
  3631. // as defined in and that are subject to the Apple Public Source License
  3632. // Version 2.0 (the 'License'). You may not use this file except in
  3633. // compliance with the License. The rights granted to you under the License
  3634. // may not be used to create, or enable the creation or redistribution of,
  3635. // unlawful or unlicensed copies of an Apple operating system, or to
  3636. // circumvent, violate, or enable the circumvention or violation of, any
  3637. // terms of an Apple operating system software license agreement.
  3638. //
  3639. // Please obtain a copy of the License at
  3640. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3641. //
  3642. // The Original Code and all software distributed under the License are
  3643. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3644. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3645. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3646. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3647. // Please see the License for the specific language governing rights and
  3648. // limitations under the License.
  3649. //
  3650. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3651. type Pthread_attr_t = X__darwin_pthread_attr_t /* _pthread_attr_t.h:31:33 */
  3652. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3653. //
  3654. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3655. //
  3656. // This file contains Original Code and/or Modifications of Original Code
  3657. // as defined in and that are subject to the Apple Public Source License
  3658. // Version 2.0 (the 'License'). You may not use this file except in
  3659. // compliance with the License. The rights granted to you under the License
  3660. // may not be used to create, or enable the creation or redistribution of,
  3661. // unlawful or unlicensed copies of an Apple operating system, or to
  3662. // circumvent, violate, or enable the circumvention or violation of, any
  3663. // terms of an Apple operating system software license agreement.
  3664. //
  3665. // Please obtain a copy of the License at
  3666. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3667. //
  3668. // The Original Code and all software distributed under the License are
  3669. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3670. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3671. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3672. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3673. // Please see the License for the specific language governing rights and
  3674. // limitations under the License.
  3675. //
  3676. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3677. // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  3678. //
  3679. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3680. //
  3681. // This file contains Original Code and/or Modifications of Original Code
  3682. // as defined in and that are subject to the Apple Public Source License
  3683. // Version 2.0 (the 'License'). You may not use this file except in
  3684. // compliance with the License. The rights granted to you under the License
  3685. // may not be used to create, or enable the creation or redistribution of,
  3686. // unlawful or unlicensed copies of an Apple operating system, or to
  3687. // circumvent, violate, or enable the circumvention or violation of, any
  3688. // terms of an Apple operating system software license agreement.
  3689. //
  3690. // Please obtain a copy of the License at
  3691. // http://www.opensource.apple.com/apsl/ and read it before using this 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_OSREFERENCE_LICENSE_HEADER_END@
  3702. type Pthread_cond_t = X__darwin_pthread_cond_t /* _pthread_cond_t.h:31:33 */
  3703. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3704. //
  3705. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3706. //
  3707. // This file contains Original Code and/or Modifications of Original Code
  3708. // as defined in and that are subject to the Apple Public Source License
  3709. // Version 2.0 (the 'License'). You may not use this file except in
  3710. // compliance with the License. The rights granted to you under the License
  3711. // may not be used to create, or enable the creation or redistribution of,
  3712. // unlawful or unlicensed copies of an Apple operating system, or to
  3713. // circumvent, violate, or enable the circumvention or violation of, any
  3714. // terms of an Apple operating system software license agreement.
  3715. //
  3716. // Please obtain a copy of the License at
  3717. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3718. //
  3719. // The Original Code and all software distributed under the License are
  3720. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3721. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3722. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3723. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3724. // Please see the License for the specific language governing rights and
  3725. // limitations under the License.
  3726. //
  3727. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3728. // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  3729. //
  3730. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3731. //
  3732. // This file contains Original Code and/or Modifications of Original Code
  3733. // as defined in and that are subject to the Apple Public Source License
  3734. // Version 2.0 (the 'License'). You may not use this file except in
  3735. // compliance with the License. The rights granted to you under the License
  3736. // may not be used to create, or enable the creation or redistribution of,
  3737. // unlawful or unlicensed copies of an Apple operating system, or to
  3738. // circumvent, violate, or enable the circumvention or violation of, any
  3739. // terms of an Apple operating system software license agreement.
  3740. //
  3741. // Please obtain a copy of the License at
  3742. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3743. //
  3744. // The Original Code and all software distributed under the License are
  3745. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3746. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3747. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3748. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3749. // Please see the License for the specific language governing rights and
  3750. // limitations under the License.
  3751. //
  3752. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3753. type Pthread_condattr_t = X__darwin_pthread_condattr_t /* _pthread_condattr_t.h:31:37 */
  3754. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3755. //
  3756. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3757. //
  3758. // This file contains Original Code and/or Modifications of Original Code
  3759. // as defined in and that are subject to the Apple Public Source License
  3760. // Version 2.0 (the 'License'). You may not use this file except in
  3761. // compliance with the License. The rights granted to you under the License
  3762. // may not be used to create, or enable the creation or redistribution of,
  3763. // unlawful or unlicensed copies of an Apple operating system, or to
  3764. // circumvent, violate, or enable the circumvention or violation of, any
  3765. // terms of an Apple operating system software license agreement.
  3766. //
  3767. // Please obtain a copy of the License at
  3768. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3769. //
  3770. // The Original Code and all software distributed under the License are
  3771. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3772. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3773. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3774. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3775. // Please see the License for the specific language governing rights and
  3776. // limitations under the License.
  3777. //
  3778. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3779. // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  3780. //
  3781. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3782. //
  3783. // This file contains Original Code and/or Modifications of Original Code
  3784. // as defined in and that are subject to the Apple Public Source License
  3785. // Version 2.0 (the 'License'). You may not use this file except in
  3786. // compliance with the License. The rights granted to you under the License
  3787. // may not be used to create, or enable the creation or redistribution of,
  3788. // unlawful or unlicensed copies of an Apple operating system, or to
  3789. // circumvent, violate, or enable the circumvention or violation of, any
  3790. // terms of an Apple operating system software license agreement.
  3791. //
  3792. // Please obtain a copy of the License at
  3793. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3794. //
  3795. // The Original Code and all software distributed under the License are
  3796. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3797. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3798. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3799. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3800. // Please see the License for the specific language governing rights and
  3801. // limitations under the License.
  3802. //
  3803. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3804. type Pthread_mutex_t = X__darwin_pthread_mutex_t /* _pthread_mutex_t.h:31:34 */
  3805. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3806. //
  3807. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3808. //
  3809. // This file contains Original Code and/or Modifications of Original Code
  3810. // as defined in and that are subject to the Apple Public Source License
  3811. // Version 2.0 (the 'License'). You may not use this file except in
  3812. // compliance with the License. The rights granted to you under the License
  3813. // may not be used to create, or enable the creation or redistribution of,
  3814. // unlawful or unlicensed copies of an Apple operating system, or to
  3815. // circumvent, violate, or enable the circumvention or violation of, any
  3816. // terms of an Apple operating system software license agreement.
  3817. //
  3818. // Please obtain a copy of the License at
  3819. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3820. //
  3821. // The Original Code and all software distributed under the License are
  3822. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3823. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3824. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3825. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3826. // Please see the License for the specific language governing rights and
  3827. // limitations under the License.
  3828. //
  3829. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3830. // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  3831. //
  3832. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3833. //
  3834. // This file contains Original Code and/or Modifications of Original Code
  3835. // as defined in and that are subject to the Apple Public Source License
  3836. // Version 2.0 (the 'License'). You may not use this file except in
  3837. // compliance with the License. The rights granted to you under the License
  3838. // may not be used to create, or enable the creation or redistribution of,
  3839. // unlawful or unlicensed copies of an Apple operating system, or to
  3840. // circumvent, violate, or enable the circumvention or violation of, any
  3841. // terms of an Apple operating system software license agreement.
  3842. //
  3843. // Please obtain a copy of the License at
  3844. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3845. //
  3846. // The Original Code and all software distributed under the License are
  3847. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3848. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3849. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3850. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3851. // Please see the License for the specific language governing rights and
  3852. // limitations under the License.
  3853. //
  3854. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3855. type Pthread_mutexattr_t = X__darwin_pthread_mutexattr_t /* _pthread_mutexattr_t.h:31:38 */
  3856. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3857. //
  3858. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3859. //
  3860. // This file contains Original Code and/or Modifications of Original Code
  3861. // as defined in and that are subject to the Apple Public Source License
  3862. // Version 2.0 (the 'License'). You may not use this file except in
  3863. // compliance with the License. The rights granted to you under the License
  3864. // may not be used to create, or enable the creation or redistribution of,
  3865. // unlawful or unlicensed copies of an Apple operating system, or to
  3866. // circumvent, violate, or enable the circumvention or violation of, any
  3867. // terms of an Apple operating system software license agreement.
  3868. //
  3869. // Please obtain a copy of the License at
  3870. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3871. //
  3872. // The Original Code and all software distributed under the License are
  3873. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3874. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3875. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3876. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3877. // Please see the License for the specific language governing rights and
  3878. // limitations under the License.
  3879. //
  3880. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3881. // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  3882. //
  3883. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3884. //
  3885. // This file contains Original Code and/or Modifications of Original Code
  3886. // as defined in and that are subject to the Apple Public Source License
  3887. // Version 2.0 (the 'License'). You may not use this file except in
  3888. // compliance with the License. The rights granted to you under the License
  3889. // may not be used to create, or enable the creation or redistribution of,
  3890. // unlawful or unlicensed copies of an Apple operating system, or to
  3891. // circumvent, violate, or enable the circumvention or violation of, any
  3892. // terms of an Apple operating system software license agreement.
  3893. //
  3894. // Please obtain a copy of the License at
  3895. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3896. //
  3897. // The Original Code and all software distributed under the License are
  3898. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3899. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3900. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3901. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3902. // Please see the License for the specific language governing rights and
  3903. // limitations under the License.
  3904. //
  3905. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3906. type Pthread_once_t = X__darwin_pthread_once_t /* _pthread_once_t.h:31:33 */
  3907. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3908. //
  3909. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3910. //
  3911. // This file contains Original Code and/or Modifications of Original Code
  3912. // as defined in and that are subject to the Apple Public Source License
  3913. // Version 2.0 (the 'License'). You may not use this file except in
  3914. // compliance with the License. The rights granted to you under the License
  3915. // may not be used to create, or enable the creation or redistribution of,
  3916. // unlawful or unlicensed copies of an Apple operating system, or to
  3917. // circumvent, violate, or enable the circumvention or violation of, any
  3918. // terms of an Apple operating system software license agreement.
  3919. //
  3920. // Please obtain a copy of the License at
  3921. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3922. //
  3923. // The Original Code and all software distributed under the License are
  3924. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3925. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3926. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3927. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3928. // Please see the License for the specific language governing rights and
  3929. // limitations under the License.
  3930. //
  3931. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3932. // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  3933. //
  3934. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3935. //
  3936. // This file contains Original Code and/or Modifications of Original Code
  3937. // as defined in and that are subject to the Apple Public Source License
  3938. // Version 2.0 (the 'License'). You may not use this file except in
  3939. // compliance with the License. The rights granted to you under the License
  3940. // may not be used to create, or enable the creation or redistribution of,
  3941. // unlawful or unlicensed copies of an Apple operating system, or to
  3942. // circumvent, violate, or enable the circumvention or violation of, any
  3943. // terms of an Apple operating system software license agreement.
  3944. //
  3945. // Please obtain a copy of the License at
  3946. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3947. //
  3948. // The Original Code and all software distributed under the License are
  3949. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3950. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3951. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3952. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3953. // Please see the License for the specific language governing rights and
  3954. // limitations under the License.
  3955. //
  3956. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3957. type Pthread_rwlock_t = X__darwin_pthread_rwlock_t /* _pthread_rwlock_t.h:31:35 */
  3958. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3959. //
  3960. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3961. //
  3962. // This file contains Original Code and/or Modifications of Original Code
  3963. // as defined in and that are subject to the Apple Public Source License
  3964. // Version 2.0 (the 'License'). You may not use this file except in
  3965. // compliance with the License. The rights granted to you under the License
  3966. // may not be used to create, or enable the creation or redistribution of,
  3967. // unlawful or unlicensed copies of an Apple operating system, or to
  3968. // circumvent, violate, or enable the circumvention or violation of, any
  3969. // terms of an Apple operating system software license agreement.
  3970. //
  3971. // Please obtain a copy of the License at
  3972. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3973. //
  3974. // The Original Code and all software distributed under the License are
  3975. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3976. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3977. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3978. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3979. // Please see the License for the specific language governing rights and
  3980. // limitations under the License.
  3981. //
  3982. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3983. // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  3984. //
  3985. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3986. //
  3987. // This file contains Original Code and/or Modifications of Original Code
  3988. // as defined in and that are subject to the Apple Public Source License
  3989. // Version 2.0 (the 'License'). You may not use this file except in
  3990. // compliance with the License. The rights granted to you under the License
  3991. // may not be used to create, or enable the creation or redistribution of,
  3992. // unlawful or unlicensed copies of an Apple operating system, or to
  3993. // circumvent, violate, or enable the circumvention or violation of, any
  3994. // terms of an Apple operating system software license agreement.
  3995. //
  3996. // Please obtain a copy of the License at
  3997. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3998. //
  3999. // The Original Code and all software distributed under the License are
  4000. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4001. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4002. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4003. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4004. // Please see the License for the specific language governing rights and
  4005. // limitations under the License.
  4006. //
  4007. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4008. type Pthread_rwlockattr_t = X__darwin_pthread_rwlockattr_t /* _pthread_rwlockattr_t.h:31:39 */
  4009. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4010. //
  4011. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4012. //
  4013. // This file contains Original Code and/or Modifications of Original Code
  4014. // as defined in and that are subject to the Apple Public Source License
  4015. // Version 2.0 (the 'License'). You may not use this file except in
  4016. // compliance with the License. The rights granted to you under the License
  4017. // may not be used to create, or enable the creation or redistribution of,
  4018. // unlawful or unlicensed copies of an Apple operating system, or to
  4019. // circumvent, violate, or enable the circumvention or violation of, any
  4020. // terms of an Apple operating system software license agreement.
  4021. //
  4022. // Please obtain a copy of the License at
  4023. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4024. //
  4025. // The Original Code and all software distributed under the License are
  4026. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4027. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4028. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4029. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4030. // Please see the License for the specific language governing rights and
  4031. // limitations under the License.
  4032. //
  4033. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4034. // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  4035. //
  4036. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4037. //
  4038. // This file contains Original Code and/or Modifications of Original Code
  4039. // as defined in and that are subject to the Apple Public Source License
  4040. // Version 2.0 (the 'License'). You may not use this file except in
  4041. // compliance with the License. The rights granted to you under the License
  4042. // may not be used to create, or enable the creation or redistribution of,
  4043. // unlawful or unlicensed copies of an Apple operating system, or to
  4044. // circumvent, violate, or enable the circumvention or violation of, any
  4045. // terms of an Apple operating system software license agreement.
  4046. //
  4047. // Please obtain a copy of the License at
  4048. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4049. //
  4050. // The Original Code and all software distributed under the License are
  4051. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4052. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4053. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4054. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4055. // Please see the License for the specific language governing rights and
  4056. // limitations under the License.
  4057. //
  4058. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4059. type Pthread_t = X__darwin_pthread_t /* _pthread_t.h:31:28 */
  4060. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4061. //
  4062. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4063. //
  4064. // This file contains Original Code and/or Modifications of Original Code
  4065. // as defined in and that are subject to the Apple Public Source License
  4066. // Version 2.0 (the 'License'). You may not use this file except in
  4067. // compliance with the License. The rights granted to you under the License
  4068. // may not be used to create, or enable the creation or redistribution of,
  4069. // unlawful or unlicensed copies of an Apple operating system, or to
  4070. // circumvent, violate, or enable the circumvention or violation of, any
  4071. // terms of an Apple operating system software license agreement.
  4072. //
  4073. // Please obtain a copy of the License at
  4074. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4075. //
  4076. // The Original Code and all software distributed under the License are
  4077. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4078. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4079. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4080. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4081. // Please see the License for the specific language governing rights and
  4082. // limitations under the License.
  4083. //
  4084. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4085. // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  4086. //
  4087. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4088. //
  4089. // This file contains Original Code and/or Modifications of Original Code
  4090. // as defined in and that are subject to the Apple Public Source License
  4091. // Version 2.0 (the 'License'). You may not use this file except in
  4092. // compliance with the License. The rights granted to you under the License
  4093. // may not be used to create, or enable the creation or redistribution of,
  4094. // unlawful or unlicensed copies of an Apple operating system, or to
  4095. // circumvent, violate, or enable the circumvention or violation of, any
  4096. // terms of an Apple operating system software license agreement.
  4097. //
  4098. // Please obtain a copy of the License at
  4099. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4100. //
  4101. // The Original Code and all software distributed under the License are
  4102. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4103. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4104. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4105. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4106. // Please see the License for the specific language governing rights and
  4107. // limitations under the License.
  4108. //
  4109. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4110. type Pthread_key_t = X__darwin_pthread_key_t /* _pthread_key_t.h:31:32 */
  4111. // statvfs and fstatvfs
  4112. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4113. //
  4114. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4115. //
  4116. // This file contains Original Code and/or Modifications of Original Code
  4117. // as defined in and that are subject to the Apple Public Source License
  4118. // Version 2.0 (the 'License'). You may not use this file except in
  4119. // compliance with the License. The rights granted to you under the License
  4120. // may not be used to create, or enable the creation or redistribution of,
  4121. // unlawful or unlicensed copies of an Apple operating system, or to
  4122. // circumvent, violate, or enable the circumvention or violation of, any
  4123. // terms of an Apple operating system software license agreement.
  4124. //
  4125. // Please obtain a copy of the License at
  4126. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4127. //
  4128. // The Original Code and all software distributed under the License are
  4129. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4130. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4131. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4132. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4133. // Please see the License for the specific language governing rights and
  4134. // limitations under the License.
  4135. //
  4136. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4137. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  4138. //
  4139. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4140. //
  4141. // This file contains Original Code and/or Modifications of Original Code
  4142. // as defined in and that are subject to the Apple Public Source License
  4143. // Version 2.0 (the 'License'). You may not use this file except in
  4144. // compliance with the License. The rights granted to you under the License
  4145. // may not be used to create, or enable the creation or redistribution of,
  4146. // unlawful or unlicensed copies of an Apple operating system, or to
  4147. // circumvent, violate, or enable the circumvention or violation of, any
  4148. // terms of an Apple operating system software license agreement.
  4149. //
  4150. // Please obtain a copy of the License at
  4151. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4152. //
  4153. // The Original Code and all software distributed under the License are
  4154. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4155. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4156. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4157. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4158. // Please see the License for the specific language governing rights and
  4159. // limitations under the License.
  4160. //
  4161. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4162. type Fsblkcnt_t = X__darwin_fsblkcnt_t /* _fsblkcnt_t.h:31:41 */
  4163. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4164. //
  4165. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4166. //
  4167. // This file contains Original Code and/or Modifications of Original Code
  4168. // as defined in and that are subject to the Apple Public Source License
  4169. // Version 2.0 (the 'License'). You may not use this file except in
  4170. // compliance with the License. The rights granted to you under the License
  4171. // may not be used to create, or enable the creation or redistribution of,
  4172. // unlawful or unlicensed copies of an Apple operating system, or to
  4173. // circumvent, violate, or enable the circumvention or violation of, any
  4174. // terms of an Apple operating system software license agreement.
  4175. //
  4176. // Please obtain a copy of the License at
  4177. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4178. //
  4179. // The Original Code and all software distributed under the License are
  4180. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4181. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4182. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4183. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4184. // Please see the License for the specific language governing rights and
  4185. // limitations under the License.
  4186. //
  4187. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4188. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  4189. //
  4190. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4191. //
  4192. // This file contains Original Code and/or Modifications of Original Code
  4193. // as defined in and that are subject to the Apple Public Source License
  4194. // Version 2.0 (the 'License'). You may not use this file except in
  4195. // compliance with the License. The rights granted to you under the License
  4196. // may not be used to create, or enable the creation or redistribution of,
  4197. // unlawful or unlicensed copies of an Apple operating system, or to
  4198. // circumvent, violate, or enable the circumvention or violation of, any
  4199. // terms of an Apple operating system software license agreement.
  4200. //
  4201. // Please obtain a copy of the License at
  4202. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4203. //
  4204. // The Original Code and all software distributed under the License are
  4205. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4206. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4207. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4208. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4209. // Please see the License for the specific language governing rights and
  4210. // limitations under the License.
  4211. //
  4212. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4213. type Fsfilcnt_t = X__darwin_fsfilcnt_t /* _fsfilcnt_t.h:31:41 */
  4214. // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  4215. //
  4216. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4217. //
  4218. // This file contains Original Code and/or Modifications of Original Code
  4219. // as defined in and that are subject to the Apple Public Source License
  4220. // Version 2.0 (the 'License'). You may not use this file except in
  4221. // compliance with the License. The rights granted to you under the License
  4222. // may not be used to create, or enable the creation or redistribution of,
  4223. // unlawful or unlicensed copies of an Apple operating system, or to
  4224. // circumvent, violate, or enable the circumvention or violation of, any
  4225. // terms of an Apple operating system software license agreement.
  4226. //
  4227. // Please obtain a copy of the License at
  4228. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4229. //
  4230. // The Original Code and all software distributed under the License are
  4231. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4232. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4233. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4234. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4235. // Please see the License for the specific language governing rights and
  4236. // limitations under the License.
  4237. //
  4238. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4239. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  4240. // Copyright (c) 1991, 1993
  4241. // The Regents of the University of California. All rights reserved.
  4242. //
  4243. // This code is derived from software contributed to Berkeley by
  4244. // Berkeley Software Design, Inc.
  4245. //
  4246. // Redistribution and use in source and binary forms, with or without
  4247. // modification, are permitted provided that the following conditions
  4248. // are met:
  4249. // 1. Redistributions of source code must retain the above copyright
  4250. // notice, this list of conditions and the following disclaimer.
  4251. // 2. Redistributions in binary form must reproduce the above copyright
  4252. // notice, this list of conditions and the following disclaimer in the
  4253. // documentation and/or other materials provided with the distribution.
  4254. // 3. All advertising materials mentioning features or use of this software
  4255. // must display the following acknowledgement:
  4256. // This product includes software developed by the University of
  4257. // California, Berkeley and its contributors.
  4258. // 4. Neither the name of the University nor the names of its contributors
  4259. // may be used to endorse or promote products derived from this software
  4260. // without specific prior written permission.
  4261. //
  4262. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  4263. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  4264. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  4265. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  4266. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  4267. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  4268. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  4269. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  4270. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  4271. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  4272. // SUCH DAMAGE.
  4273. //
  4274. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  4275. // Copyright (c) 2004-2007 Apple Inc. All rights reserved.
  4276. //
  4277. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4278. //
  4279. // This file contains Original Code and/or Modifications of Original Code
  4280. // as defined in and that are subject to the Apple Public Source License
  4281. // Version 2.0 (the 'License'). You may not use this file except in
  4282. // compliance with the License. The rights granted to you under the License
  4283. // may not be used to create, or enable the creation or redistribution of,
  4284. // unlawful or unlicensed copies of an Apple operating system, or to
  4285. // circumvent, violate, or enable the circumvention or violation of, any
  4286. // terms of an Apple operating system software license agreement.
  4287. //
  4288. // Please obtain a copy of the License at
  4289. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4290. //
  4291. // The Original Code and all software distributed under the License are
  4292. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4293. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4294. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4295. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4296. // Please see the License for the specific language governing rights and
  4297. // limitations under the License.
  4298. //
  4299. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4300. // Copyright (c) 2006-2007 Apple Inc. All rights reserved.
  4301. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  4302. // Round p (pointer or byte index) up to a correctly-aligned value for all
  4303. // data types (int, long, ...). The result is unsigned int and must be
  4304. // cast to any desired pointer type.
  4305. // Copyright (c) 2016-2018 Apple Inc. All rights reserved.
  4306. //
  4307. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4308. //
  4309. // This file contains Original Code and/or Modifications of Original Code
  4310. // as defined in and that are subject to the Apple Public Source License
  4311. // Version 2.0 (the 'License'). You may not use this file except in
  4312. // compliance with the License. The rights granted to you under the License
  4313. // may not be used to create, or enable the creation or redistribution of,
  4314. // unlawful or unlicensed copies of an Apple operating system, or to
  4315. // circumvent, violate, or enable the circumvention or violation of, any
  4316. // terms of an Apple operating system software license agreement.
  4317. //
  4318. // Please obtain a copy of the License at
  4319. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4320. //
  4321. // The Original Code and all software distributed under the License are
  4322. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4323. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4324. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4325. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4326. // Please see the License for the specific language governing rights and
  4327. // limitations under the License.
  4328. //
  4329. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4330. // Kernel event subclass identifiers for KEV_NETWORK_CLASS
  4331. // KEV_INET_SUBCLASS event codes
  4332. // Define Data-Link event subclass, and associated
  4333. // events.
  4334. // KEV_INET6_SUBCLASS event codes
  4335. // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  4336. //
  4337. // @APPLE_LICENSE_HEADER_START@
  4338. //
  4339. // This file contains Original Code and/or Modifications of Original Code
  4340. // as defined in and that are subject to the Apple Public Source License
  4341. // Version 2.0 (the 'License'). You may not use this file except in
  4342. // compliance with the License. Please obtain a copy of the License at
  4343. // http://www.opensource.apple.com/apsl/ and read it before using this
  4344. // file.
  4345. //
  4346. // The Original Code and all software distributed under the License are
  4347. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4348. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4349. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4350. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4351. // Please see the License for the specific language governing rights and
  4352. // limitations under the License.
  4353. //
  4354. // @APPLE_LICENSE_HEADER_END@
  4355. // Definitions related to sockets: types, address families, options.
  4356. // Data types.
  4357. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4358. //
  4359. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4360. //
  4361. // This file contains Original Code and/or Modifications of Original Code
  4362. // as defined in and that are subject to the Apple Public Source License
  4363. // Version 2.0 (the 'License'). You may not use this file except in
  4364. // compliance with the License. The rights granted to you under the License
  4365. // may not be used to create, or enable the creation or redistribution of,
  4366. // unlawful or unlicensed copies of an Apple operating system, or to
  4367. // circumvent, violate, or enable the circumvention or violation of, any
  4368. // terms of an Apple operating system software license agreement.
  4369. //
  4370. // Please obtain a copy of the License at
  4371. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4372. //
  4373. // The Original Code and all software distributed under the License are
  4374. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4375. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4376. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4377. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4378. // Please see the License for the specific language governing rights and
  4379. // limitations under the License.
  4380. //
  4381. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4382. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4383. //
  4384. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4385. //
  4386. // This file contains Original Code and/or Modifications of Original Code
  4387. // as defined in and that are subject to the Apple Public Source License
  4388. // Version 2.0 (the 'License'). You may not use this file except in
  4389. // compliance with the License. The rights granted to you under the License
  4390. // may not be used to create, or enable the creation or redistribution of,
  4391. // unlawful or unlicensed copies of an Apple operating system, or to
  4392. // circumvent, violate, or enable the circumvention or violation of, any
  4393. // terms of an Apple operating system software license agreement.
  4394. //
  4395. // Please obtain a copy of the License at
  4396. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4397. //
  4398. // The Original Code and all software distributed under the License are
  4399. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4400. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4401. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4402. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4403. // Please see the License for the specific language governing rights and
  4404. // limitations under the License.
  4405. //
  4406. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4407. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4408. //
  4409. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4410. //
  4411. // This file contains Original Code and/or Modifications of Original Code
  4412. // as defined in and that are subject to the Apple Public Source License
  4413. // Version 2.0 (the 'License'). You may not use this file except in
  4414. // compliance with the License. The rights granted to you under the License
  4415. // may not be used to create, or enable the creation or redistribution of,
  4416. // unlawful or unlicensed copies of an Apple operating system, or to
  4417. // circumvent, violate, or enable the circumvention or violation of, any
  4418. // terms of an Apple operating system software license agreement.
  4419. //
  4420. // Please obtain a copy of the License at
  4421. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4422. //
  4423. // The Original Code and all software distributed under the License are
  4424. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4425. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4426. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4427. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4428. // Please see the License for the specific language governing rights and
  4429. // limitations under the License.
  4430. //
  4431. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4432. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4433. //
  4434. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4435. //
  4436. // This file contains Original Code and/or Modifications of Original Code
  4437. // as defined in and that are subject to the Apple Public Source License
  4438. // Version 2.0 (the 'License'). You may not use this file except in
  4439. // compliance with the License. The rights granted to you under the License
  4440. // may not be used to create, or enable the creation or redistribution of,
  4441. // unlawful or unlicensed copies of an Apple operating system, or to
  4442. // circumvent, violate, or enable the circumvention or violation of, any
  4443. // terms of an Apple operating system software license agreement.
  4444. //
  4445. // Please obtain a copy of the License at
  4446. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4447. //
  4448. // The Original Code and all software distributed under the License are
  4449. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4450. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4451. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4452. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4453. // Please see the License for the specific language governing rights and
  4454. // limitations under the License.
  4455. //
  4456. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4457. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  4458. //
  4459. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4460. //
  4461. // This file contains Original Code and/or Modifications of Original Code
  4462. // as defined in and that are subject to the Apple Public Source License
  4463. // Version 2.0 (the 'License'). You may not use this file except in
  4464. // compliance with the License. The rights granted to you under the License
  4465. // may not be used to create, or enable the creation or redistribution of,
  4466. // unlawful or unlicensed copies of an Apple operating system, or to
  4467. // circumvent, violate, or enable the circumvention or violation of, any
  4468. // terms of an Apple operating system software license agreement.
  4469. //
  4470. // Please obtain a copy of the License at
  4471. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4472. //
  4473. // The Original Code and all software distributed under the License are
  4474. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4475. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4476. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4477. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4478. // Please see the License for the specific language governing rights and
  4479. // limitations under the License.
  4480. //
  4481. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4482. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  4483. type Sa_family_t = X__uint8_t /* _sa_family_t.h:31:33 */
  4484. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4485. //
  4486. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4487. //
  4488. // This file contains Original Code and/or Modifications of Original Code
  4489. // as defined in and that are subject to the Apple Public Source License
  4490. // Version 2.0 (the 'License'). You may not use this file except in
  4491. // compliance with the License. The rights granted to you under the License
  4492. // may not be used to create, or enable the creation or redistribution of,
  4493. // unlawful or unlicensed copies of an Apple operating system, or to
  4494. // circumvent, violate, or enable the circumvention or violation of, any
  4495. // terms of an Apple operating system software license agreement.
  4496. //
  4497. // Please obtain a copy of the License at
  4498. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4499. //
  4500. // The Original Code and all software distributed under the License are
  4501. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4502. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4503. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4504. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4505. // Please see the License for the specific language governing rights and
  4506. // limitations under the License.
  4507. //
  4508. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4509. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  4510. //
  4511. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4512. //
  4513. // This file contains Original Code and/or Modifications of Original Code
  4514. // as defined in and that are subject to the Apple Public Source License
  4515. // Version 2.0 (the 'License'). You may not use this file except in
  4516. // compliance with the License. The rights granted to you under the License
  4517. // may not be used to create, or enable the creation or redistribution of,
  4518. // unlawful or unlicensed copies of an Apple operating system, or to
  4519. // circumvent, violate, or enable the circumvention or violation of, any
  4520. // terms of an Apple operating system software license agreement.
  4521. //
  4522. // Please obtain a copy of the License at
  4523. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4524. //
  4525. // The Original Code and all software distributed under the License are
  4526. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4527. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4528. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4529. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4530. // Please see the License for the specific language governing rights and
  4531. // limitations under the License.
  4532. //
  4533. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4534. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  4535. type Socklen_t = X__darwin_socklen_t /* _socklen_t.h:31:33 */
  4536. // XXX Not explicitly defined by POSIX, but function return types are
  4537. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4538. //
  4539. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4540. //
  4541. // This file contains Original Code and/or Modifications of Original Code
  4542. // as defined in and that are subject to the Apple Public Source License
  4543. // Version 2.0 (the 'License'). You may not use this file except in
  4544. // compliance with the License. The rights granted to you under the License
  4545. // may not be used to create, or enable the creation or redistribution of,
  4546. // unlawful or unlicensed copies of an Apple operating system, or to
  4547. // circumvent, violate, or enable the circumvention or violation of, any
  4548. // terms of an Apple operating system software license agreement.
  4549. //
  4550. // Please obtain a copy of the License at
  4551. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4552. //
  4553. // The Original Code and all software distributed under the License are
  4554. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4555. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4556. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4557. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4558. // Please see the License for the specific language governing rights and
  4559. // limitations under the License.
  4560. //
  4561. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4562. // XXX Not explicitly defined by POSIX, but function return types are
  4563. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4564. //
  4565. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4566. //
  4567. // This file contains Original Code and/or Modifications of Original Code
  4568. // as defined in and that are subject to the Apple Public Source License
  4569. // Version 2.0 (the 'License'). You may not use this file except in
  4570. // compliance with the License. The rights granted to you under the License
  4571. // may not be used to create, or enable the creation or redistribution of,
  4572. // unlawful or unlicensed copies of an Apple operating system, or to
  4573. // circumvent, violate, or enable the circumvention or violation of, any
  4574. // terms of an Apple operating system software license agreement.
  4575. //
  4576. // Please obtain a copy of the License at
  4577. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4578. //
  4579. // The Original Code and all software distributed under the License are
  4580. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4581. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4582. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4583. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4584. // Please see the License for the specific language governing rights and
  4585. // limitations under the License.
  4586. //
  4587. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4588. // [XSI] The iovec structure shall be defined as described in <sys/uio.h>.
  4589. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4590. //
  4591. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4592. //
  4593. // This file contains Original Code and/or Modifications of Original Code
  4594. // as defined in and that are subject to the Apple Public Source License
  4595. // Version 2.0 (the 'License'). You may not use this file except in
  4596. // compliance with the License. The rights granted to you under the License
  4597. // may not be used to create, or enable the creation or redistribution of,
  4598. // unlawful or unlicensed copies of an Apple operating system, or to
  4599. // circumvent, violate, or enable the circumvention or violation of, any
  4600. // terms of an Apple operating system software license agreement.
  4601. //
  4602. // Please obtain a copy of the License at
  4603. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4604. //
  4605. // The Original Code and all software distributed under the License are
  4606. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4607. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4608. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4609. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4610. // Please see the License for the specific language governing rights and
  4611. // limitations under the License.
  4612. //
  4613. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4614. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4615. //
  4616. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4617. //
  4618. // This file contains Original Code and/or Modifications of Original Code
  4619. // as defined in and that are subject to the Apple Public Source License
  4620. // Version 2.0 (the 'License'). You may not use this file except in
  4621. // compliance with the License. The rights granted to you under the License
  4622. // may not be used to create, or enable the creation or redistribution of,
  4623. // unlawful or unlicensed copies of an Apple operating system, or to
  4624. // circumvent, violate, or enable the circumvention or violation of, any
  4625. // terms of an Apple operating system software license agreement.
  4626. //
  4627. // Please obtain a copy of the License at
  4628. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4629. //
  4630. // The Original Code and all software distributed under the License are
  4631. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4632. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4633. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4634. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4635. // Please see the License for the specific language governing rights and
  4636. // limitations under the License.
  4637. //
  4638. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4639. type Iovec = struct {
  4640. Fiov_base uintptr
  4641. Fiov_len Size_t
  4642. } /* _iovec_t.h:31:1 */
  4643. // Types
  4644. // Option flags per-socket.
  4645. // (ATOMIC proto)
  4646. // Additional options, not kept in so_options.
  4647. // When adding new socket-options, you need to make sure MPTCP supports these as well!
  4648. // Network Service Type for option SO_NET_SERVICE_TYPE
  4649. //
  4650. // The vast majority of sockets should use Best Effort that is the default
  4651. // Network Service Type. Other Network Service Types have to be used only if
  4652. // the traffic actually matches the description of the Network Service Type.
  4653. //
  4654. // Network Service Types do not represent priorities but rather describe
  4655. // different categories of delay, jitter and loss parameters.
  4656. // Those parameters may influence protocols from layer 4 protocols like TCP
  4657. // to layer 2 protocols like Wi-Fi. The Network Service Type can determine
  4658. // how the traffic is queued and scheduled by the host networking stack and
  4659. // by other entities on the network like switches and routers. For example
  4660. // for Wi-Fi, the Network Service Type can select the marking of the
  4661. // layer 2 packet with the appropriate WMM Access Category.
  4662. //
  4663. // There is no point in attempting to game the system and use
  4664. // a Network Service Type that does not correspond to the actual
  4665. // traffic characteristic but one that seems to have a higher precedence.
  4666. // The reason is that for service classes that have lower tolerance
  4667. // for delay and jitter, the queues size is lower than for service
  4668. // classes that are more tolerant to delay and jitter.
  4669. //
  4670. // For example using a voice service type for bulk data transfer will lead
  4671. // to disastrous results as soon as congestion happens because the voice
  4672. // queue overflows and packets get dropped. This is not only bad for the bulk
  4673. // data transfer but it is also bad for VoIP apps that legitimately are using
  4674. // the voice service type.
  4675. //
  4676. // The characteristics of the Network Service Types are based on the service
  4677. // classes defined in RFC 4594 "Configuration Guidelines for DiffServ Service
  4678. // Classes"
  4679. //
  4680. // When system detects the outgoing interface belongs to a DiffServ domain
  4681. // that follows the recommendation of the IETF draft "Guidelines for DiffServ to
  4682. // IEEE 802.11 Mapping", the packet will marked at layer 3 with a DSCP value
  4683. // that corresponds to Network Service Type.
  4684. //
  4685. // NET_SERVICE_TYPE_BE
  4686. // "Best Effort", unclassified/standard. This is the default service
  4687. // class and cover the majority of the traffic.
  4688. //
  4689. // NET_SERVICE_TYPE_BK
  4690. // "Background", high delay tolerant, loss tolerant. elastic flow,
  4691. // variable size & long-lived. E.g: non-interactive network bulk transfer
  4692. // like synching or backup.
  4693. //
  4694. // NET_SERVICE_TYPE_RD
  4695. // "Responsive Data", a notch higher than "Best Effort", medium delay
  4696. // tolerant, elastic & inelastic flow, bursty, long-lived. E.g. email,
  4697. // instant messaging, for which there is a sense of interactivity and
  4698. // urgency (user waiting for output).
  4699. //
  4700. // NET_SERVICE_TYPE_OAM
  4701. // "Operations, Administration, and Management", medium delay tolerant,
  4702. // low-medium loss tolerant, elastic & inelastic flows, variable size.
  4703. // E.g. VPN tunnels.
  4704. //
  4705. // NET_SERVICE_TYPE_AV
  4706. // "Multimedia Audio/Video Streaming", medium delay tolerant, low-medium
  4707. // loss tolerant, elastic flow, constant packet interval, variable rate
  4708. // and size. E.g. video and audio playback with buffering.
  4709. //
  4710. // NET_SERVICE_TYPE_RV
  4711. // "Responsive Multimedia Audio/Video", low delay tolerant, low-medium
  4712. // loss tolerant, elastic flow, variable packet interval, rate and size.
  4713. // E.g. screen sharing.
  4714. //
  4715. // NET_SERVICE_TYPE_VI
  4716. // "Interactive Video", low delay tolerant, low-medium loss tolerant,
  4717. // elastic flow, constant packet interval, variable rate & size. E.g.
  4718. // video telephony.
  4719. //
  4720. // NET_SERVICE_TYPE_SIG
  4721. // "Signaling", low delay tolerant, low loss tolerant, inelastic flow,
  4722. // jitter tolerant, rate is bursty but short, variable size. E.g. SIP.
  4723. //
  4724. // NET_SERVICE_TYPE_VO
  4725. // "Interactive Voice", very low delay tolerant, very low loss tolerant,
  4726. // inelastic flow, constant packet rate, somewhat fixed size.
  4727. // E.g. VoIP.
  4728. // These are supported values for SO_NETSVC_MARKING_LEVEL
  4729. type Sae_associd_t = X__uint32_t /* socket.h:293:20 */
  4730. type Sae_connid_t = X__uint32_t /* socket.h:297:20 */
  4731. // connectx() flag parameters
  4732. // sockaddr endpoints
  4733. type Sa_endpoints = struct {
  4734. Fsae_srcif uint32
  4735. F__ccgo_pad1 [4]byte
  4736. Fsae_srcaddr uintptr
  4737. Fsae_srcaddrlen Socklen_t
  4738. F__ccgo_pad2 [4]byte
  4739. Fsae_dstaddr uintptr
  4740. Fsae_dstaddrlen Socklen_t
  4741. F__ccgo_pad3 [4]byte
  4742. } /* socket.h:307:9 */
  4743. // connectx() flag parameters
  4744. // sockaddr endpoints
  4745. type Sockaddr = struct {
  4746. Fsa_len X__uint8_t
  4747. Fsa_family Sa_family_t
  4748. Fsa_data [14]int8
  4749. } /* socket.h:307:9 */
  4750. // connectx() flag parameters
  4751. // sockaddr endpoints
  4752. type Sa_endpoints_t = Sa_endpoints /* socket.h:313:3 */
  4753. // Structure used for manipulating linger option.
  4754. type Linger = struct {
  4755. Fl_onoff int32
  4756. Fl_linger int32
  4757. } /* socket.h:319:1 */
  4758. // Structure to control non-portable Sockets extension to POSIX
  4759. type So_np_extensions = struct {
  4760. Fnpx_flags U_int32_t
  4761. Fnpx_mask U_int32_t
  4762. } /* socket.h:337:1 */
  4763. // Structure used by kernel to pass protocol
  4764. // information in raw sockets.
  4765. type Sockproto = struct {
  4766. Fsp_family X__uint16_t
  4767. Fsp_protocol X__uint16_t
  4768. } /* socket.h:425:1 */
  4769. // RFC 2553: protocol-independent placeholder for socket addresses
  4770. // [XSI] sockaddr_storage
  4771. type Sockaddr_storage = struct {
  4772. Fss_len X__uint8_t
  4773. Fss_family Sa_family_t
  4774. F__ss_pad1 [6]int8
  4775. F__ss_align X__int64_t
  4776. F__ss_pad2 [112]int8
  4777. } /* socket.h:445:1 */
  4778. // Protocol families, same as address families for now.
  4779. // These do not have socket-layer support:
  4780. // Definitions for network related sysctl, CTL_NET.
  4781. //
  4782. // Second level is protocol family.
  4783. // Third level is protocol number.
  4784. //
  4785. // Further levels are defined by the individual families below.
  4786. // PF_ROUTE - Routing table
  4787. //
  4788. // Three additional levels are defined:
  4789. // Fourth: address family, 0 is wildcard
  4790. // Fifth: type of info, defined below
  4791. // Sixth: flag(s) to mask with for NET_RT_FLAGS
  4792. // Allows read access non-local host's MAC address
  4793. // if the process has neighbor cache entitlement.
  4794. // Maximum queue length specifiable by listen.
  4795. // [XSI] Message header for recvmsg and sendmsg calls.
  4796. // Used value-result for recvmsg, value only for sendmsg.
  4797. type Msghdr = struct {
  4798. Fmsg_name uintptr
  4799. Fmsg_namelen Socklen_t
  4800. F__ccgo_pad1 [4]byte
  4801. Fmsg_iov uintptr
  4802. Fmsg_iovlen int32
  4803. F__ccgo_pad2 [4]byte
  4804. Fmsg_control uintptr
  4805. Fmsg_controllen Socklen_t
  4806. Fmsg_flags int32
  4807. } /* socket.h:552:1 */
  4808. // Header for ancillary data objects in msg_control buffer.
  4809. // Used for additional information with/about a datagram
  4810. // not expressible by flags. The format is a sequence
  4811. // of message elements headed by cmsghdr structures.
  4812. type Cmsghdr = struct {
  4813. Fcmsg_len Socklen_t
  4814. Fcmsg_level int32
  4815. Fcmsg_type int32
  4816. } /* socket.h:600:1 */
  4817. // given pointer to struct cmsghdr, return pointer to data
  4818. // RFC 2292 requires to check msg_controllen, in case that the kernel returns
  4819. // an empty list for some reasons.
  4820. // Given pointer to struct cmsghdr, return pointer to next cmsghdr
  4821. // RFC 2292 says that CMSG_NXTHDR(mhdr, NULL) is equivalent to CMSG_FIRSTHDR(mhdr)
  4822. // RFC 2292 additions
  4823. // "Socket"-level control message types:
  4824. // howto arguments for shutdown(2), specified by Posix.1g.
  4825. // sendfile(2) header/trailer struct
  4826. type Sf_hdtr = struct {
  4827. Fheaders uintptr
  4828. Fhdr_cnt int32
  4829. F__ccgo_pad1 [4]byte
  4830. Ftrailers uintptr
  4831. Ftrl_cnt int32
  4832. F__ccgo_pad2 [4]byte
  4833. } /* socket.h:691:1 */
  4834. var _ int8 /* gen.c:2:13: */