pwd_darwin_amd64.go 52 KB

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