signal_darwin_arm64.go 150 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132
  1. // Code generated by 'ccgo signal/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 signal/signal_darwin_arm64.go -pkgname signal', DO NOT EDIT.
  2. package signal
  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. BUS_ADRALN = 1 // signal.h:241:1:
  15. BUS_ADRERR = 2 // signal.h:242:1:
  16. BUS_NOOP = 0 // signal.h:239:1:
  17. BUS_OBJERR = 3 // signal.h:243:1:
  18. CLD_CONTINUED = 6 // signal.h:258:1:
  19. CLD_DUMPED = 3 // signal.h:255:1:
  20. CLD_EXITED = 1 // signal.h:253:1:
  21. CLD_KILLED = 2 // signal.h:254:1:
  22. CLD_NOOP = 0 // signal.h:251:1:
  23. CLD_STOPPED = 5 // signal.h:257:1:
  24. CLD_TRAPPED = 4 // signal.h:256:1:
  25. FPE_FLTDIV = 1 // signal.h:221:1:
  26. FPE_FLTINV = 5 // signal.h:225:1:
  27. FPE_FLTOVF = 2 // signal.h:222:1:
  28. FPE_FLTRES = 4 // signal.h:224:1:
  29. FPE_FLTSUB = 6 // signal.h:226:1:
  30. FPE_FLTUND = 3 // signal.h:223:1:
  31. FPE_INTDIV = 7 // signal.h:227:1:
  32. FPE_INTOVF = 8 // signal.h:228:1:
  33. FPE_NOOP = 0 // signal.h:219:1:
  34. ILL_BADSTK = 8 // signal.h:215:1:
  35. ILL_COPROC = 7 // signal.h:214:1:
  36. ILL_ILLADR = 5 // signal.h:212:1:
  37. ILL_ILLOPC = 1 // signal.h:208:1:
  38. ILL_ILLOPN = 4 // signal.h:211:1:
  39. ILL_ILLTRP = 2 // signal.h:209:1:
  40. ILL_NOOP = 0 // signal.h:206:1:
  41. ILL_PRVOPC = 3 // signal.h:210:1:
  42. ILL_PRVREG = 6 // signal.h:213:1:
  43. MAC_OS_VERSION_11_0 = 110000 // AvailabilityVersions.h:238:1:
  44. MAC_OS_VERSION_12_0 = 120000 // AvailabilityVersions.h:239:1:
  45. MAC_OS_X_VERSION_10_0 = 1000 // AvailabilityVersions.h:206:1:
  46. MAC_OS_X_VERSION_10_1 = 1010 // AvailabilityVersions.h:207:1:
  47. MAC_OS_X_VERSION_10_10 = 101000 // AvailabilityVersions.h:216:1:
  48. MAC_OS_X_VERSION_10_10_2 = 101002 // AvailabilityVersions.h:217:1:
  49. MAC_OS_X_VERSION_10_10_3 = 101003 // AvailabilityVersions.h:218:1:
  50. MAC_OS_X_VERSION_10_11 = 101100 // AvailabilityVersions.h:219:1:
  51. MAC_OS_X_VERSION_10_11_2 = 101102 // AvailabilityVersions.h:220:1:
  52. MAC_OS_X_VERSION_10_11_3 = 101103 // AvailabilityVersions.h:221:1:
  53. MAC_OS_X_VERSION_10_11_4 = 101104 // AvailabilityVersions.h:222:1:
  54. MAC_OS_X_VERSION_10_12 = 101200 // AvailabilityVersions.h:223:1:
  55. MAC_OS_X_VERSION_10_12_1 = 101201 // AvailabilityVersions.h:224:1:
  56. MAC_OS_X_VERSION_10_12_2 = 101202 // AvailabilityVersions.h:225:1:
  57. MAC_OS_X_VERSION_10_12_4 = 101204 // AvailabilityVersions.h:226:1:
  58. MAC_OS_X_VERSION_10_13 = 101300 // AvailabilityVersions.h:227:1:
  59. MAC_OS_X_VERSION_10_13_1 = 101301 // AvailabilityVersions.h:228:1:
  60. MAC_OS_X_VERSION_10_13_2 = 101302 // AvailabilityVersions.h:229:1:
  61. MAC_OS_X_VERSION_10_13_4 = 101304 // AvailabilityVersions.h:230:1:
  62. MAC_OS_X_VERSION_10_14 = 101400 // AvailabilityVersions.h:231:1:
  63. MAC_OS_X_VERSION_10_14_1 = 101401 // AvailabilityVersions.h:232:1:
  64. MAC_OS_X_VERSION_10_14_4 = 101404 // AvailabilityVersions.h:233:1:
  65. MAC_OS_X_VERSION_10_14_6 = 101406 // AvailabilityVersions.h:234:1:
  66. MAC_OS_X_VERSION_10_15 = 101500 // AvailabilityVersions.h:235:1:
  67. MAC_OS_X_VERSION_10_15_1 = 101501 // AvailabilityVersions.h:236:1:
  68. MAC_OS_X_VERSION_10_16 = 101600 // AvailabilityVersions.h:237:1:
  69. MAC_OS_X_VERSION_10_2 = 1020 // AvailabilityVersions.h:208:1:
  70. MAC_OS_X_VERSION_10_3 = 1030 // AvailabilityVersions.h:209:1:
  71. MAC_OS_X_VERSION_10_4 = 1040 // AvailabilityVersions.h:210:1:
  72. MAC_OS_X_VERSION_10_5 = 1050 // AvailabilityVersions.h:211:1:
  73. MAC_OS_X_VERSION_10_6 = 1060 // AvailabilityVersions.h:212:1:
  74. MAC_OS_X_VERSION_10_7 = 1070 // AvailabilityVersions.h:213:1:
  75. MAC_OS_X_VERSION_10_8 = 1080 // AvailabilityVersions.h:214:1:
  76. MAC_OS_X_VERSION_10_9 = 1090 // AvailabilityVersions.h:215:1:
  77. MINSIGSTKSZ = 32768 // signal.h:340:1:
  78. NSIG = 32 // signal.h:79:1:
  79. POLL_ERR = 4 // signal.h:264:1:
  80. POLL_HUP = 6 // signal.h:266:1:
  81. POLL_IN = 1 // signal.h:261:1:
  82. POLL_MSG = 3 // signal.h:263:1:
  83. POLL_OUT = 2 // signal.h:262:1:
  84. POLL_PRI = 5 // signal.h:265:1:
  85. SA_64REGSET = 0x0200 // signal.h:308:1:
  86. SA_NOCLDSTOP = 0x0008 // signal.h:301:1:
  87. SA_NOCLDWAIT = 0x0020 // signal.h:303:1:
  88. SA_NODEFER = 0x0010 // signal.h:302:1:
  89. SA_ONSTACK = 0x0001 // signal.h:298:1:
  90. SA_RESETHAND = 0x0004 // signal.h:300:1:
  91. SA_RESTART = 0x0002 // signal.h:299:1:
  92. SA_SIGINFO = 0x0040 // signal.h:304:1:
  93. SA_USERSPACE_MASK = 127 // signal.h:314:1:
  94. SA_USERTRAMP = 0x0100 // signal.h:306:1:
  95. SEGV_ACCERR = 2 // signal.h:235:1:
  96. SEGV_MAPERR = 1 // signal.h:234:1:
  97. SEGV_NOOP = 0 // signal.h:232:1:
  98. SIGABRT = 6 // signal.h:89:1:
  99. SIGALRM = 14 // signal.h:102:1:
  100. SIGBUS = 10 // signal.h:98:1:
  101. SIGCHLD = 20 // signal.h:108:1:
  102. SIGCONT = 19 // signal.h:107:1:
  103. SIGEMT = 7 // signal.h:94:1:
  104. SIGEV_NONE = 0 // signal.h:164:1:
  105. SIGEV_SIGNAL = 1 // signal.h:165:1:
  106. SIGEV_THREAD = 3 // signal.h:166:1:
  107. SIGFPE = 8 // signal.h:96:1:
  108. SIGHUP = 1 // signal.h:84:1:
  109. SIGILL = 4 // signal.h:87:1:
  110. SIGINFO = 29 // signal.h:120:1:
  111. SIGINT = 2 // signal.h:85:1:
  112. SIGIO = 23 // signal.h:112:1:
  113. SIGIOT = 6 // signal.h:93:1:
  114. SIGKILL = 9 // signal.h:97:1:
  115. SIGPIPE = 13 // signal.h:101:1:
  116. SIGPROF = 27 // signal.h:117:1:
  117. SIGQUIT = 3 // signal.h:86:1:
  118. SIGSEGV = 11 // signal.h:99:1:
  119. SIGSTKSZ = 131072 // signal.h:341:1:
  120. SIGSTOP = 17 // signal.h:105:1:
  121. SIGSYS = 12 // signal.h:100:1:
  122. SIGTERM = 15 // signal.h:103:1:
  123. SIGTRAP = 5 // signal.h:88:1:
  124. SIGTSTP = 18 // signal.h:106:1:
  125. SIGTTIN = 21 // signal.h:109:1:
  126. SIGTTOU = 22 // signal.h:110:1:
  127. SIGURG = 16 // signal.h:104:1:
  128. SIGUSR1 = 30 // signal.h:122:1:
  129. SIGUSR2 = 31 // signal.h:123:1:
  130. SIGVTALRM = 26 // signal.h:116:1:
  131. SIGWINCH = 28 // signal.h:119:1:
  132. SIGXCPU = 24 // signal.h:114:1:
  133. SIGXFSZ = 25 // signal.h:115:1:
  134. SIG_BLOCK = 1 // signal.h:319:1:
  135. SIG_SETMASK = 3 // signal.h:321:1:
  136. SIG_UNBLOCK = 2 // signal.h:320:1:
  137. SI_ASYNCIO = 0x10004 // signal.h:327:1:
  138. SI_MESGQ = 0x10005 // signal.h:328:1:
  139. SI_QUEUE = 0x10002 // signal.h:325:1:
  140. SI_TIMER = 0x10003 // signal.h:326:1:
  141. SI_USER = 0x10001 // signal.h:324:1:
  142. SS_DISABLE = 0x0004 // signal.h:339:1:
  143. SS_ONSTACK = 0x0001 // signal.h:338:1:
  144. SV_INTERRUPT = 2 // signal.h:355:1:
  145. SV_NOCLDSTOP = 8 // signal.h:358:1:
  146. SV_NODEFER = 16 // signal.h:357:1:
  147. SV_ONSTACK = 1 // signal.h:354:1:
  148. SV_RESETHAND = 4 // signal.h:356:1:
  149. SV_SIGINFO = 64 // signal.h:359:1:
  150. TRAP_BRKPT = 1 // signal.h:246:1:
  151. TRAP_TRACE = 2 // signal.h:247:1:
  152. X_ARM_MACHTYPES_H_ = 0 // types.h:43:1:
  153. X_ARM_SIGNAL_ = 1 // signal.h:10:1:
  154. X_BSD_ARM__TYPES_H_ = 0 // _types.h:5:1:
  155. X_BSD_MACHINE_SIGNAL_H_ = 0 // signal.h:29:1:
  156. X_BSD_MACHINE_TYPES_H_ = 0 // types.h:32:1:
  157. X_BSD_MACHINE__MCONTEXT_H_ = 0 // _mcontext.h:29:1:
  158. X_BSD_MACHINE__TYPES_H_ = 0 // _types.h:29:1:
  159. X_CDEFS_H_ = 0 // cdefs.h:68:1:
  160. X_DARWIN_FEATURE_64_BIT_INODE = 1 // cdefs.h:774:1:
  161. X_DARWIN_FEATURE_ONLY_64_BIT_INODE = 1 // cdefs.h:784:1:
  162. X_DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE = 1 // cdefs.h:800:1:
  163. X_DARWIN_FEATURE_ONLY_VERS_1050 = 1 // cdefs.h:792:1:
  164. X_DARWIN_FEATURE_UNIX_CONFORMANCE = 3 // cdefs.h:808:1:
  165. X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
  166. X_FORTIFY_SOURCE = 2 // _types.h:65:1:
  167. X_INT16_T = 0 // _int16_t.h:29:1:
  168. X_INT32_T = 0 // _int32_t.h:29:1:
  169. X_INT64_T = 0 // _int64_t.h:29:1:
  170. X_INT8_T = 0 // _int8_t.h:29:1:
  171. X_INTPTR_T = 0 // _intptr_t.h:29:1:
  172. X_LP64 = 1 // <predefined>:1:1:
  173. X_MACHTYPES_H_ = 0 // types.h:44:1:
  174. X_MACH_ARM__STRUCTS_H_ = 0 // _structs.h:32:1:
  175. X_MACH_MACHINE__STRUCTS_H_ = 0 // _structs.h:30:1:
  176. X_MCONTEXT_T = 0 // _mcontext.h:83:1:
  177. X_Nonnull = 0 // cdefs.h:268:1:
  178. X_Null_unspecified = 0 // cdefs.h:271:1:
  179. X_Nullable = 0 // cdefs.h:265:1:
  180. X_PID_T = 0 // _pid_t.h:29:1:
  181. X_PTHREAD_ATTR_T = 0 // _pthread_attr_t.h:29:1:
  182. X_PTHREAD_T = 0 // _pthread_t.h:29:1:
  183. X_SIGSET_T = 0 // _sigset_t.h:29:1:
  184. X_SIZE_T = 0 // _size_t.h:29:1:
  185. X_SYS_SIGNAL_H_ = 0 // signal.h:70:1:
  186. X_SYS__PTHREAD_TYPES_H_ = 0 // _pthread_types.h:30:1:
  187. X_SYS__TYPES_H_ = 0 // _types.h:30:1:
  188. X_UID_T = 0 // _uid_t.h:29:1:
  189. X_UINTPTR_T = 0 // _uintptr_t.h:29:1:
  190. X_USER_SIGNAL_H = 0 // signal.h:59:1:
  191. X_U_INT16_T = 0 // _u_int16_t.h:29:1:
  192. X_U_INT32_T = 0 // _u_int32_t.h:29:1:
  193. X_U_INT64_T = 0 // _u_int64_t.h:29:1:
  194. X_U_INT8_T = 0 // _u_int8_t.h:29:1:
  195. )
  196. type Ptrdiff_t = int64 /* <builtin>:3:26 */
  197. type Size_t = uint64 /* <builtin>:9:23 */
  198. type Wchar_t = int32 /* <builtin>:15:24 */
  199. type X__int128_t = struct {
  200. Flo int64
  201. Fhi int64
  202. } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
  203. type X__uint128_t = struct {
  204. Flo uint64
  205. Fhi uint64
  206. } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
  207. type X__builtin_va_list = uintptr /* <builtin>:46:14 */
  208. type X__float128 = float64 /* <builtin>:47:21 */
  209. var X__darwin_check_fd_set_overflow uintptr /* <builtin>:146:5: */
  210. // Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
  211. //
  212. // @APPLE_LICENSE_HEADER_START@
  213. //
  214. // This file contains Original Code and/or Modifications of Original Code
  215. // as defined in and that are subject to the Apple Public Source License
  216. // Version 2.0 (the 'License'). You may not use this file except in
  217. // compliance with the License. Please obtain a copy of the License at
  218. // http://www.opensource.apple.com/apsl/ and read it before using this
  219. // file.
  220. //
  221. // The Original Code and all software distributed under the License are
  222. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  223. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  224. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  225. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  226. // Please see the License for the specific language governing rights and
  227. // limitations under the License.
  228. //
  229. // @APPLE_LICENSE_HEADER_END@
  230. // -
  231. // Copyright (c) 1991, 1993
  232. // The Regents of the University of California. All rights reserved.
  233. //
  234. // Redistribution and use in source and binary forms, with or without
  235. // modification, are permitted provided that the following conditions
  236. // are met:
  237. // 1. Redistributions of source code must retain the above copyright
  238. // notice, this list of conditions and the following disclaimer.
  239. // 2. Redistributions in binary form must reproduce the above copyright
  240. // notice, this list of conditions and the following disclaimer in the
  241. // documentation and/or other materials provided with the distribution.
  242. // 3. All advertising materials mentioning features or use of this software
  243. // must display the following acknowledgement:
  244. // This product includes software developed by the University of
  245. // California, Berkeley and its contributors.
  246. // 4. Neither the name of the University nor the names of its contributors
  247. // may be used to endorse or promote products derived from this software
  248. // without specific prior written permission.
  249. //
  250. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  251. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  252. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  253. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  254. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  255. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  256. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  257. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  258. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  259. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  260. // SUCH DAMAGE.
  261. //
  262. // @(#)signal.h 8.3 (Berkeley) 3/30/94
  263. // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  264. //
  265. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  266. //
  267. // This file contains Original Code and/or Modifications of Original Code
  268. // as defined in and that are subject to the Apple Public Source License
  269. // Version 2.0 (the 'License'). You may not use this file except in
  270. // compliance with the License. The rights granted to you under the License
  271. // may not be used to create, or enable the creation or redistribution of,
  272. // unlawful or unlicensed copies of an Apple operating system, or to
  273. // circumvent, violate, or enable the circumvention or violation of, any
  274. // terms of an Apple operating system software license agreement.
  275. //
  276. // Please obtain a copy of the License at
  277. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  278. //
  279. // The Original Code and all software distributed under the License are
  280. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  281. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  282. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  283. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  284. // Please see the License for the specific language governing rights and
  285. // limitations under the License.
  286. //
  287. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  288. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  289. // Copyright (c) 1991, 1993
  290. // The Regents of the University of California. All rights reserved.
  291. //
  292. // This code is derived from software contributed to Berkeley by
  293. // Berkeley Software Design, Inc.
  294. //
  295. // Redistribution and use in source and binary forms, with or without
  296. // modification, are permitted provided that the following conditions
  297. // are met:
  298. // 1. Redistributions of source code must retain the above copyright
  299. // notice, this list of conditions and the following disclaimer.
  300. // 2. Redistributions in binary form must reproduce the above copyright
  301. // notice, this list of conditions and the following disclaimer in the
  302. // documentation and/or other materials provided with the distribution.
  303. // 3. All advertising materials mentioning features or use of this software
  304. // must display the following acknowledgement:
  305. // This product includes software developed by the University of
  306. // California, Berkeley and its contributors.
  307. // 4. Neither the name of the University nor the names of its contributors
  308. // may be used to endorse or promote products derived from this software
  309. // without specific prior written permission.
  310. //
  311. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  312. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  313. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  314. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  315. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  316. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  317. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  318. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  319. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  320. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  321. // SUCH DAMAGE.
  322. //
  323. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  324. // This SDK is designed to work with clang and specific versions of
  325. // gcc >= 4.0 with Apple's patch sets
  326. // Compatibility with compilers and environments that don't support compiler
  327. // feature checking function-like macros.
  328. // The __CONCAT macro is used to concatenate parts of symbol names, e.g.
  329. // with "#define OLD(foo) __CONCAT(old,foo)", OLD(foo) produces oldfoo.
  330. // The __CONCAT macro is a bit tricky -- make sure you don't put spaces
  331. // in between its arguments. __CONCAT can also concatenate double-quoted
  332. // strings produced by the __STRING macro, but this only works with ANSI C.
  333. // In non-ANSI C environments, new programs will want ANSI-only C keywords
  334. // deleted from the program and old programs will want them left alone.
  335. // When using a compiler other than gcc, programs using the ANSI C keywords
  336. // const, inline etc. as normal identifiers should define -DNO_ANSI_KEYWORDS.
  337. // When using "gcc -traditional", we assume that this is the intent; if
  338. // __GNUC__ is defined but __STDC__ is not, we leave the new keywords alone.
  339. // __pure2 can be used for functions that are only a function of their scalar
  340. // arguments (meaning they can't dereference pointers).
  341. //
  342. // __stateful_pure can be used for functions that have no side effects,
  343. // but depend on the state of the memory.
  344. // __unused denotes variables and functions that may not be used, preventing
  345. // the compiler from warning about it if not used.
  346. // __used forces variables and functions to be included even if it appears
  347. // to the compiler that they are not used (and would thust be discarded).
  348. // __cold marks code used for debugging or that is rarely taken
  349. // and tells the compiler to optimize for size and outline code.
  350. // __exported denotes symbols that should be exported even when symbols
  351. // are hidden by default.
  352. // __exported_push/_exported_pop are pragmas used to delimit a range of
  353. // symbols that should be exported even when symbols are hidden by default.
  354. // __deprecated causes the compiler to produce a warning when encountering
  355. // code using the deprecated functionality.
  356. // __deprecated_msg() does the same, and compilers that support it will print
  357. // a message along with the deprecation warning.
  358. // This may require turning on such warning with the -Wdeprecated flag.
  359. // __deprecated_enum_msg() should be used on enums, and compilers that support
  360. // it will print the deprecation warning.
  361. // __kpi_deprecated() specifically indicates deprecation of kernel programming
  362. // interfaces in Kernel.framework used by KEXTs.
  363. // __unavailable causes the compiler to error out when encountering
  364. // code using the tagged function
  365. // Delete pseudo-keywords wherever they are not available or needed.
  366. // We use `__restrict' as a way to define the `restrict' type qualifier
  367. // without disturbing older software that is unaware of C99 keywords.
  368. // Compatibility with compilers and environments that don't support the
  369. // nullability feature.
  370. // __disable_tail_calls causes the compiler to not perform tail call
  371. // optimization inside the marked function.
  372. // __not_tail_called causes the compiler to prevent tail call optimization
  373. // on statically bound calls to the function. It has no effect on indirect
  374. // calls. Virtual functions, objective-c methods, and functions marked as
  375. // "always_inline" cannot be marked as __not_tail_called.
  376. // __result_use_check warns callers of a function that not using the function
  377. // return value is a bug, i.e. dismissing malloc() return value results in a
  378. // memory leak.
  379. // __swift_unavailable causes the compiler to mark a symbol as specifically
  380. // unavailable in Swift, regardless of any other availability in C.
  381. // __abortlike is the attribute to put on functions like abort() that are
  382. // typically used to mark assertions. These optimize the codegen
  383. // for outlining while still maintaining debugability.
  384. // Declaring inline functions within headers is error-prone due to differences
  385. // across various versions of the C language and extensions. __header_inline
  386. // can be used to declare inline functions within system headers. In cases
  387. // where you want to force inlining instead of letting the compiler make
  388. // the decision, you can use __header_always_inline.
  389. //
  390. // Be aware that using inline for functions which compilers may also provide
  391. // builtins can behave differently under various compilers. If you intend to
  392. // provide an inline version of such a function, you may want to use a macro
  393. // instead.
  394. //
  395. // The check for !__GNUC__ || __clang__ is because gcc doesn't correctly
  396. // support c99 inline in some cases:
  397. // http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55965
  398. // Compiler-dependent macros that bracket portions of code where the
  399. // "-Wunreachable-code" warning should be ignored. Please use sparingly.
  400. // Compiler-dependent macros to declare that functions take printf-like
  401. // or scanf-like arguments. They are null except for versions of gcc
  402. // that are known to support the features properly. Functions declared
  403. // with these attributes will cause compilation warnings if there is a
  404. // mismatch between the format string and subsequent function parameter
  405. // types.
  406. // Source compatibility only, ID string not emitted in object file
  407. // __alloc_size can be used to label function arguments that represent the
  408. // size of memory that the function allocates and returns. The one-argument
  409. // form labels a single argument that gives the allocation size (where the
  410. // arguments are numbered from 1):
  411. //
  412. // void *malloc(size_t __size) __alloc_size(1);
  413. //
  414. // The two-argument form handles the case where the size is calculated as the
  415. // product of two arguments:
  416. //
  417. // void *calloc(size_t __count, size_t __size) __alloc_size(1,2);
  418. // COMPILATION ENVIRONMENTS -- see compat(5) for additional detail
  419. //
  420. // DEFAULT By default newly complied code will get POSIX APIs plus
  421. // Apple API extensions in scope.
  422. //
  423. // Most users will use this compilation environment to avoid
  424. // behavioral differences between 32 and 64 bit code.
  425. //
  426. // LEGACY Defining _NONSTD_SOURCE will get pre-POSIX APIs plus Apple
  427. // API extensions in scope.
  428. //
  429. // This is generally equivalent to the Tiger release compilation
  430. // environment, except that it cannot be applied to 64 bit code;
  431. // its use is discouraged.
  432. //
  433. // We expect this environment to be deprecated in the future.
  434. //
  435. // STRICT Defining _POSIX_C_SOURCE or _XOPEN_SOURCE restricts the
  436. // available APIs to exactly the set of APIs defined by the
  437. // corresponding standard, based on the value defined.
  438. //
  439. // A correct, portable definition for _POSIX_C_SOURCE is 200112L.
  440. // A correct, portable definition for _XOPEN_SOURCE is 600L.
  441. //
  442. // Apple API extensions are not visible in this environment,
  443. // which can cause Apple specific code to fail to compile,
  444. // or behave incorrectly if prototypes are not in scope or
  445. // warnings about missing prototypes are not enabled or ignored.
  446. //
  447. // In any compilation environment, for correct symbol resolution to occur,
  448. // function prototypes must be in scope. It is recommended that all Apple
  449. // tools users add either the "-Wall" or "-Wimplicit-function-declaration"
  450. // compiler flags to their projects to be warned when a function is being
  451. // used without a prototype in scope.
  452. // These settings are particular to each product.
  453. // Platform: MacOSX
  454. // The __DARWIN_ALIAS macros are used to do symbol renaming; they allow
  455. // legacy code to use the old symbol, thus maintaining binary compatibility
  456. // while new code can use a standards compliant version of the same function.
  457. //
  458. // __DARWIN_ALIAS is used by itself if the function signature has not
  459. // changed, it is used along with a #ifdef check for __DARWIN_UNIX03
  460. // if the signature has changed. Because the __LP64__ environment
  461. // only supports UNIX03 semantics it causes __DARWIN_UNIX03 to be
  462. // defined, but causes __DARWIN_ALIAS to do no symbol mangling.
  463. //
  464. // As a special case, when XCode is used to target a specific version of the
  465. // OS, the manifest constant __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__
  466. // will be defined by the compiler, with the digits representing major version
  467. // time 100 + minor version times 10 (e.g. 10.5 := 1050). If we are targeting
  468. // pre-10.5, and it is the default compilation environment, revert the
  469. // compilation environment to pre-__DARWIN_UNIX03.
  470. // symbol suffixes used for symbol versioning
  471. // symbol versioning macros
  472. // symbol release macros
  473. // Copyright (c) 2010 Apple Inc. All rights reserved.
  474. //
  475. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  476. //
  477. // This file contains Original Code and/or Modifications of Original Code
  478. // as defined in and that are subject to the Apple Public Source License
  479. // Version 2.0 (the 'License'). You may not use this file except in
  480. // compliance with the License. The rights granted to you under the License
  481. // may not be used to create, or enable the creation or redistribution of,
  482. // unlawful or unlicensed copies of an Apple operating system, or to
  483. // circumvent, violate, or enable the circumvention or violation of, any
  484. // terms of an Apple operating system software license agreement.
  485. //
  486. // Please obtain a copy of the License at
  487. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  488. //
  489. // The Original Code and all software distributed under the License are
  490. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  491. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  492. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  493. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  494. // Please see the License for the specific language governing rights and
  495. // limitations under the License.
  496. //
  497. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  498. // POSIX.1 requires that the macros we test be defined before any standard
  499. // header file is included. This permits us to convert values for feature
  500. // testing, as necessary, using only _POSIX_C_SOURCE.
  501. //
  502. // Here's a quick run-down of the versions:
  503. // defined(_POSIX_SOURCE) 1003.1-1988
  504. // _POSIX_C_SOURCE == 1L 1003.1-1990
  505. // _POSIX_C_SOURCE == 2L 1003.2-1992 C Language Binding Option
  506. // _POSIX_C_SOURCE == 199309L 1003.1b-1993
  507. // _POSIX_C_SOURCE == 199506L 1003.1c-1995, 1003.1i-1995,
  508. // and the omnibus ISO/IEC 9945-1: 1996
  509. // _POSIX_C_SOURCE == 200112L 1003.1-2001
  510. // _POSIX_C_SOURCE == 200809L 1003.1-2008
  511. //
  512. // In addition, the X/Open Portability Guide, which is now the Single UNIX
  513. // Specification, defines a feature-test macro which indicates the version of
  514. // that specification, and which subsumes _POSIX_C_SOURCE.
  515. // Deal with IEEE Std. 1003.1-1990, in which _POSIX_C_SOURCE == 1L.
  516. // Deal with IEEE Std. 1003.2-1992, in which _POSIX_C_SOURCE == 2L.
  517. // Deal with various X/Open Portability Guides and Single UNIX Spec.
  518. // Deal with all versions of POSIX. The ordering relative to the tests above is
  519. // important.
  520. // POSIX C deprecation macros
  521. // Copyright (c) 2010 Apple Inc. All rights reserved.
  522. //
  523. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  524. //
  525. // This file contains Original Code and/or Modifications of Original Code
  526. // as defined in and that are subject to the Apple Public Source License
  527. // Version 2.0 (the 'License'). You may not use this file except in
  528. // compliance with the License. The rights granted to you under the License
  529. // may not be used to create, or enable the creation or redistribution of,
  530. // unlawful or unlicensed copies of an Apple operating system, or to
  531. // circumvent, violate, or enable the circumvention or violation of, any
  532. // terms of an Apple operating system software license agreement.
  533. //
  534. // Please obtain a copy of the License at
  535. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  536. //
  537. // The Original Code and all software distributed under the License are
  538. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  539. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  540. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  541. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  542. // Please see the License for the specific language governing rights and
  543. // limitations under the License.
  544. //
  545. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  546. // Set a single macro which will always be defined and can be used to determine
  547. // the appropriate namespace. For POSIX, these values will correspond to
  548. // _POSIX_C_SOURCE value. Currently there are two additional levels corresponding
  549. // to ANSI (_ANSI_SOURCE) and Darwin extensions (_DARWIN_C_SOURCE)
  550. // If the developer has neither requested a strict language mode nor a version
  551. // of POSIX, turn on functionality provided by __STDC_WANT_LIB_EXT1__ as part
  552. // of __DARWIN_C_FULL.
  553. // long long is not supported in c89 (__STRICT_ANSI__), but g++ -ansi and
  554. // c99 still want long longs. While not perfect, we allow long longs for
  555. // g++.
  556. // ****************************************
  557. //
  558. // Public darwin-specific feature macros
  559. //
  560. // _DARWIN_FEATURE_64_BIT_INODE indicates that the ino_t type is 64-bit, and
  561. // structures modified for 64-bit inodes (like struct stat) will be used.
  562. // _DARWIN_FEATURE_64_ONLY_BIT_INODE indicates that the ino_t type may only
  563. // be 64-bit; there is no support for 32-bit ino_t when this macro is defined
  564. // (and non-zero). There is no struct stat64 either, as the regular
  565. // struct stat will already be the 64-bit version.
  566. // _DARWIN_FEATURE_ONLY_VERS_1050 indicates that only those APIs updated
  567. // in 10.5 exists; no pre-10.5 variants are available.
  568. // _DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE indicates only UNIX conforming API
  569. // are available (the legacy BSD APIs are not available)
  570. // _DARWIN_FEATURE_UNIX_CONFORMANCE indicates whether UNIX conformance is on,
  571. // and specifies the conformance level (3 is SUSv3)
  572. // This macro casts away the qualifier from the variable
  573. //
  574. // Note: use at your own risk, removing qualifiers can result in
  575. // catastrophic run-time failures.
  576. // __XNU_PRIVATE_EXTERN is a linkage decoration indicating that a symbol can be
  577. // used from other compilation units, but not other libraries or executables.
  578. // We intentionally define to nothing pointer attributes which do not have an
  579. // impact on the ABI. __indexable and __bidi_indexable are not defined because
  580. // of the ABI incompatibility that makes the diagnostic preferable.
  581. // Similarly, we intentionally define to nothing the
  582. // __ptrcheck_abi_assume_single and __ptrcheck_abi_assume_unsafe_indexable
  583. // macros because they do not lead to an ABI incompatibility. However, we do not
  584. // define the indexable and unsafe_indexable ones because the diagnostic is
  585. // better than the silent ABI break.
  586. // __unsafe_forge intrinsics are defined as regular C casts.
  587. // decay operates normally; attribute is meaningless without pointer checks.
  588. // Architecture validation for current SDK
  589. // Similar to OS_ENUM/OS_CLOSED_ENUM/OS_OPTIONS/OS_CLOSED_OPTIONS
  590. //
  591. // This provides more advanced type checking on compilers supporting
  592. // the proper extensions, even in C.
  593. // Copyright (c) 2004, 2008, 2009 Apple Inc. All rights reserved.
  594. //
  595. // @APPLE_LICENSE_HEADER_START@
  596. //
  597. // This file contains Original Code and/or Modifications of Original Code
  598. // as defined in and that are subject to the Apple Public Source License
  599. // Version 2.0 (the 'License'). You may not use this file except in
  600. // compliance with the License. Please obtain a copy of the License at
  601. // http://www.opensource.apple.com/apsl/ and read it before using this
  602. // file.
  603. //
  604. // The Original Code and all software distributed under the License are
  605. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  606. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  607. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  608. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  609. // Please see the License for the specific language governing rights and
  610. // limitations under the License.
  611. //
  612. // @APPLE_LICENSE_HEADER_END@
  613. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  614. //
  615. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  616. //
  617. // This file contains Original Code and/or Modifications of Original Code
  618. // as defined in and that are subject to the Apple Public Source License
  619. // Version 2.0 (the 'License'). You may not use this file except in
  620. // compliance with the License. The rights granted to you under the License
  621. // may not be used to create, or enable the creation or redistribution of,
  622. // unlawful or unlicensed copies of an Apple operating system, or to
  623. // circumvent, violate, or enable the circumvention or violation of, any
  624. // terms of an Apple operating system software license agreement.
  625. //
  626. // Please obtain a copy of the License at
  627. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  628. //
  629. // The Original Code and all software distributed under the License are
  630. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  631. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  632. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  633. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  634. // Please see the License for the specific language governing rights and
  635. // limitations under the License.
  636. //
  637. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  638. // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  639. //
  640. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  641. //
  642. // This file contains Original Code and/or Modifications of Original Code
  643. // as defined in and that are subject to the Apple Public Source License
  644. // Version 2.0 (the 'License'). You may not use this file except in
  645. // compliance with the License. The rights granted to you under the License
  646. // may not be used to create, or enable the creation or redistribution of,
  647. // unlawful or unlicensed copies of an Apple operating system, or to
  648. // circumvent, violate, or enable the circumvention or violation of, any
  649. // terms of an Apple operating system software license agreement.
  650. //
  651. // Please obtain a copy of the License at
  652. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  653. //
  654. // The Original Code and all software distributed under the License are
  655. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  656. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  657. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  658. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  659. // Please see the License for the specific language governing rights and
  660. // limitations under the License.
  661. //
  662. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  663. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  664. // Copyright (c) 1991, 1993
  665. // The Regents of the University of California. All rights reserved.
  666. //
  667. // This code is derived from software contributed to Berkeley by
  668. // Berkeley Software Design, Inc.
  669. //
  670. // Redistribution and use in source and binary forms, with or without
  671. // modification, are permitted provided that the following conditions
  672. // are met:
  673. // 1. Redistributions of source code must retain the above copyright
  674. // notice, this list of conditions and the following disclaimer.
  675. // 2. Redistributions in binary form must reproduce the above copyright
  676. // notice, this list of conditions and the following disclaimer in the
  677. // documentation and/or other materials provided with the distribution.
  678. // 3. All advertising materials mentioning features or use of this software
  679. // must display the following acknowledgement:
  680. // This product includes software developed by the University of
  681. // California, Berkeley and its contributors.
  682. // 4. Neither the name of the University nor the names of its contributors
  683. // may be used to endorse or promote products derived from this software
  684. // without specific prior written permission.
  685. //
  686. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  687. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  688. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  689. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  690. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  691. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  692. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  693. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  694. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  695. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  696. // SUCH DAMAGE.
  697. //
  698. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  699. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  700. //
  701. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  702. //
  703. // This file contains Original Code and/or Modifications of Original Code
  704. // as defined in and that are subject to the Apple Public Source License
  705. // Version 2.0 (the 'License'). You may not use this file except in
  706. // compliance with the License. The rights granted to you under the License
  707. // may not be used to create, or enable the creation or redistribution of,
  708. // unlawful or unlicensed copies of an Apple operating system, or to
  709. // circumvent, violate, or enable the circumvention or violation of, any
  710. // terms of an Apple operating system software license agreement.
  711. //
  712. // Please obtain a copy of the License at
  713. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  714. //
  715. // The Original Code and all software distributed under the License are
  716. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  717. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  718. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  719. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  720. // Please see the License for the specific language governing rights and
  721. // limitations under the License.
  722. //
  723. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  724. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  725. // This header file contains integer types. It's intended to also contain
  726. // flotaing point and other arithmetic types, as needed, later.
  727. type X__int8_t = int8 /* _types.h:15:33 */
  728. type X__uint8_t = uint8 /* _types.h:19:33 */
  729. type X__int16_t = int16 /* _types.h:20:33 */
  730. type X__uint16_t = uint16 /* _types.h:21:33 */
  731. type X__int32_t = int32 /* _types.h:22:33 */
  732. type X__uint32_t = uint32 /* _types.h:23:33 */
  733. type X__int64_t = int64 /* _types.h:24:33 */
  734. type X__uint64_t = uint64 /* _types.h:25:33 */
  735. type X__darwin_intptr_t = int64 /* _types.h:27:33 */
  736. type X__darwin_natural_t = uint32 /* _types.h:28:33 */
  737. // The rune type below is declared to be an ``int'' instead of the more natural
  738. // ``unsigned long'' or ``long''. Two things are happening here. It is not
  739. // unsigned so that EOF (-1) can be naturally assigned to it and used. Also,
  740. // it looks like 10646 will be a 31 bit standard. This means that if your
  741. // ints cannot hold 32 bits, you will be in trouble. The reason an int was
  742. // chosen over a long is that the is*() and to*() routines take ints (says
  743. // ANSI C), but they use __darwin_ct_rune_t instead of int. By changing it
  744. // here, you lose a bit of ANSI conformance, but your programs will still
  745. // work.
  746. //
  747. // NOTE: rune_t is not covered by ANSI nor other standards, and should not
  748. // be instantiated outside of lib/libc/locale. Use wchar_t. wchar_t and
  749. // rune_t must be the same type. Also wint_t must be no narrower than
  750. // wchar_t, and should also be able to hold all members of the largest
  751. // character set plus one extra value (WEOF). wint_t must be at least 16 bits.
  752. type X__darwin_ct_rune_t = int32 /* _types.h:48:33 */ // ct_rune_t
  753. // mbstate_t is an opaque object to keep conversion state, during multibyte
  754. // stream conversions. The content must not be referenced by user programs.
  755. type X__mbstate_t = struct {
  756. F__ccgo_pad1 [0]uint64
  757. F__mbstate8 [128]int8
  758. } /* _types.h:57:3 */
  759. type X__darwin_mbstate_t = X__mbstate_t /* _types.h:59:33 */ // mbstate_t
  760. type X__darwin_ptrdiff_t = int64 /* _types.h:62:33 */ // ptr1 - ptr2
  761. type X__darwin_size_t = uint64 /* _types.h:70:33 */ // sizeof()
  762. type X__darwin_va_list = X__builtin_va_list /* _types.h:76:33 */ // va_list
  763. type X__darwin_wchar_t = int32 /* _types.h:82:33 */ // wchar_t
  764. type X__darwin_rune_t = X__darwin_wchar_t /* _types.h:87:33 */ // rune_t
  765. type X__darwin_wint_t = int32 /* _types.h:90:33 */ // wint_t
  766. type X__darwin_clock_t = uint64 /* _types.h:95:33 */ // clock()
  767. type X__darwin_socklen_t = X__uint32_t /* _types.h:96:33 */ // socklen_t (duh)
  768. type X__darwin_ssize_t = int64 /* _types.h:97:33 */ // byte count or error
  769. type X__darwin_time_t = int64 /* _types.h:98:33 */ // time()
  770. // Type definitions; takes common type definitions that must be used
  771. // in multiple header files due to [XSI], removes them from the system
  772. // space, and puts them in the implementation space.
  773. type X__darwin_blkcnt_t = X__int64_t /* _types.h:55:25 */ // total blocks
  774. type X__darwin_blksize_t = X__int32_t /* _types.h:56:25 */ // preferred block size
  775. type X__darwin_dev_t = X__int32_t /* _types.h:57:25 */ // dev_t
  776. type X__darwin_fsblkcnt_t = uint32 /* _types.h:58:25 */ // Used by statvfs and fstatvfs
  777. type X__darwin_fsfilcnt_t = uint32 /* _types.h:59:25 */ // Used by statvfs and fstatvfs
  778. type X__darwin_gid_t = X__uint32_t /* _types.h:60:25 */ // [???] process and group IDs
  779. type X__darwin_id_t = X__uint32_t /* _types.h:61:25 */ // [XSI] pid_t, uid_t, or gid_t
  780. type X__darwin_ino64_t = X__uint64_t /* _types.h:62:25 */ // [???] Used for 64 bit inodes
  781. type X__darwin_ino_t = X__darwin_ino64_t /* _types.h:64:26 */ // [???] Used for inodes
  782. type X__darwin_mach_port_name_t = X__darwin_natural_t /* _types.h:68:28 */ // Used by mach
  783. type X__darwin_mach_port_t = X__darwin_mach_port_name_t /* _types.h:69:35 */ // Used by mach
  784. type X__darwin_mode_t = X__uint16_t /* _types.h:70:25 */ // [???] Some file attributes
  785. type X__darwin_off_t = X__int64_t /* _types.h:71:25 */ // [???] Used for file sizes
  786. type X__darwin_pid_t = X__int32_t /* _types.h:72:25 */ // [???] process and group IDs
  787. type X__darwin_sigset_t = X__uint32_t /* _types.h:73:25 */ // [???] signal set
  788. type X__darwin_suseconds_t = X__int32_t /* _types.h:74:25 */ // [???] microseconds
  789. type X__darwin_uid_t = X__uint32_t /* _types.h:75:25 */ // [???] user IDs
  790. type X__darwin_useconds_t = X__uint32_t /* _types.h:76:25 */ // [???] microseconds
  791. type X__darwin_uuid_t = [16]uint8 /* _types.h:77:25 */
  792. type X__darwin_uuid_string_t = [37]int8 /* _types.h:78:17 */
  793. // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  794. //
  795. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  796. //
  797. // This file contains Original Code and/or Modifications of Original Code
  798. // as defined in and that are subject to the Apple Public Source License
  799. // Version 2.0 (the 'License'). You may not use this file except in
  800. // compliance with the License. The rights granted to you under the License
  801. // may not be used to create, or enable the creation or redistribution of,
  802. // unlawful or unlicensed copies of an Apple operating system, or to
  803. // circumvent, violate, or enable the circumvention or violation of, any
  804. // terms of an Apple operating system software license agreement.
  805. //
  806. // Please obtain a copy of the License at
  807. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  808. //
  809. // The Original Code and all software distributed under the License are
  810. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  811. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  812. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  813. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  814. // Please see the License for the specific language governing rights and
  815. // limitations under the License.
  816. //
  817. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  818. // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  819. //
  820. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  821. //
  822. // This file contains Original Code and/or Modifications of Original Code
  823. // as defined in and that are subject to the Apple Public Source License
  824. // Version 2.0 (the 'License'). You may not use this file except in
  825. // compliance with the License. The rights granted to you under the License
  826. // may not be used to create, or enable the creation or redistribution of,
  827. // unlawful or unlicensed copies of an Apple operating system, or to
  828. // circumvent, violate, or enable the circumvention or violation of, any
  829. // terms of an Apple operating system software license agreement.
  830. //
  831. // Please obtain a copy of the License at
  832. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  833. //
  834. // The Original Code and all software distributed under the License are
  835. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  836. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  837. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  838. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  839. // Please see the License for the specific language governing rights and
  840. // limitations under the License.
  841. //
  842. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  843. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  844. // Copyright (c) 1991, 1993
  845. // The Regents of the University of California. All rights reserved.
  846. //
  847. // This code is derived from software contributed to Berkeley by
  848. // Berkeley Software Design, Inc.
  849. //
  850. // Redistribution and use in source and binary forms, with or without
  851. // modification, are permitted provided that the following conditions
  852. // are met:
  853. // 1. Redistributions of source code must retain the above copyright
  854. // notice, this list of conditions and the following disclaimer.
  855. // 2. Redistributions in binary form must reproduce the above copyright
  856. // notice, this list of conditions and the following disclaimer in the
  857. // documentation and/or other materials provided with the distribution.
  858. // 3. All advertising materials mentioning features or use of this software
  859. // must display the following acknowledgement:
  860. // This product includes software developed by the University of
  861. // California, Berkeley and its contributors.
  862. // 4. Neither the name of the University nor the names of its contributors
  863. // may be used to endorse or promote products derived from this software
  864. // without specific prior written permission.
  865. //
  866. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  867. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  868. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  869. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  870. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  871. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  872. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  873. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  874. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  875. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  876. // SUCH DAMAGE.
  877. //
  878. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  879. // pthread opaque structures
  880. type X__darwin_pthread_handler_rec = struct {
  881. F__routine uintptr
  882. F__arg uintptr
  883. F__next uintptr
  884. } /* _pthread_types.h:57:1 */
  885. type X_opaque_pthread_attr_t = struct {
  886. F__sig int64
  887. F__opaque [56]int8
  888. } /* _pthread_types.h:63:1 */
  889. type X_opaque_pthread_cond_t = struct {
  890. F__sig int64
  891. F__opaque [40]int8
  892. } /* _pthread_types.h:68:1 */
  893. type X_opaque_pthread_condattr_t = struct {
  894. F__sig int64
  895. F__opaque [8]int8
  896. } /* _pthread_types.h:73:1 */
  897. type X_opaque_pthread_mutex_t = struct {
  898. F__sig int64
  899. F__opaque [56]int8
  900. } /* _pthread_types.h:78:1 */
  901. type X_opaque_pthread_mutexattr_t = struct {
  902. F__sig int64
  903. F__opaque [8]int8
  904. } /* _pthread_types.h:83:1 */
  905. type X_opaque_pthread_once_t = struct {
  906. F__sig int64
  907. F__opaque [8]int8
  908. } /* _pthread_types.h:88:1 */
  909. type X_opaque_pthread_rwlock_t = struct {
  910. F__sig int64
  911. F__opaque [192]int8
  912. } /* _pthread_types.h:93:1 */
  913. type X_opaque_pthread_rwlockattr_t = struct {
  914. F__sig int64
  915. F__opaque [16]int8
  916. } /* _pthread_types.h:98:1 */
  917. type X_opaque_pthread_t = struct {
  918. F__sig int64
  919. F__cleanup_stack uintptr
  920. F__opaque [8176]int8
  921. } /* _pthread_types.h:103:1 */
  922. type X__darwin_pthread_attr_t = X_opaque_pthread_attr_t /* _pthread_types.h:109:39 */
  923. type X__darwin_pthread_cond_t = X_opaque_pthread_cond_t /* _pthread_types.h:110:39 */
  924. type X__darwin_pthread_condattr_t = X_opaque_pthread_condattr_t /* _pthread_types.h:111:43 */
  925. type X__darwin_pthread_key_t = uint64 /* _pthread_types.h:112:23 */
  926. type X__darwin_pthread_mutex_t = X_opaque_pthread_mutex_t /* _pthread_types.h:113:40 */
  927. type X__darwin_pthread_mutexattr_t = X_opaque_pthread_mutexattr_t /* _pthread_types.h:114:44 */
  928. type X__darwin_pthread_once_t = X_opaque_pthread_once_t /* _pthread_types.h:115:39 */
  929. type X__darwin_pthread_rwlock_t = X_opaque_pthread_rwlock_t /* _pthread_types.h:116:41 */
  930. type X__darwin_pthread_rwlockattr_t = X_opaque_pthread_rwlockattr_t /* _pthread_types.h:117:45 */
  931. type X__darwin_pthread_t = uintptr /* _pthread_types.h:118:34 */
  932. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  933. //
  934. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  935. //
  936. // This file contains Original Code and/or Modifications of Original Code
  937. // as defined in and that are subject to the Apple Public Source License
  938. // Version 2.0 (the 'License'). You may not use this file except in
  939. // compliance with the License. The rights granted to you under the License
  940. // may not be used to create, or enable the creation or redistribution of,
  941. // unlawful or unlicensed copies of an Apple operating system, or to
  942. // circumvent, violate, or enable the circumvention or violation of, any
  943. // terms of an Apple operating system software license agreement.
  944. //
  945. // Please obtain a copy of the License at
  946. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  947. //
  948. // The Original Code and all software distributed under the License are
  949. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  950. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  951. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  952. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  953. // Please see the License for the specific language governing rights and
  954. // limitations under the License.
  955. //
  956. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  957. type X__darwin_nl_item = int32 /* _types.h:40:14 */
  958. type X__darwin_wctrans_t = int32 /* _types.h:41:14 */
  959. type X__darwin_wctype_t = X__uint32_t /* _types.h:43:20 */
  960. // Copyright (c) 2000-2006 Apple Computer, Inc. All rights reserved.
  961. //
  962. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  963. //
  964. // This file contains Original Code and/or Modifications of Original Code
  965. // as defined in and that are subject to the Apple Public Source License
  966. // Version 2.0 (the 'License'). You may not use this file except in
  967. // compliance with the License. The rights granted to you under the License
  968. // may not be used to create, or enable the creation or redistribution of,
  969. // unlawful or unlicensed copies of an Apple operating system, or to
  970. // circumvent, violate, or enable the circumvention or violation of, any
  971. // terms of an Apple operating system software license agreement.
  972. //
  973. // Please obtain a copy of the License at
  974. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  975. //
  976. // The Original Code and all software distributed under the License are
  977. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  978. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  979. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  980. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  981. // Please see the License for the specific language governing rights and
  982. // limitations under the License.
  983. //
  984. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  985. // Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved
  986. // Copyright (c) 1982, 1986, 1989, 1991, 1993
  987. // The Regents of the University of California. All rights reserved.
  988. // (c) UNIX System Laboratories, Inc.
  989. // All or some portions of this file are derived from material licensed
  990. // to the University of California by American Telephone and Telegraph
  991. // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  992. // the permission of UNIX System Laboratories, Inc.
  993. //
  994. // Redistribution and use in source and binary forms, with or without
  995. // modification, are permitted provided that the following conditions
  996. // are met:
  997. // 1. Redistributions of source code must retain the above copyright
  998. // notice, this list of conditions and the following disclaimer.
  999. // 2. Redistributions in binary form must reproduce the above copyright
  1000. // notice, this list of conditions and the following disclaimer in the
  1001. // documentation and/or other materials provided with the distribution.
  1002. // 3. All advertising materials mentioning features or use of this software
  1003. // must display the following acknowledgement:
  1004. // This product includes software developed by the University of
  1005. // California, Berkeley and its contributors.
  1006. // 4. Neither the name of the University nor the names of its contributors
  1007. // may be used to endorse or promote products derived from this software
  1008. // without specific prior written permission.
  1009. //
  1010. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1011. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1012. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1013. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1014. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1015. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1016. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1017. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1018. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1019. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1020. // SUCH DAMAGE.
  1021. //
  1022. // @(#)signal.h 8.2 (Berkeley) 1/21/94
  1023. // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  1024. //
  1025. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1026. //
  1027. // This file contains Original Code and/or Modifications of Original Code
  1028. // as defined in and that are subject to the Apple Public Source License
  1029. // Version 2.0 (the 'License'). You may not use this file except in
  1030. // compliance with the License. The rights granted to you under the License
  1031. // may not be used to create, or enable the creation or redistribution of,
  1032. // unlawful or unlicensed copies of an Apple operating system, or to
  1033. // circumvent, violate, or enable the circumvention or violation of, any
  1034. // terms of an Apple operating system software license agreement.
  1035. //
  1036. // Please obtain a copy of the License at
  1037. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1038. //
  1039. // The Original Code and all software distributed under the License are
  1040. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1041. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1042. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1043. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1044. // Please see the License for the specific language governing rights and
  1045. // limitations under the License.
  1046. //
  1047. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1048. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  1049. // Copyright (c) 1991, 1993
  1050. // The Regents of the University of California. All rights reserved.
  1051. //
  1052. // This code is derived from software contributed to Berkeley by
  1053. // Berkeley Software Design, Inc.
  1054. //
  1055. // Redistribution and use in source and binary forms, with or without
  1056. // modification, are permitted provided that the following conditions
  1057. // are met:
  1058. // 1. Redistributions of source code must retain the above copyright
  1059. // notice, this list of conditions and the following disclaimer.
  1060. // 2. Redistributions in binary form must reproduce the above copyright
  1061. // notice, this list of conditions and the following disclaimer in the
  1062. // documentation and/or other materials provided with the distribution.
  1063. // 3. All advertising materials mentioning features or use of this software
  1064. // must display the following acknowledgement:
  1065. // This product includes software developed by the University of
  1066. // California, Berkeley and its contributors.
  1067. // 4. Neither the name of the University nor the names of its contributors
  1068. // may be used to endorse or promote products derived from this software
  1069. // without specific prior written permission.
  1070. //
  1071. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1072. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1073. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1074. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1075. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1076. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1077. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1078. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1079. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1080. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1081. // SUCH DAMAGE.
  1082. //
  1083. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  1084. // Copyright (c) 2002 Apple Computer, Inc. All rights reserved.
  1085. //
  1086. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1087. //
  1088. // This file contains Original Code and/or Modifications of Original Code
  1089. // as defined in and that are subject to the Apple Public Source License
  1090. // Version 2.0 (the 'License'). You may not use this file except in
  1091. // compliance with the License. The rights granted to you under the License
  1092. // may not be used to create, or enable the creation or redistribution of,
  1093. // unlawful or unlicensed copies of an Apple operating system, or to
  1094. // circumvent, violate, or enable the circumvention or violation of, any
  1095. // terms of an Apple operating system software license agreement.
  1096. //
  1097. // Please obtain a copy of the License at
  1098. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1099. //
  1100. // The Original Code and all software distributed under the License are
  1101. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1102. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1103. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1104. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1105. // Please see the License for the specific language governing rights and
  1106. // limitations under the License.
  1107. //
  1108. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1109. // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  1110. //
  1111. // @APPLE_LICENSE_HEADER_START@
  1112. //
  1113. // This file contains Original Code and/or Modifications of Original Code
  1114. // as defined in and that are subject to the Apple Public Source License
  1115. // Version 2.0 (the 'License'). You may not use this file except in
  1116. // compliance with the License. Please obtain a copy of the License at
  1117. // http://www.opensource.apple.com/apsl/ and read it before using this
  1118. // file.
  1119. //
  1120. // The Original Code and all software distributed under the License are
  1121. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1122. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1123. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1124. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1125. // Please see the License for the specific language governing rights and
  1126. // limitations under the License.
  1127. //
  1128. // @APPLE_LICENSE_HEADER_END@
  1129. //
  1130. // These macros are for use in OS header files. They enable function prototypes
  1131. // and Objective-C methods to be tagged with the OS version in which they
  1132. // were first available; and, if applicable, the OS version in which they
  1133. // became deprecated.
  1134. //
  1135. // The desktop Mac OS X and iOS each have different version numbers.
  1136. // The __OSX_AVAILABLE_STARTING() macro allows you to specify both the desktop
  1137. // and iOS version numbers. For instance:
  1138. // __OSX_AVAILABLE_STARTING(__MAC_10_2,__IPHONE_2_0)
  1139. // means the function/method was first available on Mac OS X 10.2 on the desktop
  1140. // and first available in iOS 2.0 on the iPhone.
  1141. //
  1142. // If a function is available on one platform, but not the other a _NA (not
  1143. // applicable) parameter is used. For instance:
  1144. // __OSX_AVAILABLE_STARTING(__MAC_10_3,__IPHONE_NA)
  1145. // means that the function/method was first available on Mac OS X 10.3, and it
  1146. // currently not implemented on the iPhone.
  1147. //
  1148. // At some point, a function/method may be deprecated. That means Apple
  1149. // recommends applications stop using the function, either because there is a
  1150. // better replacement or the functionality is being phased out. Deprecated
  1151. // functions/methods can be tagged with a __OSX_AVAILABLE_BUT_DEPRECATED()
  1152. // macro which specifies the OS version where the function became available
  1153. // as well as the OS version in which it became deprecated. For instance:
  1154. // __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0,__MAC_10_5,__IPHONE_NA,__IPHONE_NA)
  1155. // means that the function/method was introduced in Mac OS X 10.0, then
  1156. // became deprecated beginning in Mac OS X 10.5. On iOS the function
  1157. // has never been available.
  1158. //
  1159. // For these macros to function properly, a program must specify the OS version range
  1160. // it is targeting. The min OS version is specified as an option to the compiler:
  1161. // -mmacosx-version-min=10.x when building for Mac OS X, and -miphoneos-version-min=y.z
  1162. // when building for the iPhone. The upper bound for the OS version is rarely needed,
  1163. // but it can be set on the command line via: -D__MAC_OS_X_VERSION_MAX_ALLOWED=10x0 for
  1164. // Mac OS X and __IPHONE_OS_VERSION_MAX_ALLOWED = y0z00 for iOS.
  1165. //
  1166. // Examples:
  1167. //
  1168. // A function available in Mac OS X 10.5 and later, but not on the phone:
  1169. //
  1170. // extern void mymacfunc() __OSX_AVAILABLE_STARTING(__MAC_10_5,__IPHONE_NA);
  1171. //
  1172. //
  1173. // An Objective-C method in Mac OS X 10.5 and later, but not on the phone:
  1174. //
  1175. // @interface MyClass : NSObject
  1176. // -(void) mymacmethod __OSX_AVAILABLE_STARTING(__MAC_10_5,__IPHONE_NA);
  1177. // @end
  1178. //
  1179. //
  1180. // An enum available on the phone, but not available on Mac OS X:
  1181. //
  1182. // #if __IPHONE_OS_VERSION_MIN_REQUIRED
  1183. // enum { myEnum = 1 };
  1184. // #endif
  1185. // Note: this works when targeting the Mac OS X platform because
  1186. // __IPHONE_OS_VERSION_MIN_REQUIRED is undefined which evaluates to zero.
  1187. //
  1188. //
  1189. // An enum with values added in different iPhoneOS versions:
  1190. //
  1191. // enum {
  1192. // myX = 1, // Usable on iPhoneOS 2.1 and later
  1193. // myY = 2, // Usable on iPhoneOS 3.0 and later
  1194. // myZ = 3, // Usable on iPhoneOS 3.0 and later
  1195. // ...
  1196. // Note: you do not want to use #if with enumeration values
  1197. // when a client needs to see all values at compile time
  1198. // and use runtime logic to only use the viable values.
  1199. //
  1200. //
  1201. // It is also possible to use the *_VERSION_MIN_REQUIRED in source code to make one
  1202. // source base that can be compiled to target a range of OS versions. It is best
  1203. // to not use the _MAC_* and __IPHONE_* macros for comparisons, but rather their values.
  1204. // That is because you might get compiled on an old OS that does not define a later
  1205. // OS version macro, and in the C preprocessor undefined values evaluate to zero
  1206. // in expresssions, which could cause the #if expression to evaluate in an unexpected
  1207. // way.
  1208. //
  1209. // #ifdef __MAC_OS_X_VERSION_MIN_REQUIRED
  1210. // // code only compiled when targeting Mac OS X and not iPhone
  1211. // // note use of 1050 instead of __MAC_10_5
  1212. // #if __MAC_OS_X_VERSION_MIN_REQUIRED < 1050
  1213. // // code in here might run on pre-Leopard OS
  1214. // #else
  1215. // // code here can assume Leopard or later
  1216. // #endif
  1217. // #endif
  1218. //
  1219. //
  1220. // __API_TO_BE_DEPRECATED is used as a version number in API that will be deprecated
  1221. // in an upcoming release. This soft deprecation is an intermediate step before formal
  1222. // deprecation to notify developers about the API before compiler warnings are generated.
  1223. // You can find all places in your code that use soft deprecated API by redefining the
  1224. // value of this macro to your current minimum deployment target, for example:
  1225. // (macOS)
  1226. // clang -D__API_TO_BE_DEPRECATED=10.12 <other compiler flags>
  1227. // (iOS)
  1228. // clang -D__API_TO_BE_DEPRECATED=11.0 <other compiler flags>
  1229. // Copyright (c) 2019 by Apple Inc.. All rights reserved.
  1230. //
  1231. // @APPLE_LICENSE_HEADER_START@
  1232. //
  1233. // This file contains Original Code and/or Modifications of Original Code
  1234. // as defined in and that are subject to the Apple Public Source License
  1235. // Version 2.0 (the 'License'). You may not use this file except in
  1236. // compliance with the License. Please obtain a copy of the License at
  1237. // http://www.opensource.apple.com/apsl/ and read it before using this
  1238. // file.
  1239. //
  1240. // The Original Code and all software distributed under the License are
  1241. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1242. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1243. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1244. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1245. // Please see the License for the specific language governing rights and
  1246. // limitations under the License.
  1247. //
  1248. // @APPLE_LICENSE_HEADER_END@
  1249. // __MAC_NA is not defined to a value but is used as a token by macros to indicate that the API is unavailable
  1250. // __IPHONE_NA is not defined to a value but is used as a token by macros to indicate that the API is unavailable
  1251. // Set up standard Mac OS X versions
  1252. // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  1253. //
  1254. // @APPLE_LICENSE_HEADER_START@
  1255. //
  1256. // This file contains Original Code and/or Modifications of Original Code
  1257. // as defined in and that are subject to the Apple Public Source License
  1258. // Version 2.0 (the 'License'). You may not use this file except in
  1259. // compliance with the License. Please obtain a copy of the License at
  1260. // http://www.opensource.apple.com/apsl/ and read it before using this
  1261. // file.
  1262. //
  1263. // The Original Code and all software distributed under the License are
  1264. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1265. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1266. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1267. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1268. // Please see the License for the specific language governing rights and
  1269. // limitations under the License.
  1270. //
  1271. // @APPLE_LICENSE_HEADER_END@
  1272. //
  1273. // File: AvailabilityInternal.h
  1274. //
  1275. // Contains: implementation details of __OSX_AVAILABLE_* macros from <Availability.h>
  1276. //
  1277. // compiler for Mac OS X sets __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__
  1278. // make sure a default max version is set
  1279. //
  1280. // Macros for defining which versions/platform a given symbol can be used.
  1281. //
  1282. // @see http://clang.llvm.org/docs/AttributeReference.html#availability
  1283. //
  1284. // Evaluate to nothing for compilers that don't support availability.
  1285. // Swift compiler version
  1286. // Allows for project-agnostic "epochs" for frameworks imported into Swift via the Clang importer, like #if _compiler_version for Swift
  1287. // Example:
  1288. //
  1289. // #if __swift_compiler_version_at_least(800, 2, 20)
  1290. // - (nonnull NSString *)description;
  1291. // #else
  1292. // - (NSString *)description;
  1293. // #endif
  1294. // If __SPI_AVAILABLE has not been defined elsewhere, disable it.
  1295. // for use to document app extension usage
  1296. // for use marking APIs available info for Mac OSX
  1297. // for use marking APIs available info for iOS
  1298. // for use marking APIs available info for tvOS
  1299. // for use marking APIs available info for Watch OS
  1300. // for use marking APIs unavailable for swift
  1301. //
  1302. // Macros for defining which versions/platform a given symbol can be used.
  1303. //
  1304. // @see http://clang.llvm.org/docs/AttributeReference.html#availability
  1305. //
  1306. // * Note that these macros are only compatible with clang compilers that
  1307. // * support the following target selection options:
  1308. // *
  1309. // * -mmacosx-version-min
  1310. // * -miphoneos-version-min
  1311. // * -mwatchos-version-min
  1312. // * -mtvos-version-min
  1313. //
  1314. // Evaluate to nothing for compilers that don't support availability.
  1315. // If SPI decorations have not been defined elsewhere, disable them.
  1316. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  1317. //
  1318. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1319. //
  1320. // This file contains Original Code and/or Modifications of Original Code
  1321. // as defined in and that are subject to the Apple Public Source License
  1322. // Version 2.0 (the 'License'). You may not use this file except in
  1323. // compliance with the License. The rights granted to you under the License
  1324. // may not be used to create, or enable the creation or redistribution of,
  1325. // unlawful or unlicensed copies of an Apple operating system, or to
  1326. // circumvent, violate, or enable the circumvention or violation of, any
  1327. // terms of an Apple operating system software license agreement.
  1328. //
  1329. // Please obtain a copy of the License at
  1330. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1331. //
  1332. // The Original Code and all software distributed under the License are
  1333. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1334. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1335. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1336. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1337. // Please see the License for the specific language governing rights and
  1338. // limitations under the License.
  1339. //
  1340. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1341. // Copyright (c) 2000-2009 Apple, Inc. All rights reserved.
  1342. // Copyright (c) 1992 NeXT Computer, Inc.
  1343. //
  1344. // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  1345. //
  1346. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1347. //
  1348. // This file contains Original Code and/or Modifications of Original Code
  1349. // as defined in and that are subject to the Apple Public Source License
  1350. // Version 2.0 (the 'License'). You may not use this file except in
  1351. // compliance with the License. The rights granted to you under the License
  1352. // may not be used to create, or enable the creation or redistribution of,
  1353. // unlawful or unlicensed copies of an Apple operating system, or to
  1354. // circumvent, violate, or enable the circumvention or violation of, any
  1355. // terms of an Apple operating system software license agreement.
  1356. //
  1357. // Please obtain a copy of the License at
  1358. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1359. //
  1360. // The Original Code and all software distributed under the License are
  1361. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1362. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1363. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1364. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1365. // Please see the License for the specific language governing rights and
  1366. // limitations under the License.
  1367. //
  1368. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1369. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  1370. // Copyright (c) 1991, 1993
  1371. // The Regents of the University of California. All rights reserved.
  1372. //
  1373. // This code is derived from software contributed to Berkeley by
  1374. // Berkeley Software Design, Inc.
  1375. //
  1376. // Redistribution and use in source and binary forms, with or without
  1377. // modification, are permitted provided that the following conditions
  1378. // are met:
  1379. // 1. Redistributions of source code must retain the above copyright
  1380. // notice, this list of conditions and the following disclaimer.
  1381. // 2. Redistributions in binary form must reproduce the above copyright
  1382. // notice, this list of conditions and the following disclaimer in the
  1383. // documentation and/or other materials provided with the distribution.
  1384. // 3. All advertising materials mentioning features or use of this software
  1385. // must display the following acknowledgement:
  1386. // This product includes software developed by the University of
  1387. // California, Berkeley and its contributors.
  1388. // 4. Neither the name of the University nor the names of its contributors
  1389. // may be used to endorse or promote products derived from this software
  1390. // without specific prior written permission.
  1391. //
  1392. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1393. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1394. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1395. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1396. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1397. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1398. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1399. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1400. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1401. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1402. // SUCH DAMAGE.
  1403. //
  1404. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  1405. type Sig_atomic_t = int32 /* signal.h:17:13 */
  1406. // Language spec sez we must list exactly one parameter, even though we
  1407. // actually supply three. Ugh!
  1408. // SIG_HOLD is chosen to avoid KERN_SIG_* values in <sys/signalvar.h>
  1409. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  1410. //
  1411. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1412. //
  1413. // This file contains Original Code and/or Modifications of Original Code
  1414. // as defined in and that are subject to the Apple Public Source License
  1415. // Version 2.0 (the 'License'). You may not use this file except in
  1416. // compliance with the License. The rights granted to you under the License
  1417. // may not be used to create, or enable the creation or redistribution of,
  1418. // unlawful or unlicensed copies of an Apple operating system, or to
  1419. // circumvent, violate, or enable the circumvention or violation of, any
  1420. // terms of an Apple operating system software license agreement.
  1421. //
  1422. // Please obtain a copy of the License at
  1423. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1424. //
  1425. // The Original Code and all software distributed under the License are
  1426. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1427. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1428. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1429. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1430. // Please see the License for the specific language governing rights and
  1431. // limitations under the License.
  1432. //
  1433. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1434. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  1435. //
  1436. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1437. //
  1438. // This file contains Original Code and/or Modifications of Original Code
  1439. // as defined in and that are subject to the Apple Public Source License
  1440. // Version 2.0 (the 'License'). You may not use this file except in
  1441. // compliance with the License. The rights granted to you under the License
  1442. // may not be used to create, or enable the creation or redistribution of,
  1443. // unlawful or unlicensed copies of an Apple operating system, or to
  1444. // circumvent, violate, or enable the circumvention or violation of, any
  1445. // terms of an Apple operating system software license agreement.
  1446. //
  1447. // Please obtain a copy of the License at
  1448. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1449. //
  1450. // The Original Code and all software distributed under the License are
  1451. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1452. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1453. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1454. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1455. // Please see the License for the specific language governing rights and
  1456. // limitations under the License.
  1457. //
  1458. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1459. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  1460. //
  1461. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1462. //
  1463. // This file contains Original Code and/or Modifications of Original Code
  1464. // as defined in and that are subject to the Apple Public Source License
  1465. // Version 2.0 (the 'License'). You may not use this file except in
  1466. // compliance with the License. The rights granted to you under the License
  1467. // may not be used to create, or enable the creation or redistribution of,
  1468. // unlawful or unlicensed copies of an Apple operating system, or to
  1469. // circumvent, violate, or enable the circumvention or violation of, any
  1470. // terms of an Apple operating system software license agreement.
  1471. //
  1472. // Please obtain a copy of the License at
  1473. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1474. //
  1475. // The Original Code and all software distributed under the License are
  1476. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1477. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1478. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1479. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1480. // Please see the License for the specific language governing rights and
  1481. // limitations under the License.
  1482. //
  1483. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1484. // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  1485. //
  1486. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1487. //
  1488. // This file contains Original Code and/or Modifications of Original Code
  1489. // as defined in and that are subject to the Apple Public Source License
  1490. // Version 2.0 (the 'License'). You may not use this file except in
  1491. // compliance with the License. The rights granted to you under the License
  1492. // may not be used to create, or enable the creation or redistribution of,
  1493. // unlawful or unlicensed copies of an Apple operating system, or to
  1494. // circumvent, violate, or enable the circumvention or violation of, any
  1495. // terms of an Apple operating system software license agreement.
  1496. //
  1497. // Please obtain a copy of the License at
  1498. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1499. //
  1500. // The Original Code and all software distributed under the License are
  1501. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1502. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1503. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1504. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1505. // Please see the License for the specific language governing rights and
  1506. // limitations under the License.
  1507. //
  1508. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1509. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  1510. // Copyright (c) 1991, 1993
  1511. // The Regents of the University of California. All rights reserved.
  1512. //
  1513. // This code is derived from software contributed to Berkeley by
  1514. // Berkeley Software Design, Inc.
  1515. //
  1516. // Redistribution and use in source and binary forms, with or without
  1517. // modification, are permitted provided that the following conditions
  1518. // are met:
  1519. // 1. Redistributions of source code must retain the above copyright
  1520. // notice, this list of conditions and the following disclaimer.
  1521. // 2. Redistributions in binary form must reproduce the above copyright
  1522. // notice, this list of conditions and the following disclaimer in the
  1523. // documentation and/or other materials provided with the distribution.
  1524. // 3. All advertising materials mentioning features or use of this software
  1525. // must display the following acknowledgement:
  1526. // This product includes software developed by the University of
  1527. // California, Berkeley and its contributors.
  1528. // 4. Neither the name of the University nor the names of its contributors
  1529. // may be used to endorse or promote products derived from this software
  1530. // without specific prior written permission.
  1531. //
  1532. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1533. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1534. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1535. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1536. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1537. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1538. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1539. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1540. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1541. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1542. // SUCH DAMAGE.
  1543. //
  1544. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  1545. // Copyright (c) 2002 Apple Computer, Inc. All rights reserved.
  1546. //
  1547. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1548. //
  1549. // This file contains Original Code and/or Modifications of Original Code
  1550. // as defined in and that are subject to the Apple Public Source License
  1551. // Version 2.0 (the 'License'). You may not use this file except in
  1552. // compliance with the License. The rights granted to you under the License
  1553. // may not be used to create, or enable the creation or redistribution of,
  1554. // unlawful or unlicensed copies of an Apple operating system, or to
  1555. // circumvent, violate, or enable the circumvention or violation of, any
  1556. // terms of an Apple operating system software license agreement.
  1557. //
  1558. // Please obtain a copy of the License at
  1559. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1560. //
  1561. // The Original Code and all software distributed under the License are
  1562. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1563. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1564. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1565. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1566. // Please see the License for the specific language governing rights and
  1567. // limitations under the License.
  1568. //
  1569. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1570. // Copyright (c) 2017 Apple Inc. All rights reserved.
  1571. //
  1572. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1573. //
  1574. // This file contains Original Code and/or Modifications of Original Code
  1575. // as defined in and that are subject to the Apple Public Source License
  1576. // Version 2.0 (the 'License'). You may not use this file except in
  1577. // compliance with the License. The rights granted to you under the License
  1578. // may not be used to create, or enable the creation or redistribution of,
  1579. // unlawful or unlicensed copies of an Apple operating system, or to
  1580. // circumvent, violate, or enable the circumvention or violation of, any
  1581. // terms of an Apple operating system software license agreement.
  1582. //
  1583. // Please obtain a copy of the License at
  1584. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1585. //
  1586. // The Original Code and all software distributed under the License are
  1587. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1588. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1589. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1590. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1591. // Please see the License for the specific language governing rights and
  1592. // limitations under the License.
  1593. //
  1594. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1595. // Copyright (c) 2004-2007 Apple Inc. All rights reserved.
  1596. //
  1597. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1598. //
  1599. // This file contains Original Code and/or Modifications of Original Code
  1600. // as defined in and that are subject to the Apple Public Source License
  1601. // Version 2.0 (the 'License'). You may not use this file except in
  1602. // compliance with the License. The rights granted to you under the License
  1603. // may not be used to create, or enable the creation or redistribution of,
  1604. // unlawful or unlicensed copies of an Apple operating system, or to
  1605. // circumvent, violate, or enable the circumvention or violation of, any
  1606. // terms of an Apple operating system software license agreement.
  1607. //
  1608. // Please obtain a copy of the License at
  1609. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1610. //
  1611. // The Original Code and all software distributed under the License are
  1612. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1613. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1614. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1615. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1616. // Please see the License for the specific language governing rights and
  1617. // limitations under the License.
  1618. //
  1619. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1620. // @OSF_COPYRIGHT@
  1621. // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  1622. //
  1623. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1624. //
  1625. // This file contains Original Code and/or Modifications of Original Code
  1626. // as defined in and that are subject to the Apple Public Source License
  1627. // Version 2.0 (the 'License'). You may not use this file except in
  1628. // compliance with the License. The rights granted to you under the License
  1629. // may not be used to create, or enable the creation or redistribution of,
  1630. // unlawful or unlicensed copies of an Apple operating system, or to
  1631. // circumvent, violate, or enable the circumvention or violation of, any
  1632. // terms of an Apple operating system software license agreement.
  1633. //
  1634. // Please obtain a copy of the License at
  1635. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1636. //
  1637. // The Original Code and all software distributed under the License are
  1638. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1639. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1640. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1641. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1642. // Please see the License for the specific language governing rights and
  1643. // limitations under the License.
  1644. //
  1645. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1646. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  1647. // Copyright (c) 1991, 1993
  1648. // The Regents of the University of California. All rights reserved.
  1649. //
  1650. // This code is derived from software contributed to Berkeley by
  1651. // Berkeley Software Design, Inc.
  1652. //
  1653. // Redistribution and use in source and binary forms, with or without
  1654. // modification, are permitted provided that the following conditions
  1655. // are met:
  1656. // 1. Redistributions of source code must retain the above copyright
  1657. // notice, this list of conditions and the following disclaimer.
  1658. // 2. Redistributions in binary form must reproduce the above copyright
  1659. // notice, this list of conditions and the following disclaimer in the
  1660. // documentation and/or other materials provided with the distribution.
  1661. // 3. All advertising materials mentioning features or use of this software
  1662. // must display the following acknowledgement:
  1663. // This product includes software developed by the University of
  1664. // California, Berkeley and its contributors.
  1665. // 4. Neither the name of the University nor the names of its contributors
  1666. // may be used to endorse or promote products derived from this software
  1667. // without specific prior written permission.
  1668. //
  1669. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1670. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1671. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1672. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1673. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1674. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1675. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1676. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1677. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1678. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1679. // SUCH DAMAGE.
  1680. //
  1681. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  1682. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  1683. //
  1684. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1685. //
  1686. // This file contains Original Code and/or Modifications of Original Code
  1687. // as defined in and that are subject to the Apple Public Source License
  1688. // Version 2.0 (the 'License'). You may not use this file except in
  1689. // compliance with the License. The rights granted to you under the License
  1690. // may not be used to create, or enable the creation or redistribution of,
  1691. // unlawful or unlicensed copies of an Apple operating system, or to
  1692. // circumvent, violate, or enable the circumvention or violation of, any
  1693. // terms of an Apple operating system software license agreement.
  1694. //
  1695. // Please obtain a copy of the License at
  1696. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1697. //
  1698. // The Original Code and all software distributed under the License are
  1699. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1700. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1701. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1702. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1703. // Please see the License for the specific language governing rights and
  1704. // limitations under the License.
  1705. //
  1706. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1707. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  1708. // Copyright (c) 2000-2008 Apple Inc. All rights reserved.
  1709. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  1710. // Copyright (c) 1990, 1993
  1711. // The Regents of the University of California. All rights reserved.
  1712. //
  1713. // Redistribution and use in source and binary forms, with or without
  1714. // modification, are permitted provided that the following conditions
  1715. // are met:
  1716. // 1. Redistributions of source code must retain the above copyright
  1717. // notice, this list of conditions and the following disclaimer.
  1718. // 2. Redistributions in binary form must reproduce the above copyright
  1719. // notice, this list of conditions and the following disclaimer in the
  1720. // documentation and/or other materials provided with the distribution.
  1721. // 3. All advertising materials mentioning features or use of this software
  1722. // must display the following acknowledgement:
  1723. // This product includes software developed by the University of
  1724. // California, Berkeley and its contributors.
  1725. // 4. Neither the name of the University nor the names of its contributors
  1726. // may be used to endorse or promote products derived from this software
  1727. // without specific prior written permission.
  1728. //
  1729. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1730. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1731. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1732. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1733. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1734. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1735. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1736. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1737. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1738. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1739. // SUCH DAMAGE.
  1740. //
  1741. // @(#)types.h 8.3 (Berkeley) 1/5/94
  1742. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  1743. // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  1744. //
  1745. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1746. //
  1747. // This file contains Original Code and/or Modifications of Original Code
  1748. // as defined in and that are subject to the Apple Public Source License
  1749. // Version 2.0 (the 'License'). You may not use this file except in
  1750. // compliance with the License. The rights granted to you under the License
  1751. // may not be used to create, or enable the creation or redistribution of,
  1752. // unlawful or unlicensed copies of an Apple operating system, or to
  1753. // circumvent, violate, or enable the circumvention or violation of, any
  1754. // terms of an Apple operating system software license agreement.
  1755. //
  1756. // Please obtain a copy of the License at
  1757. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1758. //
  1759. // The Original Code and all software distributed under the License are
  1760. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1761. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1762. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1763. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1764. // Please see the License for the specific language governing rights and
  1765. // limitations under the License.
  1766. //
  1767. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1768. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  1769. // Copyright (c) 1991, 1993
  1770. // The Regents of the University of California. All rights reserved.
  1771. //
  1772. // This code is derived from software contributed to Berkeley by
  1773. // Berkeley Software Design, Inc.
  1774. //
  1775. // Redistribution and use in source and binary forms, with or without
  1776. // modification, are permitted provided that the following conditions
  1777. // are met:
  1778. // 1. Redistributions of source code must retain the above copyright
  1779. // notice, this list of conditions and the following disclaimer.
  1780. // 2. Redistributions in binary form must reproduce the above copyright
  1781. // notice, this list of conditions and the following disclaimer in the
  1782. // documentation and/or other materials provided with the distribution.
  1783. // 3. All advertising materials mentioning features or use of this software
  1784. // must display the following acknowledgement:
  1785. // This product includes software developed by the University of
  1786. // California, Berkeley and its contributors.
  1787. // 4. Neither the name of the University nor the names of its contributors
  1788. // may be used to endorse or promote products derived from this software
  1789. // without specific prior written permission.
  1790. //
  1791. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1792. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1793. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1794. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1795. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1796. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1797. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1798. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1799. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1800. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1801. // SUCH DAMAGE.
  1802. //
  1803. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  1804. // Basic integral types. Omit the typedef if
  1805. // not possible for a machine/compiler combination.
  1806. // Copyright (c) 2012 Apple Inc. All rights reserved.
  1807. //
  1808. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1809. //
  1810. // This file contains Original Code and/or Modifications of Original Code
  1811. // as defined in and that are subject to the Apple Public Source License
  1812. // Version 2.0 (the 'License'). You may not use this file except in
  1813. // compliance with the License. The rights granted to you under the License
  1814. // may not be used to create, or enable the creation or redistribution of,
  1815. // unlawful or unlicensed copies of an Apple operating system, or to
  1816. // circumvent, violate, or enable the circumvention or violation of, any
  1817. // terms of an Apple operating system software license agreement.
  1818. //
  1819. // Please obtain a copy of the License at
  1820. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1821. //
  1822. // The Original Code and all software distributed under the License are
  1823. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1824. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1825. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1826. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1827. // Please see the License for the specific language governing rights and
  1828. // limitations under the License.
  1829. //
  1830. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1831. type Int8_t = int8 /* _int8_t.h:30:31 */
  1832. // Copyright (c) 2012 Apple Inc. All rights reserved.
  1833. //
  1834. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1835. //
  1836. // This file contains Original Code and/or Modifications of Original Code
  1837. // as defined in and that are subject to the Apple Public Source License
  1838. // Version 2.0 (the 'License'). You may not use this file except in
  1839. // compliance with the License. The rights granted to you under the License
  1840. // may not be used to create, or enable the creation or redistribution of,
  1841. // unlawful or unlicensed copies of an Apple operating system, or to
  1842. // circumvent, violate, or enable the circumvention or violation of, any
  1843. // terms of an Apple operating system software license agreement.
  1844. //
  1845. // Please obtain a copy of the License at
  1846. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1847. //
  1848. // The Original Code and all software distributed under the License are
  1849. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1850. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1851. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1852. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1853. // Please see the License for the specific language governing rights and
  1854. // limitations under the License.
  1855. //
  1856. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1857. type Int16_t = int16 /* _int16_t.h:30:33 */
  1858. // Copyright (c) 2012 Apple Inc. All rights reserved.
  1859. //
  1860. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1861. //
  1862. // This file contains Original Code and/or Modifications of Original Code
  1863. // as defined in and that are subject to the Apple Public Source License
  1864. // Version 2.0 (the 'License'). You may not use this file except in
  1865. // compliance with the License. The rights granted to you under the License
  1866. // may not be used to create, or enable the creation or redistribution of,
  1867. // unlawful or unlicensed copies of an Apple operating system, or to
  1868. // circumvent, violate, or enable the circumvention or violation of, any
  1869. // terms of an Apple operating system software license agreement.
  1870. //
  1871. // Please obtain a copy of the License at
  1872. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1873. //
  1874. // The Original Code and all software distributed under the License are
  1875. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1876. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1877. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1878. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1879. // Please see the License for the specific language governing rights and
  1880. // limitations under the License.
  1881. //
  1882. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1883. type Int32_t = int32 /* _int32_t.h:30:33 */
  1884. // Copyright (c) 2012 Apple Inc. All rights reserved.
  1885. //
  1886. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1887. //
  1888. // This file contains Original Code and/or Modifications of Original Code
  1889. // as defined in and that are subject to the Apple Public Source License
  1890. // Version 2.0 (the 'License'). You may not use this file except in
  1891. // compliance with the License. The rights granted to you under the License
  1892. // may not be used to create, or enable the creation or redistribution of,
  1893. // unlawful or unlicensed copies of an Apple operating system, or to
  1894. // circumvent, violate, or enable the circumvention or violation of, any
  1895. // terms of an Apple operating system software license agreement.
  1896. //
  1897. // Please obtain a copy of the License at
  1898. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1899. //
  1900. // The Original Code and all software distributed under the License are
  1901. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1902. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1903. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1904. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1905. // Please see the License for the specific language governing rights and
  1906. // limitations under the License.
  1907. //
  1908. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1909. type Int64_t = int64 /* _int64_t.h:30:33 */
  1910. // Copyright (c) 2016 Apple Inc. All rights reserved.
  1911. //
  1912. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1913. //
  1914. // This file contains Original Code and/or Modifications of Original Code
  1915. // as defined in and that are subject to the Apple Public Source License
  1916. // Version 2.0 (the 'License'). You may not use this file except in
  1917. // compliance with the License. The rights granted to you under the License
  1918. // may not be used to create, or enable the creation or redistribution of,
  1919. // unlawful or unlicensed copies of an Apple operating system, or to
  1920. // circumvent, violate, or enable the circumvention or violation of, any
  1921. // terms of an Apple operating system software license agreement.
  1922. //
  1923. // Please obtain a copy of the License at
  1924. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1925. //
  1926. // The Original Code and all software distributed under the License are
  1927. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1928. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1929. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1930. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1931. // Please see the License for the specific language governing rights and
  1932. // limitations under the License.
  1933. //
  1934. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1935. type U_int8_t = uint8 /* _u_int8_t.h:30:33 */
  1936. // Copyright (c) 2012 Apple Inc. All rights reserved.
  1937. //
  1938. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1939. //
  1940. // This file contains Original Code and/or Modifications of Original Code
  1941. // as defined in and that are subject to the Apple Public Source License
  1942. // Version 2.0 (the 'License'). You may not use this file except in
  1943. // compliance with the License. The rights granted to you under the License
  1944. // may not be used to create, or enable the creation or redistribution of,
  1945. // unlawful or unlicensed copies of an Apple operating system, or to
  1946. // circumvent, violate, or enable the circumvention or violation of, any
  1947. // terms of an Apple operating system software license agreement.
  1948. //
  1949. // Please obtain a copy of the License at
  1950. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1951. //
  1952. // The Original Code and all software distributed under the License are
  1953. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1954. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1955. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1956. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1957. // Please see the License for the specific language governing rights and
  1958. // limitations under the License.
  1959. //
  1960. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1961. type U_int16_t = uint16 /* _u_int16_t.h:30:41 */
  1962. // Copyright (c) 2012 Apple Inc. All rights reserved.
  1963. //
  1964. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1965. //
  1966. // This file contains Original Code and/or Modifications of Original Code
  1967. // as defined in and that are subject to the Apple Public Source License
  1968. // Version 2.0 (the 'License'). You may not use this file except in
  1969. // compliance with the License. The rights granted to you under the License
  1970. // may not be used to create, or enable the creation or redistribution of,
  1971. // unlawful or unlicensed copies of an Apple operating system, or to
  1972. // circumvent, violate, or enable the circumvention or violation of, any
  1973. // terms of an Apple operating system software license agreement.
  1974. //
  1975. // Please obtain a copy of the License at
  1976. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1977. //
  1978. // The Original Code and all software distributed under the License are
  1979. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1980. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1981. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1982. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1983. // Please see the License for the specific language governing rights and
  1984. // limitations under the License.
  1985. //
  1986. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1987. type U_int32_t = uint32 /* _u_int32_t.h:30:33 */
  1988. // Copyright (c) 2012 Apple Inc. All rights reserved.
  1989. //
  1990. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1991. //
  1992. // This file contains Original Code and/or Modifications of Original Code
  1993. // as defined in and that are subject to the Apple Public Source License
  1994. // Version 2.0 (the 'License'). You may not use this file except in
  1995. // compliance with the License. The rights granted to you under the License
  1996. // may not be used to create, or enable the creation or redistribution of,
  1997. // unlawful or unlicensed copies of an Apple operating system, or to
  1998. // circumvent, violate, or enable the circumvention or violation of, any
  1999. // terms of an Apple operating system software license agreement.
  2000. //
  2001. // Please obtain a copy of the License at
  2002. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2003. //
  2004. // The Original Code and all software distributed under the License are
  2005. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2006. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2007. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2008. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2009. // Please see the License for the specific language governing rights and
  2010. // limitations under the License.
  2011. //
  2012. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2013. type U_int64_t = uint64 /* _u_int64_t.h:30:33 */
  2014. type Register_t = Int64_t /* types.h:66:33 */
  2015. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2016. //
  2017. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2018. //
  2019. // This file contains Original Code and/or Modifications of Original Code
  2020. // as defined in and that are subject to the Apple Public Source License
  2021. // Version 2.0 (the 'License'). You may not use this file except in
  2022. // compliance with the License. The rights granted to you under the License
  2023. // may not be used to create, or enable the creation or redistribution of,
  2024. // unlawful or unlicensed copies of an Apple operating system, or to
  2025. // circumvent, violate, or enable the circumvention or violation of, any
  2026. // terms of an Apple operating system software license agreement.
  2027. //
  2028. // Please obtain a copy of the License at
  2029. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2030. //
  2031. // The Original Code and all software distributed under the License are
  2032. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2033. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2034. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2035. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2036. // Please see the License for the specific language governing rights and
  2037. // limitations under the License.
  2038. //
  2039. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2040. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  2041. //
  2042. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2043. //
  2044. // This file contains Original Code and/or Modifications of Original Code
  2045. // as defined in and that are subject to the Apple Public Source License
  2046. // Version 2.0 (the 'License'). You may not use this file except in
  2047. // compliance with the License. The rights granted to you under the License
  2048. // may not be used to create, or enable the creation or redistribution of,
  2049. // unlawful or unlicensed copies of an Apple operating system, or to
  2050. // circumvent, violate, or enable the circumvention or violation of, any
  2051. // terms of an Apple operating system software license agreement.
  2052. //
  2053. // Please obtain a copy of the License at
  2054. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2055. //
  2056. // The Original Code and all software distributed under the License are
  2057. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2058. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2059. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2060. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2061. // Please see the License for the specific language governing rights and
  2062. // limitations under the License.
  2063. //
  2064. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2065. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  2066. type Intptr_t = X__darwin_intptr_t /* _intptr_t.h:32:33 */
  2067. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2068. //
  2069. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2070. //
  2071. // This file contains Original Code and/or Modifications of Original Code
  2072. // as defined in and that are subject to the Apple Public Source License
  2073. // Version 2.0 (the 'License'). You may not use this file except in
  2074. // compliance with the License. The rights granted to you under the License
  2075. // may not be used to create, or enable the creation or redistribution of,
  2076. // unlawful or unlicensed copies of an Apple operating system, or to
  2077. // circumvent, violate, or enable the circumvention or violation of, any
  2078. // terms of an Apple operating system software license agreement.
  2079. //
  2080. // Please obtain a copy of the License at
  2081. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2082. //
  2083. // The Original Code and all software distributed under the License are
  2084. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2085. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2086. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2087. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2088. // Please see the License for the specific language governing rights and
  2089. // limitations under the License.
  2090. //
  2091. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2092. type Uintptr_t = uint64 /* _uintptr_t.h:34:33 */
  2093. // These types are used for reserving the largest possible size.
  2094. type User_addr_t = U_int64_t /* types.h:77:33 */
  2095. type User_size_t = U_int64_t /* types.h:78:33 */
  2096. type User_ssize_t = Int64_t /* types.h:79:33 */
  2097. type User_long_t = Int64_t /* types.h:80:33 */
  2098. type User_ulong_t = U_int64_t /* types.h:81:33 */
  2099. type User_time_t = Int64_t /* types.h:82:33 */
  2100. type User_off_t = Int64_t /* types.h:83:33 */
  2101. // This defines the size of syscall arguments after copying into the kernel:
  2102. type Syscall_arg_t = U_int64_t /* types.h:104:33 */
  2103. type X__darwin_arm_exception_state = struct {
  2104. F__exception X__uint32_t
  2105. F__fsr X__uint32_t
  2106. F__far X__uint32_t
  2107. } /* _structs.h:41:1 */
  2108. type X__darwin_arm_exception_state64 = struct {
  2109. F__far X__uint64_t
  2110. F__esr X__uint32_t
  2111. F__exception X__uint32_t
  2112. } /* _structs.h:59:1 */
  2113. type X__darwin_arm_thread_state = struct {
  2114. F__r [13]X__uint32_t
  2115. F__sp X__uint32_t
  2116. F__lr X__uint32_t
  2117. F__pc X__uint32_t
  2118. F__cpsr X__uint32_t
  2119. } /* _structs.h:77:1 */
  2120. // By default, the pointer fields in the arm_thread_state64_t structure are
  2121. // opaque on the arm64e architecture and require the use of accessor macros.
  2122. // This mode can also be enabled on the arm64 architecture by building with
  2123. // -D__DARWIN_OPAQUE_ARM_THREAD_STATE64=1.
  2124. type X__darwin_arm_thread_state64 = struct {
  2125. F__x [29]X__uint64_t
  2126. F__fp X__uint64_t
  2127. F__lr X__uint64_t
  2128. F__sp X__uint64_t
  2129. F__pc X__uint64_t
  2130. F__cpsr X__uint32_t
  2131. F__pad X__uint32_t
  2132. } /* _structs.h:136:1 */
  2133. // Accessor macros for arm_thread_state64_t pointer fields
  2134. // Return pc field of arm_thread_state64_t as a data pointer value
  2135. // Return pc field of arm_thread_state64_t as a function pointer
  2136. // Set pc field of arm_thread_state64_t to a function pointer
  2137. // Return lr field of arm_thread_state64_t as a data pointer value
  2138. // Return lr field of arm_thread_state64_t as a function pointer
  2139. // Set lr field of arm_thread_state64_t to a function pointer
  2140. // Return sp field of arm_thread_state64_t as a data pointer value
  2141. // Set sp field of arm_thread_state64_t to a data pointer value
  2142. // Return fp field of arm_thread_state64_t as a data pointer value
  2143. // Set fp field of arm_thread_state64_t to a data pointer value
  2144. // Strip ptr auth bits from pc, lr, sp and fp field of arm_thread_state64_t
  2145. type X__darwin_arm_vfp_state = struct {
  2146. F__r [64]X__uint32_t
  2147. F__fpscr X__uint32_t
  2148. } /* _structs.h:433:1 */
  2149. type X__darwin_arm_neon_state64 = struct {
  2150. F__v [32]X__uint128_t
  2151. F__fpsr X__uint32_t
  2152. F__fpcr X__uint32_t
  2153. } /* _structs.h:452:1 */
  2154. type X__darwin_arm_neon_state = struct {
  2155. F__v [16]X__uint128_t
  2156. F__fpsr X__uint32_t
  2157. F__fpcr X__uint32_t
  2158. } /* _structs.h:459:1 */
  2159. type X__arm_pagein_state = struct{ F__pagein_error int32 } /* _structs.h:523:1 */
  2160. // Debug State
  2161. // ARM's arm_debug_state is ARM64's arm_legacy_debug_state
  2162. type X__arm_legacy_debug_state = struct {
  2163. F__bvr [16]X__uint32_t
  2164. F__bcr [16]X__uint32_t
  2165. F__wvr [16]X__uint32_t
  2166. F__wcr [16]X__uint32_t
  2167. } /* _structs.h:560:1 */
  2168. type X__darwin_arm_debug_state32 = struct {
  2169. F__bvr [16]X__uint32_t
  2170. F__bcr [16]X__uint32_t
  2171. F__wvr [16]X__uint32_t
  2172. F__wcr [16]X__uint32_t
  2173. F__mdscr_el1 X__uint64_t
  2174. } /* _structs.h:583:1 */
  2175. type X__darwin_arm_debug_state64 = struct {
  2176. F__bvr [16]X__uint64_t
  2177. F__bcr [16]X__uint64_t
  2178. F__wvr [16]X__uint64_t
  2179. F__wcr [16]X__uint64_t
  2180. F__mdscr_el1 X__uint64_t
  2181. } /* _structs.h:593:1 */
  2182. type X__darwin_arm_cpmu_state64 = struct{ F__ctrs [16]X__uint64_t } /* _structs.h:625:1 */
  2183. type X__darwin_mcontext32 = struct {
  2184. F__es struct {
  2185. F__exception X__uint32_t
  2186. F__fsr X__uint32_t
  2187. F__far X__uint32_t
  2188. }
  2189. F__ss struct {
  2190. F__r [13]X__uint32_t
  2191. F__sp X__uint32_t
  2192. F__lr X__uint32_t
  2193. F__pc X__uint32_t
  2194. F__cpsr X__uint32_t
  2195. }
  2196. F__fs struct {
  2197. F__r [64]X__uint32_t
  2198. F__fpscr X__uint32_t
  2199. }
  2200. } /* _mcontext.h:41:1 */
  2201. type X__darwin_mcontext64 = struct {
  2202. F__es struct {
  2203. F__far X__uint64_t
  2204. F__esr X__uint32_t
  2205. F__exception X__uint32_t
  2206. }
  2207. F__ss struct {
  2208. F__x [29]X__uint64_t
  2209. F__fp X__uint64_t
  2210. F__lr X__uint64_t
  2211. F__sp X__uint64_t
  2212. F__pc X__uint64_t
  2213. F__cpsr X__uint32_t
  2214. F__pad X__uint32_t
  2215. }
  2216. F__ns struct {
  2217. F__v [32]X__uint128_t
  2218. F__fpsr X__uint32_t
  2219. F__fpcr X__uint32_t
  2220. }
  2221. } /* _mcontext.h:64:1 */
  2222. type Mcontext_t = uintptr /* _mcontext.h:85:33 */
  2223. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2224. //
  2225. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2226. //
  2227. // This file contains Original Code and/or Modifications of Original Code
  2228. // as defined in and that are subject to the Apple Public Source License
  2229. // Version 2.0 (the 'License'). You may not use this file except in
  2230. // compliance with the License. The rights granted to you under the License
  2231. // may not be used to create, or enable the creation or redistribution of,
  2232. // unlawful or unlicensed copies of an Apple operating system, or to
  2233. // circumvent, violate, or enable the circumvention or violation of, any
  2234. // terms of an Apple operating system software license agreement.
  2235. //
  2236. // Please obtain a copy of the License at
  2237. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2238. //
  2239. // The Original Code and all software distributed under the License are
  2240. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2241. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2242. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2243. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2244. // Please see the License for the specific language governing rights and
  2245. // limitations under the License.
  2246. //
  2247. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2248. // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  2249. //
  2250. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2251. //
  2252. // This file contains Original Code and/or Modifications of Original Code
  2253. // as defined in and that are subject to the Apple Public Source License
  2254. // Version 2.0 (the 'License'). You may not use this file except in
  2255. // compliance with the License. The rights granted to you under the License
  2256. // may not be used to create, or enable the creation or redistribution of,
  2257. // unlawful or unlicensed copies of an Apple operating system, or to
  2258. // circumvent, violate, or enable the circumvention or violation of, any
  2259. // terms of an Apple operating system software license agreement.
  2260. //
  2261. // Please obtain a copy of the License at
  2262. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2263. //
  2264. // The Original Code and all software distributed under the License are
  2265. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2266. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2267. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2268. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2269. // Please see the License for the specific language governing rights and
  2270. // limitations under the License.
  2271. //
  2272. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2273. type Pthread_attr_t = X__darwin_pthread_attr_t /* _pthread_attr_t.h:31:33 */
  2274. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2275. //
  2276. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2277. //
  2278. // This file contains Original Code and/or Modifications of Original Code
  2279. // as defined in and that are subject to the Apple Public Source License
  2280. // Version 2.0 (the 'License'). You may not use this file except in
  2281. // compliance with the License. The rights granted to you under the License
  2282. // may not be used to create, or enable the creation or redistribution of,
  2283. // unlawful or unlicensed copies of an Apple operating system, or to
  2284. // circumvent, violate, or enable the circumvention or violation of, any
  2285. // terms of an Apple operating system software license agreement.
  2286. //
  2287. // Please obtain a copy of the License at
  2288. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2289. //
  2290. // The Original Code and all software distributed under the License are
  2291. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2292. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2293. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2294. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2295. // Please see the License for the specific language governing rights and
  2296. // limitations under the License.
  2297. //
  2298. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2299. // Structure used in sigaltstack call.
  2300. // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  2301. //
  2302. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2303. //
  2304. // This file contains Original Code and/or Modifications of Original Code
  2305. // as defined in and that are subject to the Apple Public Source License
  2306. // Version 2.0 (the 'License'). You may not use this file except in
  2307. // compliance with the License. The rights granted to you under the License
  2308. // may not be used to create, or enable the creation or redistribution of,
  2309. // unlawful or unlicensed copies of an Apple operating system, or to
  2310. // circumvent, violate, or enable the circumvention or violation of, any
  2311. // terms of an Apple operating system software license agreement.
  2312. //
  2313. // Please obtain a copy of the License at
  2314. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2315. //
  2316. // The Original Code and all software distributed under the License are
  2317. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2318. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2319. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2320. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2321. // Please see the License for the specific language governing rights and
  2322. // limitations under the License.
  2323. //
  2324. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2325. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  2326. // Copyright (c) 1991, 1993
  2327. // The Regents of the University of California. All rights reserved.
  2328. //
  2329. // This code is derived from software contributed to Berkeley by
  2330. // Berkeley Software Design, Inc.
  2331. //
  2332. // Redistribution and use in source and binary forms, with or without
  2333. // modification, are permitted provided that the following conditions
  2334. // are met:
  2335. // 1. Redistributions of source code must retain the above copyright
  2336. // notice, this list of conditions and the following disclaimer.
  2337. // 2. Redistributions in binary form must reproduce the above copyright
  2338. // notice, this list of conditions and the following disclaimer in the
  2339. // documentation and/or other materials provided with the distribution.
  2340. // 3. All advertising materials mentioning features or use of this software
  2341. // must display the following acknowledgement:
  2342. // This product includes software developed by the University of
  2343. // California, Berkeley and its contributors.
  2344. // 4. Neither the name of the University nor the names of its contributors
  2345. // may be used to endorse or promote products derived from this software
  2346. // without specific prior written permission.
  2347. //
  2348. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  2349. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  2350. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  2351. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  2352. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  2353. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  2354. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  2355. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  2356. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  2357. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  2358. // SUCH DAMAGE.
  2359. //
  2360. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  2361. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  2362. //
  2363. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2364. //
  2365. // This file contains Original Code and/or Modifications of Original Code
  2366. // as defined in and that are subject to the Apple Public Source License
  2367. // Version 2.0 (the 'License'). You may not use this file except in
  2368. // compliance with the License. The rights granted to you under the License
  2369. // may not be used to create, or enable the creation or redistribution of,
  2370. // unlawful or unlicensed copies of an Apple operating system, or to
  2371. // circumvent, violate, or enable the circumvention or violation of, any
  2372. // terms of an Apple operating system software license agreement.
  2373. //
  2374. // Please obtain a copy of the License at
  2375. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2376. //
  2377. // The Original Code and all software distributed under the License are
  2378. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2379. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2380. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2381. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2382. // Please see the License for the specific language governing rights and
  2383. // limitations under the License.
  2384. //
  2385. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2386. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  2387. type X__darwin_sigaltstack = struct {
  2388. Fss_sp uintptr
  2389. Fss_size X__darwin_size_t
  2390. Fss_flags int32
  2391. F__ccgo_pad1 [4]byte
  2392. } /* _sigaltstack.h:42:1 */
  2393. type Stack_t = X__darwin_sigaltstack /* _sigaltstack.h:48:33 */ // [???] signal stack
  2394. // Copyright (c) 2003-2012 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. // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  2420. //
  2421. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2422. //
  2423. // This file contains Original Code and/or Modifications of Original Code
  2424. // as defined in and that are subject to the Apple Public Source License
  2425. // Version 2.0 (the 'License'). You may not use this file except in
  2426. // compliance with the License. The rights granted to you under the License
  2427. // may not be used to create, or enable the creation or redistribution of,
  2428. // unlawful or unlicensed copies of an Apple operating system, or to
  2429. // circumvent, violate, or enable the circumvention or violation of, any
  2430. // terms of an Apple operating system software license agreement.
  2431. //
  2432. // Please obtain a copy of the License at
  2433. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2434. //
  2435. // The Original Code and all software distributed under the License are
  2436. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2437. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2438. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2439. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2440. // Please see the License for the specific language governing rights and
  2441. // limitations under the License.
  2442. //
  2443. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2444. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  2445. // Copyright (c) 1991, 1993
  2446. // The Regents of the University of California. All rights reserved.
  2447. //
  2448. // This code is derived from software contributed to Berkeley by
  2449. // Berkeley Software Design, Inc.
  2450. //
  2451. // Redistribution and use in source and binary forms, with or without
  2452. // modification, are permitted provided that the following conditions
  2453. // are met:
  2454. // 1. Redistributions of source code must retain the above copyright
  2455. // notice, this list of conditions and the following disclaimer.
  2456. // 2. Redistributions in binary form must reproduce the above copyright
  2457. // notice, this list of conditions and the following disclaimer in the
  2458. // documentation and/or other materials provided with the distribution.
  2459. // 3. All advertising materials mentioning features or use of this software
  2460. // must display the following acknowledgement:
  2461. // This product includes software developed by the University of
  2462. // California, Berkeley and its contributors.
  2463. // 4. Neither the name of the University nor the names of its contributors
  2464. // may be used to endorse or promote products derived from this software
  2465. // without specific prior written permission.
  2466. //
  2467. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  2468. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  2469. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  2470. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  2471. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  2472. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  2473. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  2474. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  2475. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  2476. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  2477. // SUCH DAMAGE.
  2478. //
  2479. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  2480. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  2481. //
  2482. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2483. //
  2484. // This file contains Original Code and/or Modifications of Original Code
  2485. // as defined in and that are subject to the Apple Public Source License
  2486. // Version 2.0 (the 'License'). You may not use this file except in
  2487. // compliance with the License. The rights granted to you under the License
  2488. // may not be used to create, or enable the creation or redistribution of,
  2489. // unlawful or unlicensed copies of an Apple operating system, or to
  2490. // circumvent, violate, or enable the circumvention or violation of, any
  2491. // terms of an Apple operating system software license agreement.
  2492. //
  2493. // Please obtain a copy of the License at
  2494. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2495. //
  2496. // The Original Code and all software distributed under the License are
  2497. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2498. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2499. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2500. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2501. // Please see the License for the specific language governing rights and
  2502. // limitations under the License.
  2503. //
  2504. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2505. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  2506. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2507. //
  2508. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2509. //
  2510. // This file contains Original Code and/or Modifications of Original Code
  2511. // as defined in and that are subject to the Apple Public Source License
  2512. // Version 2.0 (the 'License'). You may not use this file except in
  2513. // compliance with the License. The rights granted to you under the License
  2514. // may not be used to create, or enable the creation or redistribution of,
  2515. // unlawful or unlicensed copies of an Apple operating system, or to
  2516. // circumvent, violate, or enable the circumvention or violation of, any
  2517. // terms of an Apple operating system software license agreement.
  2518. //
  2519. // Please obtain a copy of the License at
  2520. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2521. //
  2522. // The Original Code and all software distributed under the License are
  2523. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2524. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2525. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2526. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2527. // Please see the License for the specific language governing rights and
  2528. // limitations under the License.
  2529. //
  2530. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2531. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  2532. //
  2533. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2534. //
  2535. // This file contains Original Code and/or Modifications of Original Code
  2536. // as defined in and that are subject to the Apple Public Source License
  2537. // Version 2.0 (the 'License'). You may not use this file except in
  2538. // compliance with the License. The rights granted to you under the License
  2539. // may not be used to create, or enable the creation or redistribution of,
  2540. // unlawful or unlicensed copies of an Apple operating system, or to
  2541. // circumvent, violate, or enable the circumvention or violation of, any
  2542. // terms of an Apple operating system software license agreement.
  2543. //
  2544. // Please obtain a copy of the License at
  2545. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2546. //
  2547. // The Original Code and all software distributed under the License are
  2548. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2549. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2550. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2551. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2552. // Please see the License for the specific language governing rights and
  2553. // limitations under the License.
  2554. //
  2555. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2556. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2557. //
  2558. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2559. //
  2560. // This file contains Original Code and/or Modifications of Original Code
  2561. // as defined in and that are subject to the Apple Public Source License
  2562. // Version 2.0 (the 'License'). You may not use this file except in
  2563. // compliance with the License. The rights granted to you under the License
  2564. // may not be used to create, or enable the creation or redistribution of,
  2565. // unlawful or unlicensed copies of an Apple operating system, or to
  2566. // circumvent, violate, or enable the circumvention or violation of, any
  2567. // terms of an Apple operating system software license agreement.
  2568. //
  2569. // Please obtain a copy of the License at
  2570. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2571. //
  2572. // The Original Code and all software distributed under the License are
  2573. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2574. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2575. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2576. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2577. // Please see the License for the specific language governing rights and
  2578. // limitations under the License.
  2579. //
  2580. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2581. // Structure used in sigaltstack call.
  2582. type X__darwin_ucontext = struct {
  2583. Fuc_onstack int32
  2584. Fuc_sigmask X__darwin_sigset_t
  2585. Fuc_stack struct {
  2586. Fss_sp uintptr
  2587. Fss_size X__darwin_size_t
  2588. Fss_flags int32
  2589. F__ccgo_pad1 [4]byte
  2590. }
  2591. Fuc_link uintptr
  2592. Fuc_mcsize X__darwin_size_t
  2593. Fuc_mcontext uintptr
  2594. } /* _ucontext.h:43:1 */
  2595. // user context
  2596. type Ucontext_t = X__darwin_ucontext /* _ucontext.h:57:33 */ // [???] user context
  2597. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2598. //
  2599. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2600. //
  2601. // This file contains Original Code and/or Modifications of Original Code
  2602. // as defined in and that are subject to the Apple Public Source License
  2603. // Version 2.0 (the 'License'). You may not use this file except in
  2604. // compliance with the License. The rights granted to you under the License
  2605. // may not be used to create, or enable the creation or redistribution of,
  2606. // unlawful or unlicensed copies of an Apple operating system, or to
  2607. // circumvent, violate, or enable the circumvention or violation of, any
  2608. // terms of an Apple operating system software license agreement.
  2609. //
  2610. // Please obtain a copy of the License at
  2611. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2612. //
  2613. // The Original Code and all software distributed under the License are
  2614. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2615. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2616. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2617. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2618. // Please see the License for the specific language governing rights and
  2619. // limitations under the License.
  2620. //
  2621. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2622. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  2623. //
  2624. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2625. //
  2626. // This file contains Original Code and/or Modifications of Original Code
  2627. // as defined in and that are subject to the Apple Public Source License
  2628. // Version 2.0 (the 'License'). You may not use this file except in
  2629. // compliance with the License. The rights granted to you under the License
  2630. // may not be used to create, or enable the creation or redistribution of,
  2631. // unlawful or unlicensed copies of an Apple operating system, or to
  2632. // circumvent, violate, or enable the circumvention or violation of, any
  2633. // terms of an Apple operating system software license agreement.
  2634. //
  2635. // Please obtain a copy of the License at
  2636. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2637. //
  2638. // The Original Code and all software distributed under the License are
  2639. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2640. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2641. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2642. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2643. // Please see the License for the specific language governing rights and
  2644. // limitations under the License.
  2645. //
  2646. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2647. type Pid_t = X__darwin_pid_t /* _pid_t.h:31:31 */
  2648. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2649. //
  2650. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2651. //
  2652. // This file contains Original Code and/or Modifications of Original Code
  2653. // as defined in and that are subject to the Apple Public Source License
  2654. // Version 2.0 (the 'License'). You may not use this file except in
  2655. // compliance with the License. The rights granted to you under the License
  2656. // may not be used to create, or enable the creation or redistribution of,
  2657. // unlawful or unlicensed copies of an Apple operating system, or to
  2658. // circumvent, violate, or enable the circumvention or violation of, any
  2659. // terms of an Apple operating system software license agreement.
  2660. //
  2661. // Please obtain a copy of the License at
  2662. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2663. //
  2664. // The Original Code and all software distributed under the License are
  2665. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2666. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2667. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2668. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2669. // Please see the License for the specific language governing rights and
  2670. // limitations under the License.
  2671. //
  2672. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2673. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  2674. //
  2675. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2676. //
  2677. // This file contains Original Code and/or Modifications of Original Code
  2678. // as defined in and that are subject to the Apple Public Source License
  2679. // Version 2.0 (the 'License'). You may not use this file except in
  2680. // compliance with the License. The rights granted to you under the License
  2681. // may not be used to create, or enable the creation or redistribution of,
  2682. // unlawful or unlicensed copies of an Apple operating system, or to
  2683. // circumvent, violate, or enable the circumvention or violation of, any
  2684. // terms of an Apple operating system software license agreement.
  2685. //
  2686. // Please obtain a copy of the License at
  2687. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2688. //
  2689. // The Original Code and all software distributed under the License are
  2690. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2691. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2692. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2693. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2694. // Please see the License for the specific language governing rights and
  2695. // limitations under the License.
  2696. //
  2697. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2698. type Sigset_t = X__darwin_sigset_t /* _sigset_t.h:31:41 */
  2699. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2700. //
  2701. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2702. //
  2703. // This file contains Original Code and/or Modifications of Original Code
  2704. // as defined in and that are subject to the Apple Public Source License
  2705. // Version 2.0 (the 'License'). You may not use this file except in
  2706. // compliance with the License. The rights granted to you under the License
  2707. // may not be used to create, or enable the creation or redistribution of,
  2708. // unlawful or unlicensed copies of an Apple operating system, or to
  2709. // circumvent, violate, or enable the circumvention or violation of, any
  2710. // terms of an Apple operating system software license agreement.
  2711. //
  2712. // Please obtain a copy of the License at
  2713. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2714. //
  2715. // The Original Code and all software distributed under the License are
  2716. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2717. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2718. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2719. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2720. // Please see the License for the specific language governing rights and
  2721. // limitations under the License.
  2722. //
  2723. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2724. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  2725. //
  2726. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2727. //
  2728. // This file contains Original Code and/or Modifications of Original Code
  2729. // as defined in and that are subject to the Apple Public Source License
  2730. // Version 2.0 (the 'License'). You may not use this file except in
  2731. // compliance with the License. The rights granted to you under the License
  2732. // may not be used to create, or enable the creation or redistribution of,
  2733. // unlawful or unlicensed copies of an Apple operating system, or to
  2734. // circumvent, violate, or enable the circumvention or violation of, any
  2735. // terms of an Apple operating system software license agreement.
  2736. //
  2737. // Please obtain a copy of the License at
  2738. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2739. //
  2740. // The Original Code and all software distributed under the License are
  2741. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2742. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2743. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2744. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2745. // Please see the License for the specific language governing rights and
  2746. // limitations under the License.
  2747. //
  2748. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2749. type Uid_t = X__darwin_uid_t /* _uid_t.h:31:31 */
  2750. type Sigval = struct {
  2751. F__ccgo_pad1 [0]uint64
  2752. Fsival_int int32
  2753. F__ccgo_pad2 [4]byte
  2754. } /* signal.h:158:1 */
  2755. type Sigevent = struct {
  2756. Fsigev_notify int32
  2757. Fsigev_signo int32
  2758. Fsigev_value struct {
  2759. F__ccgo_pad1 [0]uint64
  2760. Fsival_int int32
  2761. F__ccgo_pad2 [4]byte
  2762. }
  2763. Fsigev_notify_function uintptr
  2764. Fsigev_notify_attributes uintptr
  2765. } /* signal.h:168:1 */
  2766. type X__siginfo = struct {
  2767. Fsi_signo int32
  2768. Fsi_errno int32
  2769. Fsi_code int32
  2770. Fsi_pid Pid_t
  2771. Fsi_uid Uid_t
  2772. Fsi_status int32
  2773. Fsi_addr uintptr
  2774. Fsi_value struct {
  2775. F__ccgo_pad1 [0]uint64
  2776. Fsival_int int32
  2777. F__ccgo_pad2 [4]byte
  2778. }
  2779. Fsi_band int64
  2780. F__pad [7]uint64
  2781. } /* signal.h:177:9 */
  2782. type Siginfo_t = X__siginfo /* signal.h:188:3 */
  2783. // When the signal is SIGILL or SIGFPE, si_addr contains the address of
  2784. // the faulting instruction.
  2785. // When the signal is SIGSEGV or SIGBUS, si_addr contains the address of
  2786. // the faulting memory reference. Although for x86 there are cases of SIGSEGV
  2787. // for which si_addr cannot be determined and is NULL.
  2788. // If the signal is SIGCHLD, the si_pid field will contain the child process ID,
  2789. // si_status contains the exit value or signal and
  2790. // si_uid contains the real user ID of the process that sent the signal.
  2791. // Values for si_code
  2792. // Codes for SIGILL
  2793. // Codes for SIGFPE
  2794. // Codes for SIGSEGV
  2795. // Codes for SIGBUS
  2796. // Codes for SIGTRAP
  2797. // Codes for SIGCHLD
  2798. // Codes for SIGPOLL
  2799. // union for signal handlers
  2800. type X__sigaction_u = struct{ F__sa_handler uintptr } /* signal.h:269:1 */
  2801. // Signal vector template for Kernel user boundary
  2802. type X__sigaction = struct {
  2803. F__sigaction_u struct{ F__sa_handler uintptr }
  2804. Fsa_tramp uintptr
  2805. Fsa_mask Sigset_t
  2806. Fsa_flags int32
  2807. } /* signal.h:276:1 */
  2808. // Signal vector "template" used in sigaction call.
  2809. type Sigaction = struct {
  2810. F__sigaction_u struct{ F__sa_handler uintptr }
  2811. Fsa_mask Sigset_t
  2812. Fsa_flags int32
  2813. } /* signal.h:286:1 */
  2814. // if SA_SIGINFO is set, sa_sigaction is to be used instead of sa_handler.
  2815. // This will provide 64bit register set in a 32bit user address space
  2816. // the following are the only bits we support from user space, the
  2817. // rest are for kernel use only.
  2818. // Flags for sigprocmask:
  2819. // POSIX 1003.1b required values.
  2820. type Sig_t = uintptr /* signal.h:331:14 */ // type of signal function
  2821. // Structure used in sigaltstack call.
  2822. // 4.3 compatibility:
  2823. // Signal vector "template" used in sigvec call.
  2824. type Sigvec = struct {
  2825. Fsv_handler uintptr
  2826. Fsv_mask int32
  2827. Fsv_flags int32
  2828. } /* signal.h:348:1 */
  2829. // Structure used in sigstack call.
  2830. type Sigstack = struct {
  2831. Fss_sp uintptr
  2832. Fss_onstack int32
  2833. F__ccgo_pad1 [4]byte
  2834. } /* signal.h:367:1 */
  2835. // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  2836. //
  2837. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2838. //
  2839. // This file contains Original Code and/or Modifications of Original Code
  2840. // as defined in and that are subject to the Apple Public Source License
  2841. // Version 2.0 (the 'License'). You may not use this file except in
  2842. // compliance with the License. The rights granted to you under the License
  2843. // may not be used to create, or enable the creation or redistribution of,
  2844. // unlawful or unlicensed copies of an Apple operating system, or to
  2845. // circumvent, violate, or enable the circumvention or violation of, any
  2846. // terms of an Apple operating system software license agreement.
  2847. //
  2848. // Please obtain a copy of the License at
  2849. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2850. //
  2851. // The Original Code and all software distributed under the License are
  2852. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2853. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2854. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2855. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2856. // Please see the License for the specific language governing rights and
  2857. // limitations under the License.
  2858. //
  2859. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2860. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2861. //
  2862. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2863. //
  2864. // This file contains Original Code and/or Modifications of Original Code
  2865. // as defined in and that are subject to the Apple Public Source License
  2866. // Version 2.0 (the 'License'). You may not use this file except in
  2867. // compliance with the License. The rights granted to you under the License
  2868. // may not be used to create, or enable the creation or redistribution of,
  2869. // unlawful or unlicensed copies of an Apple operating system, or to
  2870. // circumvent, violate, or enable the circumvention or violation of, any
  2871. // terms of an Apple operating system software license agreement.
  2872. //
  2873. // Please obtain a copy of the License at
  2874. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2875. //
  2876. // The Original Code and all software distributed under the License are
  2877. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2878. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2879. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2880. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2881. // Please see the License for the specific language governing rights and
  2882. // limitations under the License.
  2883. //
  2884. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2885. // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  2886. //
  2887. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2888. //
  2889. // This file contains Original Code and/or Modifications of Original Code
  2890. // as defined in and that are subject to the Apple Public Source License
  2891. // Version 2.0 (the 'License'). You may not use this file except in
  2892. // compliance with the License. The rights granted to you under the License
  2893. // may not be used to create, or enable the creation or redistribution of,
  2894. // unlawful or unlicensed copies of an Apple operating system, or to
  2895. // circumvent, violate, or enable the circumvention or violation of, any
  2896. // terms of an Apple operating system software license agreement.
  2897. //
  2898. // Please obtain a copy of the License at
  2899. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2900. //
  2901. // The Original Code and all software distributed under the License are
  2902. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2903. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2904. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2905. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2906. // Please see the License for the specific language governing rights and
  2907. // limitations under the License.
  2908. //
  2909. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2910. type Pthread_t = X__darwin_pthread_t /* _pthread_t.h:31:28 */
  2911. var _ int8 /* gen.c:2:13: */