time_darwin_arm64.go 83 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768
  1. // Code generated by 'ccgo time/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o time/time_darwin_arm64.go -pkgname time', DO NOT EDIT.
  2. package time
  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. CLOCKS_PER_SEC = 1000000
  15. MAC_OS_VERSION_11_0 = 110000
  16. MAC_OS_VERSION_12_0 = 120000
  17. MAC_OS_X_VERSION_10_0 = 1000
  18. MAC_OS_X_VERSION_10_1 = 1010
  19. MAC_OS_X_VERSION_10_10 = 101000
  20. MAC_OS_X_VERSION_10_10_2 = 101002
  21. MAC_OS_X_VERSION_10_10_3 = 101003
  22. MAC_OS_X_VERSION_10_11 = 101100
  23. MAC_OS_X_VERSION_10_11_2 = 101102
  24. MAC_OS_X_VERSION_10_11_3 = 101103
  25. MAC_OS_X_VERSION_10_11_4 = 101104
  26. MAC_OS_X_VERSION_10_12 = 101200
  27. MAC_OS_X_VERSION_10_12_1 = 101201
  28. MAC_OS_X_VERSION_10_12_2 = 101202
  29. MAC_OS_X_VERSION_10_12_4 = 101204
  30. MAC_OS_X_VERSION_10_13 = 101300
  31. MAC_OS_X_VERSION_10_13_1 = 101301
  32. MAC_OS_X_VERSION_10_13_2 = 101302
  33. MAC_OS_X_VERSION_10_13_4 = 101304
  34. MAC_OS_X_VERSION_10_14 = 101400
  35. MAC_OS_X_VERSION_10_14_1 = 101401
  36. MAC_OS_X_VERSION_10_14_4 = 101404
  37. MAC_OS_X_VERSION_10_14_6 = 101406
  38. MAC_OS_X_VERSION_10_15 = 101500
  39. MAC_OS_X_VERSION_10_15_1 = 101501
  40. MAC_OS_X_VERSION_10_16 = 101600
  41. MAC_OS_X_VERSION_10_2 = 1020
  42. MAC_OS_X_VERSION_10_3 = 1030
  43. MAC_OS_X_VERSION_10_4 = 1040
  44. MAC_OS_X_VERSION_10_5 = 1050
  45. MAC_OS_X_VERSION_10_6 = 1060
  46. MAC_OS_X_VERSION_10_7 = 1070
  47. MAC_OS_X_VERSION_10_8 = 1080
  48. MAC_OS_X_VERSION_10_9 = 1090
  49. TIME_UTC = 1
  50. X_ARM_MACHTYPES_H_ = 0
  51. X_BSD_ARM__TYPES_H_ = 0
  52. X_BSD_MACHINE_TYPES_H_ = 0
  53. X_BSD_MACHINE__TYPES_H_ = 0
  54. X_CDEFS_H_ = 0
  55. X_CLOCK_T = 0
  56. X_DARWIN_FEATURE_64_BIT_INODE = 1
  57. X_DARWIN_FEATURE_ONLY_64_BIT_INODE = 1
  58. X_DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE = 1
  59. X_DARWIN_FEATURE_ONLY_VERS_1050 = 1
  60. X_DARWIN_FEATURE_UNIX_CONFORMANCE = 3
  61. X_FILE_OFFSET_BITS = 64
  62. X_FORTIFY_SOURCE = 2
  63. X_INT16_T = 0
  64. X_INT32_T = 0
  65. X_INT64_T = 0
  66. X_INT8_T = 0
  67. X_INTPTR_T = 0
  68. X_LP64 = 1
  69. X_MACHTYPES_H_ = 0
  70. X_Nonnull = 0
  71. X_Null_unspecified = 0
  72. X_Nullable = 0
  73. X_SIZE_T = 0
  74. X_SYS__PTHREAD_TYPES_H_ = 0
  75. X_SYS__TYPES_H_ = 0
  76. X_TIME_H_ = 0
  77. X_TIME_T = 0
  78. X_UINTPTR_T = 0
  79. X_U_INT16_T = 0
  80. X_U_INT32_T = 0
  81. X_U_INT64_T = 0
  82. X_U_INT8_T = 0
  83. )
  84. const ( /* time.h:153:1: */
  85. X_CLOCK_REALTIME = 0
  86. X_CLOCK_MONOTONIC = 6
  87. X_CLOCK_MONOTONIC_RAW = 4
  88. X_CLOCK_MONOTONIC_RAW_APPROX = 5
  89. X_CLOCK_UPTIME_RAW = 8
  90. X_CLOCK_UPTIME_RAW_APPROX = 9
  91. X_CLOCK_PROCESS_CPUTIME_ID = 12
  92. X_CLOCK_THREAD_CPUTIME_ID = 16
  93. )
  94. type Ptrdiff_t = int64 /* <builtin>:3:26 */
  95. type Size_t = uint64 /* <builtin>:9:23 */
  96. type Wchar_t = int32 /* <builtin>:15:24 */
  97. type X__int128_t = struct {
  98. Flo int64
  99. Fhi int64
  100. } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
  101. type X__uint128_t = struct {
  102. Flo uint64
  103. Fhi uint64
  104. } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
  105. type X__builtin_va_list = uintptr /* <builtin>:46:14 */
  106. type X__float128 = float64 /* <builtin>:47:21 */
  107. var X__darwin_check_fd_set_overflow uintptr /* <builtin>:146:5: */
  108. // Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
  109. //
  110. // @APPLE_LICENSE_HEADER_START@
  111. //
  112. // This file contains Original Code and/or Modifications of Original Code
  113. // as defined in and that are subject to the Apple Public Source License
  114. // Version 2.0 (the 'License'). You may not use this file except in
  115. // compliance with the License. Please obtain a copy of the License at
  116. // http://www.opensource.apple.com/apsl/ and read it before using this
  117. // file.
  118. //
  119. // The Original Code and all software distributed under the License are
  120. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  121. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  122. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  123. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  124. // Please see the License for the specific language governing rights and
  125. // limitations under the License.
  126. //
  127. // @APPLE_LICENSE_HEADER_END@
  128. // Copyright (c) 1989, 1993
  129. // The Regents of the University of California. All rights reserved.
  130. // (c) UNIX System Laboratories, Inc.
  131. // All or some portions of this file are derived from material licensed
  132. // to the University of California by American Telephone and Telegraph
  133. // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  134. // the permission of UNIX System Laboratories, Inc.
  135. //
  136. // Redistribution and use in source and binary forms, with or without
  137. // modification, are permitted provided that the following conditions
  138. // are met:
  139. // 1. Redistributions of source code must retain the above copyright
  140. // notice, this list of conditions and the following disclaimer.
  141. // 2. Redistributions in binary form must reproduce the above copyright
  142. // notice, this list of conditions and the following disclaimer in the
  143. // documentation and/or other materials provided with the distribution.
  144. // 3. All advertising materials mentioning features or use of this software
  145. // must display the following acknowledgement:
  146. // This product includes software developed by the University of
  147. // California, Berkeley and its contributors.
  148. // 4. Neither the name of the University nor the names of its contributors
  149. // may be used to endorse or promote products derived from this software
  150. // without specific prior written permission.
  151. //
  152. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  153. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  154. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  155. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  156. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  157. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  158. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  159. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  160. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  161. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  162. // SUCH DAMAGE.
  163. //
  164. // @(#)time.h 8.3 (Berkeley) 1/21/94
  165. // Copyright (c) 2004, 2008, 2009 Apple Inc. All rights reserved.
  166. //
  167. // @APPLE_LICENSE_HEADER_START@
  168. //
  169. // This file contains Original Code and/or Modifications of Original Code
  170. // as defined in and that are subject to the Apple Public Source License
  171. // Version 2.0 (the 'License'). You may not use this file except in
  172. // compliance with the License. Please obtain a copy of the License at
  173. // http://www.opensource.apple.com/apsl/ and read it before using this
  174. // file.
  175. //
  176. // The Original Code and all software distributed under the License are
  177. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  178. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  179. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  180. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  181. // Please see the License for the specific language governing rights and
  182. // limitations under the License.
  183. //
  184. // @APPLE_LICENSE_HEADER_END@
  185. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  186. //
  187. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  188. //
  189. // This file contains Original Code and/or Modifications of Original Code
  190. // as defined in and that are subject to the Apple Public Source License
  191. // Version 2.0 (the 'License'). You may not use this file except in
  192. // compliance with the License. The rights granted to you under the License
  193. // may not be used to create, or enable the creation or redistribution of,
  194. // unlawful or unlicensed copies of an Apple operating system, or to
  195. // circumvent, violate, or enable the circumvention or violation of, any
  196. // terms of an Apple operating system software license agreement.
  197. //
  198. // Please obtain a copy of the License at
  199. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  200. //
  201. // The Original Code and all software distributed under the License are
  202. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  203. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  204. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  205. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  206. // Please see the License for the specific language governing rights and
  207. // limitations under the License.
  208. //
  209. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  210. // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  211. //
  212. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  213. //
  214. // This file contains Original Code and/or Modifications of Original Code
  215. // as defined in and that are subject to the Apple Public Source License
  216. // Version 2.0 (the 'License'). You may not use this file except in
  217. // compliance with the License. The rights granted to you under the License
  218. // may not be used to create, or enable the creation or redistribution of,
  219. // unlawful or unlicensed copies of an Apple operating system, or to
  220. // circumvent, violate, or enable the circumvention or violation of, any
  221. // terms of an Apple operating system software license agreement.
  222. //
  223. // Please obtain a copy of the License at
  224. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  225. //
  226. // The Original Code and all software distributed under the License are
  227. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  228. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  229. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  230. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  231. // Please see the License for the specific language governing rights and
  232. // limitations under the License.
  233. //
  234. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  235. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  236. // Copyright (c) 1991, 1993
  237. // The Regents of the University of California. All rights reserved.
  238. //
  239. // This code is derived from software contributed to Berkeley by
  240. // Berkeley Software Design, Inc.
  241. //
  242. // Redistribution and use in source and binary forms, with or without
  243. // modification, are permitted provided that the following conditions
  244. // are met:
  245. // 1. Redistributions of source code must retain the above copyright
  246. // notice, this list of conditions and the following disclaimer.
  247. // 2. Redistributions in binary form must reproduce the above copyright
  248. // notice, this list of conditions and the following disclaimer in the
  249. // documentation and/or other materials provided with the distribution.
  250. // 3. All advertising materials mentioning features or use of this software
  251. // must display the following acknowledgement:
  252. // This product includes software developed by the University of
  253. // California, Berkeley and its contributors.
  254. // 4. Neither the name of the University nor the names of its contributors
  255. // may be used to endorse or promote products derived from this software
  256. // without specific prior written permission.
  257. //
  258. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  259. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  260. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  261. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  262. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  263. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  264. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  265. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  266. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  267. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  268. // SUCH DAMAGE.
  269. //
  270. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  271. // This SDK is designed to work with clang and specific versions of
  272. // gcc >= 4.0 with Apple's patch sets
  273. // Compatibility with compilers and environments that don't support compiler
  274. // feature checking function-like macros.
  275. // The __CONCAT macro is used to concatenate parts of symbol names, e.g.
  276. // with "#define OLD(foo) __CONCAT(old,foo)", OLD(foo) produces oldfoo.
  277. // The __CONCAT macro is a bit tricky -- make sure you don't put spaces
  278. // in between its arguments. __CONCAT can also concatenate double-quoted
  279. // strings produced by the __STRING macro, but this only works with ANSI C.
  280. // In non-ANSI C environments, new programs will want ANSI-only C keywords
  281. // deleted from the program and old programs will want them left alone.
  282. // When using a compiler other than gcc, programs using the ANSI C keywords
  283. // const, inline etc. as normal identifiers should define -DNO_ANSI_KEYWORDS.
  284. // When using "gcc -traditional", we assume that this is the intent; if
  285. // __GNUC__ is defined but __STDC__ is not, we leave the new keywords alone.
  286. // __pure2 can be used for functions that are only a function of their scalar
  287. // arguments (meaning they can't dereference pointers).
  288. //
  289. // __stateful_pure can be used for functions that have no side effects,
  290. // but depend on the state of the memory.
  291. // __unused denotes variables and functions that may not be used, preventing
  292. // the compiler from warning about it if not used.
  293. // __used forces variables and functions to be included even if it appears
  294. // to the compiler that they are not used (and would thust be discarded).
  295. // __cold marks code used for debugging or that is rarely taken
  296. // and tells the compiler to optimize for size and outline code.
  297. // __exported denotes symbols that should be exported even when symbols
  298. // are hidden by default.
  299. // __exported_push/_exported_pop are pragmas used to delimit a range of
  300. // symbols that should be exported even when symbols are hidden by default.
  301. // __deprecated causes the compiler to produce a warning when encountering
  302. // code using the deprecated functionality.
  303. // __deprecated_msg() does the same, and compilers that support it will print
  304. // a message along with the deprecation warning.
  305. // This may require turning on such warning with the -Wdeprecated flag.
  306. // __deprecated_enum_msg() should be used on enums, and compilers that support
  307. // it will print the deprecation warning.
  308. // __kpi_deprecated() specifically indicates deprecation of kernel programming
  309. // interfaces in Kernel.framework used by KEXTs.
  310. // __unavailable causes the compiler to error out when encountering
  311. // code using the tagged function
  312. // Delete pseudo-keywords wherever they are not available or needed.
  313. // We use `__restrict' as a way to define the `restrict' type qualifier
  314. // without disturbing older software that is unaware of C99 keywords.
  315. // Compatibility with compilers and environments that don't support the
  316. // nullability feature.
  317. // __disable_tail_calls causes the compiler to not perform tail call
  318. // optimization inside the marked function.
  319. // __not_tail_called causes the compiler to prevent tail call optimization
  320. // on statically bound calls to the function. It has no effect on indirect
  321. // calls. Virtual functions, objective-c methods, and functions marked as
  322. // "always_inline" cannot be marked as __not_tail_called.
  323. // __result_use_check warns callers of a function that not using the function
  324. // return value is a bug, i.e. dismissing malloc() return value results in a
  325. // memory leak.
  326. // __swift_unavailable causes the compiler to mark a symbol as specifically
  327. // unavailable in Swift, regardless of any other availability in C.
  328. // __abortlike is the attribute to put on functions like abort() that are
  329. // typically used to mark assertions. These optimize the codegen
  330. // for outlining while still maintaining debugability.
  331. // Declaring inline functions within headers is error-prone due to differences
  332. // across various versions of the C language and extensions. __header_inline
  333. // can be used to declare inline functions within system headers. In cases
  334. // where you want to force inlining instead of letting the compiler make
  335. // the decision, you can use __header_always_inline.
  336. //
  337. // Be aware that using inline for functions which compilers may also provide
  338. // builtins can behave differently under various compilers. If you intend to
  339. // provide an inline version of such a function, you may want to use a macro
  340. // instead.
  341. //
  342. // The check for !__GNUC__ || __clang__ is because gcc doesn't correctly
  343. // support c99 inline in some cases:
  344. // http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55965
  345. // Compiler-dependent macros that bracket portions of code where the
  346. // "-Wunreachable-code" warning should be ignored. Please use sparingly.
  347. // Compiler-dependent macros to declare that functions take printf-like
  348. // or scanf-like arguments. They are null except for versions of gcc
  349. // that are known to support the features properly. Functions declared
  350. // with these attributes will cause compilation warnings if there is a
  351. // mismatch between the format string and subsequent function parameter
  352. // types.
  353. // Source compatibility only, ID string not emitted in object file
  354. // __alloc_size can be used to label function arguments that represent the
  355. // size of memory that the function allocates and returns. The one-argument
  356. // form labels a single argument that gives the allocation size (where the
  357. // arguments are numbered from 1):
  358. //
  359. // void *malloc(size_t __size) __alloc_size(1);
  360. //
  361. // The two-argument form handles the case where the size is calculated as the
  362. // product of two arguments:
  363. //
  364. // void *calloc(size_t __count, size_t __size) __alloc_size(1,2);
  365. // COMPILATION ENVIRONMENTS -- see compat(5) for additional detail
  366. //
  367. // DEFAULT By default newly complied code will get POSIX APIs plus
  368. // Apple API extensions in scope.
  369. //
  370. // Most users will use this compilation environment to avoid
  371. // behavioral differences between 32 and 64 bit code.
  372. //
  373. // LEGACY Defining _NONSTD_SOURCE will get pre-POSIX APIs plus Apple
  374. // API extensions in scope.
  375. //
  376. // This is generally equivalent to the Tiger release compilation
  377. // environment, except that it cannot be applied to 64 bit code;
  378. // its use is discouraged.
  379. //
  380. // We expect this environment to be deprecated in the future.
  381. //
  382. // STRICT Defining _POSIX_C_SOURCE or _XOPEN_SOURCE restricts the
  383. // available APIs to exactly the set of APIs defined by the
  384. // corresponding standard, based on the value defined.
  385. //
  386. // A correct, portable definition for _POSIX_C_SOURCE is 200112L.
  387. // A correct, portable definition for _XOPEN_SOURCE is 600L.
  388. //
  389. // Apple API extensions are not visible in this environment,
  390. // which can cause Apple specific code to fail to compile,
  391. // or behave incorrectly if prototypes are not in scope or
  392. // warnings about missing prototypes are not enabled or ignored.
  393. //
  394. // In any compilation environment, for correct symbol resolution to occur,
  395. // function prototypes must be in scope. It is recommended that all Apple
  396. // tools users add either the "-Wall" or "-Wimplicit-function-declaration"
  397. // compiler flags to their projects to be warned when a function is being
  398. // used without a prototype in scope.
  399. // These settings are particular to each product.
  400. // Platform: MacOSX
  401. // The __DARWIN_ALIAS macros are used to do symbol renaming; they allow
  402. // legacy code to use the old symbol, thus maintaining binary compatibility
  403. // while new code can use a standards compliant version of the same function.
  404. //
  405. // __DARWIN_ALIAS is used by itself if the function signature has not
  406. // changed, it is used along with a #ifdef check for __DARWIN_UNIX03
  407. // if the signature has changed. Because the __LP64__ environment
  408. // only supports UNIX03 semantics it causes __DARWIN_UNIX03 to be
  409. // defined, but causes __DARWIN_ALIAS to do no symbol mangling.
  410. //
  411. // As a special case, when XCode is used to target a specific version of the
  412. // OS, the manifest constant __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__
  413. // will be defined by the compiler, with the digits representing major version
  414. // time 100 + minor version times 10 (e.g. 10.5 := 1050). If we are targeting
  415. // pre-10.5, and it is the default compilation environment, revert the
  416. // compilation environment to pre-__DARWIN_UNIX03.
  417. // symbol suffixes used for symbol versioning
  418. // symbol versioning macros
  419. // symbol release macros
  420. // Copyright (c) 2010 Apple Inc. All rights reserved.
  421. //
  422. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  423. //
  424. // This file contains Original Code and/or Modifications of Original Code
  425. // as defined in and that are subject to the Apple Public Source License
  426. // Version 2.0 (the 'License'). You may not use this file except in
  427. // compliance with the License. The rights granted to you under the License
  428. // may not be used to create, or enable the creation or redistribution of,
  429. // unlawful or unlicensed copies of an Apple operating system, or to
  430. // circumvent, violate, or enable the circumvention or violation of, any
  431. // terms of an Apple operating system software license agreement.
  432. //
  433. // Please obtain a copy of the License at
  434. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  435. //
  436. // The Original Code and all software distributed under the License are
  437. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  438. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  439. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  440. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  441. // Please see the License for the specific language governing rights and
  442. // limitations under the License.
  443. //
  444. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  445. // POSIX.1 requires that the macros we test be defined before any standard
  446. // header file is included. This permits us to convert values for feature
  447. // testing, as necessary, using only _POSIX_C_SOURCE.
  448. //
  449. // Here's a quick run-down of the versions:
  450. // defined(_POSIX_SOURCE) 1003.1-1988
  451. // _POSIX_C_SOURCE == 1L 1003.1-1990
  452. // _POSIX_C_SOURCE == 2L 1003.2-1992 C Language Binding Option
  453. // _POSIX_C_SOURCE == 199309L 1003.1b-1993
  454. // _POSIX_C_SOURCE == 199506L 1003.1c-1995, 1003.1i-1995,
  455. // and the omnibus ISO/IEC 9945-1: 1996
  456. // _POSIX_C_SOURCE == 200112L 1003.1-2001
  457. // _POSIX_C_SOURCE == 200809L 1003.1-2008
  458. //
  459. // In addition, the X/Open Portability Guide, which is now the Single UNIX
  460. // Specification, defines a feature-test macro which indicates the version of
  461. // that specification, and which subsumes _POSIX_C_SOURCE.
  462. // Deal with IEEE Std. 1003.1-1990, in which _POSIX_C_SOURCE == 1L.
  463. // Deal with IEEE Std. 1003.2-1992, in which _POSIX_C_SOURCE == 2L.
  464. // Deal with various X/Open Portability Guides and Single UNIX Spec.
  465. // Deal with all versions of POSIX. The ordering relative to the tests above is
  466. // important.
  467. // POSIX C deprecation macros
  468. // Copyright (c) 2010 Apple Inc. All rights reserved.
  469. //
  470. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  471. //
  472. // This file contains Original Code and/or Modifications of Original Code
  473. // as defined in and that are subject to the Apple Public Source License
  474. // Version 2.0 (the 'License'). You may not use this file except in
  475. // compliance with the License. The rights granted to you under the License
  476. // may not be used to create, or enable the creation or redistribution of,
  477. // unlawful or unlicensed copies of an Apple operating system, or to
  478. // circumvent, violate, or enable the circumvention or violation of, any
  479. // terms of an Apple operating system software license agreement.
  480. //
  481. // Please obtain a copy of the License at
  482. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  483. //
  484. // The Original Code and all software distributed under the License are
  485. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  486. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  487. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  488. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  489. // Please see the License for the specific language governing rights and
  490. // limitations under the License.
  491. //
  492. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  493. // Set a single macro which will always be defined and can be used to determine
  494. // the appropriate namespace. For POSIX, these values will correspond to
  495. // _POSIX_C_SOURCE value. Currently there are two additional levels corresponding
  496. // to ANSI (_ANSI_SOURCE) and Darwin extensions (_DARWIN_C_SOURCE)
  497. // If the developer has neither requested a strict language mode nor a version
  498. // of POSIX, turn on functionality provided by __STDC_WANT_LIB_EXT1__ as part
  499. // of __DARWIN_C_FULL.
  500. // long long is not supported in c89 (__STRICT_ANSI__), but g++ -ansi and
  501. // c99 still want long longs. While not perfect, we allow long longs for
  502. // g++.
  503. // ****************************************
  504. //
  505. // Public darwin-specific feature macros
  506. //
  507. // _DARWIN_FEATURE_64_BIT_INODE indicates that the ino_t type is 64-bit, and
  508. // structures modified for 64-bit inodes (like struct stat) will be used.
  509. // _DARWIN_FEATURE_64_ONLY_BIT_INODE indicates that the ino_t type may only
  510. // be 64-bit; there is no support for 32-bit ino_t when this macro is defined
  511. // (and non-zero). There is no struct stat64 either, as the regular
  512. // struct stat will already be the 64-bit version.
  513. // _DARWIN_FEATURE_ONLY_VERS_1050 indicates that only those APIs updated
  514. // in 10.5 exists; no pre-10.5 variants are available.
  515. // _DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE indicates only UNIX conforming API
  516. // are available (the legacy BSD APIs are not available)
  517. // _DARWIN_FEATURE_UNIX_CONFORMANCE indicates whether UNIX conformance is on,
  518. // and specifies the conformance level (3 is SUSv3)
  519. // This macro casts away the qualifier from the variable
  520. //
  521. // Note: use at your own risk, removing qualifiers can result in
  522. // catastrophic run-time failures.
  523. // __XNU_PRIVATE_EXTERN is a linkage decoration indicating that a symbol can be
  524. // used from other compilation units, but not other libraries or executables.
  525. // Architecture validation for current SDK
  526. // Similar to OS_ENUM/OS_CLOSED_ENUM/OS_OPTIONS/OS_CLOSED_OPTIONS
  527. //
  528. // This provides more advanced type checking on compilers supporting
  529. // the proper extensions, even in C.
  530. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  531. //
  532. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  533. //
  534. // This file contains Original Code and/or Modifications of Original Code
  535. // as defined in and that are subject to the Apple Public Source License
  536. // Version 2.0 (the 'License'). You may not use this file except in
  537. // compliance with the License. The rights granted to you under the License
  538. // may not be used to create, or enable the creation or redistribution of,
  539. // unlawful or unlicensed copies of an Apple operating system, or to
  540. // circumvent, violate, or enable the circumvention or violation of, any
  541. // terms of an Apple operating system software license agreement.
  542. //
  543. // Please obtain a copy of the License at
  544. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  545. //
  546. // The Original Code and all software distributed under the License are
  547. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  548. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  549. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  550. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  551. // Please see the License for the specific language governing rights and
  552. // limitations under the License.
  553. //
  554. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  555. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  556. // This header file contains integer types. It's intended to also contain
  557. // flotaing point and other arithmetic types, as needed, later.
  558. type X__int8_t = int8 /* _types.h:15:33 */
  559. type X__uint8_t = uint8 /* _types.h:19:33 */
  560. type X__int16_t = int16 /* _types.h:20:33 */
  561. type X__uint16_t = uint16 /* _types.h:21:33 */
  562. type X__int32_t = int32 /* _types.h:22:33 */
  563. type X__uint32_t = uint32 /* _types.h:23:33 */
  564. type X__int64_t = int64 /* _types.h:24:33 */
  565. type X__uint64_t = uint64 /* _types.h:25:33 */
  566. type X__darwin_intptr_t = int64 /* _types.h:27:33 */
  567. type X__darwin_natural_t = uint32 /* _types.h:28:33 */
  568. // The rune type below is declared to be an ``int'' instead of the more natural
  569. // ``unsigned long'' or ``long''. Two things are happening here. It is not
  570. // unsigned so that EOF (-1) can be naturally assigned to it and used. Also,
  571. // it looks like 10646 will be a 31 bit standard. This means that if your
  572. // ints cannot hold 32 bits, you will be in trouble. The reason an int was
  573. // chosen over a long is that the is*() and to*() routines take ints (says
  574. // ANSI C), but they use __darwin_ct_rune_t instead of int. By changing it
  575. // here, you lose a bit of ANSI conformance, but your programs will still
  576. // work.
  577. //
  578. // NOTE: rune_t is not covered by ANSI nor other standards, and should not
  579. // be instantiated outside of lib/libc/locale. Use wchar_t. wchar_t and
  580. // rune_t must be the same type. Also wint_t must be no narrower than
  581. // wchar_t, and should also be able to hold all members of the largest
  582. // character set plus one extra value (WEOF). wint_t must be at least 16 bits.
  583. type X__darwin_ct_rune_t = int32 /* _types.h:48:33 */ // ct_rune_t
  584. // mbstate_t is an opaque object to keep conversion state, during multibyte
  585. // stream conversions. The content must not be referenced by user programs.
  586. type X__mbstate_t = struct {
  587. F__ccgo_pad1 [0]uint64
  588. F__mbstate8 [128]int8
  589. } /* _types.h:57:3 */
  590. type X__darwin_mbstate_t = X__mbstate_t /* _types.h:59:33 */ // mbstate_t
  591. type X__darwin_ptrdiff_t = int64 /* _types.h:62:33 */ // ptr1 - ptr2
  592. type X__darwin_size_t = uint64 /* _types.h:70:33 */ // sizeof()
  593. type X__darwin_va_list = X__builtin_va_list /* _types.h:76:33 */ // va_list
  594. type X__darwin_wchar_t = int32 /* _types.h:82:33 */ // wchar_t
  595. type X__darwin_rune_t = X__darwin_wchar_t /* _types.h:87:33 */ // rune_t
  596. type X__darwin_wint_t = int32 /* _types.h:90:33 */ // wint_t
  597. type X__darwin_clock_t = uint64 /* _types.h:95:33 */ // clock()
  598. type X__darwin_socklen_t = X__uint32_t /* _types.h:96:33 */ // socklen_t (duh)
  599. type X__darwin_ssize_t = int64 /* _types.h:97:33 */ // byte count or error
  600. type X__darwin_time_t = int64 /* _types.h:98:33 */ // time()
  601. // Type definitions; takes common type definitions that must be used
  602. // in multiple header files due to [XSI], removes them from the system
  603. // space, and puts them in the implementation space.
  604. type X__darwin_blkcnt_t = X__int64_t /* _types.h:55:25 */ // total blocks
  605. type X__darwin_blksize_t = X__int32_t /* _types.h:56:25 */ // preferred block size
  606. type X__darwin_dev_t = X__int32_t /* _types.h:57:25 */ // dev_t
  607. type X__darwin_fsblkcnt_t = uint32 /* _types.h:58:25 */ // Used by statvfs and fstatvfs
  608. type X__darwin_fsfilcnt_t = uint32 /* _types.h:59:25 */ // Used by statvfs and fstatvfs
  609. type X__darwin_gid_t = X__uint32_t /* _types.h:60:25 */ // [???] process and group IDs
  610. type X__darwin_id_t = X__uint32_t /* _types.h:61:25 */ // [XSI] pid_t, uid_t, or gid_t
  611. type X__darwin_ino64_t = X__uint64_t /* _types.h:62:25 */ // [???] Used for 64 bit inodes
  612. type X__darwin_ino_t = X__darwin_ino64_t /* _types.h:64:26 */ // [???] Used for inodes
  613. type X__darwin_mach_port_name_t = X__darwin_natural_t /* _types.h:68:28 */ // Used by mach
  614. type X__darwin_mach_port_t = X__darwin_mach_port_name_t /* _types.h:69:35 */ // Used by mach
  615. type X__darwin_mode_t = X__uint16_t /* _types.h:70:25 */ // [???] Some file attributes
  616. type X__darwin_off_t = X__int64_t /* _types.h:71:25 */ // [???] Used for file sizes
  617. type X__darwin_pid_t = X__int32_t /* _types.h:72:25 */ // [???] process and group IDs
  618. type X__darwin_sigset_t = X__uint32_t /* _types.h:73:25 */ // [???] signal set
  619. type X__darwin_suseconds_t = X__int32_t /* _types.h:74:25 */ // [???] microseconds
  620. type X__darwin_uid_t = X__uint32_t /* _types.h:75:25 */ // [???] user IDs
  621. type X__darwin_useconds_t = X__uint32_t /* _types.h:76:25 */ // [???] microseconds
  622. type X__darwin_uuid_t = [16]uint8 /* _types.h:77:25 */
  623. type X__darwin_uuid_string_t = [37]int8 /* _types.h:78:17 */
  624. // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  625. //
  626. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  627. //
  628. // This file contains Original Code and/or Modifications of Original Code
  629. // as defined in and that are subject to the Apple Public Source License
  630. // Version 2.0 (the 'License'). You may not use this file except in
  631. // compliance with the License. The rights granted to you under the License
  632. // may not be used to create, or enable the creation or redistribution of,
  633. // unlawful or unlicensed copies of an Apple operating system, or to
  634. // circumvent, violate, or enable the circumvention or violation of, any
  635. // terms of an Apple operating system software license agreement.
  636. //
  637. // Please obtain a copy of the License at
  638. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  639. //
  640. // The Original Code and all software distributed under the License are
  641. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  642. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  643. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  644. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  645. // Please see the License for the specific language governing rights and
  646. // limitations under the License.
  647. //
  648. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  649. // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  650. //
  651. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  652. //
  653. // This file contains Original Code and/or Modifications of Original Code
  654. // as defined in and that are subject to the Apple Public Source License
  655. // Version 2.0 (the 'License'). You may not use this file except in
  656. // compliance with the License. The rights granted to you under the License
  657. // may not be used to create, or enable the creation or redistribution of,
  658. // unlawful or unlicensed copies of an Apple operating system, or to
  659. // circumvent, violate, or enable the circumvention or violation of, any
  660. // terms of an Apple operating system software license agreement.
  661. //
  662. // Please obtain a copy of the License at
  663. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  664. //
  665. // The Original Code and all software distributed under the License are
  666. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  667. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  668. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  669. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  670. // Please see the License for the specific language governing rights and
  671. // limitations under the License.
  672. //
  673. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  674. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  675. // Copyright (c) 1991, 1993
  676. // The Regents of the University of California. All rights reserved.
  677. //
  678. // This code is derived from software contributed to Berkeley by
  679. // Berkeley Software Design, Inc.
  680. //
  681. // Redistribution and use in source and binary forms, with or without
  682. // modification, are permitted provided that the following conditions
  683. // are met:
  684. // 1. Redistributions of source code must retain the above copyright
  685. // notice, this list of conditions and the following disclaimer.
  686. // 2. Redistributions in binary form must reproduce the above copyright
  687. // notice, this list of conditions and the following disclaimer in the
  688. // documentation and/or other materials provided with the distribution.
  689. // 3. All advertising materials mentioning features or use of this software
  690. // must display the following acknowledgement:
  691. // This product includes software developed by the University of
  692. // California, Berkeley and its contributors.
  693. // 4. Neither the name of the University nor the names of its contributors
  694. // may be used to endorse or promote products derived from this software
  695. // without specific prior written permission.
  696. //
  697. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  698. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  699. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  700. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  701. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  702. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  703. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  704. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  705. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  706. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  707. // SUCH DAMAGE.
  708. //
  709. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  710. // pthread opaque structures
  711. type X__darwin_pthread_handler_rec = struct {
  712. F__routine uintptr
  713. F__arg uintptr
  714. F__next uintptr
  715. } /* _pthread_types.h:57:1 */
  716. type X_opaque_pthread_attr_t = struct {
  717. F__sig int64
  718. F__opaque [56]int8
  719. } /* _pthread_types.h:63:1 */
  720. type X_opaque_pthread_cond_t = struct {
  721. F__sig int64
  722. F__opaque [40]int8
  723. } /* _pthread_types.h:68:1 */
  724. type X_opaque_pthread_condattr_t = struct {
  725. F__sig int64
  726. F__opaque [8]int8
  727. } /* _pthread_types.h:73:1 */
  728. type X_opaque_pthread_mutex_t = struct {
  729. F__sig int64
  730. F__opaque [56]int8
  731. } /* _pthread_types.h:78:1 */
  732. type X_opaque_pthread_mutexattr_t = struct {
  733. F__sig int64
  734. F__opaque [8]int8
  735. } /* _pthread_types.h:83:1 */
  736. type X_opaque_pthread_once_t = struct {
  737. F__sig int64
  738. F__opaque [8]int8
  739. } /* _pthread_types.h:88:1 */
  740. type X_opaque_pthread_rwlock_t = struct {
  741. F__sig int64
  742. F__opaque [192]int8
  743. } /* _pthread_types.h:93:1 */
  744. type X_opaque_pthread_rwlockattr_t = struct {
  745. F__sig int64
  746. F__opaque [16]int8
  747. } /* _pthread_types.h:98:1 */
  748. type X_opaque_pthread_t = struct {
  749. F__sig int64
  750. F__cleanup_stack uintptr
  751. F__opaque [8176]int8
  752. } /* _pthread_types.h:103:1 */
  753. type X__darwin_pthread_attr_t = X_opaque_pthread_attr_t /* _pthread_types.h:109:39 */
  754. type X__darwin_pthread_cond_t = X_opaque_pthread_cond_t /* _pthread_types.h:110:39 */
  755. type X__darwin_pthread_condattr_t = X_opaque_pthread_condattr_t /* _pthread_types.h:111:43 */
  756. type X__darwin_pthread_key_t = uint64 /* _pthread_types.h:112:23 */
  757. type X__darwin_pthread_mutex_t = X_opaque_pthread_mutex_t /* _pthread_types.h:113:40 */
  758. type X__darwin_pthread_mutexattr_t = X_opaque_pthread_mutexattr_t /* _pthread_types.h:114:44 */
  759. type X__darwin_pthread_once_t = X_opaque_pthread_once_t /* _pthread_types.h:115:39 */
  760. type X__darwin_pthread_rwlock_t = X_opaque_pthread_rwlock_t /* _pthread_types.h:116:41 */
  761. type X__darwin_pthread_rwlockattr_t = X_opaque_pthread_rwlockattr_t /* _pthread_types.h:117:45 */
  762. type X__darwin_pthread_t = uintptr /* _pthread_types.h:118:34 */
  763. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  764. //
  765. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  766. //
  767. // This file contains Original Code and/or Modifications of Original Code
  768. // as defined in and that are subject to the Apple Public Source License
  769. // Version 2.0 (the 'License'). You may not use this file except in
  770. // compliance with the License. The rights granted to you under the License
  771. // may not be used to create, or enable the creation or redistribution of,
  772. // unlawful or unlicensed copies of an Apple operating system, or to
  773. // circumvent, violate, or enable the circumvention or violation of, any
  774. // terms of an Apple operating system software license agreement.
  775. //
  776. // Please obtain a copy of the License at
  777. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  778. //
  779. // The Original Code and all software distributed under the License are
  780. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  781. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  782. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  783. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  784. // Please see the License for the specific language governing rights and
  785. // limitations under the License.
  786. //
  787. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  788. type X__darwin_nl_item = int32 /* _types.h:40:14 */
  789. type X__darwin_wctrans_t = int32 /* _types.h:41:14 */
  790. type X__darwin_wctype_t = X__uint32_t /* _types.h:43:20 */
  791. // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  792. //
  793. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  794. //
  795. // This file contains Original Code and/or Modifications of Original Code
  796. // as defined in and that are subject to the Apple Public Source License
  797. // Version 2.0 (the 'License'). You may not use this file except in
  798. // compliance with the License. The rights granted to you under the License
  799. // may not be used to create, or enable the creation or redistribution of,
  800. // unlawful or unlicensed copies of an Apple operating system, or to
  801. // circumvent, violate, or enable the circumvention or violation of, any
  802. // terms of an Apple operating system software license agreement.
  803. //
  804. // Please obtain a copy of the License at
  805. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  806. //
  807. // The Original Code and all software distributed under the License are
  808. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  809. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  810. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  811. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  812. // Please see the License for the specific language governing rights and
  813. // limitations under the License.
  814. //
  815. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  816. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  817. // Copyright (c) 1991, 1993
  818. // The Regents of the University of California. All rights reserved.
  819. //
  820. // This code is derived from software contributed to Berkeley by
  821. // Berkeley Software Design, Inc.
  822. //
  823. // Redistribution and use in source and binary forms, with or without
  824. // modification, are permitted provided that the following conditions
  825. // are met:
  826. // 1. Redistributions of source code must retain the above copyright
  827. // notice, this list of conditions and the following disclaimer.
  828. // 2. Redistributions in binary form must reproduce the above copyright
  829. // notice, this list of conditions and the following disclaimer in the
  830. // documentation and/or other materials provided with the distribution.
  831. // 3. All advertising materials mentioning features or use of this software
  832. // must display the following acknowledgement:
  833. // This product includes software developed by the University of
  834. // California, Berkeley and its contributors.
  835. // 4. Neither the name of the University nor the names of its contributors
  836. // may be used to endorse or promote products derived from this software
  837. // without specific prior written permission.
  838. //
  839. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  840. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  841. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  842. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  843. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  844. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  845. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  846. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  847. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  848. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  849. // SUCH DAMAGE.
  850. //
  851. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  852. // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  853. //
  854. // @APPLE_LICENSE_HEADER_START@
  855. //
  856. // This file contains Original Code and/or Modifications of Original Code
  857. // as defined in and that are subject to the Apple Public Source License
  858. // Version 2.0 (the 'License'). You may not use this file except in
  859. // compliance with the License. Please obtain a copy of the License at
  860. // http://www.opensource.apple.com/apsl/ and read it before using this
  861. // file.
  862. //
  863. // The Original Code and all software distributed under the License are
  864. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  865. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  866. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  867. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  868. // Please see the License for the specific language governing rights and
  869. // limitations under the License.
  870. //
  871. // @APPLE_LICENSE_HEADER_END@
  872. //
  873. // These macros are for use in OS header files. They enable function prototypes
  874. // and Objective-C methods to be tagged with the OS version in which they
  875. // were first available; and, if applicable, the OS version in which they
  876. // became deprecated.
  877. //
  878. // The desktop Mac OS X and iOS each have different version numbers.
  879. // The __OSX_AVAILABLE_STARTING() macro allows you to specify both the desktop
  880. // and iOS version numbers. For instance:
  881. // __OSX_AVAILABLE_STARTING(__MAC_10_2,__IPHONE_2_0)
  882. // means the function/method was first available on Mac OS X 10.2 on the desktop
  883. // and first available in iOS 2.0 on the iPhone.
  884. //
  885. // If a function is available on one platform, but not the other a _NA (not
  886. // applicable) parameter is used. For instance:
  887. // __OSX_AVAILABLE_STARTING(__MAC_10_3,__IPHONE_NA)
  888. // means that the function/method was first available on Mac OS X 10.3, and it
  889. // currently not implemented on the iPhone.
  890. //
  891. // At some point, a function/method may be deprecated. That means Apple
  892. // recommends applications stop using the function, either because there is a
  893. // better replacement or the functionality is being phased out. Deprecated
  894. // functions/methods can be tagged with a __OSX_AVAILABLE_BUT_DEPRECATED()
  895. // macro which specifies the OS version where the function became available
  896. // as well as the OS version in which it became deprecated. For instance:
  897. // __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0,__MAC_10_5,__IPHONE_NA,__IPHONE_NA)
  898. // means that the function/method was introduced in Mac OS X 10.0, then
  899. // became deprecated beginning in Mac OS X 10.5. On iOS the function
  900. // has never been available.
  901. //
  902. // For these macros to function properly, a program must specify the OS version range
  903. // it is targeting. The min OS version is specified as an option to the compiler:
  904. // -mmacosx-version-min=10.x when building for Mac OS X, and -miphoneos-version-min=y.z
  905. // when building for the iPhone. The upper bound for the OS version is rarely needed,
  906. // but it can be set on the command line via: -D__MAC_OS_X_VERSION_MAX_ALLOWED=10x0 for
  907. // Mac OS X and __IPHONE_OS_VERSION_MAX_ALLOWED = y0z00 for iOS.
  908. //
  909. // Examples:
  910. //
  911. // A function available in Mac OS X 10.5 and later, but not on the phone:
  912. //
  913. // extern void mymacfunc() __OSX_AVAILABLE_STARTING(__MAC_10_5,__IPHONE_NA);
  914. //
  915. //
  916. // An Objective-C method in Mac OS X 10.5 and later, but not on the phone:
  917. //
  918. // @interface MyClass : NSObject
  919. // -(void) mymacmethod __OSX_AVAILABLE_STARTING(__MAC_10_5,__IPHONE_NA);
  920. // @end
  921. //
  922. //
  923. // An enum available on the phone, but not available on Mac OS X:
  924. //
  925. // #if __IPHONE_OS_VERSION_MIN_REQUIRED
  926. // enum { myEnum = 1 };
  927. // #endif
  928. // Note: this works when targeting the Mac OS X platform because
  929. // __IPHONE_OS_VERSION_MIN_REQUIRED is undefined which evaluates to zero.
  930. //
  931. //
  932. // An enum with values added in different iPhoneOS versions:
  933. //
  934. // enum {
  935. // myX = 1, // Usable on iPhoneOS 2.1 and later
  936. // myY = 2, // Usable on iPhoneOS 3.0 and later
  937. // myZ = 3, // Usable on iPhoneOS 3.0 and later
  938. // ...
  939. // Note: you do not want to use #if with enumeration values
  940. // when a client needs to see all values at compile time
  941. // and use runtime logic to only use the viable values.
  942. //
  943. //
  944. // It is also possible to use the *_VERSION_MIN_REQUIRED in source code to make one
  945. // source base that can be compiled to target a range of OS versions. It is best
  946. // to not use the _MAC_* and __IPHONE_* macros for comparisons, but rather their values.
  947. // That is because you might get compiled on an old OS that does not define a later
  948. // OS version macro, and in the C preprocessor undefined values evaluate to zero
  949. // in expresssions, which could cause the #if expression to evaluate in an unexpected
  950. // way.
  951. //
  952. // #ifdef __MAC_OS_X_VERSION_MIN_REQUIRED
  953. // // code only compiled when targeting Mac OS X and not iPhone
  954. // // note use of 1050 instead of __MAC_10_5
  955. // #if __MAC_OS_X_VERSION_MIN_REQUIRED < 1050
  956. // // code in here might run on pre-Leopard OS
  957. // #else
  958. // // code here can assume Leopard or later
  959. // #endif
  960. // #endif
  961. //
  962. //
  963. // __API_TO_BE_DEPRECATED is used as a version number in API that will be deprecated
  964. // in an upcoming release. This soft deprecation is an intermediate step before formal
  965. // deprecation to notify developers about the API before compiler warnings are generated.
  966. // You can find all places in your code that use soft deprecated API by redefining the
  967. // value of this macro to your current minimum deployment target, for example:
  968. // (macOS)
  969. // clang -D__API_TO_BE_DEPRECATED=10.12 <other compiler flags>
  970. // (iOS)
  971. // clang -D__API_TO_BE_DEPRECATED=11.0 <other compiler flags>
  972. // Copyright (c) 2019 by Apple Inc.. All rights reserved.
  973. //
  974. // @APPLE_LICENSE_HEADER_START@
  975. //
  976. // This file contains Original Code and/or Modifications of Original Code
  977. // as defined in and that are subject to the Apple Public Source License
  978. // Version 2.0 (the 'License'). You may not use this file except in
  979. // compliance with the License. Please obtain a copy of the License at
  980. // http://www.opensource.apple.com/apsl/ and read it before using this
  981. // file.
  982. //
  983. // The Original Code and all software distributed under the License are
  984. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  985. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  986. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  987. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  988. // Please see the License for the specific language governing rights and
  989. // limitations under the License.
  990. //
  991. // @APPLE_LICENSE_HEADER_END@
  992. // __MAC_NA is not defined to a value but is used as a token by macros to indicate that the API is unavailable
  993. // __IPHONE_NA is not defined to a value but is used as a token by macros to indicate that the API is unavailable
  994. // Set up standard Mac OS X versions
  995. // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  996. //
  997. // @APPLE_LICENSE_HEADER_START@
  998. //
  999. // This file contains Original Code and/or Modifications of Original Code
  1000. // as defined in and that are subject to the Apple Public Source License
  1001. // Version 2.0 (the 'License'). You may not use this file except in
  1002. // compliance with the License. Please obtain a copy of the License at
  1003. // http://www.opensource.apple.com/apsl/ and read it before using this
  1004. // file.
  1005. //
  1006. // The Original Code and all software distributed under the License are
  1007. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1008. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1009. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1010. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1011. // Please see the License for the specific language governing rights and
  1012. // limitations under the License.
  1013. //
  1014. // @APPLE_LICENSE_HEADER_END@
  1015. //
  1016. // File: AvailabilityInternal.h
  1017. //
  1018. // Contains: implementation details of __OSX_AVAILABLE_* macros from <Availability.h>
  1019. //
  1020. // compiler for Mac OS X sets __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__
  1021. // make sure a default max version is set
  1022. //
  1023. // Macros for defining which versions/platform a given symbol can be used.
  1024. //
  1025. // @see http://clang.llvm.org/docs/AttributeReference.html#availability
  1026. //
  1027. // Evaluate to nothing for compilers that don't support availability.
  1028. // Swift compiler version
  1029. // Allows for project-agnostic "epochs" for frameworks imported into Swift via the Clang importer, like #if _compiler_version for Swift
  1030. // Example:
  1031. //
  1032. // #if __swift_compiler_version_at_least(800, 2, 20)
  1033. // - (nonnull NSString *)description;
  1034. // #else
  1035. // - (NSString *)description;
  1036. // #endif
  1037. // If __SPI_AVAILABLE has not been defined elsewhere, disable it.
  1038. // for use to document app extension usage
  1039. // for use marking APIs available info for Mac OSX
  1040. // for use marking APIs available info for iOS
  1041. // for use marking APIs available info for tvOS
  1042. // for use marking APIs available info for Watch OS
  1043. // for use marking APIs unavailable for swift
  1044. //
  1045. // Macros for defining which versions/platform a given symbol can be used.
  1046. //
  1047. // @see http://clang.llvm.org/docs/AttributeReference.html#availability
  1048. //
  1049. // * Note that these macros are only compatible with clang compilers that
  1050. // * support the following target selection options:
  1051. // *
  1052. // * -mmacosx-version-min
  1053. // * -miphoneos-version-min
  1054. // * -mwatchos-version-min
  1055. // * -mtvos-version-min
  1056. //
  1057. // Evaluate to nothing for compilers that don't support availability.
  1058. // If SPI decorations have not been defined elsewhere, disable them.
  1059. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  1060. //
  1061. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1062. //
  1063. // This file contains Original Code and/or Modifications of Original Code
  1064. // as defined in and that are subject to the Apple Public Source License
  1065. // Version 2.0 (the 'License'). You may not use this file except in
  1066. // compliance with the License. The rights granted to you under the License
  1067. // may not be used to create, or enable the creation or redistribution of,
  1068. // unlawful or unlicensed copies of an Apple operating system, or to
  1069. // circumvent, violate, or enable the circumvention or violation of, any
  1070. // terms of an Apple operating system software license agreement.
  1071. //
  1072. // Please obtain a copy of the License at
  1073. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1074. //
  1075. // The Original Code and all software distributed under the License are
  1076. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1077. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1078. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1079. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1080. // Please see the License for the specific language governing rights and
  1081. // limitations under the License.
  1082. //
  1083. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1084. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  1085. //
  1086. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1087. //
  1088. // This file contains Original Code and/or Modifications of Original Code
  1089. // as defined in and that are subject to the Apple Public Source License
  1090. // Version 2.0 (the 'License'). You may not use this file except in
  1091. // compliance with the License. The rights granted to you under the License
  1092. // may not be used to create, or enable the creation or redistribution of,
  1093. // unlawful or unlicensed copies of an Apple operating system, or to
  1094. // circumvent, violate, or enable the circumvention or violation of, any
  1095. // terms of an Apple operating system software license agreement.
  1096. //
  1097. // Please obtain a copy of the License at
  1098. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1099. //
  1100. // The Original Code and all software distributed under the License are
  1101. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1102. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1103. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1104. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1105. // Please see the License for the specific language governing rights and
  1106. // limitations under the License.
  1107. //
  1108. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1109. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  1110. // Copyright (c) 2000-2008 Apple Inc. All rights reserved.
  1111. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  1112. // Copyright (c) 1990, 1993
  1113. // The Regents of the University of California. All rights reserved.
  1114. //
  1115. // Redistribution and use in source and binary forms, with or without
  1116. // modification, are permitted provided that the following conditions
  1117. // are met:
  1118. // 1. Redistributions of source code must retain the above copyright
  1119. // notice, this list of conditions and the following disclaimer.
  1120. // 2. Redistributions in binary form must reproduce the above copyright
  1121. // notice, this list of conditions and the following disclaimer in the
  1122. // documentation and/or other materials provided with the distribution.
  1123. // 3. All advertising materials mentioning features or use of this software
  1124. // must display the following acknowledgement:
  1125. // This product includes software developed by the University of
  1126. // California, Berkeley and its contributors.
  1127. // 4. Neither the name of the University nor the names of its contributors
  1128. // may be used to endorse or promote products derived from this software
  1129. // without specific prior written permission.
  1130. //
  1131. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1132. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1133. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1134. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1135. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1136. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1137. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1138. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1139. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1140. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1141. // SUCH DAMAGE.
  1142. //
  1143. // @(#)types.h 8.3 (Berkeley) 1/5/94
  1144. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  1145. // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  1146. //
  1147. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1148. //
  1149. // This file contains Original Code and/or Modifications of Original Code
  1150. // as defined in and that are subject to the Apple Public Source License
  1151. // Version 2.0 (the 'License'). You may not use this file except in
  1152. // compliance with the License. The rights granted to you under the License
  1153. // may not be used to create, or enable the creation or redistribution of,
  1154. // unlawful or unlicensed copies of an Apple operating system, or to
  1155. // circumvent, violate, or enable the circumvention or violation of, any
  1156. // terms of an Apple operating system software license agreement.
  1157. //
  1158. // Please obtain a copy of the License at
  1159. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1160. //
  1161. // The Original Code and all software distributed under the License are
  1162. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1163. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1164. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1165. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1166. // Please see the License for the specific language governing rights and
  1167. // limitations under the License.
  1168. //
  1169. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1170. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  1171. // Copyright (c) 1991, 1993
  1172. // The Regents of the University of California. All rights reserved.
  1173. //
  1174. // This code is derived from software contributed to Berkeley by
  1175. // Berkeley Software Design, Inc.
  1176. //
  1177. // Redistribution and use in source and binary forms, with or without
  1178. // modification, are permitted provided that the following conditions
  1179. // are met:
  1180. // 1. Redistributions of source code must retain the above copyright
  1181. // notice, this list of conditions and the following disclaimer.
  1182. // 2. Redistributions in binary form must reproduce the above copyright
  1183. // notice, this list of conditions and the following disclaimer in the
  1184. // documentation and/or other materials provided with the distribution.
  1185. // 3. All advertising materials mentioning features or use of this software
  1186. // must display the following acknowledgement:
  1187. // This product includes software developed by the University of
  1188. // California, Berkeley and its contributors.
  1189. // 4. Neither the name of the University nor the names of its contributors
  1190. // may be used to endorse or promote products derived from this software
  1191. // without specific prior written permission.
  1192. //
  1193. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1194. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1195. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1196. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1197. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1198. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1199. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1200. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1201. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1202. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1203. // SUCH DAMAGE.
  1204. //
  1205. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  1206. // Basic integral types. Omit the typedef if
  1207. // not possible for a machine/compiler combination.
  1208. // Copyright (c) 2012 Apple Inc. All rights reserved.
  1209. //
  1210. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1211. //
  1212. // This file contains Original Code and/or Modifications of Original Code
  1213. // as defined in and that are subject to the Apple Public Source License
  1214. // Version 2.0 (the 'License'). You may not use this file except in
  1215. // compliance with the License. The rights granted to you under the License
  1216. // may not be used to create, or enable the creation or redistribution of,
  1217. // unlawful or unlicensed copies of an Apple operating system, or to
  1218. // circumvent, violate, or enable the circumvention or violation of, any
  1219. // terms of an Apple operating system software license agreement.
  1220. //
  1221. // Please obtain a copy of the License at
  1222. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1223. //
  1224. // The Original Code and all software distributed under the License are
  1225. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1226. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1227. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1228. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1229. // Please see the License for the specific language governing rights and
  1230. // limitations under the License.
  1231. //
  1232. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1233. type Int8_t = int8 /* _int8_t.h:30:31 */
  1234. // Copyright (c) 2012 Apple Inc. All rights reserved.
  1235. //
  1236. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1237. //
  1238. // This file contains Original Code and/or Modifications of Original Code
  1239. // as defined in and that are subject to the Apple Public Source License
  1240. // Version 2.0 (the 'License'). You may not use this file except in
  1241. // compliance with the License. The rights granted to you under the License
  1242. // may not be used to create, or enable the creation or redistribution of,
  1243. // unlawful or unlicensed copies of an Apple operating system, or to
  1244. // circumvent, violate, or enable the circumvention or violation of, any
  1245. // terms of an Apple operating system software license agreement.
  1246. //
  1247. // Please obtain a copy of the License at
  1248. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1249. //
  1250. // The Original Code and all software distributed under the License are
  1251. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1252. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1253. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1254. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1255. // Please see the License for the specific language governing rights and
  1256. // limitations under the License.
  1257. //
  1258. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1259. type Int16_t = int16 /* _int16_t.h:30:33 */
  1260. // Copyright (c) 2012 Apple Inc. All rights reserved.
  1261. //
  1262. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1263. //
  1264. // This file contains Original Code and/or Modifications of Original Code
  1265. // as defined in and that are subject to the Apple Public Source License
  1266. // Version 2.0 (the 'License'). You may not use this file except in
  1267. // compliance with the License. The rights granted to you under the License
  1268. // may not be used to create, or enable the creation or redistribution of,
  1269. // unlawful or unlicensed copies of an Apple operating system, or to
  1270. // circumvent, violate, or enable the circumvention or violation of, any
  1271. // terms of an Apple operating system software license agreement.
  1272. //
  1273. // Please obtain a copy of the License at
  1274. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1275. //
  1276. // The Original Code and all software distributed under the License are
  1277. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1278. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1279. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1280. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1281. // Please see the License for the specific language governing rights and
  1282. // limitations under the License.
  1283. //
  1284. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1285. type Int32_t = int32 /* _int32_t.h:30:33 */
  1286. // Copyright (c) 2012 Apple Inc. All rights reserved.
  1287. //
  1288. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1289. //
  1290. // This file contains Original Code and/or Modifications of Original Code
  1291. // as defined in and that are subject to the Apple Public Source License
  1292. // Version 2.0 (the 'License'). You may not use this file except in
  1293. // compliance with the License. The rights granted to you under the License
  1294. // may not be used to create, or enable the creation or redistribution of,
  1295. // unlawful or unlicensed copies of an Apple operating system, or to
  1296. // circumvent, violate, or enable the circumvention or violation of, any
  1297. // terms of an Apple operating system software license agreement.
  1298. //
  1299. // Please obtain a copy of the License at
  1300. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1301. //
  1302. // The Original Code and all software distributed under the License are
  1303. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1304. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1305. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1306. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1307. // Please see the License for the specific language governing rights and
  1308. // limitations under the License.
  1309. //
  1310. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1311. type Int64_t = int64 /* _int64_t.h:30:33 */
  1312. // Copyright (c) 2016 Apple Inc. All rights reserved.
  1313. //
  1314. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1315. //
  1316. // This file contains Original Code and/or Modifications of Original Code
  1317. // as defined in and that are subject to the Apple Public Source License
  1318. // Version 2.0 (the 'License'). You may not use this file except in
  1319. // compliance with the License. The rights granted to you under the License
  1320. // may not be used to create, or enable the creation or redistribution of,
  1321. // unlawful or unlicensed copies of an Apple operating system, or to
  1322. // circumvent, violate, or enable the circumvention or violation of, any
  1323. // terms of an Apple operating system software license agreement.
  1324. //
  1325. // Please obtain a copy of the License at
  1326. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1327. //
  1328. // The Original Code and all software distributed under the License are
  1329. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1330. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1331. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1332. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1333. // Please see the License for the specific language governing rights and
  1334. // limitations under the License.
  1335. //
  1336. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1337. type U_int8_t = uint8 /* _u_int8_t.h:30:33 */
  1338. // Copyright (c) 2012 Apple Inc. All rights reserved.
  1339. //
  1340. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1341. //
  1342. // This file contains Original Code and/or Modifications of Original Code
  1343. // as defined in and that are subject to the Apple Public Source License
  1344. // Version 2.0 (the 'License'). You may not use this file except in
  1345. // compliance with the License. The rights granted to you under the License
  1346. // may not be used to create, or enable the creation or redistribution of,
  1347. // unlawful or unlicensed copies of an Apple operating system, or to
  1348. // circumvent, violate, or enable the circumvention or violation of, any
  1349. // terms of an Apple operating system software license agreement.
  1350. //
  1351. // Please obtain a copy of the License at
  1352. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1353. //
  1354. // The Original Code and all software distributed under the License are
  1355. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1356. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1357. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1358. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1359. // Please see the License for the specific language governing rights and
  1360. // limitations under the License.
  1361. //
  1362. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1363. type U_int16_t = uint16 /* _u_int16_t.h:30:41 */
  1364. // Copyright (c) 2012 Apple Inc. All rights reserved.
  1365. //
  1366. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1367. //
  1368. // This file contains Original Code and/or Modifications of Original Code
  1369. // as defined in and that are subject to the Apple Public Source License
  1370. // Version 2.0 (the 'License'). You may not use this file except in
  1371. // compliance with the License. The rights granted to you under the License
  1372. // may not be used to create, or enable the creation or redistribution of,
  1373. // unlawful or unlicensed copies of an Apple operating system, or to
  1374. // circumvent, violate, or enable the circumvention or violation of, any
  1375. // terms of an Apple operating system software license agreement.
  1376. //
  1377. // Please obtain a copy of the License at
  1378. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1379. //
  1380. // The Original Code and all software distributed under the License are
  1381. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1382. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1383. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1384. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1385. // Please see the License for the specific language governing rights and
  1386. // limitations under the License.
  1387. //
  1388. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1389. type U_int32_t = uint32 /* _u_int32_t.h:30:33 */
  1390. // Copyright (c) 2012 Apple Inc. All rights reserved.
  1391. //
  1392. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1393. //
  1394. // This file contains Original Code and/or Modifications of Original Code
  1395. // as defined in and that are subject to the Apple Public Source License
  1396. // Version 2.0 (the 'License'). You may not use this file except in
  1397. // compliance with the License. The rights granted to you under the License
  1398. // may not be used to create, or enable the creation or redistribution of,
  1399. // unlawful or unlicensed copies of an Apple operating system, or to
  1400. // circumvent, violate, or enable the circumvention or violation of, any
  1401. // terms of an Apple operating system software license agreement.
  1402. //
  1403. // Please obtain a copy of the License at
  1404. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1405. //
  1406. // The Original Code and all software distributed under the License are
  1407. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1408. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1409. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1410. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1411. // Please see the License for the specific language governing rights and
  1412. // limitations under the License.
  1413. //
  1414. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1415. type U_int64_t = uint64 /* _u_int64_t.h:30:33 */
  1416. type Register_t = Int64_t /* types.h:66:33 */
  1417. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  1418. //
  1419. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1420. //
  1421. // This file contains Original Code and/or Modifications of Original Code
  1422. // as defined in and that are subject to the Apple Public Source License
  1423. // Version 2.0 (the 'License'). You may not use this file except in
  1424. // compliance with the License. The rights granted to you under the License
  1425. // may not be used to create, or enable the creation or redistribution of,
  1426. // unlawful or unlicensed copies of an Apple operating system, or to
  1427. // circumvent, violate, or enable the circumvention or violation of, any
  1428. // terms of an Apple operating system software license agreement.
  1429. //
  1430. // Please obtain a copy of the License at
  1431. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1432. //
  1433. // The Original Code and all software distributed under the License are
  1434. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1435. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1436. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1437. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1438. // Please see the License for the specific language governing rights and
  1439. // limitations under the License.
  1440. //
  1441. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1442. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  1443. //
  1444. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1445. //
  1446. // This file contains Original Code and/or Modifications of Original Code
  1447. // as defined in and that are subject to the Apple Public Source License
  1448. // Version 2.0 (the 'License'). You may not use this file except in
  1449. // compliance with the License. The rights granted to you under the License
  1450. // may not be used to create, or enable the creation or redistribution of,
  1451. // unlawful or unlicensed copies of an Apple operating system, or to
  1452. // circumvent, violate, or enable the circumvention or violation of, any
  1453. // terms of an Apple operating system software license agreement.
  1454. //
  1455. // Please obtain a copy of the License at
  1456. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1457. //
  1458. // The Original Code and all software distributed under the License are
  1459. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1460. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1461. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1462. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1463. // Please see the License for the specific language governing rights and
  1464. // limitations under the License.
  1465. //
  1466. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1467. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  1468. type Intptr_t = X__darwin_intptr_t /* _intptr_t.h:32:33 */
  1469. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  1470. //
  1471. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1472. //
  1473. // This file contains Original Code and/or Modifications of Original Code
  1474. // as defined in and that are subject to the Apple Public Source License
  1475. // Version 2.0 (the 'License'). You may not use this file except in
  1476. // compliance with the License. The rights granted to you under the License
  1477. // may not be used to create, or enable the creation or redistribution of,
  1478. // unlawful or unlicensed copies of an Apple operating system, or to
  1479. // circumvent, violate, or enable the circumvention or violation of, any
  1480. // terms of an Apple operating system software license agreement.
  1481. //
  1482. // Please obtain a copy of the License at
  1483. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1484. //
  1485. // The Original Code and all software distributed under the License are
  1486. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1487. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1488. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1489. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1490. // Please see the License for the specific language governing rights and
  1491. // limitations under the License.
  1492. //
  1493. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1494. type Uintptr_t = uint64 /* _uintptr_t.h:34:33 */
  1495. // These types are used for reserving the largest possible size.
  1496. type User_addr_t = U_int64_t /* types.h:77:33 */
  1497. type User_size_t = U_int64_t /* types.h:78:33 */
  1498. type User_ssize_t = Int64_t /* types.h:79:33 */
  1499. type User_long_t = Int64_t /* types.h:80:33 */
  1500. type User_ulong_t = U_int64_t /* types.h:81:33 */
  1501. type User_time_t = Int64_t /* types.h:82:33 */
  1502. type User_off_t = Int64_t /* types.h:83:33 */
  1503. // This defines the size of syscall arguments after copying into the kernel:
  1504. type Syscall_arg_t = U_int64_t /* types.h:104:33 */
  1505. type Clock_t = X__darwin_clock_t /* _clock_t.h:31:33 */
  1506. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  1507. //
  1508. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1509. //
  1510. // This file contains Original Code and/or Modifications of Original Code
  1511. // as defined in and that are subject to the Apple Public Source License
  1512. // Version 2.0 (the 'License'). You may not use this file except in
  1513. // compliance with the License. The rights granted to you under the License
  1514. // may not be used to create, or enable the creation or redistribution of,
  1515. // unlawful or unlicensed copies of an Apple operating system, or to
  1516. // circumvent, violate, or enable the circumvention or violation of, any
  1517. // terms of an Apple operating system software license agreement.
  1518. //
  1519. // Please obtain a copy of the License at
  1520. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1521. //
  1522. // The Original Code and all software distributed under the License are
  1523. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1524. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1525. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1526. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1527. // Please see the License for the specific language governing rights and
  1528. // limitations under the License.
  1529. //
  1530. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1531. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  1532. //
  1533. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1534. //
  1535. // This file contains Original Code and/or Modifications of Original Code
  1536. // as defined in and that are subject to the Apple Public Source License
  1537. // Version 2.0 (the 'License'). You may not use this file except in
  1538. // compliance with the License. The rights granted to you under the License
  1539. // may not be used to create, or enable the creation or redistribution of,
  1540. // unlawful or unlicensed copies of an Apple operating system, or to
  1541. // circumvent, violate, or enable the circumvention or violation of, any
  1542. // terms of an Apple operating system software license agreement.
  1543. //
  1544. // Please obtain a copy of the License at
  1545. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1546. //
  1547. // The Original Code and all software distributed under the License are
  1548. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1549. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1550. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1551. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1552. // Please see the License for the specific language governing rights and
  1553. // limitations under the License.
  1554. //
  1555. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1556. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  1557. type Time_t = X__darwin_time_t /* _time_t.h:31:33 */
  1558. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  1559. //
  1560. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1561. //
  1562. // This file contains Original Code and/or Modifications of Original Code
  1563. // as defined in and that are subject to the Apple Public Source License
  1564. // Version 2.0 (the 'License'). You may not use this file except in
  1565. // compliance with the License. The rights granted to you under the License
  1566. // may not be used to create, or enable the creation or redistribution of,
  1567. // unlawful or unlicensed copies of an Apple operating system, or to
  1568. // circumvent, violate, or enable the circumvention or violation of, any
  1569. // terms of an Apple operating system software license agreement.
  1570. //
  1571. // Please obtain a copy of the License at
  1572. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1573. //
  1574. // The Original Code and all software distributed under the License are
  1575. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1576. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1577. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1578. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1579. // Please see the License for the specific language governing rights and
  1580. // limitations under the License.
  1581. //
  1582. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1583. // Copyright (c) 2000-2007 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 1995 NeXT Computer, Inc. All rights reserved.
  1609. type Timespec = struct {
  1610. Ftv_sec X__darwin_time_t
  1611. Ftv_nsec int64
  1612. } /* _timespec.h:33:1 */
  1613. type Tm = struct {
  1614. Ftm_sec int32
  1615. Ftm_min int32
  1616. Ftm_hour int32
  1617. Ftm_mday int32
  1618. Ftm_mon int32
  1619. Ftm_year int32
  1620. Ftm_wday int32
  1621. Ftm_yday int32
  1622. Ftm_isdst int32
  1623. F__ccgo_pad1 [4]byte
  1624. Ftm_gmtoff int64
  1625. Ftm_zone uintptr
  1626. } /* time.h:75:1 */
  1627. type Clockid_t = uint32 /* time.h:172:3 */
  1628. var _ int8 /* gen.c:2:13: */