github.com/afumu/libc@v0.0.6/utime/utime_darwin_arm64.go (about)

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