pwd_darwin_arm64.go 52 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083
  1. // Code generated by 'ccgo pwd/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 pwd/pwd_darwin_arm64.go -pkgname pwd', DO NOT EDIT.
  2. package pwd
  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. X_BSD_ARM__TYPES_H_ = 0 // _types.h:5:1:
  15. X_BSD_MACHINE__TYPES_H_ = 0 // _types.h:29:1:
  16. X_CDEFS_H_ = 0 // cdefs.h:68:1:
  17. X_DARWIN_FEATURE_64_BIT_INODE = 1 // cdefs.h:774:1:
  18. X_DARWIN_FEATURE_ONLY_64_BIT_INODE = 1 // cdefs.h:784:1:
  19. X_DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE = 1 // cdefs.h:800:1:
  20. X_DARWIN_FEATURE_ONLY_VERS_1050 = 1 // cdefs.h:792:1:
  21. X_DARWIN_FEATURE_UNIX_CONFORMANCE = 3 // cdefs.h:808:1:
  22. X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
  23. X_FORTIFY_SOURCE = 2 // _types.h:65:1:
  24. X_GID_T = 0 // _gid_t.h:29:1:
  25. X_LP64 = 1 // <predefined>:1:1:
  26. X_MASTERPASSWD = "master.passwd" // pwd.h:57:1:
  27. X_MP_DB = "pwd.db" // pwd.h:60:1:
  28. X_Nonnull = 0 // cdefs.h:268:1:
  29. X_Null_unspecified = 0 // cdefs.h:271:1:
  30. X_Nullable = 0 // cdefs.h:265:1:
  31. X_PASSWD = "passwd" // pwd.h:54:1:
  32. X_PASSWORD_CHGNOW = -1 // pwd.h:80:1:
  33. X_PASSWORD_EFMT1 = 95 // pwd.h:70:1:
  34. X_PASSWORD_LEN = 128 // pwd.h:72:1:
  35. X_PASSWORD_NOCHG = 0x04 // pwd.h:76:1:
  36. X_PASSWORD_NOEXP = 0x08 // pwd.h:77:1:
  37. X_PASSWORD_NOGID = 0x02 // pwd.h:75:1:
  38. X_PASSWORD_NOUID = 0x01 // pwd.h:74:1:
  39. X_PASSWORD_WARNDAYS = 14 // pwd.h:79:1:
  40. X_PATH_MASTERPASSWD = "/etc/master.passwd" // pwd.h:55:1:
  41. X_PATH_MASTERPASSWD_LOCK = "/etc/ptmp" // pwd.h:56:1:
  42. X_PATH_MP_DB = "/etc/pwd.db" // pwd.h:59:1:
  43. X_PATH_PASSWD = "/etc/passwd" // pwd.h:53:1:
  44. X_PATH_PWD = "/etc" // pwd.h:52:1:
  45. X_PATH_PWD_MKDB = "/usr/sbin/pwd_mkdb" // pwd.h:64:1:
  46. X_PATH_SMP_DB = "/etc/spwd.db" // pwd.h:61:1:
  47. X_PWD_H_ = 0 // pwd.h:44:1:
  48. X_PW_KEYBYNAME = 49 // pwd.h:66:1:
  49. X_PW_KEYBYNUM = 50 // pwd.h:67:1:
  50. X_PW_KEYBYUID = 51 // pwd.h:68:1:
  51. X_SIZE_T = 0 // _size_t.h:29:1:
  52. X_SMP_DB = "spwd.db" // pwd.h:62:1:
  53. X_SYS__PTHREAD_TYPES_H_ = 0 // _pthread_types.h:30:1:
  54. X_SYS__TYPES_H_ = 0 // _types.h:30:1:
  55. X_UID_T = 0 // _uid_t.h:29:1:
  56. X_UUID_STRING_T = 0 // uuid.h:42:1:
  57. X_UUID_T = 0 // _uuid_t.h:29:1:
  58. X_UUID_UUID_H = 0 // uuid.h:36:1:
  59. )
  60. type Ptrdiff_t = int64 /* <builtin>:3:26 */
  61. type Size_t = uint64 /* <builtin>:9:23 */
  62. type Wchar_t = int32 /* <builtin>:15:24 */
  63. type X__int128_t = struct {
  64. Flo int64
  65. Fhi int64
  66. } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
  67. type X__uint128_t = struct {
  68. Flo uint64
  69. Fhi uint64
  70. } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
  71. type X__builtin_va_list = uintptr /* <builtin>:46:14 */
  72. type X__float128 = float64 /* <builtin>:47:21 */
  73. var X__darwin_check_fd_set_overflow uintptr /* <builtin>:146:5: */
  74. // -
  75. // Copyright (c) 1989, 1993
  76. // The Regents of the University of California. All rights reserved.
  77. // (c) UNIX System Laboratories, Inc.
  78. // All or some portions of this file are derived from material licensed
  79. // to the University of California by American Telephone and Telegraph
  80. // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  81. // the permission of UNIX System Laboratories, Inc.
  82. // Portions Copyright(C) 1995, Jason Downs. All rights reserved.
  83. //
  84. // Redistribution and use in source and binary forms, with or without
  85. // modification, are permitted provided that the following conditions
  86. // are met:
  87. // 1. Redistributions of source code must retain the above copyright
  88. // notice, this list of conditions and the following disclaimer.
  89. // 2. Redistributions in binary form must reproduce the above copyright
  90. // notice, this list of conditions and the following disclaimer in the
  91. // documentation and/or other materials provided with the distribution.
  92. // 3. All advertising materials mentioning features or use of this software
  93. // must display the following acknowledgement:
  94. // This product includes software developed by the University of
  95. // California, Berkeley and its contributors.
  96. // 4. Neither the name of the University nor the names of its contributors
  97. // may be used to endorse or promote products derived from this software
  98. // without specific prior written permission.
  99. //
  100. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  101. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  102. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  103. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  104. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  105. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  106. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  107. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  108. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  109. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  110. // SUCH DAMAGE.
  111. //
  112. // @(#)pwd.h 8.2 (Berkeley) 1/21/94
  113. // Portions copyright (c) 2000-2011 Apple Inc. All rights reserved.
  114. // Copyright (c) 2004, 2008, 2009 Apple Inc. All rights reserved.
  115. //
  116. // @APPLE_LICENSE_HEADER_START@
  117. //
  118. // This file contains Original Code and/or Modifications of Original Code
  119. // as defined in and that are subject to the Apple Public Source License
  120. // Version 2.0 (the 'License'). You may not use this file except in
  121. // compliance with the License. Please obtain a copy of the License at
  122. // http://www.opensource.apple.com/apsl/ and read it before using this
  123. // file.
  124. //
  125. // The Original Code and all software distributed under the License are
  126. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  127. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  128. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  129. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  130. // Please see the License for the specific language governing rights and
  131. // limitations under the License.
  132. //
  133. // @APPLE_LICENSE_HEADER_END@
  134. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  135. //
  136. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  137. //
  138. // This file contains Original Code and/or Modifications of Original Code
  139. // as defined in and that are subject to the Apple Public Source License
  140. // Version 2.0 (the 'License'). You may not use this file except in
  141. // compliance with the License. The rights granted to you under the License
  142. // may not be used to create, or enable the creation or redistribution of,
  143. // unlawful or unlicensed copies of an Apple operating system, or to
  144. // circumvent, violate, or enable the circumvention or violation of, any
  145. // terms of an Apple operating system software license agreement.
  146. //
  147. // Please obtain a copy of the License at
  148. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  149. //
  150. // The Original Code and all software distributed under the License are
  151. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  152. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  153. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  154. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  155. // Please see the License for the specific language governing rights and
  156. // limitations under the License.
  157. //
  158. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  159. // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  160. //
  161. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  162. //
  163. // This file contains Original Code and/or Modifications of Original Code
  164. // as defined in and that are subject to the Apple Public Source License
  165. // Version 2.0 (the 'License'). You may not use this file except in
  166. // compliance with the License. The rights granted to you under the License
  167. // may not be used to create, or enable the creation or redistribution of,
  168. // unlawful or unlicensed copies of an Apple operating system, or to
  169. // circumvent, violate, or enable the circumvention or violation of, any
  170. // terms of an Apple operating system software license agreement.
  171. //
  172. // Please obtain a copy of the License at
  173. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  174. //
  175. // The Original Code and all software distributed under the License are
  176. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  177. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  178. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  179. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  180. // Please see the License for the specific language governing rights and
  181. // limitations under the License.
  182. //
  183. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  184. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  185. // Copyright (c) 1991, 1993
  186. // The Regents of the University of California. All rights reserved.
  187. //
  188. // This code is derived from software contributed to Berkeley by
  189. // Berkeley Software Design, Inc.
  190. //
  191. // Redistribution and use in source and binary forms, with or without
  192. // modification, are permitted provided that the following conditions
  193. // are met:
  194. // 1. Redistributions of source code must retain the above copyright
  195. // notice, this list of conditions and the following disclaimer.
  196. // 2. Redistributions in binary form must reproduce the above copyright
  197. // notice, this list of conditions and the following disclaimer in the
  198. // documentation and/or other materials provided with the distribution.
  199. // 3. All advertising materials mentioning features or use of this software
  200. // must display the following acknowledgement:
  201. // This product includes software developed by the University of
  202. // California, Berkeley and its contributors.
  203. // 4. Neither the name of the University nor the names of its contributors
  204. // may be used to endorse or promote products derived from this software
  205. // without specific prior written permission.
  206. //
  207. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  208. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  209. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  210. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  211. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  212. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  213. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  214. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  215. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  216. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  217. // SUCH DAMAGE.
  218. //
  219. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  220. // This SDK is designed to work with clang and specific versions of
  221. // gcc >= 4.0 with Apple's patch sets
  222. // Compatibility with compilers and environments that don't support compiler
  223. // feature checking function-like macros.
  224. // The __CONCAT macro is used to concatenate parts of symbol names, e.g.
  225. // with "#define OLD(foo) __CONCAT(old,foo)", OLD(foo) produces oldfoo.
  226. // The __CONCAT macro is a bit tricky -- make sure you don't put spaces
  227. // in between its arguments. __CONCAT can also concatenate double-quoted
  228. // strings produced by the __STRING macro, but this only works with ANSI C.
  229. // In non-ANSI C environments, new programs will want ANSI-only C keywords
  230. // deleted from the program and old programs will want them left alone.
  231. // When using a compiler other than gcc, programs using the ANSI C keywords
  232. // const, inline etc. as normal identifiers should define -DNO_ANSI_KEYWORDS.
  233. // When using "gcc -traditional", we assume that this is the intent; if
  234. // __GNUC__ is defined but __STDC__ is not, we leave the new keywords alone.
  235. // __pure2 can be used for functions that are only a function of their scalar
  236. // arguments (meaning they can't dereference pointers).
  237. //
  238. // __stateful_pure can be used for functions that have no side effects,
  239. // but depend on the state of the memory.
  240. // __unused denotes variables and functions that may not be used, preventing
  241. // the compiler from warning about it if not used.
  242. // __used forces variables and functions to be included even if it appears
  243. // to the compiler that they are not used (and would thust be discarded).
  244. // __cold marks code used for debugging or that is rarely taken
  245. // and tells the compiler to optimize for size and outline code.
  246. // __exported denotes symbols that should be exported even when symbols
  247. // are hidden by default.
  248. // __exported_push/_exported_pop are pragmas used to delimit a range of
  249. // symbols that should be exported even when symbols are hidden by default.
  250. // __deprecated causes the compiler to produce a warning when encountering
  251. // code using the deprecated functionality.
  252. // __deprecated_msg() does the same, and compilers that support it will print
  253. // a message along with the deprecation warning.
  254. // This may require turning on such warning with the -Wdeprecated flag.
  255. // __deprecated_enum_msg() should be used on enums, and compilers that support
  256. // it will print the deprecation warning.
  257. // __kpi_deprecated() specifically indicates deprecation of kernel programming
  258. // interfaces in Kernel.framework used by KEXTs.
  259. // __unavailable causes the compiler to error out when encountering
  260. // code using the tagged function
  261. // Delete pseudo-keywords wherever they are not available or needed.
  262. // We use `__restrict' as a way to define the `restrict' type qualifier
  263. // without disturbing older software that is unaware of C99 keywords.
  264. // Compatibility with compilers and environments that don't support the
  265. // nullability feature.
  266. // __disable_tail_calls causes the compiler to not perform tail call
  267. // optimization inside the marked function.
  268. // __not_tail_called causes the compiler to prevent tail call optimization
  269. // on statically bound calls to the function. It has no effect on indirect
  270. // calls. Virtual functions, objective-c methods, and functions marked as
  271. // "always_inline" cannot be marked as __not_tail_called.
  272. // __result_use_check warns callers of a function that not using the function
  273. // return value is a bug, i.e. dismissing malloc() return value results in a
  274. // memory leak.
  275. // __swift_unavailable causes the compiler to mark a symbol as specifically
  276. // unavailable in Swift, regardless of any other availability in C.
  277. // __abortlike is the attribute to put on functions like abort() that are
  278. // typically used to mark assertions. These optimize the codegen
  279. // for outlining while still maintaining debugability.
  280. // Declaring inline functions within headers is error-prone due to differences
  281. // across various versions of the C language and extensions. __header_inline
  282. // can be used to declare inline functions within system headers. In cases
  283. // where you want to force inlining instead of letting the compiler make
  284. // the decision, you can use __header_always_inline.
  285. //
  286. // Be aware that using inline for functions which compilers may also provide
  287. // builtins can behave differently under various compilers. If you intend to
  288. // provide an inline version of such a function, you may want to use a macro
  289. // instead.
  290. //
  291. // The check for !__GNUC__ || __clang__ is because gcc doesn't correctly
  292. // support c99 inline in some cases:
  293. // http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55965
  294. // Compiler-dependent macros that bracket portions of code where the
  295. // "-Wunreachable-code" warning should be ignored. Please use sparingly.
  296. // Compiler-dependent macros to declare that functions take printf-like
  297. // or scanf-like arguments. They are null except for versions of gcc
  298. // that are known to support the features properly. Functions declared
  299. // with these attributes will cause compilation warnings if there is a
  300. // mismatch between the format string and subsequent function parameter
  301. // types.
  302. // Source compatibility only, ID string not emitted in object file
  303. // __alloc_size can be used to label function arguments that represent the
  304. // size of memory that the function allocates and returns. The one-argument
  305. // form labels a single argument that gives the allocation size (where the
  306. // arguments are numbered from 1):
  307. //
  308. // void *malloc(size_t __size) __alloc_size(1);
  309. //
  310. // The two-argument form handles the case where the size is calculated as the
  311. // product of two arguments:
  312. //
  313. // void *calloc(size_t __count, size_t __size) __alloc_size(1,2);
  314. // COMPILATION ENVIRONMENTS -- see compat(5) for additional detail
  315. //
  316. // DEFAULT By default newly complied code will get POSIX APIs plus
  317. // Apple API extensions in scope.
  318. //
  319. // Most users will use this compilation environment to avoid
  320. // behavioral differences between 32 and 64 bit code.
  321. //
  322. // LEGACY Defining _NONSTD_SOURCE will get pre-POSIX APIs plus Apple
  323. // API extensions in scope.
  324. //
  325. // This is generally equivalent to the Tiger release compilation
  326. // environment, except that it cannot be applied to 64 bit code;
  327. // its use is discouraged.
  328. //
  329. // We expect this environment to be deprecated in the future.
  330. //
  331. // STRICT Defining _POSIX_C_SOURCE or _XOPEN_SOURCE restricts the
  332. // available APIs to exactly the set of APIs defined by the
  333. // corresponding standard, based on the value defined.
  334. //
  335. // A correct, portable definition for _POSIX_C_SOURCE is 200112L.
  336. // A correct, portable definition for _XOPEN_SOURCE is 600L.
  337. //
  338. // Apple API extensions are not visible in this environment,
  339. // which can cause Apple specific code to fail to compile,
  340. // or behave incorrectly if prototypes are not in scope or
  341. // warnings about missing prototypes are not enabled or ignored.
  342. //
  343. // In any compilation environment, for correct symbol resolution to occur,
  344. // function prototypes must be in scope. It is recommended that all Apple
  345. // tools users add either the "-Wall" or "-Wimplicit-function-declaration"
  346. // compiler flags to their projects to be warned when a function is being
  347. // used without a prototype in scope.
  348. // These settings are particular to each product.
  349. // Platform: MacOSX
  350. // The __DARWIN_ALIAS macros are used to do symbol renaming; they allow
  351. // legacy code to use the old symbol, thus maintaining binary compatibility
  352. // while new code can use a standards compliant version of the same function.
  353. //
  354. // __DARWIN_ALIAS is used by itself if the function signature has not
  355. // changed, it is used along with a #ifdef check for __DARWIN_UNIX03
  356. // if the signature has changed. Because the __LP64__ environment
  357. // only supports UNIX03 semantics it causes __DARWIN_UNIX03 to be
  358. // defined, but causes __DARWIN_ALIAS to do no symbol mangling.
  359. //
  360. // As a special case, when XCode is used to target a specific version of the
  361. // OS, the manifest constant __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__
  362. // will be defined by the compiler, with the digits representing major version
  363. // time 100 + minor version times 10 (e.g. 10.5 := 1050). If we are targeting
  364. // pre-10.5, and it is the default compilation environment, revert the
  365. // compilation environment to pre-__DARWIN_UNIX03.
  366. // symbol suffixes used for symbol versioning
  367. // symbol versioning macros
  368. // symbol release macros
  369. // Copyright (c) 2010 Apple Inc. All rights reserved.
  370. //
  371. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  372. //
  373. // This file contains Original Code and/or Modifications of Original Code
  374. // as defined in and that are subject to the Apple Public Source License
  375. // Version 2.0 (the 'License'). You may not use this file except in
  376. // compliance with the License. The rights granted to you under the License
  377. // may not be used to create, or enable the creation or redistribution of,
  378. // unlawful or unlicensed copies of an Apple operating system, or to
  379. // circumvent, violate, or enable the circumvention or violation of, any
  380. // terms of an Apple operating system software license agreement.
  381. //
  382. // Please obtain a copy of the License at
  383. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  384. //
  385. // The Original Code and all software distributed under the License are
  386. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  387. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  388. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  389. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  390. // Please see the License for the specific language governing rights and
  391. // limitations under the License.
  392. //
  393. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  394. // POSIX.1 requires that the macros we test be defined before any standard
  395. // header file is included. This permits us to convert values for feature
  396. // testing, as necessary, using only _POSIX_C_SOURCE.
  397. //
  398. // Here's a quick run-down of the versions:
  399. // defined(_POSIX_SOURCE) 1003.1-1988
  400. // _POSIX_C_SOURCE == 1L 1003.1-1990
  401. // _POSIX_C_SOURCE == 2L 1003.2-1992 C Language Binding Option
  402. // _POSIX_C_SOURCE == 199309L 1003.1b-1993
  403. // _POSIX_C_SOURCE == 199506L 1003.1c-1995, 1003.1i-1995,
  404. // and the omnibus ISO/IEC 9945-1: 1996
  405. // _POSIX_C_SOURCE == 200112L 1003.1-2001
  406. // _POSIX_C_SOURCE == 200809L 1003.1-2008
  407. //
  408. // In addition, the X/Open Portability Guide, which is now the Single UNIX
  409. // Specification, defines a feature-test macro which indicates the version of
  410. // that specification, and which subsumes _POSIX_C_SOURCE.
  411. // Deal with IEEE Std. 1003.1-1990, in which _POSIX_C_SOURCE == 1L.
  412. // Deal with IEEE Std. 1003.2-1992, in which _POSIX_C_SOURCE == 2L.
  413. // Deal with various X/Open Portability Guides and Single UNIX Spec.
  414. // Deal with all versions of POSIX. The ordering relative to the tests above is
  415. // important.
  416. // POSIX C deprecation macros
  417. // Copyright (c) 2010 Apple Inc. All rights reserved.
  418. //
  419. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  420. //
  421. // This file contains Original Code and/or Modifications of Original Code
  422. // as defined in and that are subject to the Apple Public Source License
  423. // Version 2.0 (the 'License'). You may not use this file except in
  424. // compliance with the License. The rights granted to you under the License
  425. // may not be used to create, or enable the creation or redistribution of,
  426. // unlawful or unlicensed copies of an Apple operating system, or to
  427. // circumvent, violate, or enable the circumvention or violation of, any
  428. // terms of an Apple operating system software license agreement.
  429. //
  430. // Please obtain a copy of the License at
  431. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  432. //
  433. // The Original Code and all software distributed under the License are
  434. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  435. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  436. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  437. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  438. // Please see the License for the specific language governing rights and
  439. // limitations under the License.
  440. //
  441. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  442. // Set a single macro which will always be defined and can be used to determine
  443. // the appropriate namespace. For POSIX, these values will correspond to
  444. // _POSIX_C_SOURCE value. Currently there are two additional levels corresponding
  445. // to ANSI (_ANSI_SOURCE) and Darwin extensions (_DARWIN_C_SOURCE)
  446. // If the developer has neither requested a strict language mode nor a version
  447. // of POSIX, turn on functionality provided by __STDC_WANT_LIB_EXT1__ as part
  448. // of __DARWIN_C_FULL.
  449. // long long is not supported in c89 (__STRICT_ANSI__), but g++ -ansi and
  450. // c99 still want long longs. While not perfect, we allow long longs for
  451. // g++.
  452. // ****************************************
  453. //
  454. // Public darwin-specific feature macros
  455. //
  456. // _DARWIN_FEATURE_64_BIT_INODE indicates that the ino_t type is 64-bit, and
  457. // structures modified for 64-bit inodes (like struct stat) will be used.
  458. // _DARWIN_FEATURE_64_ONLY_BIT_INODE indicates that the ino_t type may only
  459. // be 64-bit; there is no support for 32-bit ino_t when this macro is defined
  460. // (and non-zero). There is no struct stat64 either, as the regular
  461. // struct stat will already be the 64-bit version.
  462. // _DARWIN_FEATURE_ONLY_VERS_1050 indicates that only those APIs updated
  463. // in 10.5 exists; no pre-10.5 variants are available.
  464. // _DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE indicates only UNIX conforming API
  465. // are available (the legacy BSD APIs are not available)
  466. // _DARWIN_FEATURE_UNIX_CONFORMANCE indicates whether UNIX conformance is on,
  467. // and specifies the conformance level (3 is SUSv3)
  468. // This macro casts away the qualifier from the variable
  469. //
  470. // Note: use at your own risk, removing qualifiers can result in
  471. // catastrophic run-time failures.
  472. // __XNU_PRIVATE_EXTERN is a linkage decoration indicating that a symbol can be
  473. // used from other compilation units, but not other libraries or executables.
  474. // We intentionally define to nothing pointer attributes which do not have an
  475. // impact on the ABI. __indexable and __bidi_indexable are not defined because
  476. // of the ABI incompatibility that makes the diagnostic preferable.
  477. // Similarly, we intentionally define to nothing the
  478. // __ptrcheck_abi_assume_single and __ptrcheck_abi_assume_unsafe_indexable
  479. // macros because they do not lead to an ABI incompatibility. However, we do not
  480. // define the indexable and unsafe_indexable ones because the diagnostic is
  481. // better than the silent ABI break.
  482. // __unsafe_forge intrinsics are defined as regular C casts.
  483. // decay operates normally; attribute is meaningless without pointer checks.
  484. // Architecture validation for current SDK
  485. // Similar to OS_ENUM/OS_CLOSED_ENUM/OS_OPTIONS/OS_CLOSED_OPTIONS
  486. //
  487. // This provides more advanced type checking on compilers supporting
  488. // the proper extensions, even in C.
  489. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  490. //
  491. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  492. //
  493. // This file contains Original Code and/or Modifications of Original Code
  494. // as defined in and that are subject to the Apple Public Source License
  495. // Version 2.0 (the 'License'). You may not use this file except in
  496. // compliance with the License. The rights granted to you under the License
  497. // may not be used to create, or enable the creation or redistribution of,
  498. // unlawful or unlicensed copies of an Apple operating system, or to
  499. // circumvent, violate, or enable the circumvention or violation of, any
  500. // terms of an Apple operating system software license agreement.
  501. //
  502. // Please obtain a copy of the License at
  503. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  504. //
  505. // The Original Code and all software distributed under the License are
  506. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  507. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  508. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  509. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  510. // Please see the License for the specific language governing rights and
  511. // limitations under the License.
  512. //
  513. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  514. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  515. // This header file contains integer types. It's intended to also contain
  516. // flotaing point and other arithmetic types, as needed, later.
  517. type X__int8_t = int8 /* _types.h:15:33 */
  518. type X__uint8_t = uint8 /* _types.h:19:33 */
  519. type X__int16_t = int16 /* _types.h:20:33 */
  520. type X__uint16_t = uint16 /* _types.h:21:33 */
  521. type X__int32_t = int32 /* _types.h:22:33 */
  522. type X__uint32_t = uint32 /* _types.h:23:33 */
  523. type X__int64_t = int64 /* _types.h:24:33 */
  524. type X__uint64_t = uint64 /* _types.h:25:33 */
  525. type X__darwin_intptr_t = int64 /* _types.h:27:33 */
  526. type X__darwin_natural_t = uint32 /* _types.h:28:33 */
  527. // The rune type below is declared to be an ``int'' instead of the more natural
  528. // ``unsigned long'' or ``long''. Two things are happening here. It is not
  529. // unsigned so that EOF (-1) can be naturally assigned to it and used. Also,
  530. // it looks like 10646 will be a 31 bit standard. This means that if your
  531. // ints cannot hold 32 bits, you will be in trouble. The reason an int was
  532. // chosen over a long is that the is*() and to*() routines take ints (says
  533. // ANSI C), but they use __darwin_ct_rune_t instead of int. By changing it
  534. // here, you lose a bit of ANSI conformance, but your programs will still
  535. // work.
  536. //
  537. // NOTE: rune_t is not covered by ANSI nor other standards, and should not
  538. // be instantiated outside of lib/libc/locale. Use wchar_t. wchar_t and
  539. // rune_t must be the same type. Also wint_t must be no narrower than
  540. // wchar_t, and should also be able to hold all members of the largest
  541. // character set plus one extra value (WEOF). wint_t must be at least 16 bits.
  542. type X__darwin_ct_rune_t = int32 /* _types.h:48:33 */ // ct_rune_t
  543. // mbstate_t is an opaque object to keep conversion state, during multibyte
  544. // stream conversions. The content must not be referenced by user programs.
  545. type X__mbstate_t = struct {
  546. F__ccgo_pad1 [0]uint64
  547. F__mbstate8 [128]int8
  548. } /* _types.h:57:3 */
  549. type X__darwin_mbstate_t = X__mbstate_t /* _types.h:59:33 */ // mbstate_t
  550. type X__darwin_ptrdiff_t = int64 /* _types.h:62:33 */ // ptr1 - ptr2
  551. type X__darwin_size_t = uint64 /* _types.h:70:33 */ // sizeof()
  552. type X__darwin_va_list = X__builtin_va_list /* _types.h:76:33 */ // va_list
  553. type X__darwin_wchar_t = int32 /* _types.h:82:33 */ // wchar_t
  554. type X__darwin_rune_t = X__darwin_wchar_t /* _types.h:87:33 */ // rune_t
  555. type X__darwin_wint_t = int32 /* _types.h:90:33 */ // wint_t
  556. type X__darwin_clock_t = uint64 /* _types.h:95:33 */ // clock()
  557. type X__darwin_socklen_t = X__uint32_t /* _types.h:96:33 */ // socklen_t (duh)
  558. type X__darwin_ssize_t = int64 /* _types.h:97:33 */ // byte count or error
  559. type X__darwin_time_t = int64 /* _types.h:98:33 */ // time()
  560. // Type definitions; takes common type definitions that must be used
  561. // in multiple header files due to [XSI], removes them from the system
  562. // space, and puts them in the implementation space.
  563. type X__darwin_blkcnt_t = X__int64_t /* _types.h:55:25 */ // total blocks
  564. type X__darwin_blksize_t = X__int32_t /* _types.h:56:25 */ // preferred block size
  565. type X__darwin_dev_t = X__int32_t /* _types.h:57:25 */ // dev_t
  566. type X__darwin_fsblkcnt_t = uint32 /* _types.h:58:25 */ // Used by statvfs and fstatvfs
  567. type X__darwin_fsfilcnt_t = uint32 /* _types.h:59:25 */ // Used by statvfs and fstatvfs
  568. type X__darwin_gid_t = X__uint32_t /* _types.h:60:25 */ // [???] process and group IDs
  569. type X__darwin_id_t = X__uint32_t /* _types.h:61:25 */ // [XSI] pid_t, uid_t, or gid_t
  570. type X__darwin_ino64_t = X__uint64_t /* _types.h:62:25 */ // [???] Used for 64 bit inodes
  571. type X__darwin_ino_t = X__darwin_ino64_t /* _types.h:64:26 */ // [???] Used for inodes
  572. type X__darwin_mach_port_name_t = X__darwin_natural_t /* _types.h:68:28 */ // Used by mach
  573. type X__darwin_mach_port_t = X__darwin_mach_port_name_t /* _types.h:69:35 */ // Used by mach
  574. type X__darwin_mode_t = X__uint16_t /* _types.h:70:25 */ // [???] Some file attributes
  575. type X__darwin_off_t = X__int64_t /* _types.h:71:25 */ // [???] Used for file sizes
  576. type X__darwin_pid_t = X__int32_t /* _types.h:72:25 */ // [???] process and group IDs
  577. type X__darwin_sigset_t = X__uint32_t /* _types.h:73:25 */ // [???] signal set
  578. type X__darwin_suseconds_t = X__int32_t /* _types.h:74:25 */ // [???] microseconds
  579. type X__darwin_uid_t = X__uint32_t /* _types.h:75:25 */ // [???] user IDs
  580. type X__darwin_useconds_t = X__uint32_t /* _types.h:76:25 */ // [???] microseconds
  581. type X__darwin_uuid_t = [16]uint8 /* _types.h:77:25 */
  582. type X__darwin_uuid_string_t = [37]int8 /* _types.h:78:17 */
  583. // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  584. //
  585. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  586. //
  587. // This file contains Original Code and/or Modifications of Original Code
  588. // as defined in and that are subject to the Apple Public Source License
  589. // Version 2.0 (the 'License'). You may not use this file except in
  590. // compliance with the License. The rights granted to you under the License
  591. // may not be used to create, or enable the creation or redistribution of,
  592. // unlawful or unlicensed copies of an Apple operating system, or to
  593. // circumvent, violate, or enable the circumvention or violation of, any
  594. // terms of an Apple operating system software license agreement.
  595. //
  596. // Please obtain a copy of the License at
  597. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  598. //
  599. // The Original Code and all software distributed under the License are
  600. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  601. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  602. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  603. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  604. // Please see the License for the specific language governing rights and
  605. // limitations under the License.
  606. //
  607. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  608. // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  609. //
  610. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  611. //
  612. // This file contains Original Code and/or Modifications of Original Code
  613. // as defined in and that are subject to the Apple Public Source License
  614. // Version 2.0 (the 'License'). You may not use this file except in
  615. // compliance with the License. The rights granted to you under the License
  616. // may not be used to create, or enable the creation or redistribution of,
  617. // unlawful or unlicensed copies of an Apple operating system, or to
  618. // circumvent, violate, or enable the circumvention or violation of, any
  619. // terms of an Apple operating system software license agreement.
  620. //
  621. // Please obtain a copy of the License at
  622. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  623. //
  624. // The Original Code and all software distributed under the License are
  625. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  626. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  627. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  628. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  629. // Please see the License for the specific language governing rights and
  630. // limitations under the License.
  631. //
  632. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  633. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  634. // Copyright (c) 1991, 1993
  635. // The Regents of the University of California. All rights reserved.
  636. //
  637. // This code is derived from software contributed to Berkeley by
  638. // Berkeley Software Design, Inc.
  639. //
  640. // Redistribution and use in source and binary forms, with or without
  641. // modification, are permitted provided that the following conditions
  642. // are met:
  643. // 1. Redistributions of source code must retain the above copyright
  644. // notice, this list of conditions and the following disclaimer.
  645. // 2. Redistributions in binary form must reproduce the above copyright
  646. // notice, this list of conditions and the following disclaimer in the
  647. // documentation and/or other materials provided with the distribution.
  648. // 3. All advertising materials mentioning features or use of this software
  649. // must display the following acknowledgement:
  650. // This product includes software developed by the University of
  651. // California, Berkeley and its contributors.
  652. // 4. Neither the name of the University nor the names of its contributors
  653. // may be used to endorse or promote products derived from this software
  654. // without specific prior written permission.
  655. //
  656. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  657. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  658. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  659. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  660. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  661. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  662. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  663. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  664. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  665. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  666. // SUCH DAMAGE.
  667. //
  668. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  669. // pthread opaque structures
  670. type X__darwin_pthread_handler_rec = struct {
  671. F__routine uintptr
  672. F__arg uintptr
  673. F__next uintptr
  674. } /* _pthread_types.h:57:1 */
  675. type X_opaque_pthread_attr_t = struct {
  676. F__sig int64
  677. F__opaque [56]int8
  678. } /* _pthread_types.h:63:1 */
  679. type X_opaque_pthread_cond_t = struct {
  680. F__sig int64
  681. F__opaque [40]int8
  682. } /* _pthread_types.h:68:1 */
  683. type X_opaque_pthread_condattr_t = struct {
  684. F__sig int64
  685. F__opaque [8]int8
  686. } /* _pthread_types.h:73:1 */
  687. type X_opaque_pthread_mutex_t = struct {
  688. F__sig int64
  689. F__opaque [56]int8
  690. } /* _pthread_types.h:78:1 */
  691. type X_opaque_pthread_mutexattr_t = struct {
  692. F__sig int64
  693. F__opaque [8]int8
  694. } /* _pthread_types.h:83:1 */
  695. type X_opaque_pthread_once_t = struct {
  696. F__sig int64
  697. F__opaque [8]int8
  698. } /* _pthread_types.h:88:1 */
  699. type X_opaque_pthread_rwlock_t = struct {
  700. F__sig int64
  701. F__opaque [192]int8
  702. } /* _pthread_types.h:93:1 */
  703. type X_opaque_pthread_rwlockattr_t = struct {
  704. F__sig int64
  705. F__opaque [16]int8
  706. } /* _pthread_types.h:98:1 */
  707. type X_opaque_pthread_t = struct {
  708. F__sig int64
  709. F__cleanup_stack uintptr
  710. F__opaque [8176]int8
  711. } /* _pthread_types.h:103:1 */
  712. type X__darwin_pthread_attr_t = X_opaque_pthread_attr_t /* _pthread_types.h:109:39 */
  713. type X__darwin_pthread_cond_t = X_opaque_pthread_cond_t /* _pthread_types.h:110:39 */
  714. type X__darwin_pthread_condattr_t = X_opaque_pthread_condattr_t /* _pthread_types.h:111:43 */
  715. type X__darwin_pthread_key_t = uint64 /* _pthread_types.h:112:23 */
  716. type X__darwin_pthread_mutex_t = X_opaque_pthread_mutex_t /* _pthread_types.h:113:40 */
  717. type X__darwin_pthread_mutexattr_t = X_opaque_pthread_mutexattr_t /* _pthread_types.h:114:44 */
  718. type X__darwin_pthread_once_t = X_opaque_pthread_once_t /* _pthread_types.h:115:39 */
  719. type X__darwin_pthread_rwlock_t = X_opaque_pthread_rwlock_t /* _pthread_types.h:116:41 */
  720. type X__darwin_pthread_rwlockattr_t = X_opaque_pthread_rwlockattr_t /* _pthread_types.h:117:45 */
  721. type X__darwin_pthread_t = uintptr /* _pthread_types.h:118:34 */
  722. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  723. //
  724. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  725. //
  726. // This file contains Original Code and/or Modifications of Original Code
  727. // as defined in and that are subject to the Apple Public Source License
  728. // Version 2.0 (the 'License'). You may not use this file except in
  729. // compliance with the License. The rights granted to you under the License
  730. // may not be used to create, or enable the creation or redistribution of,
  731. // unlawful or unlicensed copies of an Apple operating system, or to
  732. // circumvent, violate, or enable the circumvention or violation of, any
  733. // terms of an Apple operating system software license agreement.
  734. //
  735. // Please obtain a copy of the License at
  736. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  737. //
  738. // The Original Code and all software distributed under the License are
  739. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  740. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  741. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  742. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  743. // Please see the License for the specific language governing rights and
  744. // limitations under the License.
  745. //
  746. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  747. type X__darwin_nl_item = int32 /* _types.h:40:14 */
  748. type X__darwin_wctrans_t = int32 /* _types.h:41:14 */
  749. type X__darwin_wctype_t = X__uint32_t /* _types.h:43:20 */
  750. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  751. //
  752. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  753. //
  754. // This file contains Original Code and/or Modifications of Original Code
  755. // as defined in and that are subject to the Apple Public Source License
  756. // Version 2.0 (the 'License'). You may not use this file except in
  757. // compliance with the License. The rights granted to you under the License
  758. // may not be used to create, or enable the creation or redistribution of,
  759. // unlawful or unlicensed copies of an Apple operating system, or to
  760. // circumvent, violate, or enable the circumvention or violation of, any
  761. // terms of an Apple operating system software license agreement.
  762. //
  763. // Please obtain a copy of the License at
  764. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  765. //
  766. // The Original Code and all software distributed under the License are
  767. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  768. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  769. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  770. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  771. // Please see the License for the specific language governing rights and
  772. // limitations under the License.
  773. //
  774. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  775. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  776. //
  777. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  778. //
  779. // This file contains Original Code and/or Modifications of Original Code
  780. // as defined in and that are subject to the Apple Public Source License
  781. // Version 2.0 (the 'License'). You may not use this file except in
  782. // compliance with the License. The rights granted to you under the License
  783. // may not be used to create, or enable the creation or redistribution of,
  784. // unlawful or unlicensed copies of an Apple operating system, or to
  785. // circumvent, violate, or enable the circumvention or violation of, any
  786. // terms of an Apple operating system software license agreement.
  787. //
  788. // Please obtain a copy of the License at
  789. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  790. //
  791. // The Original Code and all software distributed under the License are
  792. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  793. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  794. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  795. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  796. // Please see the License for the specific language governing rights and
  797. // limitations under the License.
  798. //
  799. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  800. type Gid_t = X__darwin_gid_t /* _gid_t.h:31:25 */
  801. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  802. //
  803. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  804. //
  805. // This file contains Original Code and/or Modifications of Original Code
  806. // as defined in and that are subject to the Apple Public Source License
  807. // Version 2.0 (the 'License'). You may not use this file except in
  808. // compliance with the License. The rights granted to you under the License
  809. // may not be used to create, or enable the creation or redistribution of,
  810. // unlawful or unlicensed copies of an Apple operating system, or to
  811. // circumvent, violate, or enable the circumvention or violation of, any
  812. // terms of an Apple operating system software license agreement.
  813. //
  814. // Please obtain a copy of the License at
  815. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  816. //
  817. // The Original Code and all software distributed under the License are
  818. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  819. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  820. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  821. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  822. // Please see the License for the specific language governing rights and
  823. // limitations under the License.
  824. //
  825. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  826. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  827. //
  828. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  829. //
  830. // This file contains Original Code and/or Modifications of Original Code
  831. // as defined in and that are subject to the Apple Public Source License
  832. // Version 2.0 (the 'License'). You may not use this file except in
  833. // compliance with the License. The rights granted to you under the License
  834. // may not be used to create, or enable the creation or redistribution of,
  835. // unlawful or unlicensed copies of an Apple operating system, or to
  836. // circumvent, violate, or enable the circumvention or violation of, any
  837. // terms of an Apple operating system software license agreement.
  838. //
  839. // Please obtain a copy of the License at
  840. // http://www.opensource.apple.com/apsl/ and read it before using this 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_OSREFERENCE_LICENSE_HEADER_END@
  851. type Uid_t = X__darwin_uid_t /* _uid_t.h:31:31 */
  852. type Passwd = struct {
  853. Fpw_name uintptr
  854. Fpw_passwd uintptr
  855. Fpw_uid Uid_t
  856. Fpw_gid Gid_t
  857. Fpw_change X__darwin_time_t
  858. Fpw_class uintptr
  859. Fpw_gecos uintptr
  860. Fpw_dir uintptr
  861. Fpw_shell uintptr
  862. Fpw_expire X__darwin_time_t
  863. } /* pwd.h:84:1 */
  864. // Public include file for the UUID library
  865. //
  866. // Copyright (C) 1996, 1997, 1998 Theodore Ts'o.
  867. //
  868. // %Begin-Header%
  869. // Redistribution and use in source and binary forms, with or without
  870. // modification, are permitted provided that the following conditions
  871. // are met:
  872. // 1. Redistributions of source code must retain the above copyright
  873. // notice, and the entire permission notice in its entirety,
  874. // including the disclaimer of warranties.
  875. // 2. Redistributions in binary form must reproduce the above copyright
  876. // notice, this list of conditions and the following disclaimer in the
  877. // documentation and/or other materials provided with the distribution.
  878. // 3. The name of the author may not be used to endorse or promote
  879. // products derived from this software without specific prior
  880. // written permission.
  881. //
  882. // THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
  883. // WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  884. // OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, ALL OF
  885. // WHICH ARE HEREBY DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE
  886. // LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  887. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
  888. // OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
  889. // BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
  890. // LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  891. // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
  892. // USE OF THIS SOFTWARE, EVEN IF NOT ADVISED OF THE POSSIBILITY OF SUCH
  893. // DAMAGE.
  894. // %End-Header%
  895. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  896. //
  897. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  898. //
  899. // This file contains Original Code and/or Modifications of Original Code
  900. // as defined in and that are subject to the Apple Public Source License
  901. // Version 2.0 (the 'License'). You may not use this file except in
  902. // compliance with the License. The rights granted to you under the License
  903. // may not be used to create, or enable the creation or redistribution of,
  904. // unlawful or unlicensed copies of an Apple operating system, or to
  905. // circumvent, violate, or enable the circumvention or violation of, any
  906. // terms of an Apple operating system software license agreement.
  907. //
  908. // Please obtain a copy of the License at
  909. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  910. //
  911. // The Original Code and all software distributed under the License are
  912. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  913. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  914. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  915. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  916. // Please see the License for the specific language governing rights and
  917. // limitations under the License.
  918. //
  919. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  920. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  921. //
  922. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  923. //
  924. // This file contains Original Code and/or Modifications of Original Code
  925. // as defined in and that are subject to the Apple Public Source License
  926. // Version 2.0 (the 'License'). You may not use this file except in
  927. // compliance with the License. The rights granted to you under the License
  928. // may not be used to create, or enable the creation or redistribution of,
  929. // unlawful or unlicensed copies of an Apple operating system, or to
  930. // circumvent, violate, or enable the circumvention or violation of, any
  931. // terms of an Apple operating system software license agreement.
  932. //
  933. // Please obtain a copy of the License at
  934. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  935. //
  936. // The Original Code and all software distributed under the License are
  937. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  938. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  939. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  940. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  941. // Please see the License for the specific language governing rights and
  942. // limitations under the License.
  943. //
  944. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  945. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  946. //
  947. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  948. //
  949. // This file contains Original Code and/or Modifications of Original Code
  950. // as defined in and that are subject to the Apple Public Source License
  951. // Version 2.0 (the 'License'). You may not use this file except in
  952. // compliance with the License. The rights granted to you under the License
  953. // may not be used to create, or enable the creation or redistribution of,
  954. // unlawful or unlicensed copies of an Apple operating system, or to
  955. // circumvent, violate, or enable the circumvention or violation of, any
  956. // terms of an Apple operating system software license agreement.
  957. //
  958. // Please obtain a copy of the License at
  959. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  960. //
  961. // The Original Code and all software distributed under the License are
  962. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  963. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  964. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  965. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  966. // Please see the License for the specific language governing rights and
  967. // limitations under the License.
  968. //
  969. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  970. type Uuid_t = X__darwin_uuid_t /* _uuid_t.h:31:25 */
  971. type Uuid_string_t = X__darwin_uuid_string_t /* uuid.h:43:33 */
  972. var _ int8 /* gen.c:2:13: */