stat_darwin_amd64.go 113 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352
  1. // Code generated by 'ccgo sys/stat/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o sys/stat/stat_darwin_amd64.go -pkgname stat', DO NOT EDIT.
  2. package stat
  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. ACCESSPERMS = 511 // stat.h:297:1:
  15. ALLPERMS = 4095 // stat.h:299:1:
  16. DEFFILEMODE = 438 // stat.h:301:1:
  17. EF_IS_PURGEABLE = 0x00000008 // stat.h:370:1:
  18. EF_IS_SPARSE = 0x00000010 // stat.h:371:1:
  19. EF_IS_SYNC_ROOT = 0x00000004 // stat.h:369:1:
  20. EF_MAY_SHARE_BLOCKS = 0x00000001 // stat.h:367:1:
  21. EF_NO_XATTRS = 0x00000002 // stat.h:368:1:
  22. SF_APPEND = 0x00040000 // stat.h:340:1:
  23. SF_ARCHIVED = 0x00010000 // stat.h:338:1:
  24. SF_DATALESS = 0x40000000 // stat.h:359:1:
  25. SF_FIRMLINK = 0x00800000 // stat.h:351:1:
  26. SF_IMMUTABLE = 0x00020000 // stat.h:339:1:
  27. SF_NOUNLINK = 0x00100000 // stat.h:342:1:
  28. SF_RESTRICTED = 0x00080000 // stat.h:341:1:
  29. SF_SETTABLE = 0x3fff0000 // stat.h:336:1:
  30. SF_SUPPORTED = 0x009f0000 // stat.h:335:1:
  31. SF_SYNTHETIC = 0xc0000000 // stat.h:337:1:
  32. S_BLKSIZE = 512 // stat.h:303:1:
  33. S_IEXEC = 64 // _s_ifmt.h:72:1:
  34. S_IFBLK = 0060000 // _s_ifmt.h:39:1:
  35. S_IFCHR = 0020000 // _s_ifmt.h:37:1:
  36. S_IFDIR = 0040000 // _s_ifmt.h:38:1:
  37. S_IFIFO = 0010000 // _s_ifmt.h:36:1:
  38. S_IFLNK = 0120000 // _s_ifmt.h:41:1:
  39. S_IFMT = 0170000 // _s_ifmt.h:35:1:
  40. S_IFREG = 0100000 // _s_ifmt.h:40:1:
  41. S_IFSOCK = 0140000 // _s_ifmt.h:42:1:
  42. S_IFWHT = 0160000 // _s_ifmt.h:44:1:
  43. S_IREAD = 256 // _s_ifmt.h:70:1:
  44. S_IRGRP = 0000040 // _s_ifmt.h:55:1:
  45. S_IROTH = 0000004 // _s_ifmt.h:60:1:
  46. S_IRUSR = 0000400 // _s_ifmt.h:50:1:
  47. S_IRWXG = 0000070 // _s_ifmt.h:54:1:
  48. S_IRWXO = 0000007 // _s_ifmt.h:59:1:
  49. S_IRWXU = 0000700 // _s_ifmt.h:49:1:
  50. S_ISGID = 0002000 // _s_ifmt.h:65:1:
  51. S_ISTXT = 512 // _s_ifmt.h:69:1:
  52. S_ISUID = 0004000 // _s_ifmt.h:64:1:
  53. S_ISVTX = 0001000 // _s_ifmt.h:66:1:
  54. S_IWGRP = 0000020 // _s_ifmt.h:56:1:
  55. S_IWOTH = 0000002 // _s_ifmt.h:61:1:
  56. S_IWRITE = 128 // _s_ifmt.h:71:1:
  57. S_IWUSR = 0000200 // _s_ifmt.h:51:1:
  58. S_IXGRP = 0000010 // _s_ifmt.h:57:1:
  59. S_IXOTH = 0000001 // _s_ifmt.h:62:1:
  60. S_IXUSR = 0000100 // _s_ifmt.h:52:1:
  61. UF_APPEND = 0x00000004 // stat.h:313:1:
  62. UF_COMPRESSED = 0x00000020 // stat.h:320:1:
  63. UF_DATAVAULT = 0x00000080 // stat.h:326:1:
  64. UF_HIDDEN = 0x00008000 // stat.h:330:1:
  65. UF_IMMUTABLE = 0x00000002 // stat.h:312:1:
  66. UF_NODUMP = 0x00000001 // stat.h:311:1:
  67. UF_OPAQUE = 0x00000008 // stat.h:314:1:
  68. UF_SETTABLE = 0x0000ffff // stat.h:310:1:
  69. UF_TRACKED = 0x00000040 // stat.h:324:1:
  70. UTIME_NOW = -1 // stat.h:393:1:
  71. UTIME_OMIT = -2 // stat.h:394:1:
  72. X_BLKCNT_T = 0 // _blkcnt_t.h:29:1:
  73. X_BLKSIZE_T = 0 // _blksize_t.h:29:1:
  74. X_BSD_I386__TYPES_H_ = 0 // _types.h:29:1:
  75. X_BSD_MACHINE_TYPES_H_ = 0 // types.h:32:1:
  76. X_BSD_MACHINE__TYPES_H_ = 0 // _types.h:29:1:
  77. X_CDEFS_H_ = 0 // cdefs.h:68:1:
  78. X_DARWIN_FEATURE_64_BIT_INODE = 1 // cdefs.h:745:1:
  79. X_DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE = 1 // cdefs.h:771:1:
  80. X_DARWIN_FEATURE_UNIX_CONFORMANCE = 3 // cdefs.h:779:1:
  81. X_DEV_T = 0 // _dev_t.h:29:1:
  82. X_FILESEC_T = 0 // _filesec_t.h:29:1:
  83. X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
  84. X_GID_T = 0 // _gid_t.h:29:1:
  85. X_INO64_T = 0 // _ino64_t.h:29:1:
  86. X_INO_T = 0 // _ino_t.h:29:1:
  87. X_INT16_T = 0 // _int16_t.h:29:1:
  88. X_INT32_T = 0 // _int32_t.h:29:1:
  89. X_INT64_T = 0 // _int64_t.h:29:1:
  90. X_INT8_T = 0 // _int8_t.h:29:1:
  91. X_INTPTR_T = 0 // _intptr_t.h:29:1:
  92. X_LP64 = 1 // <predefined>:1:1:
  93. X_MACHTYPES_H_ = 0 // types.h:67:1:
  94. X_MODE_T = 0 // _mode_t.h:29:1:
  95. X_NLINK_T = 0 // _nlink_t.h:29:1:
  96. X_Nonnull = 0 // cdefs.h:243:1:
  97. X_Null_unspecified = 0 // cdefs.h:246:1:
  98. X_Nullable = 0 // cdefs.h:240:1:
  99. X_OFF_T = 0 // _off_t.h:29:1:
  100. X_SYS_STAT_H_ = 0 // stat.h:71:1:
  101. X_SYS__PTHREAD_TYPES_H_ = 0 // _pthread_types.h:30:1:
  102. X_SYS__TYPES_H_ = 0 // _types.h:30:1:
  103. X_TIME_T = 0 // _time_t.h:29:1:
  104. X_UID_T = 0 // _uid_t.h:29:1:
  105. X_UINTPTR_T = 0 // _uintptr_t.h:29:1:
  106. X_U_INT16_T = 0 // _u_int16_t.h:29:1:
  107. X_U_INT32_T = 0 // _u_int32_t.h:29:1:
  108. X_U_INT64_T = 0 // _u_int64_t.h:29:1:
  109. X_U_INT8_T = 0 // _u_int8_t.h:29:1:
  110. )
  111. type Ptrdiff_t = int64 /* <builtin>:3:26 */
  112. type Size_t = uint64 /* <builtin>:9:23 */
  113. type Wchar_t = int32 /* <builtin>:15:24 */
  114. type X__int128_t = struct {
  115. Flo int64
  116. Fhi int64
  117. } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
  118. type X__uint128_t = struct {
  119. Flo uint64
  120. Fhi uint64
  121. } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
  122. type X__builtin_va_list = uintptr /* <builtin>:46:14 */
  123. type X__float128 = float64 /* <builtin>:47:21 */
  124. var X__darwin_check_fd_set_overflow uintptr /* <builtin>:146:5: */
  125. // Copyright (c) 2000-2014 Apple Inc. All rights reserved.
  126. //
  127. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  128. //
  129. // This file contains Original Code and/or Modifications of Original Code
  130. // as defined in and that are subject to the Apple Public Source License
  131. // Version 2.0 (the 'License'). You may not use this file except in
  132. // compliance with the License. The rights granted to you under the License
  133. // may not be used to create, or enable the creation or redistribution of,
  134. // unlawful or unlicensed copies of an Apple operating system, or to
  135. // circumvent, violate, or enable the circumvention or violation of, any
  136. // terms of an Apple operating system software license agreement.
  137. //
  138. // Please obtain a copy of the License at
  139. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  140. //
  141. // The Original Code and all software distributed under the License are
  142. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  143. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  144. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  145. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  146. // Please see the License for the specific language governing rights and
  147. // limitations under the License.
  148. //
  149. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  150. // Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved
  151. // -
  152. // Copyright (c) 1982, 1986, 1989, 1993
  153. // The Regents of the University of California. All rights reserved.
  154. // (c) UNIX System Laboratories, Inc.
  155. // All or some portions of this file are derived from material licensed
  156. // to the University of California by American Telephone and Telegraph
  157. // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  158. // the permission of UNIX System Laboratories, Inc.
  159. //
  160. // Redistribution and use in source and binary forms, with or without
  161. // modification, are permitted provided that the following conditions
  162. // are met:
  163. // 1. Redistributions of source code must retain the above copyright
  164. // notice, this list of conditions and the following disclaimer.
  165. // 2. Redistributions in binary form must reproduce the above copyright
  166. // notice, this list of conditions and the following disclaimer in the
  167. // documentation and/or other materials provided with the distribution.
  168. // 3. All advertising materials mentioning features or use of this software
  169. // must display the following acknowledgement:
  170. // This product includes software developed by the University of
  171. // California, Berkeley and its contributors.
  172. // 4. Neither the name of the University nor the names of its contributors
  173. // may be used to endorse or promote products derived from this software
  174. // without specific prior written permission.
  175. //
  176. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  177. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  178. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  179. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  180. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  181. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  182. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  183. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  184. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  185. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  186. // SUCH DAMAGE.
  187. //
  188. // @(#)stat.h 8.9 (Berkeley) 8/17/94
  189. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  190. //
  191. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  192. //
  193. // This file contains Original Code and/or Modifications of Original Code
  194. // as defined in and that are subject to the Apple Public Source License
  195. // Version 2.0 (the 'License'). You may not use this file except in
  196. // compliance with the License. The rights granted to you under the License
  197. // may not be used to create, or enable the creation or redistribution of,
  198. // unlawful or unlicensed copies of an Apple operating system, or to
  199. // circumvent, violate, or enable the circumvention or violation of, any
  200. // terms of an Apple operating system software license agreement.
  201. //
  202. // Please obtain a copy of the License at
  203. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  204. //
  205. // The Original Code and all software distributed under the License are
  206. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  207. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  208. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  209. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  210. // Please see the License for the specific language governing rights and
  211. // limitations under the License.
  212. //
  213. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  214. // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  215. //
  216. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  217. //
  218. // This file contains Original Code and/or Modifications of Original Code
  219. // as defined in and that are subject to the Apple Public Source License
  220. // Version 2.0 (the 'License'). You may not use this file except in
  221. // compliance with the License. The rights granted to you under the License
  222. // may not be used to create, or enable the creation or redistribution of,
  223. // unlawful or unlicensed copies of an Apple operating system, or to
  224. // circumvent, violate, or enable the circumvention or violation of, any
  225. // terms of an Apple operating system software license agreement.
  226. //
  227. // Please obtain a copy of the License at
  228. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  229. //
  230. // The Original Code and all software distributed under the License are
  231. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  232. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  233. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  234. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  235. // Please see the License for the specific language governing rights and
  236. // limitations under the License.
  237. //
  238. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  239. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  240. // Copyright (c) 1991, 1993
  241. // The Regents of the University of California. All rights reserved.
  242. //
  243. // This code is derived from software contributed to Berkeley by
  244. // Berkeley Software Design, Inc.
  245. //
  246. // Redistribution and use in source and binary forms, with or without
  247. // modification, are permitted provided that the following conditions
  248. // are met:
  249. // 1. Redistributions of source code must retain the above copyright
  250. // notice, this list of conditions and the following disclaimer.
  251. // 2. Redistributions in binary form must reproduce the above copyright
  252. // notice, this list of conditions and the following disclaimer in the
  253. // documentation and/or other materials provided with the distribution.
  254. // 3. All advertising materials mentioning features or use of this software
  255. // must display the following acknowledgement:
  256. // This product includes software developed by the University of
  257. // California, Berkeley and its contributors.
  258. // 4. Neither the name of the University nor the names of its contributors
  259. // may be used to endorse or promote products derived from this software
  260. // without specific prior written permission.
  261. //
  262. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  263. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  264. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  265. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  266. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  267. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  268. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  269. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  270. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  271. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  272. // SUCH DAMAGE.
  273. //
  274. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  275. // This SDK is designed to work with clang and specific versions of
  276. // gcc >= 4.0 with Apple's patch sets
  277. // Compatibility with compilers and environments that don't support compiler
  278. // feature checking function-like macros.
  279. // The __CONCAT macro is used to concatenate parts of symbol names, e.g.
  280. // with "#define OLD(foo) __CONCAT(old,foo)", OLD(foo) produces oldfoo.
  281. // The __CONCAT macro is a bit tricky -- make sure you don't put spaces
  282. // in between its arguments. __CONCAT can also concatenate double-quoted
  283. // strings produced by the __STRING macro, but this only works with ANSI C.
  284. // In non-ANSI C environments, new programs will want ANSI-only C keywords
  285. // deleted from the program and old programs will want them left alone.
  286. // When using a compiler other than gcc, programs using the ANSI C keywords
  287. // const, inline etc. as normal identifiers should define -DNO_ANSI_KEYWORDS.
  288. // When using "gcc -traditional", we assume that this is the intent; if
  289. // __GNUC__ is defined but __STDC__ is not, we leave the new keywords alone.
  290. // __unused denotes variables and functions that may not be used, preventing
  291. // the compiler from warning about it if not used.
  292. // __used forces variables and functions to be included even if it appears
  293. // to the compiler that they are not used (and would thust be discarded).
  294. // __cold marks code used for debugging or that is rarely taken
  295. // and tells the compiler to optimize for size and outline code.
  296. // __deprecated causes the compiler to produce a warning when encountering
  297. // code using the deprecated functionality.
  298. // __deprecated_msg() does the same, and compilers that support it will print
  299. // a message along with the deprecation warning.
  300. // This may require turning on such warning with the -Wdeprecated flag.
  301. // __deprecated_enum_msg() should be used on enums, and compilers that support
  302. // it will print the deprecation warning.
  303. // __kpi_deprecated() specifically indicates deprecation of kernel programming
  304. // interfaces in Kernel.framework used by KEXTs.
  305. // __unavailable causes the compiler to error out when encountering
  306. // code using the tagged function of variable.
  307. // Delete pseudo-keywords wherever they are not available or needed.
  308. // We use `__restrict' as a way to define the `restrict' type qualifier
  309. // without disturbing older software that is unaware of C99 keywords.
  310. // Compatibility with compilers and environments that don't support the
  311. // nullability feature.
  312. // __disable_tail_calls causes the compiler to not perform tail call
  313. // optimization inside the marked function.
  314. // __not_tail_called causes the compiler to prevent tail call optimization
  315. // on statically bound calls to the function. It has no effect on indirect
  316. // calls. Virtual functions, objective-c methods, and functions marked as
  317. // "always_inline" cannot be marked as __not_tail_called.
  318. // __result_use_check warns callers of a function that not using the function
  319. // return value is a bug, i.e. dismissing malloc() return value results in a
  320. // memory leak.
  321. // __swift_unavailable causes the compiler to mark a symbol as specifically
  322. // unavailable in Swift, regardless of any other availability in C.
  323. // __abortlike is the attribute to put on functions like abort() that are
  324. // typically used to mark assertions. These optimize the codegen
  325. // for outlining while still maintaining debugability.
  326. // Declaring inline functions within headers is error-prone due to differences
  327. // across various versions of the C language and extensions. __header_inline
  328. // can be used to declare inline functions within system headers. In cases
  329. // where you want to force inlining instead of letting the compiler make
  330. // the decision, you can use __header_always_inline.
  331. //
  332. // Be aware that using inline for functions which compilers may also provide
  333. // builtins can behave differently under various compilers. If you intend to
  334. // provide an inline version of such a function, you may want to use a macro
  335. // instead.
  336. //
  337. // The check for !__GNUC__ || __clang__ is because gcc doesn't correctly
  338. // support c99 inline in some cases:
  339. // http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55965
  340. // Compiler-dependent macros that bracket portions of code where the
  341. // "-Wunreachable-code" warning should be ignored. Please use sparingly.
  342. // Compiler-dependent macros to declare that functions take printf-like
  343. // or scanf-like arguments. They are null except for versions of gcc
  344. // that are known to support the features properly. Functions declared
  345. // with these attributes will cause compilation warnings if there is a
  346. // mismatch between the format string and subsequent function parameter
  347. // types.
  348. // Source compatibility only, ID string not emitted in object file
  349. // __alloc_size can be used to label function arguments that represent the
  350. // size of memory that the function allocates and returns. The one-argument
  351. // form labels a single argument that gives the allocation size (where the
  352. // arguments are numbered from 1):
  353. //
  354. // void *malloc(size_t __size) __alloc_size(1);
  355. //
  356. // The two-argument form handles the case where the size is calculated as the
  357. // product of two arguments:
  358. //
  359. // void *calloc(size_t __count, size_t __size) __alloc_size(1,2);
  360. // COMPILATION ENVIRONMENTS -- see compat(5) for additional detail
  361. //
  362. // DEFAULT By default newly complied code will get POSIX APIs plus
  363. // Apple API extensions in scope.
  364. //
  365. // Most users will use this compilation environment to avoid
  366. // behavioral differences between 32 and 64 bit code.
  367. //
  368. // LEGACY Defining _NONSTD_SOURCE will get pre-POSIX APIs plus Apple
  369. // API extensions in scope.
  370. //
  371. // This is generally equivalent to the Tiger release compilation
  372. // environment, except that it cannot be applied to 64 bit code;
  373. // its use is discouraged.
  374. //
  375. // We expect this environment to be deprecated in the future.
  376. //
  377. // STRICT Defining _POSIX_C_SOURCE or _XOPEN_SOURCE restricts the
  378. // available APIs to exactly the set of APIs defined by the
  379. // corresponding standard, based on the value defined.
  380. //
  381. // A correct, portable definition for _POSIX_C_SOURCE is 200112L.
  382. // A correct, portable definition for _XOPEN_SOURCE is 600L.
  383. //
  384. // Apple API extensions are not visible in this environment,
  385. // which can cause Apple specific code to fail to compile,
  386. // or behave incorrectly if prototypes are not in scope or
  387. // warnings about missing prototypes are not enabled or ignored.
  388. //
  389. // In any compilation environment, for correct symbol resolution to occur,
  390. // function prototypes must be in scope. It is recommended that all Apple
  391. // tools users add either the "-Wall" or "-Wimplicit-function-declaration"
  392. // compiler flags to their projects to be warned when a function is being
  393. // used without a prototype in scope.
  394. // These settings are particular to each product.
  395. // Platform: MacOSX
  396. // #undef __DARWIN_ONLY_UNIX_CONFORMANCE (automatically set for 64-bit)
  397. // The __DARWIN_ALIAS macros are used to do symbol renaming; they allow
  398. // legacy code to use the old symbol, thus maintaining binary compatibility
  399. // while new code can use a standards compliant version of the same function.
  400. //
  401. // __DARWIN_ALIAS is used by itself if the function signature has not
  402. // changed, it is used along with a #ifdef check for __DARWIN_UNIX03
  403. // if the signature has changed. Because the __LP64__ environment
  404. // only supports UNIX03 semantics it causes __DARWIN_UNIX03 to be
  405. // defined, but causes __DARWIN_ALIAS to do no symbol mangling.
  406. //
  407. // As a special case, when XCode is used to target a specific version of the
  408. // OS, the manifest constant __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__
  409. // will be defined by the compiler, with the digits representing major version
  410. // time 100 + minor version times 10 (e.g. 10.5 := 1050). If we are targeting
  411. // pre-10.5, and it is the default compilation environment, revert the
  412. // compilation environment to pre-__DARWIN_UNIX03.
  413. // symbol suffixes used for symbol versioning
  414. // symbol versioning macros
  415. // symbol release macros
  416. // Copyright (c) 2010 Apple Inc. All rights reserved.
  417. //
  418. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  419. //
  420. // This file contains Original Code and/or Modifications of Original Code
  421. // as defined in and that are subject to the Apple Public Source License
  422. // Version 2.0 (the 'License'). You may not use this file except in
  423. // compliance with the License. The rights granted to you under the License
  424. // may not be used to create, or enable the creation or redistribution of,
  425. // unlawful or unlicensed copies of an Apple operating system, or to
  426. // circumvent, violate, or enable the circumvention or violation of, any
  427. // terms of an Apple operating system software license agreement.
  428. //
  429. // Please obtain a copy of the License at
  430. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  431. //
  432. // The Original Code and all software distributed under the License are
  433. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  434. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  435. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  436. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  437. // Please see the License for the specific language governing rights and
  438. // limitations under the License.
  439. //
  440. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  441. // POSIX.1 requires that the macros we test be defined before any standard
  442. // header file is included. This permits us to convert values for feature
  443. // testing, as necessary, using only _POSIX_C_SOURCE.
  444. //
  445. // Here's a quick run-down of the versions:
  446. // defined(_POSIX_SOURCE) 1003.1-1988
  447. // _POSIX_C_SOURCE == 1L 1003.1-1990
  448. // _POSIX_C_SOURCE == 2L 1003.2-1992 C Language Binding Option
  449. // _POSIX_C_SOURCE == 199309L 1003.1b-1993
  450. // _POSIX_C_SOURCE == 199506L 1003.1c-1995, 1003.1i-1995,
  451. // and the omnibus ISO/IEC 9945-1: 1996
  452. // _POSIX_C_SOURCE == 200112L 1003.1-2001
  453. // _POSIX_C_SOURCE == 200809L 1003.1-2008
  454. //
  455. // In addition, the X/Open Portability Guide, which is now the Single UNIX
  456. // Specification, defines a feature-test macro which indicates the version of
  457. // that specification, and which subsumes _POSIX_C_SOURCE.
  458. // Deal with IEEE Std. 1003.1-1990, in which _POSIX_C_SOURCE == 1L.
  459. // Deal with IEEE Std. 1003.2-1992, in which _POSIX_C_SOURCE == 2L.
  460. // Deal with various X/Open Portability Guides and Single UNIX Spec.
  461. // Deal with all versions of POSIX. The ordering relative to the tests above is
  462. // important.
  463. // POSIX C deprecation macros
  464. // Copyright (c) 2010 Apple Inc. All rights reserved.
  465. //
  466. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  467. //
  468. // This file contains Original Code and/or Modifications of Original Code
  469. // as defined in and that are subject to the Apple Public Source License
  470. // Version 2.0 (the 'License'). You may not use this file except in
  471. // compliance with the License. The rights granted to you under the License
  472. // may not be used to create, or enable the creation or redistribution of,
  473. // unlawful or unlicensed copies of an Apple operating system, or to
  474. // circumvent, violate, or enable the circumvention or violation of, any
  475. // terms of an Apple operating system software license agreement.
  476. //
  477. // Please obtain a copy of the License at
  478. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  479. //
  480. // The Original Code and all software distributed under the License are
  481. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  482. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  483. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  484. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  485. // Please see the License for the specific language governing rights and
  486. // limitations under the License.
  487. //
  488. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  489. // Set a single macro which will always be defined and can be used to determine
  490. // the appropriate namespace. For POSIX, these values will correspond to
  491. // _POSIX_C_SOURCE value. Currently there are two additional levels corresponding
  492. // to ANSI (_ANSI_SOURCE) and Darwin extensions (_DARWIN_C_SOURCE)
  493. // If the developer has neither requested a strict language mode nor a version
  494. // of POSIX, turn on functionality provided by __STDC_WANT_LIB_EXT1__ as part
  495. // of __DARWIN_C_FULL.
  496. // long long is not supported in c89 (__STRICT_ANSI__), but g++ -ansi and
  497. // c99 still want long longs. While not perfect, we allow long longs for
  498. // g++.
  499. // ****************************************
  500. //
  501. // Public darwin-specific feature macros
  502. //
  503. // _DARWIN_FEATURE_64_BIT_INODE indicates that the ino_t type is 64-bit, and
  504. // structures modified for 64-bit inodes (like struct stat) will be used.
  505. // _DARWIN_FEATURE_64_ONLY_BIT_INODE indicates that the ino_t type may only
  506. // be 64-bit; there is no support for 32-bit ino_t when this macro is defined
  507. // (and non-zero). There is no struct stat64 either, as the regular
  508. // struct stat will already be the 64-bit version.
  509. // _DARWIN_FEATURE_ONLY_VERS_1050 indicates that only those APIs updated
  510. // in 10.5 exists; no pre-10.5 variants are available.
  511. // _DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE indicates only UNIX conforming API
  512. // are available (the legacy BSD APIs are not available)
  513. // _DARWIN_FEATURE_UNIX_CONFORMANCE indicates whether UNIX conformance is on,
  514. // and specifies the conformance level (3 is SUSv3)
  515. // This macro casts away the qualifier from the variable
  516. //
  517. // Note: use at your own risk, removing qualifiers can result in
  518. // catastrophic run-time failures.
  519. // __XNU_PRIVATE_EXTERN is a linkage decoration indicating that a symbol can be
  520. // used from other compilation units, but not other libraries or executables.
  521. // Architecture validation for current SDK
  522. // Similar to OS_ENUM/OS_CLOSED_ENUM/OS_OPTIONS/OS_CLOSED_OPTIONS
  523. //
  524. // This provides more advanced type checking on compilers supporting
  525. // the proper extensions, even in C.
  526. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  527. //
  528. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  529. //
  530. // This file contains Original Code and/or Modifications of Original Code
  531. // as defined in and that are subject to the Apple Public Source License
  532. // Version 2.0 (the 'License'). You may not use this file except in
  533. // compliance with the License. The rights granted to you under the License
  534. // may not be used to create, or enable the creation or redistribution of,
  535. // unlawful or unlicensed copies of an Apple operating system, or to
  536. // circumvent, violate, or enable the circumvention or violation of, any
  537. // terms of an Apple operating system software license agreement.
  538. //
  539. // Please obtain a copy of the License at
  540. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  541. //
  542. // The Original Code and all software distributed under the License are
  543. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  544. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  545. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  546. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  547. // Please see the License for the specific language governing rights and
  548. // limitations under the License.
  549. //
  550. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  551. // Copyright (c) 2000-2003 Apple Computer, Inc. All rights reserved.
  552. //
  553. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  554. //
  555. // This file contains Original Code and/or Modifications of Original Code
  556. // as defined in and that are subject to the Apple Public Source License
  557. // Version 2.0 (the 'License'). You may not use this file except in
  558. // compliance with the License. The rights granted to you under the License
  559. // may not be used to create, or enable the creation or redistribution of,
  560. // unlawful or unlicensed copies of an Apple operating system, or to
  561. // circumvent, violate, or enable the circumvention or violation of, any
  562. // terms of an Apple operating system software license agreement.
  563. //
  564. // Please obtain a copy of the License at
  565. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  566. //
  567. // The Original Code and all software distributed under the License are
  568. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  569. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  570. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  571. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  572. // Please see the License for the specific language governing rights and
  573. // limitations under the License.
  574. //
  575. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  576. // This header file contains integer types. It's intended to also contain
  577. // flotaing point and other arithmetic types, as needed, later.
  578. type X__int8_t = int8 /* _types.h:37:33 */
  579. type X__uint8_t = uint8 /* _types.h:41:33 */
  580. type X__int16_t = int16 /* _types.h:42:33 */
  581. type X__uint16_t = uint16 /* _types.h:43:33 */
  582. type X__int32_t = int32 /* _types.h:44:33 */
  583. type X__uint32_t = uint32 /* _types.h:45:33 */
  584. type X__int64_t = int64 /* _types.h:46:33 */
  585. type X__uint64_t = uint64 /* _types.h:47:33 */
  586. type X__darwin_intptr_t = int64 /* _types.h:49:33 */
  587. type X__darwin_natural_t = uint32 /* _types.h:50:33 */
  588. // The rune type below is declared to be an ``int'' instead of the more natural
  589. // ``unsigned long'' or ``long''. Two things are happening here. It is not
  590. // unsigned so that EOF (-1) can be naturally assigned to it and used. Also,
  591. // it looks like 10646 will be a 31 bit standard. This means that if your
  592. // ints cannot hold 32 bits, you will be in trouble. The reason an int was
  593. // chosen over a long is that the is*() and to*() routines take ints (says
  594. // ANSI C), but they use __darwin_ct_rune_t instead of int. By changing it
  595. // here, you lose a bit of ANSI conformance, but your programs will still
  596. // work.
  597. //
  598. // NOTE: rune_t is not covered by ANSI nor other standards, and should not
  599. // be instantiated outside of lib/libc/locale. Use wchar_t. wchar_t and
  600. // rune_t must be the same type. Also wint_t must be no narrower than
  601. // wchar_t, and should also be able to hold all members of the largest
  602. // character set plus one extra value (WEOF). wint_t must be at least 16 bits.
  603. type X__darwin_ct_rune_t = int32 /* _types.h:70:33 */ // ct_rune_t
  604. // mbstate_t is an opaque object to keep conversion state, during multibyte
  605. // stream conversions. The content must not be referenced by user programs.
  606. type X__mbstate_t = struct {
  607. F__ccgo_pad1 [0]uint64
  608. F__mbstate8 [128]int8
  609. } /* _types.h:79:3 */
  610. type X__darwin_mbstate_t = X__mbstate_t /* _types.h:81:33 */ // mbstate_t
  611. type X__darwin_ptrdiff_t = int64 /* _types.h:84:33 */ // ptr1 - ptr2
  612. type X__darwin_size_t = uint64 /* _types.h:92:33 */ // sizeof()
  613. type X__darwin_va_list = X__builtin_va_list /* _types.h:98:33 */ // va_list
  614. type X__darwin_wchar_t = int32 /* _types.h:104:33 */ // wchar_t
  615. type X__darwin_rune_t = X__darwin_wchar_t /* _types.h:109:33 */ // rune_t
  616. type X__darwin_wint_t = int32 /* _types.h:112:33 */ // wint_t
  617. type X__darwin_clock_t = uint64 /* _types.h:117:33 */ // clock()
  618. type X__darwin_socklen_t = X__uint32_t /* _types.h:118:33 */ // socklen_t (duh)
  619. type X__darwin_ssize_t = int64 /* _types.h:119:33 */ // byte count or error
  620. type X__darwin_time_t = int64 /* _types.h:120:33 */ // time()
  621. // Type definitions; takes common type definitions that must be used
  622. // in multiple header files due to [XSI], removes them from the system
  623. // space, and puts them in the implementation space.
  624. type X__darwin_blkcnt_t = X__int64_t /* _types.h:55:25 */ // total blocks
  625. type X__darwin_blksize_t = X__int32_t /* _types.h:56:25 */ // preferred block size
  626. type X__darwin_dev_t = X__int32_t /* _types.h:57:25 */ // dev_t
  627. type X__darwin_fsblkcnt_t = uint32 /* _types.h:58:25 */ // Used by statvfs and fstatvfs
  628. type X__darwin_fsfilcnt_t = uint32 /* _types.h:59:25 */ // Used by statvfs and fstatvfs
  629. type X__darwin_gid_t = X__uint32_t /* _types.h:60:25 */ // [???] process and group IDs
  630. type X__darwin_id_t = X__uint32_t /* _types.h:61:25 */ // [XSI] pid_t, uid_t, or gid_t
  631. type X__darwin_ino64_t = X__uint64_t /* _types.h:62:25 */ // [???] Used for 64 bit inodes
  632. type X__darwin_ino_t = X__darwin_ino64_t /* _types.h:64:26 */ // [???] Used for inodes
  633. type X__darwin_mach_port_name_t = X__darwin_natural_t /* _types.h:68:28 */ // Used by mach
  634. type X__darwin_mach_port_t = X__darwin_mach_port_name_t /* _types.h:69:35 */ // Used by mach
  635. type X__darwin_mode_t = X__uint16_t /* _types.h:70:25 */ // [???] Some file attributes
  636. type X__darwin_off_t = X__int64_t /* _types.h:71:25 */ // [???] Used for file sizes
  637. type X__darwin_pid_t = X__int32_t /* _types.h:72:25 */ // [???] process and group IDs
  638. type X__darwin_sigset_t = X__uint32_t /* _types.h:73:25 */ // [???] signal set
  639. type X__darwin_suseconds_t = X__int32_t /* _types.h:74:25 */ // [???] microseconds
  640. type X__darwin_uid_t = X__uint32_t /* _types.h:75:25 */ // [???] user IDs
  641. type X__darwin_useconds_t = X__uint32_t /* _types.h:76:25 */ // [???] microseconds
  642. type X__darwin_uuid_t = [16]uint8 /* _types.h:77:25 */
  643. type X__darwin_uuid_string_t = [37]int8 /* _types.h:78:17 */
  644. // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  645. //
  646. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  647. //
  648. // This file contains Original Code and/or Modifications of Original Code
  649. // as defined in and that are subject to the Apple Public Source License
  650. // Version 2.0 (the 'License'). You may not use this file except in
  651. // compliance with the License. The rights granted to you under the License
  652. // may not be used to create, or enable the creation or redistribution of,
  653. // unlawful or unlicensed copies of an Apple operating system, or to
  654. // circumvent, violate, or enable the circumvention or violation of, any
  655. // terms of an Apple operating system software license agreement.
  656. //
  657. // Please obtain a copy of the License at
  658. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  659. //
  660. // The Original Code and all software distributed under the License are
  661. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  662. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  663. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  664. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  665. // Please see the License for the specific language governing rights and
  666. // limitations under the License.
  667. //
  668. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  669. // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  670. //
  671. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  672. //
  673. // This file contains Original Code and/or Modifications of Original Code
  674. // as defined in and that are subject to the Apple Public Source License
  675. // Version 2.0 (the 'License'). You may not use this file except in
  676. // compliance with the License. The rights granted to you under the License
  677. // may not be used to create, or enable the creation or redistribution of,
  678. // unlawful or unlicensed copies of an Apple operating system, or to
  679. // circumvent, violate, or enable the circumvention or violation of, any
  680. // terms of an Apple operating system software license agreement.
  681. //
  682. // Please obtain a copy of the License at
  683. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  684. //
  685. // The Original Code and all software distributed under the License are
  686. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  687. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  688. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  689. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  690. // Please see the License for the specific language governing rights and
  691. // limitations under the License.
  692. //
  693. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  694. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  695. // Copyright (c) 1991, 1993
  696. // The Regents of the University of California. All rights reserved.
  697. //
  698. // This code is derived from software contributed to Berkeley by
  699. // Berkeley Software Design, Inc.
  700. //
  701. // Redistribution and use in source and binary forms, with or without
  702. // modification, are permitted provided that the following conditions
  703. // are met:
  704. // 1. Redistributions of source code must retain the above copyright
  705. // notice, this list of conditions and the following disclaimer.
  706. // 2. Redistributions in binary form must reproduce the above copyright
  707. // notice, this list of conditions and the following disclaimer in the
  708. // documentation and/or other materials provided with the distribution.
  709. // 3. All advertising materials mentioning features or use of this software
  710. // must display the following acknowledgement:
  711. // This product includes software developed by the University of
  712. // California, Berkeley and its contributors.
  713. // 4. Neither the name of the University nor the names of its contributors
  714. // may be used to endorse or promote products derived from this software
  715. // without specific prior written permission.
  716. //
  717. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  718. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  719. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  720. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  721. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  722. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  723. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  724. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  725. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  726. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  727. // SUCH DAMAGE.
  728. //
  729. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  730. // pthread opaque structures
  731. type X__darwin_pthread_handler_rec = struct {
  732. F__routine uintptr
  733. F__arg uintptr
  734. F__next uintptr
  735. } /* _pthread_types.h:57:1 */
  736. type X_opaque_pthread_attr_t = struct {
  737. F__sig int64
  738. F__opaque [56]int8
  739. } /* _pthread_types.h:63:1 */
  740. type X_opaque_pthread_cond_t = struct {
  741. F__sig int64
  742. F__opaque [40]int8
  743. } /* _pthread_types.h:68:1 */
  744. type X_opaque_pthread_condattr_t = struct {
  745. F__sig int64
  746. F__opaque [8]int8
  747. } /* _pthread_types.h:73:1 */
  748. type X_opaque_pthread_mutex_t = struct {
  749. F__sig int64
  750. F__opaque [56]int8
  751. } /* _pthread_types.h:78:1 */
  752. type X_opaque_pthread_mutexattr_t = struct {
  753. F__sig int64
  754. F__opaque [8]int8
  755. } /* _pthread_types.h:83:1 */
  756. type X_opaque_pthread_once_t = struct {
  757. F__sig int64
  758. F__opaque [8]int8
  759. } /* _pthread_types.h:88:1 */
  760. type X_opaque_pthread_rwlock_t = struct {
  761. F__sig int64
  762. F__opaque [192]int8
  763. } /* _pthread_types.h:93:1 */
  764. type X_opaque_pthread_rwlockattr_t = struct {
  765. F__sig int64
  766. F__opaque [16]int8
  767. } /* _pthread_types.h:98:1 */
  768. type X_opaque_pthread_t = struct {
  769. F__sig int64
  770. F__cleanup_stack uintptr
  771. F__opaque [8176]int8
  772. } /* _pthread_types.h:103:1 */
  773. type X__darwin_pthread_attr_t = X_opaque_pthread_attr_t /* _pthread_types.h:109:39 */
  774. type X__darwin_pthread_cond_t = X_opaque_pthread_cond_t /* _pthread_types.h:110:39 */
  775. type X__darwin_pthread_condattr_t = X_opaque_pthread_condattr_t /* _pthread_types.h:111:43 */
  776. type X__darwin_pthread_key_t = uint64 /* _pthread_types.h:112:23 */
  777. type X__darwin_pthread_mutex_t = X_opaque_pthread_mutex_t /* _pthread_types.h:113:40 */
  778. type X__darwin_pthread_mutexattr_t = X_opaque_pthread_mutexattr_t /* _pthread_types.h:114:44 */
  779. type X__darwin_pthread_once_t = X_opaque_pthread_once_t /* _pthread_types.h:115:39 */
  780. type X__darwin_pthread_rwlock_t = X_opaque_pthread_rwlock_t /* _pthread_types.h:116:41 */
  781. type X__darwin_pthread_rwlockattr_t = X_opaque_pthread_rwlockattr_t /* _pthread_types.h:117:45 */
  782. type X__darwin_pthread_t = uintptr /* _pthread_types.h:118:34 */
  783. // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  784. //
  785. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  786. //
  787. // This file contains Original Code and/or Modifications of Original Code
  788. // as defined in and that are subject to the Apple Public Source License
  789. // Version 2.0 (the 'License'). You may not use this file except in
  790. // compliance with the License. The rights granted to you under the License
  791. // may not be used to create, or enable the creation or redistribution of,
  792. // unlawful or unlicensed copies of an Apple operating system, or to
  793. // circumvent, violate, or enable the circumvention or violation of, any
  794. // terms of an Apple operating system software license agreement.
  795. //
  796. // Please obtain a copy of the License at
  797. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  798. //
  799. // The Original Code and all software distributed under the License are
  800. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  801. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  802. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  803. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  804. // Please see the License for the specific language governing rights and
  805. // limitations under the License.
  806. //
  807. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  808. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  809. // Copyright (c) 1991, 1993
  810. // The Regents of the University of California. All rights reserved.
  811. //
  812. // This code is derived from software contributed to Berkeley by
  813. // Berkeley Software Design, Inc.
  814. //
  815. // Redistribution and use in source and binary forms, with or without
  816. // modification, are permitted provided that the following conditions
  817. // are met:
  818. // 1. Redistributions of source code must retain the above copyright
  819. // notice, this list of conditions and the following disclaimer.
  820. // 2. Redistributions in binary form must reproduce the above copyright
  821. // notice, this list of conditions and the following disclaimer in the
  822. // documentation and/or other materials provided with the distribution.
  823. // 3. All advertising materials mentioning features or use of this software
  824. // must display the following acknowledgement:
  825. // This product includes software developed by the University of
  826. // California, Berkeley and its contributors.
  827. // 4. Neither the name of the University nor the names of its contributors
  828. // may be used to endorse or promote products derived from this software
  829. // without specific prior written permission.
  830. //
  831. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  832. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  833. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  834. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  835. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  836. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  837. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  838. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  839. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  840. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  841. // SUCH DAMAGE.
  842. //
  843. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  844. // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  845. //
  846. // @APPLE_LICENSE_HEADER_START@
  847. //
  848. // This file contains Original Code and/or Modifications of Original Code
  849. // as defined in and that are subject to the Apple Public Source License
  850. // Version 2.0 (the 'License'). You may not use this file except in
  851. // compliance with the License. Please obtain a copy of the License at
  852. // http://www.opensource.apple.com/apsl/ and read it before using this
  853. // file.
  854. //
  855. // The Original Code and all software distributed under the License are
  856. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  857. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  858. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  859. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  860. // Please see the License for the specific language governing rights and
  861. // limitations under the License.
  862. //
  863. // @APPLE_LICENSE_HEADER_END@
  864. //
  865. // These macros are for use in OS header files. They enable function prototypes
  866. // and Objective-C methods to be tagged with the OS version in which they
  867. // were first available; and, if applicable, the OS version in which they
  868. // became deprecated.
  869. //
  870. // The desktop Mac OS X and iOS each have different version numbers.
  871. // The __OSX_AVAILABLE_STARTING() macro allows you to specify both the desktop
  872. // and iOS version numbers. For instance:
  873. // __OSX_AVAILABLE_STARTING(__MAC_10_2,__IPHONE_2_0)
  874. // means the function/method was first available on Mac OS X 10.2 on the desktop
  875. // and first available in iOS 2.0 on the iPhone.
  876. //
  877. // If a function is available on one platform, but not the other a _NA (not
  878. // applicable) parameter is used. For instance:
  879. // __OSX_AVAILABLE_STARTING(__MAC_10_3,__IPHONE_NA)
  880. // means that the function/method was first available on Mac OS X 10.3, and it
  881. // currently not implemented on the iPhone.
  882. //
  883. // At some point, a function/method may be deprecated. That means Apple
  884. // recommends applications stop using the function, either because there is a
  885. // better replacement or the functionality is being phased out. Deprecated
  886. // functions/methods can be tagged with a __OSX_AVAILABLE_BUT_DEPRECATED()
  887. // macro which specifies the OS version where the function became available
  888. // as well as the OS version in which it became deprecated. For instance:
  889. // __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0,__MAC_10_5,__IPHONE_NA,__IPHONE_NA)
  890. // means that the function/method was introduced in Mac OS X 10.0, then
  891. // became deprecated beginning in Mac OS X 10.5. On iOS the function
  892. // has never been available.
  893. //
  894. // For these macros to function properly, a program must specify the OS version range
  895. // it is targeting. The min OS version is specified as an option to the compiler:
  896. // -mmacosx-version-min=10.x when building for Mac OS X, and -miphoneos-version-min=y.z
  897. // when building for the iPhone. The upper bound for the OS version is rarely needed,
  898. // but it can be set on the command line via: -D__MAC_OS_X_VERSION_MAX_ALLOWED=10x0 for
  899. // Mac OS X and __IPHONE_OS_VERSION_MAX_ALLOWED = y0z00 for iOS.
  900. //
  901. // Examples:
  902. //
  903. // A function available in Mac OS X 10.5 and later, but not on the phone:
  904. //
  905. // extern void mymacfunc() __OSX_AVAILABLE_STARTING(__MAC_10_5,__IPHONE_NA);
  906. //
  907. //
  908. // An Objective-C method in Mac OS X 10.5 and later, but not on the phone:
  909. //
  910. // @interface MyClass : NSObject
  911. // -(void) mymacmethod __OSX_AVAILABLE_STARTING(__MAC_10_5,__IPHONE_NA);
  912. // @end
  913. //
  914. //
  915. // An enum available on the phone, but not available on Mac OS X:
  916. //
  917. // #if __IPHONE_OS_VERSION_MIN_REQUIRED
  918. // enum { myEnum = 1 };
  919. // #endif
  920. // Note: this works when targeting the Mac OS X platform because
  921. // __IPHONE_OS_VERSION_MIN_REQUIRED is undefined which evaluates to zero.
  922. //
  923. //
  924. // An enum with values added in different iPhoneOS versions:
  925. //
  926. // enum {
  927. // myX = 1, // Usable on iPhoneOS 2.1 and later
  928. // myY = 2, // Usable on iPhoneOS 3.0 and later
  929. // myZ = 3, // Usable on iPhoneOS 3.0 and later
  930. // ...
  931. // Note: you do not want to use #if with enumeration values
  932. // when a client needs to see all values at compile time
  933. // and use runtime logic to only use the viable values.
  934. //
  935. //
  936. // It is also possible to use the *_VERSION_MIN_REQUIRED in source code to make one
  937. // source base that can be compiled to target a range of OS versions. It is best
  938. // to not use the _MAC_* and __IPHONE_* macros for comparisons, but rather their values.
  939. // That is because you might get compiled on an old OS that does not define a later
  940. // OS version macro, and in the C preprocessor undefined values evaluate to zero
  941. // in expresssions, which could cause the #if expression to evaluate in an unexpected
  942. // way.
  943. //
  944. // #ifdef __MAC_OS_X_VERSION_MIN_REQUIRED
  945. // // code only compiled when targeting Mac OS X and not iPhone
  946. // // note use of 1050 instead of __MAC_10_5
  947. // #if __MAC_OS_X_VERSION_MIN_REQUIRED < 1050
  948. // // code in here might run on pre-Leopard OS
  949. // #else
  950. // // code here can assume Leopard or later
  951. // #endif
  952. // #endif
  953. //
  954. //
  955. // __API_TO_BE_DEPRECATED is used as a version number in API that will be deprecated
  956. // in an upcoming release. This soft deprecation is an intermediate step before formal
  957. // deprecation to notify developers about the API before compiler warnings are generated.
  958. // You can find all places in your code that use soft deprecated API by redefining the
  959. // value of this macro to your current minimum deployment target, for example:
  960. // (macOS)
  961. // clang -D__API_TO_BE_DEPRECATED=10.12 <other compiler flags>
  962. // (iOS)
  963. // clang -D__API_TO_BE_DEPRECATED=11.0 <other compiler flags>
  964. // __MAC_NA is not defined to a value but is uses as a token by macros to indicate that the API is unavailable
  965. // __IPHONE_NA is not defined to a value but is uses as a token by macros to indicate that the API is unavailable
  966. // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  967. //
  968. // @APPLE_LICENSE_HEADER_START@
  969. //
  970. // This file contains Original Code and/or Modifications of Original Code
  971. // as defined in and that are subject to the Apple Public Source License
  972. // Version 2.0 (the 'License'). You may not use this file except in
  973. // compliance with the License. Please obtain a copy of the License at
  974. // http://www.opensource.apple.com/apsl/ and read it before using this
  975. // file.
  976. //
  977. // The Original Code and all software distributed under the License are
  978. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  979. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  980. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  981. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  982. // Please see the License for the specific language governing rights and
  983. // limitations under the License.
  984. //
  985. // @APPLE_LICENSE_HEADER_END@
  986. //
  987. // File: AvailabilityInternal.h
  988. //
  989. // Contains: implementation details of __OSX_AVAILABLE_* macros from <Availability.h>
  990. //
  991. // compiler for Mac OS X sets __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__
  992. // make sure a default max version is set
  993. //
  994. // Macros for defining which versions/platform a given symbol can be used.
  995. //
  996. // @see http://clang.llvm.org/docs/AttributeReference.html#availability
  997. //
  998. // Evaluate to nothing for compilers that don't support availability.
  999. // Swift compiler version
  1000. // Allows for project-agnostic “epochs” for frameworks imported into Swift via the Clang importer, like #if _compiler_version for Swift
  1001. // Example:
  1002. //
  1003. // #if __swift_compiler_version_at_least(800, 2, 20)
  1004. // - (nonnull NSString *)description;
  1005. // #else
  1006. // - (NSString *)description;
  1007. // #endif
  1008. // If __SPI_AVAILABLE has not been defined elsewhere, disable it.
  1009. // for use to document app extension usage
  1010. // for use marking APIs available info for Mac OSX
  1011. // for use marking APIs available info for iOS
  1012. // for use marking APIs available info for tvOS
  1013. // for use marking APIs available info for Watch OS
  1014. // for use marking APIs unavailable for swift
  1015. //
  1016. // Macros for defining which versions/platform a given symbol can be used.
  1017. //
  1018. // @see http://clang.llvm.org/docs/AttributeReference.html#availability
  1019. //
  1020. // * Note that these macros are only compatible with clang compilers that
  1021. // * support the following target selection options:
  1022. // *
  1023. // * -mmacosx-version-min
  1024. // * -miphoneos-version-min
  1025. // * -mwatchos-version-min
  1026. // * -mtvos-version-min
  1027. //
  1028. // Evaluate to nothing for compilers that don't support availability.
  1029. // If SPI decorations have not been defined elsewhere, disable them.
  1030. // [XSI] The timespec structure may be defined as described in <time.h>
  1031. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  1032. //
  1033. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1034. //
  1035. // This file contains Original Code and/or Modifications of Original Code
  1036. // as defined in and that are subject to the Apple Public Source License
  1037. // Version 2.0 (the 'License'). You may not use this file except in
  1038. // compliance with the License. The rights granted to you under the License
  1039. // may not be used to create, or enable the creation or redistribution of,
  1040. // unlawful or unlicensed copies of an Apple operating system, or to
  1041. // circumvent, violate, or enable the circumvention or violation of, any
  1042. // terms of an Apple operating system software license agreement.
  1043. //
  1044. // Please obtain a copy of the License at
  1045. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1046. //
  1047. // The Original Code and all software distributed under the License are
  1048. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1049. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1050. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1051. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1052. // Please see the License for the specific language governing rights and
  1053. // limitations under the License.
  1054. //
  1055. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1056. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  1057. //
  1058. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1059. //
  1060. // This file contains Original Code and/or Modifications of Original Code
  1061. // as defined in and that are subject to the Apple Public Source License
  1062. // Version 2.0 (the 'License'). You may not use this file except in
  1063. // compliance with the License. The rights granted to you under the License
  1064. // may not be used to create, or enable the creation or redistribution of,
  1065. // unlawful or unlicensed copies of an Apple operating system, or to
  1066. // circumvent, violate, or enable the circumvention or violation of, any
  1067. // terms of an Apple operating system software license agreement.
  1068. //
  1069. // Please obtain a copy of the License at
  1070. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1071. //
  1072. // The Original Code and all software distributed under the License are
  1073. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1074. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1075. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1076. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1077. // Please see the License for the specific language governing rights and
  1078. // limitations under the License.
  1079. //
  1080. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1081. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  1082. // Copyright (c) 2000-2008 Apple Inc. All rights reserved.
  1083. //
  1084. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1085. //
  1086. // This file contains Original Code and/or Modifications of Original Code
  1087. // as defined in and that are subject to the Apple Public Source License
  1088. // Version 2.0 (the 'License'). You may not use this file except in
  1089. // compliance with the License. The rights granted to you under the License
  1090. // may not be used to create, or enable the creation or redistribution of,
  1091. // unlawful or unlicensed copies of an Apple operating system, or to
  1092. // circumvent, violate, or enable the circumvention or violation of, any
  1093. // terms of an Apple operating system software license agreement.
  1094. //
  1095. // Please obtain a copy of the License at
  1096. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1097. //
  1098. // The Original Code and all software distributed under the License are
  1099. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1100. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1101. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1102. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1103. // Please see the License for the specific language governing rights and
  1104. // limitations under the License.
  1105. //
  1106. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1107. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  1108. // Copyright (c) 1990, 1993
  1109. // The Regents of the University of California. All rights reserved.
  1110. //
  1111. // Redistribution and use in source and binary forms, with or without
  1112. // modification, are permitted provided that the following conditions
  1113. // are met:
  1114. // 1. Redistributions of source code must retain the above copyright
  1115. // notice, this list of conditions and the following disclaimer.
  1116. // 2. Redistributions in binary form must reproduce the above copyright
  1117. // notice, this list of conditions and the following disclaimer in the
  1118. // documentation and/or other materials provided with the distribution.
  1119. // 3. All advertising materials mentioning features or use of this software
  1120. // must display the following acknowledgement:
  1121. // This product includes software developed by the University of
  1122. // California, Berkeley and its contributors.
  1123. // 4. Neither the name of the University nor the names of its contributors
  1124. // may be used to endorse or promote products derived from this software
  1125. // without specific prior written permission.
  1126. //
  1127. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1128. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1129. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1130. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1131. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1132. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1133. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1134. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1135. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1136. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1137. // SUCH DAMAGE.
  1138. //
  1139. // @(#)types.h 8.3 (Berkeley) 1/5/94
  1140. // Copyright (c) 2000-2003 Apple Computer, Inc. All rights reserved.
  1141. //
  1142. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1143. //
  1144. // This file contains Original Code and/or Modifications of Original Code
  1145. // as defined in and that are subject to the Apple Public Source License
  1146. // Version 2.0 (the 'License'). You may not use this file except in
  1147. // compliance with the License. The rights granted to you under the License
  1148. // may not be used to create, or enable the creation or redistribution of,
  1149. // unlawful or unlicensed copies of an Apple operating system, or to
  1150. // circumvent, violate, or enable the circumvention or violation of, any
  1151. // terms of an Apple operating system software license agreement.
  1152. //
  1153. // Please obtain a copy of the License at
  1154. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1155. //
  1156. // The Original Code and all software distributed under the License are
  1157. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1158. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1159. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1160. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1161. // Please see the License for the specific language governing rights and
  1162. // limitations under the License.
  1163. //
  1164. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1165. // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  1166. //
  1167. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1168. //
  1169. // This file contains Original Code and/or Modifications of Original Code
  1170. // as defined in and that are subject to the Apple Public Source License
  1171. // Version 2.0 (the 'License'). You may not use this file except in
  1172. // compliance with the License. The rights granted to you under the License
  1173. // may not be used to create, or enable the creation or redistribution of,
  1174. // unlawful or unlicensed copies of an Apple operating system, or to
  1175. // circumvent, violate, or enable the circumvention or violation of, any
  1176. // terms of an Apple operating system software license agreement.
  1177. //
  1178. // Please obtain a copy of the License at
  1179. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1180. //
  1181. // The Original Code and all software distributed under the License are
  1182. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1183. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1184. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1185. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1186. // Please see the License for the specific language governing rights and
  1187. // limitations under the License.
  1188. //
  1189. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1190. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  1191. // Copyright (c) 1991, 1993
  1192. // The Regents of the University of California. All rights reserved.
  1193. //
  1194. // This code is derived from software contributed to Berkeley by
  1195. // Berkeley Software Design, Inc.
  1196. //
  1197. // Redistribution and use in source and binary forms, with or without
  1198. // modification, are permitted provided that the following conditions
  1199. // are met:
  1200. // 1. Redistributions of source code must retain the above copyright
  1201. // notice, this list of conditions and the following disclaimer.
  1202. // 2. Redistributions in binary form must reproduce the above copyright
  1203. // notice, this list of conditions and the following disclaimer in the
  1204. // documentation and/or other materials provided with the distribution.
  1205. // 3. All advertising materials mentioning features or use of this software
  1206. // must display the following acknowledgement:
  1207. // This product includes software developed by the University of
  1208. // California, Berkeley and its contributors.
  1209. // 4. Neither the name of the University nor the names of its contributors
  1210. // may be used to endorse or promote products derived from this software
  1211. // without specific prior written permission.
  1212. //
  1213. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1214. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1215. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1216. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1217. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1218. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1219. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1220. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1221. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1222. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1223. // SUCH DAMAGE.
  1224. //
  1225. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  1226. // Basic integral types. Omit the typedef if
  1227. // not possible for a machine/compiler combination.
  1228. // Copyright (c) 2012 Apple Inc. All rights reserved.
  1229. //
  1230. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1231. //
  1232. // This file contains Original Code and/or Modifications of Original Code
  1233. // as defined in and that are subject to the Apple Public Source License
  1234. // Version 2.0 (the 'License'). You may not use this file except in
  1235. // compliance with the License. The rights granted to you under the License
  1236. // may not be used to create, or enable the creation or redistribution of,
  1237. // unlawful or unlicensed copies of an Apple operating system, or to
  1238. // circumvent, violate, or enable the circumvention or violation of, any
  1239. // terms of an Apple operating system software license agreement.
  1240. //
  1241. // Please obtain a copy of the License at
  1242. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1243. //
  1244. // The Original Code and all software distributed under the License are
  1245. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1246. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1247. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1248. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1249. // Please see the License for the specific language governing rights and
  1250. // limitations under the License.
  1251. //
  1252. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1253. type Int8_t = int8 /* _int8_t.h:30:33 */
  1254. // Copyright (c) 2012 Apple Inc. All rights reserved.
  1255. //
  1256. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1257. //
  1258. // This file contains Original Code and/or Modifications of Original Code
  1259. // as defined in and that are subject to the Apple Public Source License
  1260. // Version 2.0 (the 'License'). You may not use this file except in
  1261. // compliance with the License. The rights granted to you under the License
  1262. // may not be used to create, or enable the creation or redistribution of,
  1263. // unlawful or unlicensed copies of an Apple operating system, or to
  1264. // circumvent, violate, or enable the circumvention or violation of, any
  1265. // terms of an Apple operating system software license agreement.
  1266. //
  1267. // Please obtain a copy of the License at
  1268. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1269. //
  1270. // The Original Code and all software distributed under the License are
  1271. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1272. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1273. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1274. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1275. // Please see the License for the specific language governing rights and
  1276. // limitations under the License.
  1277. //
  1278. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1279. type Int16_t = int16 /* _int16_t.h:30:33 */
  1280. // Copyright (c) 2012 Apple Inc. All rights reserved.
  1281. //
  1282. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1283. //
  1284. // This file contains Original Code and/or Modifications of Original Code
  1285. // as defined in and that are subject to the Apple Public Source License
  1286. // Version 2.0 (the 'License'). You may not use this file except in
  1287. // compliance with the License. The rights granted to you under the License
  1288. // may not be used to create, or enable the creation or redistribution of,
  1289. // unlawful or unlicensed copies of an Apple operating system, or to
  1290. // circumvent, violate, or enable the circumvention or violation of, any
  1291. // terms of an Apple operating system software license agreement.
  1292. //
  1293. // Please obtain a copy of the License at
  1294. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1295. //
  1296. // The Original Code and all software distributed under the License are
  1297. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1298. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1299. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1300. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1301. // Please see the License for the specific language governing rights and
  1302. // limitations under the License.
  1303. //
  1304. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1305. type Int32_t = int32 /* _int32_t.h:30:33 */
  1306. // Copyright (c) 2012 Apple Inc. All rights reserved.
  1307. //
  1308. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1309. //
  1310. // This file contains Original Code and/or Modifications of Original Code
  1311. // as defined in and that are subject to the Apple Public Source License
  1312. // Version 2.0 (the 'License'). You may not use this file except in
  1313. // compliance with the License. The rights granted to you under the License
  1314. // may not be used to create, or enable the creation or redistribution of,
  1315. // unlawful or unlicensed copies of an Apple operating system, or to
  1316. // circumvent, violate, or enable the circumvention or violation of, any
  1317. // terms of an Apple operating system software license agreement.
  1318. //
  1319. // Please obtain a copy of the License at
  1320. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1321. //
  1322. // The Original Code and all software distributed under the License are
  1323. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1324. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1325. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1326. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1327. // Please see the License for the specific language governing rights and
  1328. // limitations under the License.
  1329. //
  1330. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1331. type Int64_t = int64 /* _int64_t.h:30:33 */
  1332. // Copyright (c) 2016 Apple Inc. All rights reserved.
  1333. //
  1334. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1335. //
  1336. // This file contains Original Code and/or Modifications of Original Code
  1337. // as defined in and that are subject to the Apple Public Source License
  1338. // Version 2.0 (the 'License'). You may not use this file except in
  1339. // compliance with the License. The rights granted to you under the License
  1340. // may not be used to create, or enable the creation or redistribution of,
  1341. // unlawful or unlicensed copies of an Apple operating system, or to
  1342. // circumvent, violate, or enable the circumvention or violation of, any
  1343. // terms of an Apple operating system software license agreement.
  1344. //
  1345. // Please obtain a copy of the License at
  1346. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1347. //
  1348. // The Original Code and all software distributed under the License are
  1349. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1350. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1351. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1352. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1353. // Please see the License for the specific language governing rights and
  1354. // limitations under the License.
  1355. //
  1356. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1357. type U_int8_t = uint8 /* _u_int8_t.h:30:33 */
  1358. // Copyright (c) 2012 Apple Inc. All rights reserved.
  1359. //
  1360. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1361. //
  1362. // This file contains Original Code and/or Modifications of Original Code
  1363. // as defined in and that are subject to the Apple Public Source License
  1364. // Version 2.0 (the 'License'). You may not use this file except in
  1365. // compliance with the License. The rights granted to you under the License
  1366. // may not be used to create, or enable the creation or redistribution of,
  1367. // unlawful or unlicensed copies of an Apple operating system, or to
  1368. // circumvent, violate, or enable the circumvention or violation of, any
  1369. // terms of an Apple operating system software license agreement.
  1370. //
  1371. // Please obtain a copy of the License at
  1372. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1373. //
  1374. // The Original Code and all software distributed under the License are
  1375. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1376. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1377. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1378. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1379. // Please see the License for the specific language governing rights and
  1380. // limitations under the License.
  1381. //
  1382. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1383. type U_int16_t = uint16 /* _u_int16_t.h:30:41 */
  1384. // Copyright (c) 2012 Apple Inc. All rights reserved.
  1385. //
  1386. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1387. //
  1388. // This file contains Original Code and/or Modifications of Original Code
  1389. // as defined in and that are subject to the Apple Public Source License
  1390. // Version 2.0 (the 'License'). You may not use this file except in
  1391. // compliance with the License. The rights granted to you under the License
  1392. // may not be used to create, or enable the creation or redistribution of,
  1393. // unlawful or unlicensed copies of an Apple operating system, or to
  1394. // circumvent, violate, or enable the circumvention or violation of, any
  1395. // terms of an Apple operating system software license agreement.
  1396. //
  1397. // Please obtain a copy of the License at
  1398. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1399. //
  1400. // The Original Code and all software distributed under the License are
  1401. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1402. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1403. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1404. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1405. // Please see the License for the specific language governing rights and
  1406. // limitations under the License.
  1407. //
  1408. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1409. type U_int32_t = uint32 /* _u_int32_t.h:30:33 */
  1410. // Copyright (c) 2012 Apple Inc. All rights reserved.
  1411. //
  1412. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1413. //
  1414. // This file contains Original Code and/or Modifications of Original Code
  1415. // as defined in and that are subject to the Apple Public Source License
  1416. // Version 2.0 (the 'License'). You may not use this file except in
  1417. // compliance with the License. The rights granted to you under the License
  1418. // may not be used to create, or enable the creation or redistribution of,
  1419. // unlawful or unlicensed copies of an Apple operating system, or to
  1420. // circumvent, violate, or enable the circumvention or violation of, any
  1421. // terms of an Apple operating system software license agreement.
  1422. //
  1423. // Please obtain a copy of the License at
  1424. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1425. //
  1426. // The Original Code and all software distributed under the License are
  1427. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1428. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1429. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1430. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1431. // Please see the License for the specific language governing rights and
  1432. // limitations under the License.
  1433. //
  1434. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1435. type U_int64_t = uint64 /* _u_int64_t.h:30:33 */
  1436. type Register_t = Int64_t /* types.h:87:33 */
  1437. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  1438. //
  1439. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1440. //
  1441. // This file contains Original Code and/or Modifications of Original Code
  1442. // as defined in and that are subject to the Apple Public Source License
  1443. // Version 2.0 (the 'License'). You may not use this file except in
  1444. // compliance with the License. The rights granted to you under the License
  1445. // may not be used to create, or enable the creation or redistribution of,
  1446. // unlawful or unlicensed copies of an Apple operating system, or to
  1447. // circumvent, violate, or enable the circumvention or violation of, any
  1448. // terms of an Apple operating system software license agreement.
  1449. //
  1450. // Please obtain a copy of the License at
  1451. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1452. //
  1453. // The Original Code and all software distributed under the License are
  1454. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1455. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1456. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1457. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1458. // Please see the License for the specific language governing rights and
  1459. // limitations under the License.
  1460. //
  1461. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1462. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  1463. //
  1464. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1465. //
  1466. // This file contains Original Code and/or Modifications of Original Code
  1467. // as defined in and that are subject to the Apple Public Source License
  1468. // Version 2.0 (the 'License'). You may not use this file except in
  1469. // compliance with the License. The rights granted to you under the License
  1470. // may not be used to create, or enable the creation or redistribution of,
  1471. // unlawful or unlicensed copies of an Apple operating system, or to
  1472. // circumvent, violate, or enable the circumvention or violation of, any
  1473. // terms of an Apple operating system software license agreement.
  1474. //
  1475. // Please obtain a copy of the License at
  1476. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1477. //
  1478. // The Original Code and all software distributed under the License are
  1479. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1480. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1481. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1482. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1483. // Please see the License for the specific language governing rights and
  1484. // limitations under the License.
  1485. //
  1486. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1487. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  1488. type Intptr_t = X__darwin_intptr_t /* _intptr_t.h:32:33 */
  1489. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  1490. //
  1491. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1492. //
  1493. // This file contains Original Code and/or Modifications of Original Code
  1494. // as defined in and that are subject to the Apple Public Source License
  1495. // Version 2.0 (the 'License'). You may not use this file except in
  1496. // compliance with the License. The rights granted to you under the License
  1497. // may not be used to create, or enable the creation or redistribution of,
  1498. // unlawful or unlicensed copies of an Apple operating system, or to
  1499. // circumvent, violate, or enable the circumvention or violation of, any
  1500. // terms of an Apple operating system software license agreement.
  1501. //
  1502. // Please obtain a copy of the License at
  1503. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1504. //
  1505. // The Original Code and all software distributed under the License are
  1506. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1507. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1508. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1509. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1510. // Please see the License for the specific language governing rights and
  1511. // limitations under the License.
  1512. //
  1513. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1514. type Uintptr_t = uint64 /* _uintptr_t.h:30:33 */
  1515. // These types are used for reserving the largest possible size.
  1516. type User_addr_t = U_int64_t /* types.h:97:33 */
  1517. type User_size_t = U_int64_t /* types.h:98:33 */
  1518. type User_ssize_t = Int64_t /* types.h:99:33 */
  1519. type User_long_t = Int64_t /* types.h:100:33 */
  1520. type User_ulong_t = U_int64_t /* types.h:101:33 */
  1521. type User_time_t = Int64_t /* types.h:102:33 */
  1522. type User_off_t = Int64_t /* types.h:103:33 */
  1523. // This defines the size of syscall arguments after copying into the kernel:
  1524. type Syscall_arg_t = U_int64_t /* types.h:111:33 */
  1525. type Timespec = struct {
  1526. Ftv_sec X__darwin_time_t
  1527. Ftv_nsec int64
  1528. } /* _timespec.h:33:1 */
  1529. // [XSI] The blkcnt_t, blksize_t, dev_t, ino_t, mode_t, nlink_t, uid_t,
  1530. // gid_t, off_t, and time_t types shall be defined as described in
  1531. // <sys/types.h>.
  1532. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  1533. //
  1534. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1535. //
  1536. // This file contains Original Code and/or Modifications of Original Code
  1537. // as defined in and that are subject to the Apple Public Source License
  1538. // Version 2.0 (the 'License'). You may not use this file except in
  1539. // compliance with the License. The rights granted to you under the License
  1540. // may not be used to create, or enable the creation or redistribution of,
  1541. // unlawful or unlicensed copies of an Apple operating system, or to
  1542. // circumvent, violate, or enable the circumvention or violation of, any
  1543. // terms of an Apple operating system software license agreement.
  1544. //
  1545. // Please obtain a copy of the License at
  1546. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1547. //
  1548. // The Original Code and all software distributed under the License are
  1549. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1550. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1551. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1552. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1553. // Please see the License for the specific language governing rights and
  1554. // limitations under the License.
  1555. //
  1556. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1557. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  1558. //
  1559. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1560. //
  1561. // This file contains Original Code and/or Modifications of Original Code
  1562. // as defined in and that are subject to the Apple Public Source License
  1563. // Version 2.0 (the 'License'). You may not use this file except in
  1564. // compliance with the License. The rights granted to you under the License
  1565. // may not be used to create, or enable the creation or redistribution of,
  1566. // unlawful or unlicensed copies of an Apple operating system, or to
  1567. // circumvent, violate, or enable the circumvention or violation of, any
  1568. // terms of an Apple operating system software license agreement.
  1569. //
  1570. // Please obtain a copy of the License at
  1571. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1572. //
  1573. // The Original Code and all software distributed under the License are
  1574. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1575. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1576. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1577. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1578. // Please see the License for the specific language governing rights and
  1579. // limitations under the License.
  1580. //
  1581. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1582. type Blkcnt_t = X__darwin_blkcnt_t /* _blkcnt_t.h:31:34 */
  1583. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  1584. //
  1585. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1586. //
  1587. // This file contains Original Code and/or Modifications of Original Code
  1588. // as defined in and that are subject to the Apple Public Source License
  1589. // Version 2.0 (the 'License'). You may not use this file except in
  1590. // compliance with the License. The rights granted to you under the License
  1591. // may not be used to create, or enable the creation or redistribution of,
  1592. // unlawful or unlicensed copies of an Apple operating system, or to
  1593. // circumvent, violate, or enable the circumvention or violation of, any
  1594. // terms of an Apple operating system software license agreement.
  1595. //
  1596. // Please obtain a copy of the License at
  1597. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1598. //
  1599. // The Original Code and all software distributed under the License are
  1600. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1601. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1602. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1603. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1604. // Please see the License for the specific language governing rights and
  1605. // limitations under the License.
  1606. //
  1607. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1608. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  1609. //
  1610. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1611. //
  1612. // This file contains Original Code and/or Modifications of Original Code
  1613. // as defined in and that are subject to the Apple Public Source License
  1614. // Version 2.0 (the 'License'). You may not use this file except in
  1615. // compliance with the License. The rights granted to you under the License
  1616. // may not be used to create, or enable the creation or redistribution of,
  1617. // unlawful or unlicensed copies of an Apple operating system, or to
  1618. // circumvent, violate, or enable the circumvention or violation of, any
  1619. // terms of an Apple operating system software license agreement.
  1620. //
  1621. // Please obtain a copy of the License at
  1622. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1623. //
  1624. // The Original Code and all software distributed under the License are
  1625. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1626. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1627. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1628. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1629. // Please see the License for the specific language governing rights and
  1630. // limitations under the License.
  1631. //
  1632. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1633. type Blksize_t = X__darwin_blksize_t /* _blksize_t.h:31:35 */
  1634. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  1635. //
  1636. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1637. //
  1638. // This file contains Original Code and/or Modifications of Original Code
  1639. // as defined in and that are subject to the Apple Public Source License
  1640. // Version 2.0 (the 'License'). You may not use this file except in
  1641. // compliance with the License. The rights granted to you under the License
  1642. // may not be used to create, or enable the creation or redistribution of,
  1643. // unlawful or unlicensed copies of an Apple operating system, or to
  1644. // circumvent, violate, or enable the circumvention or violation of, any
  1645. // terms of an Apple operating system software license agreement.
  1646. //
  1647. // Please obtain a copy of the License at
  1648. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1649. //
  1650. // The Original Code and all software distributed under the License are
  1651. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1652. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1653. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1654. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1655. // Please see the License for the specific language governing rights and
  1656. // limitations under the License.
  1657. //
  1658. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1659. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  1660. //
  1661. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1662. //
  1663. // This file contains Original Code and/or Modifications of Original Code
  1664. // as defined in and that are subject to the Apple Public Source License
  1665. // Version 2.0 (the 'License'). You may not use this file except in
  1666. // compliance with the License. The rights granted to you under the License
  1667. // may not be used to create, or enable the creation or redistribution of,
  1668. // unlawful or unlicensed copies of an Apple operating system, or to
  1669. // circumvent, violate, or enable the circumvention or violation of, any
  1670. // terms of an Apple operating system software license agreement.
  1671. //
  1672. // Please obtain a copy of the License at
  1673. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1674. //
  1675. // The Original Code and all software distributed under the License are
  1676. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1677. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1678. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1679. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1680. // Please see the License for the specific language governing rights and
  1681. // limitations under the License.
  1682. //
  1683. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1684. type Dev_t = X__darwin_dev_t /* _dev_t.h:31:31 */ // device number
  1685. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  1686. //
  1687. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1688. //
  1689. // This file contains Original Code and/or Modifications of Original Code
  1690. // as defined in and that are subject to the Apple Public Source License
  1691. // Version 2.0 (the 'License'). You may not use this file except in
  1692. // compliance with the License. The rights granted to you under the License
  1693. // may not be used to create, or enable the creation or redistribution of,
  1694. // unlawful or unlicensed copies of an Apple operating system, or to
  1695. // circumvent, violate, or enable the circumvention or violation of, any
  1696. // terms of an Apple operating system software license agreement.
  1697. //
  1698. // Please obtain a copy of the License at
  1699. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1700. //
  1701. // The Original Code and all software distributed under the License are
  1702. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1703. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1704. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1705. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1706. // Please see the License for the specific language governing rights and
  1707. // limitations under the License.
  1708. //
  1709. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1710. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  1711. //
  1712. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1713. //
  1714. // This file contains Original Code and/or Modifications of Original Code
  1715. // as defined in and that are subject to the Apple Public Source License
  1716. // Version 2.0 (the 'License'). You may not use this file except in
  1717. // compliance with the License. The rights granted to you under the License
  1718. // may not be used to create, or enable the creation or redistribution of,
  1719. // unlawful or unlicensed copies of an Apple operating system, or to
  1720. // circumvent, violate, or enable the circumvention or violation of, any
  1721. // terms of an Apple operating system software license agreement.
  1722. //
  1723. // Please obtain a copy of the License at
  1724. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1725. //
  1726. // The Original Code and all software distributed under the License are
  1727. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1728. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1729. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1730. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1731. // Please see the License for the specific language governing rights and
  1732. // limitations under the License.
  1733. //
  1734. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1735. type Ino_t = X__darwin_ino_t /* _ino_t.h:31:33 */ // inode number
  1736. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  1737. //
  1738. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1739. //
  1740. // This file contains Original Code and/or Modifications of Original Code
  1741. // as defined in and that are subject to the Apple Public Source License
  1742. // Version 2.0 (the 'License'). You may not use this file except in
  1743. // compliance with the License. The rights granted to you under the License
  1744. // may not be used to create, or enable the creation or redistribution of,
  1745. // unlawful or unlicensed copies of an Apple operating system, or to
  1746. // circumvent, violate, or enable the circumvention or violation of, any
  1747. // terms of an Apple operating system software license agreement.
  1748. //
  1749. // Please obtain a copy of the License at
  1750. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1751. //
  1752. // The Original Code and all software distributed under the License are
  1753. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1754. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1755. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1756. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1757. // Please see the License for the specific language governing rights and
  1758. // limitations under the License.
  1759. //
  1760. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1761. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  1762. //
  1763. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1764. //
  1765. // This file contains Original Code and/or Modifications of Original Code
  1766. // as defined in and that are subject to the Apple Public Source License
  1767. // Version 2.0 (the 'License'). You may not use this file except in
  1768. // compliance with the License. The rights granted to you under the License
  1769. // may not be used to create, or enable the creation or redistribution of,
  1770. // unlawful or unlicensed copies of an Apple operating system, or to
  1771. // circumvent, violate, or enable the circumvention or violation of, any
  1772. // terms of an Apple operating system software license agreement.
  1773. //
  1774. // Please obtain a copy of the License at
  1775. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1776. //
  1777. // The Original Code and all software distributed under the License are
  1778. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1779. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1780. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1781. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1782. // Please see the License for the specific language governing rights and
  1783. // limitations under the License.
  1784. //
  1785. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1786. type Ino64_t = X__darwin_ino64_t /* _ino64_t.h:31:33 */ // 64bit inode number
  1787. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  1788. //
  1789. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1790. //
  1791. // This file contains Original Code and/or Modifications of Original Code
  1792. // as defined in and that are subject to the Apple Public Source License
  1793. // Version 2.0 (the 'License'). You may not use this file except in
  1794. // compliance with the License. The rights granted to you under the License
  1795. // may not be used to create, or enable the creation or redistribution of,
  1796. // unlawful or unlicensed copies of an Apple operating system, or to
  1797. // circumvent, violate, or enable the circumvention or violation of, any
  1798. // terms of an Apple operating system software license agreement.
  1799. //
  1800. // Please obtain a copy of the License at
  1801. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1802. //
  1803. // The Original Code and all software distributed under the License are
  1804. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1805. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1806. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1807. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1808. // Please see the License for the specific language governing rights and
  1809. // limitations under the License.
  1810. //
  1811. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1812. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  1813. //
  1814. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1815. //
  1816. // This file contains Original Code and/or Modifications of Original Code
  1817. // as defined in and that are subject to the Apple Public Source License
  1818. // Version 2.0 (the 'License'). You may not use this file except in
  1819. // compliance with the License. The rights granted to you under the License
  1820. // may not be used to create, or enable the creation or redistribution of,
  1821. // unlawful or unlicensed copies of an Apple operating system, or to
  1822. // circumvent, violate, or enable the circumvention or violation of, any
  1823. // terms of an Apple operating system software license agreement.
  1824. //
  1825. // Please obtain a copy of the License at
  1826. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1827. //
  1828. // The Original Code and all software distributed under the License are
  1829. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1830. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1831. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1832. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1833. // Please see the License for the specific language governing rights and
  1834. // limitations under the License.
  1835. //
  1836. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1837. type Mode_t = X__darwin_mode_t /* _mode_t.h:31:33 */
  1838. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  1839. //
  1840. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1841. //
  1842. // This file contains Original Code and/or Modifications of Original Code
  1843. // as defined in and that are subject to the Apple Public Source License
  1844. // Version 2.0 (the 'License'). You may not use this file except in
  1845. // compliance with the License. The rights granted to you under the License
  1846. // may not be used to create, or enable the creation or redistribution of,
  1847. // unlawful or unlicensed copies of an Apple operating system, or to
  1848. // circumvent, violate, or enable the circumvention or violation of, any
  1849. // terms of an Apple operating system software license agreement.
  1850. //
  1851. // Please obtain a copy of the License at
  1852. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1853. //
  1854. // The Original Code and all software distributed under the License are
  1855. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1856. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1857. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1858. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1859. // Please see the License for the specific language governing rights and
  1860. // limitations under the License.
  1861. //
  1862. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1863. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  1864. //
  1865. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1866. //
  1867. // This file contains Original Code and/or Modifications of Original Code
  1868. // as defined in and that are subject to the Apple Public Source License
  1869. // Version 2.0 (the 'License'). You may not use this file except in
  1870. // compliance with the License. The rights granted to you under the License
  1871. // may not be used to create, or enable the creation or redistribution of,
  1872. // unlawful or unlicensed copies of an Apple operating system, or to
  1873. // circumvent, violate, or enable the circumvention or violation of, any
  1874. // terms of an Apple operating system software license agreement.
  1875. //
  1876. // Please obtain a copy of the License at
  1877. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1878. //
  1879. // The Original Code and all software distributed under the License are
  1880. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1881. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1882. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1883. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1884. // Please see the License for the specific language governing rights and
  1885. // limitations under the License.
  1886. //
  1887. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1888. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  1889. type Nlink_t = X__uint16_t /* _nlink_t.h:31:27 */ // link count
  1890. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  1891. //
  1892. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1893. //
  1894. // This file contains Original Code and/or Modifications of Original Code
  1895. // as defined in and that are subject to the Apple Public Source License
  1896. // Version 2.0 (the 'License'). You may not use this file except in
  1897. // compliance with the License. The rights granted to you under the License
  1898. // may not be used to create, or enable the creation or redistribution of,
  1899. // unlawful or unlicensed copies of an Apple operating system, or to
  1900. // circumvent, violate, or enable the circumvention or violation of, any
  1901. // terms of an Apple operating system software license agreement.
  1902. //
  1903. // Please obtain a copy of the License at
  1904. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1905. //
  1906. // The Original Code and all software distributed under the License are
  1907. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1908. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1909. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1910. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1911. // Please see the License for the specific language governing rights and
  1912. // limitations under the License.
  1913. //
  1914. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1915. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  1916. //
  1917. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1918. //
  1919. // This file contains Original Code and/or Modifications of Original Code
  1920. // as defined in and that are subject to the Apple Public Source License
  1921. // Version 2.0 (the 'License'). You may not use this file except in
  1922. // compliance with the License. The rights granted to you under the License
  1923. // may not be used to create, or enable the creation or redistribution of,
  1924. // unlawful or unlicensed copies of an Apple operating system, or to
  1925. // circumvent, violate, or enable the circumvention or violation of, any
  1926. // terms of an Apple operating system software license agreement.
  1927. //
  1928. // Please obtain a copy of the License at
  1929. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1930. //
  1931. // The Original Code and all software distributed under the License are
  1932. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1933. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1934. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1935. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1936. // Please see the License for the specific language governing rights and
  1937. // limitations under the License.
  1938. //
  1939. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1940. type Uid_t = X__darwin_uid_t /* _uid_t.h:31:31 */
  1941. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  1942. //
  1943. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1944. //
  1945. // This file contains Original Code and/or Modifications of Original Code
  1946. // as defined in and that are subject to the Apple Public Source License
  1947. // Version 2.0 (the 'License'). You may not use this file except in
  1948. // compliance with the License. The rights granted to you under the License
  1949. // may not be used to create, or enable the creation or redistribution of,
  1950. // unlawful or unlicensed copies of an Apple operating system, or to
  1951. // circumvent, violate, or enable the circumvention or violation of, any
  1952. // terms of an Apple operating system software license agreement.
  1953. //
  1954. // Please obtain a copy of the License at
  1955. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1956. //
  1957. // The Original Code and all software distributed under the License are
  1958. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1959. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1960. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1961. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1962. // Please see the License for the specific language governing rights and
  1963. // limitations under the License.
  1964. //
  1965. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1966. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  1967. //
  1968. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1969. //
  1970. // This file contains Original Code and/or Modifications of Original Code
  1971. // as defined in and that are subject to the Apple Public Source License
  1972. // Version 2.0 (the 'License'). You may not use this file except in
  1973. // compliance with the License. The rights granted to you under the License
  1974. // may not be used to create, or enable the creation or redistribution of,
  1975. // unlawful or unlicensed copies of an Apple operating system, or to
  1976. // circumvent, violate, or enable the circumvention or violation of, any
  1977. // terms of an Apple operating system software license agreement.
  1978. //
  1979. // Please obtain a copy of the License at
  1980. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1981. //
  1982. // The Original Code and all software distributed under the License are
  1983. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1984. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1985. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1986. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1987. // Please see the License for the specific language governing rights and
  1988. // limitations under the License.
  1989. //
  1990. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1991. type Gid_t = X__darwin_gid_t /* _gid_t.h:31:25 */
  1992. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  1993. //
  1994. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1995. //
  1996. // This file contains Original Code and/or Modifications of Original Code
  1997. // as defined in and that are subject to the Apple Public Source License
  1998. // Version 2.0 (the 'License'). You may not use this file except in
  1999. // compliance with the License. The rights granted to you under the License
  2000. // may not be used to create, or enable the creation or redistribution of,
  2001. // unlawful or unlicensed copies of an Apple operating system, or to
  2002. // circumvent, violate, or enable the circumvention or violation of, any
  2003. // terms of an Apple operating system software license agreement.
  2004. //
  2005. // Please obtain a copy of the License at
  2006. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2007. //
  2008. // The Original Code and all software distributed under the License are
  2009. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2010. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2011. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2012. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2013. // Please see the License for the specific language governing rights and
  2014. // limitations under the License.
  2015. //
  2016. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2017. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  2018. //
  2019. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2020. //
  2021. // This file contains Original Code and/or Modifications of Original Code
  2022. // as defined in and that are subject to the Apple Public Source License
  2023. // Version 2.0 (the 'License'). You may not use this file except in
  2024. // compliance with the License. The rights granted to you under the License
  2025. // may not be used to create, or enable the creation or redistribution of,
  2026. // unlawful or unlicensed copies of an Apple operating system, or to
  2027. // circumvent, violate, or enable the circumvention or violation of, any
  2028. // terms of an Apple operating system software license agreement.
  2029. //
  2030. // Please obtain a copy of the License at
  2031. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2032. //
  2033. // The Original Code and all software distributed under the License are
  2034. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2035. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2036. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2037. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2038. // Please see the License for the specific language governing rights and
  2039. // limitations under the License.
  2040. //
  2041. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2042. type Off_t = X__darwin_off_t /* _off_t.h:31:33 */
  2043. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2044. //
  2045. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2046. //
  2047. // This file contains Original Code and/or Modifications of Original Code
  2048. // as defined in and that are subject to the Apple Public Source License
  2049. // Version 2.0 (the 'License'). You may not use this file except in
  2050. // compliance with the License. The rights granted to you under the License
  2051. // may not be used to create, or enable the creation or redistribution of,
  2052. // unlawful or unlicensed copies of an Apple operating system, or to
  2053. // circumvent, violate, or enable the circumvention or violation of, any
  2054. // terms of an Apple operating system software license agreement.
  2055. //
  2056. // Please obtain a copy of the License at
  2057. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2058. //
  2059. // The Original Code and all software distributed under the License are
  2060. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2061. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2062. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2063. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2064. // Please see the License for the specific language governing rights and
  2065. // limitations under the License.
  2066. //
  2067. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2068. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  2069. //
  2070. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2071. //
  2072. // This file contains Original Code and/or Modifications of Original Code
  2073. // as defined in and that are subject to the Apple Public Source License
  2074. // Version 2.0 (the 'License'). You may not use this file except in
  2075. // compliance with the License. The rights granted to you under the License
  2076. // may not be used to create, or enable the creation or redistribution of,
  2077. // unlawful or unlicensed copies of an Apple operating system, or to
  2078. // circumvent, violate, or enable the circumvention or violation of, any
  2079. // terms of an Apple operating system software license agreement.
  2080. //
  2081. // Please obtain a copy of the License at
  2082. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2083. //
  2084. // The Original Code and all software distributed under the License are
  2085. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2086. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2087. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2088. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2089. // Please see the License for the specific language governing rights and
  2090. // limitations under the License.
  2091. //
  2092. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2093. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  2094. type Time_t = X__darwin_time_t /* _time_t.h:31:33 */
  2095. // XXX So deprecated, it would make your head spin
  2096. //
  2097. // The old stat structure. In fact, this is not used by the kernel at all,
  2098. // and should not be used by user space, and should be removed from this
  2099. // header file entirely (along with the unused cvtstat() prototype in
  2100. // vnode_internal.h).
  2101. type Ostat = struct {
  2102. Fst_dev X__uint16_t
  2103. F__ccgo_pad1 [6]byte
  2104. Fst_ino Ino_t
  2105. Fst_mode Mode_t
  2106. Fst_nlink Nlink_t
  2107. Fst_uid X__uint16_t
  2108. Fst_gid X__uint16_t
  2109. Fst_rdev X__uint16_t
  2110. F__ccgo_pad2 [2]byte
  2111. Fst_size X__int32_t
  2112. Fst_atimespec struct {
  2113. Ftv_sec X__darwin_time_t
  2114. Ftv_nsec int64
  2115. }
  2116. Fst_mtimespec struct {
  2117. Ftv_sec X__darwin_time_t
  2118. Ftv_nsec int64
  2119. }
  2120. Fst_ctimespec struct {
  2121. Ftv_sec X__darwin_time_t
  2122. Ftv_nsec int64
  2123. }
  2124. Fst_blksize X__int32_t
  2125. Fst_blocks X__int32_t
  2126. Fst_flags X__uint32_t
  2127. Fst_gen X__uint32_t
  2128. } /* stat.h:110:1 */
  2129. // This structure is used as the second parameter to the fstat64(),
  2130. // lstat64(), and stat64() functions, and for struct stat when
  2131. // __DARWIN_64_BIT_INO_T is set. __DARWIN_STRUCT_STAT64 is defined
  2132. // above, depending on whether we use struct timespec or the direct
  2133. // components.
  2134. //
  2135. // This is simillar to stat except for 64bit inode number
  2136. // number instead of 32bit ino_t and the addition of create(birth) time.
  2137. // [XSI] This structure is used as the second parameter to the fstat(),
  2138. // lstat(), and stat() functions.
  2139. type Stat = struct {
  2140. Fst_dev Dev_t
  2141. Fst_mode Mode_t
  2142. Fst_nlink Nlink_t
  2143. Fst_ino X__darwin_ino64_t
  2144. Fst_uid Uid_t
  2145. Fst_gid Gid_t
  2146. Fst_rdev Dev_t
  2147. F__ccgo_pad1 [4]byte
  2148. Fst_atimespec struct {
  2149. Ftv_sec X__darwin_time_t
  2150. Ftv_nsec int64
  2151. }
  2152. Fst_mtimespec struct {
  2153. Ftv_sec X__darwin_time_t
  2154. Ftv_nsec int64
  2155. }
  2156. Fst_ctimespec struct {
  2157. Ftv_sec X__darwin_time_t
  2158. Ftv_nsec int64
  2159. }
  2160. Fst_birthtimespec struct {
  2161. Ftv_sec X__darwin_time_t
  2162. Ftv_nsec int64
  2163. }
  2164. Fst_size Off_t
  2165. Fst_blocks Blkcnt_t
  2166. Fst_blksize Blksize_t
  2167. Fst_flags X__uint32_t
  2168. Fst_gen X__uint32_t
  2169. Fst_lspare X__int32_t
  2170. Fst_qspare [2]X__int64_t
  2171. } /* stat.h:182:1 */
  2172. type Stat64 = struct {
  2173. Fst_dev Dev_t
  2174. Fst_mode Mode_t
  2175. Fst_nlink Nlink_t
  2176. Fst_ino X__darwin_ino64_t
  2177. Fst_uid Uid_t
  2178. Fst_gid Gid_t
  2179. Fst_rdev Dev_t
  2180. F__ccgo_pad1 [4]byte
  2181. Fst_atimespec struct {
  2182. Ftv_sec X__darwin_time_t
  2183. Ftv_nsec int64
  2184. }
  2185. Fst_mtimespec struct {
  2186. Ftv_sec X__darwin_time_t
  2187. Ftv_nsec int64
  2188. }
  2189. Fst_ctimespec struct {
  2190. Ftv_sec X__darwin_time_t
  2191. Ftv_nsec int64
  2192. }
  2193. Fst_birthtimespec struct {
  2194. Ftv_sec X__darwin_time_t
  2195. Ftv_nsec int64
  2196. }
  2197. Fst_size Off_t
  2198. Fst_blocks Blkcnt_t
  2199. Fst_blksize Blksize_t
  2200. Fst_flags X__uint32_t
  2201. Fst_gen X__uint32_t
  2202. Fst_lspare X__int32_t
  2203. Fst_qspare [2]X__int64_t
  2204. } /* stat.h:221:1 */
  2205. type Filesec_t = uintptr /* _filesec_t.h:31:25 */
  2206. var _ int8 /* gen.c:2:13: */