time_darwin_amd64.go 85 KB

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