github.com/afumu/libc@v0.0.6/pwd/pwd_darwin_arm64.go (about)

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