modernc.org/libc@v1.24.1/fts/fts_darwin_amd64.go (about)

     1  // Code generated by 'ccgo fts/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 fts/fts_darwin_amd64.go -pkgname fts', DO NOT EDIT.
     2  
     3  package fts
     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  	ACCESSPERMS                            = 511        // stat.h:297:1:
    19  	ALLPERMS                               = 4095       // stat.h:299:1:
    20  	BIG_ENDIAN                             = 4321       // endian.h:94:1:
    21  	BYTE_ORDER                             = 1234       // endian.h:97:1:
    22  	DEFFILEMODE                            = 438        // stat.h:301:1:
    23  	EF_IS_PURGEABLE                        = 0x00000008 // stat.h:370:1:
    24  	EF_IS_SPARSE                           = 0x00000010 // stat.h:371:1:
    25  	EF_IS_SYNC_ROOT                        = 0x00000004 // stat.h:369:1:
    26  	EF_MAY_SHARE_BLOCKS                    = 0x00000001 // stat.h:367:1:
    27  	EF_NO_XATTRS                           = 0x00000002 // stat.h:368:1:
    28  	FD_SETSIZE                             = 1024       // _fd_setsize.h:29:1:
    29  	FTS_AGAIN                              = 1          // fts.h:156:1:
    30  	FTS_BLOCK_COMPAR                       = 0x80000000 // fts.h:108:1:
    31  	FTS_COMFOLLOW                          = 0x001      // fts.h:89:1:
    32  	FTS_COMFOLLOWDIR                       = 0x400      // fts.h:97:1:
    33  	FTS_D                                  = 1          // fts.h:135:1:
    34  	FTS_DC                                 = 2          // fts.h:136:1:
    35  	FTS_DEFAULT                            = 3          // fts.h:137:1:
    36  	FTS_DNR                                = 4          // fts.h:138:1:
    37  	FTS_DONTCHDIR                          = 0x01       // fts.h:151:1:
    38  	FTS_DOT                                = 5          // fts.h:139:1:
    39  	FTS_DP                                 = 6          // fts.h:140:1:
    40  	FTS_ERR                                = 7          // fts.h:141:1:
    41  	FTS_F                                  = 8          // fts.h:142:1:
    42  	FTS_FOLLOW                             = 2          // fts.h:157:1:
    43  	FTS_INIT                               = 9          // fts.h:143:1:
    44  	FTS_ISW                                = 0x04       // fts.h:153:1:
    45  	FTS_LOGICAL                            = 0x002      // fts.h:90:1:
    46  	FTS_MAXLEVEL                           = 0x7fffffff // fts.h:132:1:
    47  	FTS_NAMEONLY                           = 0x100      // fts.h:105:1:
    48  	FTS_NOCHDIR                            = 0x004      // fts.h:91:1:
    49  	FTS_NOINSTR                            = 3          // fts.h:158:1:
    50  	FTS_NOSTAT                             = 0x008      // fts.h:92:1:
    51  	FTS_NOSTAT_TYPE                        = 0x800      // fts.h:101:1:
    52  	FTS_NS                                 = 10         // fts.h:144:1:
    53  	FTS_NSOK                               = 11         // fts.h:145:1:
    54  	FTS_OPTIONMASK                         = 0xcff      // fts.h:102:1:
    55  	FTS_PHYSICAL                           = 0x010      // fts.h:93:1:
    56  	FTS_ROOTLEVEL                          = 0          // fts.h:131:1:
    57  	FTS_ROOTPARENTLEVEL                    = -1         // fts.h:130:1:
    58  	FTS_SEEDOT                             = 0x020      // fts.h:94:1:
    59  	FTS_SKIP                               = 4          // fts.h:159:1:
    60  	FTS_SL                                 = 12         // fts.h:146:1:
    61  	FTS_SLNONE                             = 13         // fts.h:147:1:
    62  	FTS_STOP                               = 0x200      // fts.h:106:1:
    63  	FTS_SYMFOLLOW                          = 0x02       // fts.h:152:1:
    64  	FTS_W                                  = 14         // fts.h:148:1:
    65  	FTS_WHITEOUT                           = 0x080      // fts.h:96:1:
    66  	FTS_XDEV                               = 0x040      // fts.h:95:1:
    67  	LITTLE_ENDIAN                          = 1234       // endian.h:93:1:
    68  	NBBY                                   = 8          // types.h:186:1:
    69  	PDP_ENDIAN                             = 3412       // endian.h:95:1:
    70  	SF_APPEND                              = 0x00040000 // stat.h:340:1:
    71  	SF_ARCHIVED                            = 0x00010000 // stat.h:338:1:
    72  	SF_DATALESS                            = 0x40000000 // stat.h:359:1:
    73  	SF_FIRMLINK                            = 0x00800000 // stat.h:351:1:
    74  	SF_IMMUTABLE                           = 0x00020000 // stat.h:339:1:
    75  	SF_NOUNLINK                            = 0x00100000 // stat.h:342:1:
    76  	SF_RESTRICTED                          = 0x00080000 // stat.h:341:1:
    77  	SF_SETTABLE                            = 0x3fff0000 // stat.h:336:1:
    78  	SF_SUPPORTED                           = 0x009f0000 // stat.h:335:1:
    79  	SF_SYNTHETIC                           = 0xc0000000 // stat.h:337:1:
    80  	S_BLKSIZE                              = 512        // stat.h:303:1:
    81  	S_IEXEC                                = 64         // _s_ifmt.h:72:1:
    82  	S_IFBLK                                = 0060000    // _s_ifmt.h:39:1:
    83  	S_IFCHR                                = 0020000    // _s_ifmt.h:37:1:
    84  	S_IFDIR                                = 0040000    // _s_ifmt.h:38:1:
    85  	S_IFIFO                                = 0010000    // _s_ifmt.h:36:1:
    86  	S_IFLNK                                = 0120000    // _s_ifmt.h:41:1:
    87  	S_IFMT                                 = 0170000    // _s_ifmt.h:35:1:
    88  	S_IFREG                                = 0100000    // _s_ifmt.h:40:1:
    89  	S_IFSOCK                               = 0140000    // _s_ifmt.h:42:1:
    90  	S_IFWHT                                = 0160000    // _s_ifmt.h:44:1:
    91  	S_IREAD                                = 256        // _s_ifmt.h:70:1:
    92  	S_IRGRP                                = 0000040    // _s_ifmt.h:55:1:
    93  	S_IROTH                                = 0000004    // _s_ifmt.h:60:1:
    94  	S_IRUSR                                = 0000400    // _s_ifmt.h:50:1:
    95  	S_IRWXG                                = 0000070    // _s_ifmt.h:54:1:
    96  	S_IRWXO                                = 0000007    // _s_ifmt.h:59:1:
    97  	S_IRWXU                                = 0000700    // _s_ifmt.h:49:1:
    98  	S_ISGID                                = 0002000    // _s_ifmt.h:65:1:
    99  	S_ISTXT                                = 512        // _s_ifmt.h:69:1:
   100  	S_ISUID                                = 0004000    // _s_ifmt.h:64:1:
   101  	S_ISVTX                                = 0001000    // _s_ifmt.h:66:1:
   102  	S_IWGRP                                = 0000020    // _s_ifmt.h:56:1:
   103  	S_IWOTH                                = 0000002    // _s_ifmt.h:61:1:
   104  	S_IWRITE                               = 128        // _s_ifmt.h:71:1:
   105  	S_IWUSR                                = 0000200    // _s_ifmt.h:51:1:
   106  	S_IXGRP                                = 0000010    // _s_ifmt.h:57:1:
   107  	S_IXOTH                                = 0000001    // _s_ifmt.h:62:1:
   108  	S_IXUSR                                = 0000100    // _s_ifmt.h:52:1:
   109  	UF_APPEND                              = 0x00000004 // stat.h:313:1:
   110  	UF_COMPRESSED                          = 0x00000020 // stat.h:320:1:
   111  	UF_DATAVAULT                           = 0x00000080 // stat.h:326:1:
   112  	UF_HIDDEN                              = 0x00008000 // stat.h:330:1:
   113  	UF_IMMUTABLE                           = 0x00000002 // stat.h:312:1:
   114  	UF_NODUMP                              = 0x00000001 // stat.h:311:1:
   115  	UF_OPAQUE                              = 0x00000008 // stat.h:314:1:
   116  	UF_SETTABLE                            = 0x0000ffff // stat.h:310:1:
   117  	UF_TRACKED                             = 0x00000040 // stat.h:324:1:
   118  	UTIME_NOW                              = -1         // stat.h:393:1:
   119  	UTIME_OMIT                             = -2         // stat.h:394:1:
   120  	X_BLKCNT_T                             = 0          // _blkcnt_t.h:29:1:
   121  	X_BLKSIZE_T                            = 0          // _blksize_t.h:29:1:
   122  	X_BSD_I386__TYPES_H_                   = 0          // _types.h:29:1:
   123  	X_BSD_MACHINE_ENDIAN_H_                = 0          // endian.h:32:1:
   124  	X_BSD_MACHINE_TYPES_H_                 = 0          // types.h:32:1:
   125  	X_BSD_MACHINE__TYPES_H_                = 0          // _types.h:29:1:
   126  	X_CADDR_T                              = 0          // _caddr_t.h:29:1:
   127  	X_CDEFS_H_                             = 0          // cdefs.h:68:1:
   128  	X_CLOCK_T                              = 0          // _clock_t.h:29:1:
   129  	X_DARWIN_FEATURE_64_BIT_INODE          = 1          // cdefs.h:745:1:
   130  	X_DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE = 1          // cdefs.h:771:1:
   131  	X_DARWIN_FEATURE_UNIX_CONFORMANCE      = 3          // cdefs.h:779:1:
   132  	X_DEV_T                                = 0          // _dev_t.h:29:1:
   133  	X_ERRNO_T                              = 0          // _errno_t.h:29:1:
   134  	X_FD_SET                               = 0          // _fd_def.h:29:1:
   135  	X_FILESEC_T                            = 0          // _filesec_t.h:29:1:
   136  	X_FILE_OFFSET_BITS                     = 64         // <builtin>:25:1:
   137  	X_FSBLKCNT_T                           = 0          // _fsblkcnt_t.h:29:1:
   138  	X_FSFILCNT_T                           = 0          // _fsfilcnt_t.h:29:1:
   139  	X_FTS_H_                               = 0          // fts.h:59:1:
   140  	X_GID_T                                = 0          // _gid_t.h:29:1:
   141  	X_I386__ENDIAN_H_                      = 0          // endian.h:67:1:
   142  	X_ID_T                                 = 0          // _id_t.h:29:1:
   143  	X_INO64_T                              = 0          // _ino64_t.h:29:1:
   144  	X_INO_T                                = 0          // _ino_t.h:29:1:
   145  	X_INT16_T                              = 0          // _int16_t.h:29:1:
   146  	X_INT32_T                              = 0          // _int32_t.h:29:1:
   147  	X_INT64_T                              = 0          // _int64_t.h:29:1:
   148  	X_INT8_T                               = 0          // _int8_t.h:29:1:
   149  	X_INTPTR_T                             = 0          // _intptr_t.h:29:1:
   150  	X_IN_ADDR_T                            = 0          // _in_addr_t.h:29:1:
   151  	X_IN_PORT_T                            = 0          // _in_port_t.h:29:1:
   152  	X_KEY_T                                = 0          // _key_t.h:29:1:
   153  	X_LP64                                 = 1          // <predefined>:1:1:
   154  	X_MACHTYPES_H_                         = 0          // types.h:67:1:
   155  	X_MODE_T                               = 0          // _mode_t.h:29:1:
   156  	X_NLINK_T                              = 0          // _nlink_t.h:29:1:
   157  	X_Nonnull                              = 0          // cdefs.h:243:1:
   158  	X_Null_unspecified                     = 0          // cdefs.h:246:1:
   159  	X_Nullable                             = 0          // cdefs.h:240:1:
   160  	X_OFF_T                                = 0          // _off_t.h:29:1:
   161  	X_OS__OSBYTEORDERI386_H                = 0          // _OSByteOrder.h:30:1:
   162  	X_OS__OSBYTEORDER_H                    = 0          // _OSByteOrder.h:30:1:
   163  	X_PID_T                                = 0          // _pid_t.h:29:1:
   164  	X_PTHREAD_ATTR_T                       = 0          // _pthread_attr_t.h:29:1:
   165  	X_PTHREAD_CONDATTR_T                   = 0          // _pthread_condattr_t.h:29:1:
   166  	X_PTHREAD_COND_T                       = 0          // _pthread_cond_t.h:29:1:
   167  	X_PTHREAD_KEY_T                        = 0          // _pthread_key_t.h:29:1:
   168  	X_PTHREAD_MUTEXATTR_T                  = 0          // _pthread_mutexattr_t.h:29:1:
   169  	X_PTHREAD_MUTEX_T                      = 0          // _pthread_mutex_t.h:29:1:
   170  	X_PTHREAD_ONCE_T                       = 0          // _pthread_once_t.h:29:1:
   171  	X_PTHREAD_RWLOCKATTR_T                 = 0          // _pthread_rwlockattr_t.h:29:1:
   172  	X_PTHREAD_RWLOCK_T                     = 0          // _pthread_rwlock_t.h:29:1:
   173  	X_PTHREAD_T                            = 0          // _pthread_t.h:29:1:
   174  	X_QUAD_HIGHWORD                        = 1          // endian.h:78:1:
   175  	X_QUAD_LOWWORD                         = 0          // endian.h:79:1:
   176  	X_RSIZE_T                              = 0          // _rsize_t.h:29:1:
   177  	X_SIZE_T                               = 0          // _size_t.h:29:1:
   178  	X_SSIZE_T                              = 0          // _ssize_t.h:29:1:
   179  	X_SUSECONDS_T                          = 0          // _suseconds_t.h:29:1:
   180  	X_SYS_STAT_H_                          = 0          // stat.h:71:1:
   181  	X_SYS_TYPES_H_                         = 0          // types.h:70:1:
   182  	X_SYS__ENDIAN_H_                       = 0          // _endian.h:91:1:
   183  	X_SYS__PTHREAD_TYPES_H_                = 0          // _pthread_types.h:30:1:
   184  	X_SYS__TYPES_H_                        = 0          // _types.h:30:1:
   185  	X_TIME_T                               = 0          // _time_t.h:29:1:
   186  	X_UID_T                                = 0          // _uid_t.h:29:1:
   187  	X_UINTPTR_T                            = 0          // _uintptr_t.h:29:1:
   188  	X_USECONDS_T                           = 0          // _useconds_t.h:29:1:
   189  	X_U_CHAR                               = 0          // _u_char.h:29:1:
   190  	X_U_INT                                = 0          // _u_int.h:29:1:
   191  	X_U_INT16_T                            = 0          // _u_int16_t.h:29:1:
   192  	X_U_INT32_T                            = 0          // _u_int32_t.h:29:1:
   193  	X_U_INT64_T                            = 0          // _u_int64_t.h:29:1:
   194  	X_U_INT8_T                             = 0          // _u_int8_t.h:29:1:
   195  	X_U_LONG                               = 0          // types.h:89:1:
   196  	X_U_SHORT                              = 0          // _u_short.h:29:1:
   197  )
   198  
   199  type Ptrdiff_t = int64 /* <builtin>:3:26 */
   200  
   201  type Size_t = uint64 /* <builtin>:9:23 */
   202  
   203  type Wchar_t = int32 /* <builtin>:15:24 */
   204  
   205  type X__int128_t = struct {
   206  	Flo int64
   207  	Fhi int64
   208  } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
   209  type X__uint128_t = struct {
   210  	Flo uint64
   211  	Fhi uint64
   212  } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
   213  
   214  type X__builtin_va_list = uintptr /* <builtin>:46:14 */
   215  type X__float128 = float64        /* <builtin>:47:21 */
   216  
   217  var X__darwin_check_fd_set_overflow uintptr /* <builtin>:146:5: */
   218  
   219  // Copyright (c) 2000-2008 Apple Inc. All rights reserved.
   220  //
   221  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   222  //
   223  // This file contains Original Code and/or Modifications of Original Code
   224  // as defined in and that are subject to the Apple Public Source License
   225  // Version 2.0 (the 'License'). You may not use this file except in
   226  // compliance with the License. The rights granted to you under the License
   227  // may not be used to create, or enable the creation or redistribution of,
   228  // unlawful or unlicensed copies of an Apple operating system, or to
   229  // circumvent, violate, or enable the circumvention or violation of, any
   230  // terms of an Apple operating system software license agreement.
   231  //
   232  // Please obtain a copy of the License at
   233  // http://www.opensource.apple.com/apsl/ and read it before using this file.
   234  //
   235  // The Original Code and all software distributed under the License are
   236  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   237  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   238  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   239  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   240  // Please see the License for the specific language governing rights and
   241  // limitations under the License.
   242  //
   243  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   244  // Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved
   245  // Copyright (c) 1982, 1986, 1991, 1993, 1994
   246  //	The Regents of the University of California.  All rights reserved.
   247  // (c) UNIX System Laboratories, Inc.
   248  // All or some portions of this file are derived from material licensed
   249  // to the University of California by American Telephone and Telegraph
   250  // Co. or Unix System Laboratories, Inc. and are reproduced herein with
   251  // the permission of UNIX System Laboratories, Inc.
   252  //
   253  // Redistribution and use in source and binary forms, with or without
   254  // modification, are permitted provided that the following conditions
   255  // are met:
   256  // 1. Redistributions of source code must retain the above copyright
   257  //    notice, this list of conditions and the following disclaimer.
   258  // 2. Redistributions in binary form must reproduce the above copyright
   259  //    notice, this list of conditions and the following disclaimer in the
   260  //    documentation and/or other materials provided with the distribution.
   261  // 3. All advertising materials mentioning features or use of this software
   262  //    must display the following acknowledgement:
   263  //	This product includes software developed by the University of
   264  //	California, Berkeley and its contributors.
   265  // 4. Neither the name of the University nor the names of its contributors
   266  //    may be used to endorse or promote products derived from this software
   267  //    without specific prior written permission.
   268  //
   269  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   270  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   271  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   272  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   273  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   274  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   275  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   276  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   277  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   278  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   279  // SUCH DAMAGE.
   280  //
   281  //	@(#)types.h	8.4 (Berkeley) 1/21/94
   282  
   283  // Copyright (c) 2002 Apple Computer, Inc. All rights reserved.
   284  //
   285  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   286  //
   287  // This file contains Original Code and/or Modifications of Original Code
   288  // as defined in and that are subject to the Apple Public Source License
   289  // Version 2.0 (the 'License'). You may not use this file except in
   290  // compliance with the License. The rights granted to you under the License
   291  // may not be used to create, or enable the creation or redistribution of,
   292  // unlawful or unlicensed copies of an Apple operating system, or to
   293  // circumvent, violate, or enable the circumvention or violation of, any
   294  // terms of an Apple operating system software license agreement.
   295  //
   296  // Please obtain a copy of the License at
   297  // http://www.opensource.apple.com/apsl/ and read it before using this file.
   298  //
   299  // The Original Code and all software distributed under the License are
   300  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   301  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   302  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   303  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   304  // Please see the License for the specific language governing rights and
   305  // limitations under the License.
   306  //
   307  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   308  
   309  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
   310  //
   311  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   312  //
   313  // This file contains Original Code and/or Modifications of Original Code
   314  // as defined in and that are subject to the Apple Public Source License
   315  // Version 2.0 (the 'License'). You may not use this file except in
   316  // compliance with the License. The rights granted to you under the License
   317  // may not be used to create, or enable the creation or redistribution of,
   318  // unlawful or unlicensed copies of an Apple operating system, or to
   319  // circumvent, violate, or enable the circumvention or violation of, any
   320  // terms of an Apple operating system software license agreement.
   321  //
   322  // Please obtain a copy of the License at
   323  // http://www.opensource.apple.com/apsl/ and read it before using this file.
   324  //
   325  // The Original Code and all software distributed under the License are
   326  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   327  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   328  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   329  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   330  // Please see the License for the specific language governing rights and
   331  // limitations under the License.
   332  //
   333  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   334  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
   335  // Copyright (c) 1991, 1993
   336  //	The Regents of the University of California.  All rights reserved.
   337  //
   338  // This code is derived from software contributed to Berkeley by
   339  // Berkeley Software Design, Inc.
   340  //
   341  // Redistribution and use in source and binary forms, with or without
   342  // modification, are permitted provided that the following conditions
   343  // are met:
   344  // 1. Redistributions of source code must retain the above copyright
   345  //    notice, this list of conditions and the following disclaimer.
   346  // 2. Redistributions in binary form must reproduce the above copyright
   347  //    notice, this list of conditions and the following disclaimer in the
   348  //    documentation and/or other materials provided with the distribution.
   349  // 3. All advertising materials mentioning features or use of this software
   350  //    must display the following acknowledgement:
   351  //	This product includes software developed by the University of
   352  //	California, Berkeley and its contributors.
   353  // 4. Neither the name of the University nor the names of its contributors
   354  //    may be used to endorse or promote products derived from this software
   355  //    without specific prior written permission.
   356  //
   357  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   358  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   359  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   360  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   361  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   362  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   363  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   364  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   365  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   366  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   367  // SUCH DAMAGE.
   368  //
   369  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
   370  
   371  // This SDK is designed to work with clang and specific versions of
   372  // gcc >= 4.0 with Apple's patch sets
   373  
   374  // Compatibility with compilers and environments that don't support compiler
   375  // feature checking function-like macros.
   376  
   377  // The __CONCAT macro is used to concatenate parts of symbol names, e.g.
   378  // with "#define OLD(foo) __CONCAT(old,foo)", OLD(foo) produces oldfoo.
   379  // The __CONCAT macro is a bit tricky -- make sure you don't put spaces
   380  // in between its arguments.  __CONCAT can also concatenate double-quoted
   381  // strings produced by the __STRING macro, but this only works with ANSI C.
   382  
   383  // In non-ANSI C environments, new programs will want ANSI-only C keywords
   384  // deleted from the program and old programs will want them left alone.
   385  // When using a compiler other than gcc, programs using the ANSI C keywords
   386  // const, inline etc. as normal identifiers should define -DNO_ANSI_KEYWORDS.
   387  // When using "gcc -traditional", we assume that this is the intent; if
   388  // __GNUC__ is defined but __STDC__ is not, we leave the new keywords alone.
   389  
   390  // __unused denotes variables and functions that may not be used, preventing
   391  // the compiler from warning about it if not used.
   392  
   393  // __used forces variables and functions to be included even if it appears
   394  // to the compiler that they are not used (and would thust be discarded).
   395  
   396  // __cold marks code used for debugging or that is rarely taken
   397  // and tells the compiler to optimize for size and outline code.
   398  
   399  // __deprecated causes the compiler to produce a warning when encountering
   400  // code using the deprecated functionality.
   401  // __deprecated_msg() does the same, and compilers that support it will print
   402  // a message along with the deprecation warning.
   403  // This may require turning on such warning with the -Wdeprecated flag.
   404  // __deprecated_enum_msg() should be used on enums, and compilers that support
   405  // it will print the deprecation warning.
   406  // __kpi_deprecated() specifically indicates deprecation of kernel programming
   407  // interfaces in Kernel.framework used by KEXTs.
   408  
   409  // __unavailable causes the compiler to error out when encountering
   410  // code using the tagged function of variable.
   411  
   412  // Delete pseudo-keywords wherever they are not available or needed.
   413  
   414  // We use `__restrict' as a way to define the `restrict' type qualifier
   415  // without disturbing older software that is unaware of C99 keywords.
   416  
   417  // Compatibility with compilers and environments that don't support the
   418  // nullability feature.
   419  
   420  // __disable_tail_calls causes the compiler to not perform tail call
   421  // optimization inside the marked function.
   422  
   423  // __not_tail_called causes the compiler to prevent tail call optimization
   424  // on statically bound calls to the function.  It has no effect on indirect
   425  // calls.  Virtual functions, objective-c methods, and functions marked as
   426  // "always_inline" cannot be marked as __not_tail_called.
   427  
   428  // __result_use_check warns callers of a function that not using the function
   429  // return value is a bug, i.e. dismissing malloc() return value results in a
   430  // memory leak.
   431  
   432  // __swift_unavailable causes the compiler to mark a symbol as specifically
   433  // unavailable in Swift, regardless of any other availability in C.
   434  
   435  // __abortlike is the attribute to put on functions like abort() that are
   436  // typically used to mark assertions. These optimize the codegen
   437  // for outlining while still maintaining debugability.
   438  
   439  // Declaring inline functions within headers is error-prone due to differences
   440  // across various versions of the C language and extensions.  __header_inline
   441  // can be used to declare inline functions within system headers.  In cases
   442  // where you want to force inlining instead of letting the compiler make
   443  // the decision, you can use __header_always_inline.
   444  //
   445  // Be aware that using inline for functions which compilers may also provide
   446  // builtins can behave differently under various compilers.  If you intend to
   447  // provide an inline version of such a function, you may want to use a macro
   448  // instead.
   449  //
   450  // The check for !__GNUC__ || __clang__ is because gcc doesn't correctly
   451  // support c99 inline in some cases:
   452  // http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55965
   453  
   454  // Compiler-dependent macros that bracket portions of code where the
   455  // "-Wunreachable-code" warning should be ignored. Please use sparingly.
   456  
   457  // Compiler-dependent macros to declare that functions take printf-like
   458  // or scanf-like arguments.  They are null except for versions of gcc
   459  // that are known to support the features properly.  Functions declared
   460  // with these attributes will cause compilation warnings if there is a
   461  // mismatch between the format string and subsequent function parameter
   462  // types.
   463  
   464  // Source compatibility only, ID string not emitted in object file
   465  
   466  // __alloc_size can be used to label function arguments that represent the
   467  // size of memory that the function allocates and returns. The one-argument
   468  // form labels a single argument that gives the allocation size (where the
   469  // arguments are numbered from 1):
   470  //
   471  // void	*malloc(size_t __size) __alloc_size(1);
   472  //
   473  // The two-argument form handles the case where the size is calculated as the
   474  // product of two arguments:
   475  //
   476  // void	*calloc(size_t __count, size_t __size) __alloc_size(1,2);
   477  
   478  // COMPILATION ENVIRONMENTS -- see compat(5) for additional detail
   479  //
   480  // DEFAULT	By default newly complied code will get POSIX APIs plus
   481  //		Apple API extensions in scope.
   482  //
   483  //		Most users will use this compilation environment to avoid
   484  //		behavioral differences between 32 and 64 bit code.
   485  //
   486  // LEGACY	Defining _NONSTD_SOURCE will get pre-POSIX APIs plus Apple
   487  //		API extensions in scope.
   488  //
   489  //		This is generally equivalent to the Tiger release compilation
   490  //		environment, except that it cannot be applied to 64 bit code;
   491  //		its use is discouraged.
   492  //
   493  //		We expect this environment to be deprecated in the future.
   494  //
   495  // STRICT	Defining _POSIX_C_SOURCE or _XOPEN_SOURCE restricts the
   496  //		available APIs to exactly the set of APIs defined by the
   497  //		corresponding standard, based on the value defined.
   498  //
   499  //		A correct, portable definition for _POSIX_C_SOURCE is 200112L.
   500  //		A correct, portable definition for _XOPEN_SOURCE is 600L.
   501  //
   502  //		Apple API extensions are not visible in this environment,
   503  //		which can cause Apple specific code to fail to compile,
   504  //		or behave incorrectly if prototypes are not in scope or
   505  //		warnings about missing prototypes are not enabled or ignored.
   506  //
   507  // In any compilation environment, for correct symbol resolution to occur,
   508  // function prototypes must be in scope.  It is recommended that all Apple
   509  // tools users add either the "-Wall" or "-Wimplicit-function-declaration"
   510  // compiler flags to their projects to be warned when a function is being
   511  // used without a prototype in scope.
   512  
   513  // These settings are particular to each product.
   514  // Platform: MacOSX
   515  // #undef __DARWIN_ONLY_UNIX_CONFORMANCE (automatically set for 64-bit)
   516  
   517  // The __DARWIN_ALIAS macros are used to do symbol renaming; they allow
   518  // legacy code to use the old symbol, thus maintaining binary compatibility
   519  // while new code can use a standards compliant version of the same function.
   520  //
   521  // __DARWIN_ALIAS is used by itself if the function signature has not
   522  // changed, it is used along with a #ifdef check for __DARWIN_UNIX03
   523  // if the signature has changed.  Because the __LP64__ environment
   524  // only supports UNIX03 semantics it causes __DARWIN_UNIX03 to be
   525  // defined, but causes __DARWIN_ALIAS to do no symbol mangling.
   526  //
   527  // As a special case, when XCode is used to target a specific version of the
   528  // OS, the manifest constant __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__
   529  // will be defined by the compiler, with the digits representing major version
   530  // time 100 + minor version times 10 (e.g. 10.5 := 1050).  If we are targeting
   531  // pre-10.5, and it is the default compilation environment, revert the
   532  // compilation environment to pre-__DARWIN_UNIX03.
   533  
   534  // symbol suffixes used for symbol versioning
   535  
   536  // symbol versioning macros
   537  
   538  // symbol release macros
   539  // Copyright (c) 2010 Apple Inc. All rights reserved.
   540  //
   541  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   542  //
   543  // This file contains Original Code and/or Modifications of Original Code
   544  // as defined in and that are subject to the Apple Public Source License
   545  // Version 2.0 (the 'License'). You may not use this file except in
   546  // compliance with the License. The rights granted to you under the License
   547  // may not be used to create, or enable the creation or redistribution of,
   548  // unlawful or unlicensed copies of an Apple operating system, or to
   549  // circumvent, violate, or enable the circumvention or violation of, any
   550  // terms of an Apple operating system software license agreement.
   551  //
   552  // Please obtain a copy of the License at
   553  // http://www.opensource.apple.com/apsl/ and read it before using this file.
   554  //
   555  // The Original Code and all software distributed under the License are
   556  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   557  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   558  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   559  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   560  // Please see the License for the specific language governing rights and
   561  // limitations under the License.
   562  //
   563  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   564  
   565  // POSIX.1 requires that the macros we test be defined before any standard
   566  // header file is included.  This permits us to convert values for feature
   567  // testing, as necessary, using only _POSIX_C_SOURCE.
   568  //
   569  // Here's a quick run-down of the versions:
   570  //  defined(_POSIX_SOURCE)		1003.1-1988
   571  //  _POSIX_C_SOURCE == 1L		1003.1-1990
   572  //  _POSIX_C_SOURCE == 2L		1003.2-1992 C Language Binding Option
   573  //  _POSIX_C_SOURCE == 199309L		1003.1b-1993
   574  //  _POSIX_C_SOURCE == 199506L		1003.1c-1995, 1003.1i-1995,
   575  //					and the omnibus ISO/IEC 9945-1: 1996
   576  //  _POSIX_C_SOURCE == 200112L		1003.1-2001
   577  //  _POSIX_C_SOURCE == 200809L		1003.1-2008
   578  //
   579  // In addition, the X/Open Portability Guide, which is now the Single UNIX
   580  // Specification, defines a feature-test macro which indicates the version of
   581  // that specification, and which subsumes _POSIX_C_SOURCE.
   582  
   583  // Deal with IEEE Std. 1003.1-1990, in which _POSIX_C_SOURCE == 1L.
   584  
   585  // Deal with IEEE Std. 1003.2-1992, in which _POSIX_C_SOURCE == 2L.
   586  
   587  // Deal with various X/Open Portability Guides and Single UNIX Spec.
   588  
   589  // Deal with all versions of POSIX.  The ordering relative to the tests above is
   590  // important.
   591  
   592  // POSIX C deprecation macros
   593  // Copyright (c) 2010 Apple Inc. All rights reserved.
   594  //
   595  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   596  //
   597  // This file contains Original Code and/or Modifications of Original Code
   598  // as defined in and that are subject to the Apple Public Source License
   599  // Version 2.0 (the 'License'). You may not use this file except in
   600  // compliance with the License. The rights granted to you under the License
   601  // may not be used to create, or enable the creation or redistribution of,
   602  // unlawful or unlicensed copies of an Apple operating system, or to
   603  // circumvent, violate, or enable the circumvention or violation of, any
   604  // terms of an Apple operating system software license agreement.
   605  //
   606  // Please obtain a copy of the License at
   607  // http://www.opensource.apple.com/apsl/ and read it before using this file.
   608  //
   609  // The Original Code and all software distributed under the License are
   610  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   611  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   612  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   613  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   614  // Please see the License for the specific language governing rights and
   615  // limitations under the License.
   616  //
   617  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   618  
   619  // Set a single macro which will always be defined and can be used to determine
   620  // the appropriate namespace.  For POSIX, these values will correspond to
   621  // _POSIX_C_SOURCE value.  Currently there are two additional levels corresponding
   622  // to ANSI (_ANSI_SOURCE) and Darwin extensions (_DARWIN_C_SOURCE)
   623  
   624  // If the developer has neither requested a strict language mode nor a version
   625  // of POSIX, turn on functionality provided by __STDC_WANT_LIB_EXT1__ as part
   626  // of __DARWIN_C_FULL.
   627  
   628  // long long is not supported in c89 (__STRICT_ANSI__), but g++ -ansi and
   629  // c99 still want long longs.  While not perfect, we allow long longs for
   630  // g++.
   631  
   632  // ****************************************
   633  //
   634  //  Public darwin-specific feature macros
   635  //
   636  
   637  // _DARWIN_FEATURE_64_BIT_INODE indicates that the ino_t type is 64-bit, and
   638  // structures modified for 64-bit inodes (like struct stat) will be used.
   639  
   640  // _DARWIN_FEATURE_64_ONLY_BIT_INODE indicates that the ino_t type may only
   641  // be 64-bit; there is no support for 32-bit ino_t when this macro is defined
   642  // (and non-zero).  There is no struct stat64 either, as the regular
   643  // struct stat will already be the 64-bit version.
   644  
   645  // _DARWIN_FEATURE_ONLY_VERS_1050 indicates that only those APIs updated
   646  // in 10.5 exists; no pre-10.5 variants are available.
   647  
   648  // _DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE indicates only UNIX conforming API
   649  // are available (the legacy BSD APIs are not available)
   650  
   651  // _DARWIN_FEATURE_UNIX_CONFORMANCE indicates whether UNIX conformance is on,
   652  // and specifies the conformance level (3 is SUSv3)
   653  
   654  // This macro casts away the qualifier from the variable
   655  //
   656  // Note: use at your own risk, removing qualifiers can result in
   657  // catastrophic run-time failures.
   658  
   659  // __XNU_PRIVATE_EXTERN is a linkage decoration indicating that a symbol can be
   660  // used from other compilation units, but not other libraries or executables.
   661  
   662  // Architecture validation for current SDK
   663  
   664  // Similar to OS_ENUM/OS_CLOSED_ENUM/OS_OPTIONS/OS_CLOSED_OPTIONS
   665  //
   666  // This provides more advanced type checking on compilers supporting
   667  // the proper extensions, even in C.
   668  
   669  // Machine type dependent parameters.
   670  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
   671  //
   672  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   673  //
   674  // This file contains Original Code and/or Modifications of Original Code
   675  // as defined in and that are subject to the Apple Public Source License
   676  // Version 2.0 (the 'License'). You may not use this file except in
   677  // compliance with the License. The rights granted to you under the License
   678  // may not be used to create, or enable the creation or redistribution of,
   679  // unlawful or unlicensed copies of an Apple operating system, or to
   680  // circumvent, violate, or enable the circumvention or violation of, any
   681  // terms of an Apple operating system software license agreement.
   682  //
   683  // Please obtain a copy of the License at
   684  // http://www.opensource.apple.com/apsl/ and read it before using this file.
   685  //
   686  // The Original Code and all software distributed under the License are
   687  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   688  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   689  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   690  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   691  // Please see the License for the specific language governing rights and
   692  // limitations under the License.
   693  //
   694  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   695  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
   696  
   697  // Copyright (c) 2000-2008 Apple Inc. All rights reserved.
   698  //
   699  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   700  //
   701  // This file contains Original Code and/or Modifications of Original Code
   702  // as defined in and that are subject to the Apple Public Source License
   703  // Version 2.0 (the 'License'). You may not use this file except in
   704  // compliance with the License. The rights granted to you under the License
   705  // may not be used to create, or enable the creation or redistribution of,
   706  // unlawful or unlicensed copies of an Apple operating system, or to
   707  // circumvent, violate, or enable the circumvention or violation of, any
   708  // terms of an Apple operating system software license agreement.
   709  //
   710  // Please obtain a copy of the License at
   711  // http://www.opensource.apple.com/apsl/ and read it before using this file.
   712  //
   713  // The Original Code and all software distributed under the License are
   714  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   715  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   716  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   717  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   718  // Please see the License for the specific language governing rights and
   719  // limitations under the License.
   720  //
   721  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   722  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
   723  // Copyright (c) 1990, 1993
   724  //	The Regents of the University of California.  All rights reserved.
   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  //	@(#)types.h	8.3 (Berkeley) 1/5/94
   755  
   756  // Copyright (c) 2000-2003 Apple Computer, Inc. All rights reserved.
   757  //
   758  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   759  //
   760  // This file contains Original Code and/or Modifications of Original Code
   761  // as defined in and that are subject to the Apple Public Source License
   762  // Version 2.0 (the 'License'). You may not use this file except in
   763  // compliance with the License. The rights granted to you under the License
   764  // may not be used to create, or enable the creation or redistribution of,
   765  // unlawful or unlicensed copies of an Apple operating system, or to
   766  // circumvent, violate, or enable the circumvention or violation of, any
   767  // terms of an Apple operating system software license agreement.
   768  //
   769  // Please obtain a copy of the License at
   770  // http://www.opensource.apple.com/apsl/ and read it before using this file.
   771  //
   772  // The Original Code and all software distributed under the License are
   773  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   774  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   775  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   776  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   777  // Please see the License for the specific language governing rights and
   778  // limitations under the License.
   779  //
   780  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   781  
   782  // This header file contains integer types.  It's intended to also contain
   783  // flotaing point and other arithmetic types, as needed, later.
   784  
   785  type X__int8_t = int8     /* _types.h:37:33 */
   786  type X__uint8_t = uint8   /* _types.h:41:33 */
   787  type X__int16_t = int16   /* _types.h:42:33 */
   788  type X__uint16_t = uint16 /* _types.h:43:33 */
   789  type X__int32_t = int32   /* _types.h:44:33 */
   790  type X__uint32_t = uint32 /* _types.h:45:33 */
   791  type X__int64_t = int64   /* _types.h:46:33 */
   792  type X__uint64_t = uint64 /* _types.h:47:33 */
   793  
   794  type X__darwin_intptr_t = int64   /* _types.h:49:33 */
   795  type X__darwin_natural_t = uint32 /* _types.h:50:33 */
   796  
   797  // The rune type below is declared to be an ``int'' instead of the more natural
   798  // ``unsigned long'' or ``long''.  Two things are happening here.  It is not
   799  // unsigned so that EOF (-1) can be naturally assigned to it and used.  Also,
   800  // it looks like 10646 will be a 31 bit standard.  This means that if your
   801  // ints cannot hold 32 bits, you will be in trouble.  The reason an int was
   802  // chosen over a long is that the is*() and to*() routines take ints (says
   803  // ANSI C), but they use __darwin_ct_rune_t instead of int.  By changing it
   804  // here, you lose a bit of ANSI conformance, but your programs will still
   805  // work.
   806  //
   807  // NOTE: rune_t is not covered by ANSI nor other standards, and should not
   808  // be instantiated outside of lib/libc/locale.  Use wchar_t.  wchar_t and
   809  // rune_t must be the same type.  Also wint_t must be no narrower than
   810  // wchar_t, and should also be able to hold all members of the largest
   811  // character set plus one extra value (WEOF). wint_t must be at least 16 bits.
   812  
   813  type X__darwin_ct_rune_t = int32 /* _types.h:70:33 */ // ct_rune_t
   814  
   815  // mbstate_t is an opaque object to keep conversion state, during multibyte
   816  // stream conversions.  The content must not be referenced by user programs.
   817  type X__mbstate_t = struct {
   818  	F__ccgo_pad1 [0]uint64
   819  	F__mbstate8  [128]int8
   820  } /* _types.h:79:3 */
   821  
   822  type X__darwin_mbstate_t = X__mbstate_t /* _types.h:81:33 */ // mbstate_t
   823  
   824  type X__darwin_ptrdiff_t = int64 /* _types.h:84:33 */ // ptr1 - ptr2
   825  
   826  type X__darwin_size_t = uint64 /* _types.h:92:33 */ // sizeof()
   827  
   828  type X__darwin_va_list = X__builtin_va_list /* _types.h:98:33 */ // va_list
   829  
   830  type X__darwin_wchar_t = int32 /* _types.h:104:33 */ // wchar_t
   831  
   832  type X__darwin_rune_t = X__darwin_wchar_t /* _types.h:109:33 */ // rune_t
   833  
   834  type X__darwin_wint_t = int32 /* _types.h:112:33 */ // wint_t
   835  
   836  type X__darwin_clock_t = uint64        /* _types.h:117:33 */ // clock()
   837  type X__darwin_socklen_t = X__uint32_t /* _types.h:118:33 */ // socklen_t (duh)
   838  type X__darwin_ssize_t = int64         /* _types.h:119:33 */ // byte count or error
   839  type X__darwin_time_t = int64          /* _types.h:120:33 */ // time()
   840  
   841  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
   842  //
   843  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   844  //
   845  // This file contains Original Code and/or Modifications of Original Code
   846  // as defined in and that are subject to the Apple Public Source License
   847  // Version 2.0 (the 'License'). You may not use this file except in
   848  // compliance with the License. The rights granted to you under the License
   849  // may not be used to create, or enable the creation or redistribution of,
   850  // unlawful or unlicensed copies of an Apple operating system, or to
   851  // circumvent, violate, or enable the circumvention or violation of, any
   852  // terms of an Apple operating system software license agreement.
   853  //
   854  // Please obtain a copy of the License at
   855  // http://www.opensource.apple.com/apsl/ and read it before using this file.
   856  //
   857  // The Original Code and all software distributed under the License are
   858  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   859  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   860  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   861  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   862  // Please see the License for the specific language governing rights and
   863  // limitations under the License.
   864  //
   865  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   866  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
   867  // Copyright (c) 1991, 1993
   868  //	The Regents of the University of California.  All rights reserved.
   869  //
   870  // This code is derived from software contributed to Berkeley by
   871  // Berkeley Software Design, Inc.
   872  //
   873  // Redistribution and use in source and binary forms, with or without
   874  // modification, are permitted provided that the following conditions
   875  // are met:
   876  // 1. Redistributions of source code must retain the above copyright
   877  //    notice, this list of conditions and the following disclaimer.
   878  // 2. Redistributions in binary form must reproduce the above copyright
   879  //    notice, this list of conditions and the following disclaimer in the
   880  //    documentation and/or other materials provided with the distribution.
   881  // 3. All advertising materials mentioning features or use of this software
   882  //    must display the following acknowledgement:
   883  //	This product includes software developed by the University of
   884  //	California, Berkeley and its contributors.
   885  // 4. Neither the name of the University nor the names of its contributors
   886  //    may be used to endorse or promote products derived from this software
   887  //    without specific prior written permission.
   888  //
   889  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   890  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   891  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   892  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   893  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   894  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   895  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   896  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   897  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   898  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   899  // SUCH DAMAGE.
   900  //
   901  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
   902  
   903  // Basic integral types.  Omit the typedef if
   904  // not possible for a machine/compiler combination.
   905  // Copyright (c) 2012 Apple Inc. All rights reserved.
   906  //
   907  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   908  //
   909  // This file contains Original Code and/or Modifications of Original Code
   910  // as defined in and that are subject to the Apple Public Source License
   911  // Version 2.0 (the 'License'). You may not use this file except in
   912  // compliance with the License. The rights granted to you under the License
   913  // may not be used to create, or enable the creation or redistribution of,
   914  // unlawful or unlicensed copies of an Apple operating system, or to
   915  // circumvent, violate, or enable the circumvention or violation of, any
   916  // terms of an Apple operating system software license agreement.
   917  //
   918  // Please obtain a copy of the License at
   919  // http://www.opensource.apple.com/apsl/ and read it before using this file.
   920  //
   921  // The Original Code and all software distributed under the License are
   922  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   923  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   924  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   925  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   926  // Please see the License for the specific language governing rights and
   927  // limitations under the License.
   928  //
   929  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   930  type Int8_t = int8 /* _int8_t.h:30:33 */
   931  // Copyright (c) 2012 Apple Inc. All rights reserved.
   932  //
   933  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   934  //
   935  // This file contains Original Code and/or Modifications of Original Code
   936  // as defined in and that are subject to the Apple Public Source License
   937  // Version 2.0 (the 'License'). You may not use this file except in
   938  // compliance with the License. The rights granted to you under the License
   939  // may not be used to create, or enable the creation or redistribution of,
   940  // unlawful or unlicensed copies of an Apple operating system, or to
   941  // circumvent, violate, or enable the circumvention or violation of, any
   942  // terms of an Apple operating system software license agreement.
   943  //
   944  // Please obtain a copy of the License at
   945  // http://www.opensource.apple.com/apsl/ and read it before using this file.
   946  //
   947  // The Original Code and all software distributed under the License are
   948  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   949  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   950  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   951  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   952  // Please see the License for the specific language governing rights and
   953  // limitations under the License.
   954  //
   955  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   956  type Int16_t = int16 /* _int16_t.h:30:33 */
   957  // Copyright (c) 2012 Apple Inc. All rights reserved.
   958  //
   959  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   960  //
   961  // This file contains Original Code and/or Modifications of Original Code
   962  // as defined in and that are subject to the Apple Public Source License
   963  // Version 2.0 (the 'License'). You may not use this file except in
   964  // compliance with the License. The rights granted to you under the License
   965  // may not be used to create, or enable the creation or redistribution of,
   966  // unlawful or unlicensed copies of an Apple operating system, or to
   967  // circumvent, violate, or enable the circumvention or violation of, any
   968  // terms of an Apple operating system software license agreement.
   969  //
   970  // Please obtain a copy of the License at
   971  // http://www.opensource.apple.com/apsl/ and read it before using this file.
   972  //
   973  // The Original Code and all software distributed under the License are
   974  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   975  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   976  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   977  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   978  // Please see the License for the specific language governing rights and
   979  // limitations under the License.
   980  //
   981  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   982  type Int32_t = int32 /* _int32_t.h:30:33 */
   983  // Copyright (c) 2012 Apple Inc. All rights reserved.
   984  //
   985  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   986  //
   987  // This file contains Original Code and/or Modifications of Original Code
   988  // as defined in and that are subject to the Apple Public Source License
   989  // Version 2.0 (the 'License'). You may not use this file except in
   990  // compliance with the License. The rights granted to you under the License
   991  // may not be used to create, or enable the creation or redistribution of,
   992  // unlawful or unlicensed copies of an Apple operating system, or to
   993  // circumvent, violate, or enable the circumvention or violation of, any
   994  // terms of an Apple operating system software license agreement.
   995  //
   996  // Please obtain a copy of the License at
   997  // http://www.opensource.apple.com/apsl/ and read it before using this file.
   998  //
   999  // The Original Code and all software distributed under the License are
  1000  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1001  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1002  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1003  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1004  // Please see the License for the specific language governing rights and
  1005  // limitations under the License.
  1006  //
  1007  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1008  type Int64_t = int64 /* _int64_t.h:30:33 */
  1009  
  1010  // Copyright (c) 2016 Apple Inc. All rights reserved.
  1011  //
  1012  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1013  //
  1014  // This file contains Original Code and/or Modifications of Original Code
  1015  // as defined in and that are subject to the Apple Public Source License
  1016  // Version 2.0 (the 'License'). You may not use this file except in
  1017  // compliance with the License. The rights granted to you under the License
  1018  // may not be used to create, or enable the creation or redistribution of,
  1019  // unlawful or unlicensed copies of an Apple operating system, or to
  1020  // circumvent, violate, or enable the circumvention or violation of, any
  1021  // terms of an Apple operating system software license agreement.
  1022  //
  1023  // Please obtain a copy of the License at
  1024  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1025  //
  1026  // The Original Code and all software distributed under the License are
  1027  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1028  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1029  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1030  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1031  // Please see the License for the specific language governing rights and
  1032  // limitations under the License.
  1033  //
  1034  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1035  type U_int8_t = uint8 /* _u_int8_t.h:30:33 */
  1036  // Copyright (c) 2012 Apple Inc. All rights reserved.
  1037  //
  1038  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1039  //
  1040  // This file contains Original Code and/or Modifications of Original Code
  1041  // as defined in and that are subject to the Apple Public Source License
  1042  // Version 2.0 (the 'License'). You may not use this file except in
  1043  // compliance with the License. The rights granted to you under the License
  1044  // may not be used to create, or enable the creation or redistribution of,
  1045  // unlawful or unlicensed copies of an Apple operating system, or to
  1046  // circumvent, violate, or enable the circumvention or violation of, any
  1047  // terms of an Apple operating system software license agreement.
  1048  //
  1049  // Please obtain a copy of the License at
  1050  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1051  //
  1052  // The Original Code and all software distributed under the License are
  1053  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1054  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1055  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1056  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1057  // Please see the License for the specific language governing rights and
  1058  // limitations under the License.
  1059  //
  1060  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1061  type U_int16_t = uint16 /* _u_int16_t.h:30:41 */
  1062  // Copyright (c) 2012 Apple Inc. All rights reserved.
  1063  //
  1064  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1065  //
  1066  // This file contains Original Code and/or Modifications of Original Code
  1067  // as defined in and that are subject to the Apple Public Source License
  1068  // Version 2.0 (the 'License'). You may not use this file except in
  1069  // compliance with the License. The rights granted to you under the License
  1070  // may not be used to create, or enable the creation or redistribution of,
  1071  // unlawful or unlicensed copies of an Apple operating system, or to
  1072  // circumvent, violate, or enable the circumvention or violation of, any
  1073  // terms of an Apple operating system software license agreement.
  1074  //
  1075  // Please obtain a copy of the License at
  1076  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1077  //
  1078  // The Original Code and all software distributed under the License are
  1079  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1080  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1081  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1082  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1083  // Please see the License for the specific language governing rights and
  1084  // limitations under the License.
  1085  //
  1086  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1087  type U_int32_t = uint32 /* _u_int32_t.h:30:33 */
  1088  // Copyright (c) 2012 Apple Inc. All rights reserved.
  1089  //
  1090  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1091  //
  1092  // This file contains Original Code and/or Modifications of Original Code
  1093  // as defined in and that are subject to the Apple Public Source License
  1094  // Version 2.0 (the 'License'). You may not use this file except in
  1095  // compliance with the License. The rights granted to you under the License
  1096  // may not be used to create, or enable the creation or redistribution of,
  1097  // unlawful or unlicensed copies of an Apple operating system, or to
  1098  // circumvent, violate, or enable the circumvention or violation of, any
  1099  // terms of an Apple operating system software license agreement.
  1100  //
  1101  // Please obtain a copy of the License at
  1102  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1103  //
  1104  // The Original Code and all software distributed under the License are
  1105  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1106  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1107  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1108  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1109  // Please see the License for the specific language governing rights and
  1110  // limitations under the License.
  1111  //
  1112  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1113  type U_int64_t = uint64 /* _u_int64_t.h:30:33 */
  1114  
  1115  type Register_t = Int64_t /* types.h:87:33 */
  1116  
  1117  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  1118  //
  1119  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1120  //
  1121  // This file contains Original Code and/or Modifications of Original Code
  1122  // as defined in and that are subject to the Apple Public Source License
  1123  // Version 2.0 (the 'License'). You may not use this file except in
  1124  // compliance with the License. The rights granted to you under the License
  1125  // may not be used to create, or enable the creation or redistribution of,
  1126  // unlawful or unlicensed copies of an Apple operating system, or to
  1127  // circumvent, violate, or enable the circumvention or violation of, any
  1128  // terms of an Apple operating system software license agreement.
  1129  //
  1130  // Please obtain a copy of the License at
  1131  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1132  //
  1133  // The Original Code and all software distributed under the License are
  1134  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1135  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1136  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1137  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1138  // Please see the License for the specific language governing rights and
  1139  // limitations under the License.
  1140  //
  1141  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1142  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  1143  //
  1144  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1145  //
  1146  // This file contains Original Code and/or Modifications of Original Code
  1147  // as defined in and that are subject to the Apple Public Source License
  1148  // Version 2.0 (the 'License'). You may not use this file except in
  1149  // compliance with the License. The rights granted to you under the License
  1150  // may not be used to create, or enable the creation or redistribution of,
  1151  // unlawful or unlicensed copies of an Apple operating system, or to
  1152  // circumvent, violate, or enable the circumvention or violation of, any
  1153  // terms of an Apple operating system software license agreement.
  1154  //
  1155  // Please obtain a copy of the License at
  1156  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1157  //
  1158  // The Original Code and all software distributed under the License are
  1159  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1160  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1161  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1162  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1163  // Please see the License for the specific language governing rights and
  1164  // limitations under the License.
  1165  //
  1166  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1167  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  1168  
  1169  type Intptr_t = X__darwin_intptr_t /* _intptr_t.h:32:33 */
  1170  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  1171  //
  1172  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1173  //
  1174  // This file contains Original Code and/or Modifications of Original Code
  1175  // as defined in and that are subject to the Apple Public Source License
  1176  // Version 2.0 (the 'License'). You may not use this file except in
  1177  // compliance with the License. The rights granted to you under the License
  1178  // may not be used to create, or enable the creation or redistribution of,
  1179  // unlawful or unlicensed copies of an Apple operating system, or to
  1180  // circumvent, violate, or enable the circumvention or violation of, any
  1181  // terms of an Apple operating system software license agreement.
  1182  //
  1183  // Please obtain a copy of the License at
  1184  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1185  //
  1186  // The Original Code and all software distributed under the License are
  1187  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1188  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1189  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1190  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1191  // Please see the License for the specific language governing rights and
  1192  // limitations under the License.
  1193  //
  1194  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1195  type Uintptr_t = uint64 /* _uintptr_t.h:30:33 */
  1196  
  1197  // These types are used for reserving the largest possible size.
  1198  type User_addr_t = U_int64_t  /* types.h:97:33 */
  1199  type User_size_t = U_int64_t  /* types.h:98:33 */
  1200  type User_ssize_t = Int64_t   /* types.h:99:33 */
  1201  type User_long_t = Int64_t    /* types.h:100:33 */
  1202  type User_ulong_t = U_int64_t /* types.h:101:33 */
  1203  type User_time_t = Int64_t    /* types.h:102:33 */
  1204  type User_off_t = Int64_t     /* types.h:103:33 */
  1205  
  1206  // This defines the size of syscall arguments after copying into the kernel:
  1207  type Syscall_arg_t = U_int64_t /* types.h:111:33 */
  1208  
  1209  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  1210  //
  1211  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1212  //
  1213  // This file contains Original Code and/or Modifications of Original Code
  1214  // as defined in and that are subject to the Apple Public Source License
  1215  // Version 2.0 (the 'License'). You may not use this file except in
  1216  // compliance with the License. The rights granted to you under the License
  1217  // may not be used to create, or enable the creation or redistribution of,
  1218  // unlawful or unlicensed copies of an Apple operating system, or to
  1219  // circumvent, violate, or enable the circumvention or violation of, any
  1220  // terms of an Apple operating system software license agreement.
  1221  //
  1222  // Please obtain a copy of the License at
  1223  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1224  //
  1225  // The Original Code and all software distributed under the License are
  1226  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1227  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1228  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1229  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1230  // Please see the License for the specific language governing rights and
  1231  // limitations under the License.
  1232  //
  1233  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1234  
  1235  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  1236  //
  1237  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1238  //
  1239  // This file contains Original Code and/or Modifications of Original Code
  1240  // as defined in and that are subject to the Apple Public Source License
  1241  // Version 2.0 (the 'License'). You may not use this file except in
  1242  // compliance with the License. The rights granted to you under the License
  1243  // may not be used to create, or enable the creation or redistribution of,
  1244  // unlawful or unlicensed copies of an Apple operating system, or to
  1245  // circumvent, violate, or enable the circumvention or violation of, any
  1246  // terms of an Apple operating system software license agreement.
  1247  //
  1248  // Please obtain a copy of the License at
  1249  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1250  //
  1251  // The Original Code and all software distributed under the License are
  1252  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1253  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1254  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1255  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1256  // Please see the License for the specific language governing rights and
  1257  // limitations under the License.
  1258  //
  1259  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1260  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  1261  // Copyright (c) 1991, 1993
  1262  //	The Regents of the University of California.  All rights reserved.
  1263  //
  1264  // This code is derived from software contributed to Berkeley by
  1265  // Berkeley Software Design, Inc.
  1266  //
  1267  // Redistribution and use in source and binary forms, with or without
  1268  // modification, are permitted provided that the following conditions
  1269  // are met:
  1270  // 1. Redistributions of source code must retain the above copyright
  1271  //    notice, this list of conditions and the following disclaimer.
  1272  // 2. Redistributions in binary form must reproduce the above copyright
  1273  //    notice, this list of conditions and the following disclaimer in the
  1274  //    documentation and/or other materials provided with the distribution.
  1275  // 3. All advertising materials mentioning features or use of this software
  1276  //    must display the following acknowledgement:
  1277  //	This product includes software developed by the University of
  1278  //	California, Berkeley and its contributors.
  1279  // 4. Neither the name of the University nor the names of its contributors
  1280  //    may be used to endorse or promote products derived from this software
  1281  //    without specific prior written permission.
  1282  //
  1283  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1284  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1285  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1286  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1287  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1288  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1289  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1290  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1291  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1292  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1293  // SUCH DAMAGE.
  1294  //
  1295  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  1296  
  1297  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  1298  //
  1299  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1300  //
  1301  // This file contains Original Code and/or Modifications of Original Code
  1302  // as defined in and that are subject to the Apple Public Source License
  1303  // Version 2.0 (the 'License'). You may not use this file except in
  1304  // compliance with the License. The rights granted to you under the License
  1305  // may not be used to create, or enable the creation or redistribution of,
  1306  // unlawful or unlicensed copies of an Apple operating system, or to
  1307  // circumvent, violate, or enable the circumvention or violation of, any
  1308  // terms of an Apple operating system software license agreement.
  1309  //
  1310  // Please obtain a copy of the License at
  1311  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1312  //
  1313  // The Original Code and all software distributed under the License are
  1314  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1315  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1316  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1317  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1318  // Please see the License for the specific language governing rights and
  1319  // limitations under the License.
  1320  //
  1321  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1322  
  1323  // Copyright (c) 2000-2003 Apple Computer, Inc. All rights reserved.
  1324  //
  1325  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1326  //
  1327  // This file contains Original Code and/or Modifications of Original Code
  1328  // as defined in and that are subject to the Apple Public Source License
  1329  // Version 2.0 (the 'License'). You may not use this file except in
  1330  // compliance with the License. The rights granted to you under the License
  1331  // may not be used to create, or enable the creation or redistribution of,
  1332  // unlawful or unlicensed copies of an Apple operating system, or to
  1333  // circumvent, violate, or enable the circumvention or violation of, any
  1334  // terms of an Apple operating system software license agreement.
  1335  //
  1336  // Please obtain a copy of the License at
  1337  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1338  //
  1339  // The Original Code and all software distributed under the License are
  1340  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1341  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1342  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1343  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1344  // Please see the License for the specific language governing rights and
  1345  // limitations under the License.
  1346  //
  1347  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1348  
  1349  // Type definitions; takes common type definitions that must be used
  1350  // in multiple header files due to [XSI], removes them from the system
  1351  // space, and puts them in the implementation space.
  1352  
  1353  type X__darwin_blkcnt_t = X__int64_t                    /* _types.h:55:25 */ // total blocks
  1354  type X__darwin_blksize_t = X__int32_t                   /* _types.h:56:25 */ // preferred block size
  1355  type X__darwin_dev_t = X__int32_t                       /* _types.h:57:25 */ // dev_t
  1356  type X__darwin_fsblkcnt_t = uint32                      /* _types.h:58:25 */ // Used by statvfs and fstatvfs
  1357  type X__darwin_fsfilcnt_t = uint32                      /* _types.h:59:25 */ // Used by statvfs and fstatvfs
  1358  type X__darwin_gid_t = X__uint32_t                      /* _types.h:60:25 */ // [???] process and group IDs
  1359  type X__darwin_id_t = X__uint32_t                       /* _types.h:61:25 */ // [XSI] pid_t, uid_t, or gid_t
  1360  type X__darwin_ino64_t = X__uint64_t                    /* _types.h:62:25 */ // [???] Used for 64 bit inodes
  1361  type X__darwin_ino_t = X__darwin_ino64_t                /* _types.h:64:26 */ // [???] Used for inodes
  1362  type X__darwin_mach_port_name_t = X__darwin_natural_t   /* _types.h:68:28 */ // Used by mach
  1363  type X__darwin_mach_port_t = X__darwin_mach_port_name_t /* _types.h:69:35 */ // Used by mach
  1364  type X__darwin_mode_t = X__uint16_t                     /* _types.h:70:25 */ // [???] Some file attributes
  1365  type X__darwin_off_t = X__int64_t                       /* _types.h:71:25 */ // [???] Used for file sizes
  1366  type X__darwin_pid_t = X__int32_t                       /* _types.h:72:25 */ // [???] process and group IDs
  1367  type X__darwin_sigset_t = X__uint32_t                   /* _types.h:73:25 */ // [???] signal set
  1368  type X__darwin_suseconds_t = X__int32_t                 /* _types.h:74:25 */ // [???] microseconds
  1369  type X__darwin_uid_t = X__uint32_t                      /* _types.h:75:25 */ // [???] user IDs
  1370  type X__darwin_useconds_t = X__uint32_t                 /* _types.h:76:25 */ // [???] microseconds
  1371  type X__darwin_uuid_t = [16]uint8                       /* _types.h:77:25 */
  1372  type X__darwin_uuid_string_t = [37]int8                 /* _types.h:78:17 */
  1373  
  1374  // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  1375  //
  1376  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1377  //
  1378  // This file contains Original Code and/or Modifications of Original Code
  1379  // as defined in and that are subject to the Apple Public Source License
  1380  // Version 2.0 (the 'License'). You may not use this file except in
  1381  // compliance with the License. The rights granted to you under the License
  1382  // may not be used to create, or enable the creation or redistribution of,
  1383  // unlawful or unlicensed copies of an Apple operating system, or to
  1384  // circumvent, violate, or enable the circumvention or violation of, any
  1385  // terms of an Apple operating system software license agreement.
  1386  //
  1387  // Please obtain a copy of the License at
  1388  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1389  //
  1390  // The Original Code and all software distributed under the License are
  1391  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1392  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1393  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1394  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1395  // Please see the License for the specific language governing rights and
  1396  // limitations under the License.
  1397  //
  1398  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1399  
  1400  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  1401  //
  1402  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1403  //
  1404  // This file contains Original Code and/or Modifications of Original Code
  1405  // as defined in and that are subject to the Apple Public Source License
  1406  // Version 2.0 (the 'License'). You may not use this file except in
  1407  // compliance with the License. The rights granted to you under the License
  1408  // may not be used to create, or enable the creation or redistribution of,
  1409  // unlawful or unlicensed copies of an Apple operating system, or to
  1410  // circumvent, violate, or enable the circumvention or violation of, any
  1411  // terms of an Apple operating system software license agreement.
  1412  //
  1413  // Please obtain a copy of the License at
  1414  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1415  //
  1416  // The Original Code and all software distributed under the License are
  1417  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1418  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1419  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1420  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1421  // Please see the License for the specific language governing rights and
  1422  // limitations under the License.
  1423  //
  1424  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1425  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  1426  // Copyright (c) 1991, 1993
  1427  //	The Regents of the University of California.  All rights reserved.
  1428  //
  1429  // This code is derived from software contributed to Berkeley by
  1430  // Berkeley Software Design, Inc.
  1431  //
  1432  // Redistribution and use in source and binary forms, with or without
  1433  // modification, are permitted provided that the following conditions
  1434  // are met:
  1435  // 1. Redistributions of source code must retain the above copyright
  1436  //    notice, this list of conditions and the following disclaimer.
  1437  // 2. Redistributions in binary form must reproduce the above copyright
  1438  //    notice, this list of conditions and the following disclaimer in the
  1439  //    documentation and/or other materials provided with the distribution.
  1440  // 3. All advertising materials mentioning features or use of this software
  1441  //    must display the following acknowledgement:
  1442  //	This product includes software developed by the University of
  1443  //	California, Berkeley and its contributors.
  1444  // 4. Neither the name of the University nor the names of its contributors
  1445  //    may be used to endorse or promote products derived from this software
  1446  //    without specific prior written permission.
  1447  //
  1448  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1449  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1450  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1451  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1452  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1453  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1454  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1455  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1456  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1457  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1458  // SUCH DAMAGE.
  1459  //
  1460  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  1461  
  1462  // pthread opaque structures
  1463  
  1464  type X__darwin_pthread_handler_rec = struct {
  1465  	F__routine uintptr
  1466  	F__arg     uintptr
  1467  	F__next    uintptr
  1468  } /* _pthread_types.h:57:1 */
  1469  
  1470  type X_opaque_pthread_attr_t = struct {
  1471  	F__sig    int64
  1472  	F__opaque [56]int8
  1473  } /* _pthread_types.h:63:1 */
  1474  
  1475  type X_opaque_pthread_cond_t = struct {
  1476  	F__sig    int64
  1477  	F__opaque [40]int8
  1478  } /* _pthread_types.h:68:1 */
  1479  
  1480  type X_opaque_pthread_condattr_t = struct {
  1481  	F__sig    int64
  1482  	F__opaque [8]int8
  1483  } /* _pthread_types.h:73:1 */
  1484  
  1485  type X_opaque_pthread_mutex_t = struct {
  1486  	F__sig    int64
  1487  	F__opaque [56]int8
  1488  } /* _pthread_types.h:78:1 */
  1489  
  1490  type X_opaque_pthread_mutexattr_t = struct {
  1491  	F__sig    int64
  1492  	F__opaque [8]int8
  1493  } /* _pthread_types.h:83:1 */
  1494  
  1495  type X_opaque_pthread_once_t = struct {
  1496  	F__sig    int64
  1497  	F__opaque [8]int8
  1498  } /* _pthread_types.h:88:1 */
  1499  
  1500  type X_opaque_pthread_rwlock_t = struct {
  1501  	F__sig    int64
  1502  	F__opaque [192]int8
  1503  } /* _pthread_types.h:93:1 */
  1504  
  1505  type X_opaque_pthread_rwlockattr_t = struct {
  1506  	F__sig    int64
  1507  	F__opaque [16]int8
  1508  } /* _pthread_types.h:98:1 */
  1509  
  1510  type X_opaque_pthread_t = struct {
  1511  	F__sig           int64
  1512  	F__cleanup_stack uintptr
  1513  	F__opaque        [8176]int8
  1514  } /* _pthread_types.h:103:1 */
  1515  
  1516  type X__darwin_pthread_attr_t = X_opaque_pthread_attr_t             /* _pthread_types.h:109:39 */
  1517  type X__darwin_pthread_cond_t = X_opaque_pthread_cond_t             /* _pthread_types.h:110:39 */
  1518  type X__darwin_pthread_condattr_t = X_opaque_pthread_condattr_t     /* _pthread_types.h:111:43 */
  1519  type X__darwin_pthread_key_t = uint64                               /* _pthread_types.h:112:23 */
  1520  type X__darwin_pthread_mutex_t = X_opaque_pthread_mutex_t           /* _pthread_types.h:113:40 */
  1521  type X__darwin_pthread_mutexattr_t = X_opaque_pthread_mutexattr_t   /* _pthread_types.h:114:44 */
  1522  type X__darwin_pthread_once_t = X_opaque_pthread_once_t             /* _pthread_types.h:115:39 */
  1523  type X__darwin_pthread_rwlock_t = X_opaque_pthread_rwlock_t         /* _pthread_types.h:116:41 */
  1524  type X__darwin_pthread_rwlockattr_t = X_opaque_pthread_rwlockattr_t /* _pthread_types.h:117:45 */
  1525  type X__darwin_pthread_t = uintptr                                  /* _pthread_types.h:118:34 */
  1526  
  1527  // Copyright (c) 2017 Apple Inc. All rights reserved.
  1528  //
  1529  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1530  //
  1531  // This file contains Original Code and/or Modifications of Original Code
  1532  // as defined in and that are subject to the Apple Public Source License
  1533  // Version 2.0 (the 'License'). You may not use this file except in
  1534  // compliance with the License. The rights granted to you under the License
  1535  // may not be used to create, or enable the creation or redistribution of,
  1536  // unlawful or unlicensed copies of an Apple operating system, or to
  1537  // circumvent, violate, or enable the circumvention or violation of, any
  1538  // terms of an Apple operating system software license agreement.
  1539  //
  1540  // Please obtain a copy of the License at
  1541  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1542  //
  1543  // The Original Code and all software distributed under the License are
  1544  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1545  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1546  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1547  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1548  // Please see the License for the specific language governing rights and
  1549  // limitations under the License.
  1550  //
  1551  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1552  type U_char = uint8 /* _u_char.h:30:25 */
  1553  // Copyright (c) 2017 Apple Inc. All rights reserved.
  1554  //
  1555  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1556  //
  1557  // This file contains Original Code and/or Modifications of Original Code
  1558  // as defined in and that are subject to the Apple Public Source License
  1559  // Version 2.0 (the 'License'). You may not use this file except in
  1560  // compliance with the License. The rights granted to you under the License
  1561  // may not be used to create, or enable the creation or redistribution of,
  1562  // unlawful or unlicensed copies of an Apple operating system, or to
  1563  // circumvent, violate, or enable the circumvention or violation of, any
  1564  // terms of an Apple operating system software license agreement.
  1565  //
  1566  // Please obtain a copy of the License at
  1567  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1568  //
  1569  // The Original Code and all software distributed under the License are
  1570  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1571  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1572  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1573  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1574  // Please see the License for the specific language governing rights and
  1575  // limitations under the License.
  1576  //
  1577  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1578  type U_short = uint16 /* _u_short.h:30:25 */
  1579  // Copyright (c) 2017 Apple Inc. All rights reserved.
  1580  //
  1581  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1582  //
  1583  // This file contains Original Code and/or Modifications of Original Code
  1584  // as defined in and that are subject to the Apple Public Source License
  1585  // Version 2.0 (the 'License'). You may not use this file except in
  1586  // compliance with the License. The rights granted to you under the License
  1587  // may not be used to create, or enable the creation or redistribution of,
  1588  // unlawful or unlicensed copies of an Apple operating system, or to
  1589  // circumvent, violate, or enable the circumvention or violation of, any
  1590  // terms of an Apple operating system software license agreement.
  1591  //
  1592  // Please obtain a copy of the License at
  1593  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1594  //
  1595  // The Original Code and all software distributed under the License are
  1596  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1597  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1598  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1599  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1600  // Please see the License for the specific language governing rights and
  1601  // limitations under the License.
  1602  //
  1603  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1604  type U_int = uint32  /* _u_int.h:30:25 */
  1605  type U_long = uint64 /* types.h:88:33 */
  1606  type Ushort = uint16 /* types.h:91:33 */ // Sys V compatibility
  1607  type Uint = uint32   /* types.h:92:33 */ // Sys V compatibility
  1608  
  1609  type U_quad_t = U_int64_t /* types.h:95:33 */ // quads
  1610  type Quad_t = Int64_t     /* types.h:96:33 */
  1611  type Qaddr_t = uintptr    /* types.h:97:16 */
  1612  
  1613  // Copyright (c) 2017 Apple Inc. All rights reserved.
  1614  //
  1615  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1616  //
  1617  // This file contains Original Code and/or Modifications of Original Code
  1618  // as defined in and that are subject to the Apple Public Source License
  1619  // Version 2.0 (the 'License'). You may not use this file except in
  1620  // compliance with the License. The rights granted to you under the License
  1621  // may not be used to create, or enable the creation or redistribution of,
  1622  // unlawful or unlicensed copies of an Apple operating system, or to
  1623  // circumvent, violate, or enable the circumvention or violation of, any
  1624  // terms of an Apple operating system software license agreement.
  1625  //
  1626  // Please obtain a copy of the License at
  1627  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1628  //
  1629  // The Original Code and all software distributed under the License are
  1630  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1631  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1632  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1633  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1634  // Please see the License for the specific language governing rights and
  1635  // limitations under the License.
  1636  //
  1637  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1638  type Caddr_t = uintptr /* _caddr_t.h:30:14 */
  1639  
  1640  type Daddr_t = Int32_t /* types.h:101:33 */ // disk address
  1641  
  1642  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  1643  //
  1644  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1645  //
  1646  // This file contains Original Code and/or Modifications of Original Code
  1647  // as defined in and that are subject to the Apple Public Source License
  1648  // Version 2.0 (the 'License'). You may not use this file except in
  1649  // compliance with the License. The rights granted to you under the License
  1650  // may not be used to create, or enable the creation or redistribution of,
  1651  // unlawful or unlicensed copies of an Apple operating system, or to
  1652  // circumvent, violate, or enable the circumvention or violation of, any
  1653  // terms of an Apple operating system software license agreement.
  1654  //
  1655  // Please obtain a copy of the License at
  1656  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1657  //
  1658  // The Original Code and all software distributed under the License are
  1659  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1660  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1661  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1662  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1663  // Please see the License for the specific language governing rights and
  1664  // limitations under the License.
  1665  //
  1666  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1667  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  1668  //
  1669  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1670  //
  1671  // This file contains Original Code and/or Modifications of Original Code
  1672  // as defined in and that are subject to the Apple Public Source License
  1673  // Version 2.0 (the 'License'). You may not use this file except in
  1674  // compliance with the License. The rights granted to you under the License
  1675  // may not be used to create, or enable the creation or redistribution of,
  1676  // unlawful or unlicensed copies of an Apple operating system, or to
  1677  // circumvent, violate, or enable the circumvention or violation of, any
  1678  // terms of an Apple operating system software license agreement.
  1679  //
  1680  // Please obtain a copy of the License at
  1681  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1682  //
  1683  // The Original Code and all software distributed under the License are
  1684  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1685  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1686  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1687  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1688  // Please see the License for the specific language governing rights and
  1689  // limitations under the License.
  1690  //
  1691  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1692  
  1693  type Dev_t = X__darwin_dev_t /* _dev_t.h:31:31 */ // device number
  1694  
  1695  type Fixpt_t = U_int32_t /* types.h:105:33 */ // fixed point number
  1696  
  1697  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  1698  //
  1699  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1700  //
  1701  // This file contains Original Code and/or Modifications of Original Code
  1702  // as defined in and that are subject to the Apple Public Source License
  1703  // Version 2.0 (the 'License'). You may not use this file except in
  1704  // compliance with the License. The rights granted to you under the License
  1705  // may not be used to create, or enable the creation or redistribution of,
  1706  // unlawful or unlicensed copies of an Apple operating system, or to
  1707  // circumvent, violate, or enable the circumvention or violation of, any
  1708  // terms of an Apple operating system software license agreement.
  1709  //
  1710  // Please obtain a copy of the License at
  1711  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1712  //
  1713  // The Original Code and all software distributed under the License are
  1714  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1715  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1716  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1717  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1718  // Please see the License for the specific language governing rights and
  1719  // limitations under the License.
  1720  //
  1721  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1722  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  1723  //
  1724  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1725  //
  1726  // This file contains Original Code and/or Modifications of Original Code
  1727  // as defined in and that are subject to the Apple Public Source License
  1728  // Version 2.0 (the 'License'). You may not use this file except in
  1729  // compliance with the License. The rights granted to you under the License
  1730  // may not be used to create, or enable the creation or redistribution of,
  1731  // unlawful or unlicensed copies of an Apple operating system, or to
  1732  // circumvent, violate, or enable the circumvention or violation of, any
  1733  // terms of an Apple operating system software license agreement.
  1734  //
  1735  // Please obtain a copy of the License at
  1736  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1737  //
  1738  // The Original Code and all software distributed under the License are
  1739  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1740  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1741  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1742  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1743  // Please see the License for the specific language governing rights and
  1744  // limitations under the License.
  1745  //
  1746  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1747  
  1748  type Blkcnt_t = X__darwin_blkcnt_t /* _blkcnt_t.h:31:34 */
  1749  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  1750  //
  1751  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1752  //
  1753  // This file contains Original Code and/or Modifications of Original Code
  1754  // as defined in and that are subject to the Apple Public Source License
  1755  // Version 2.0 (the 'License'). You may not use this file except in
  1756  // compliance with the License. The rights granted to you under the License
  1757  // may not be used to create, or enable the creation or redistribution of,
  1758  // unlawful or unlicensed copies of an Apple operating system, or to
  1759  // circumvent, violate, or enable the circumvention or violation of, any
  1760  // terms of an Apple operating system software license agreement.
  1761  //
  1762  // Please obtain a copy of the License at
  1763  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1764  //
  1765  // The Original Code and all software distributed under the License are
  1766  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1767  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1768  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1769  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1770  // Please see the License for the specific language governing rights and
  1771  // limitations under the License.
  1772  //
  1773  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1774  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  1775  //
  1776  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1777  //
  1778  // This file contains Original Code and/or Modifications of Original Code
  1779  // as defined in and that are subject to the Apple Public Source License
  1780  // Version 2.0 (the 'License'). You may not use this file except in
  1781  // compliance with the License. The rights granted to you under the License
  1782  // may not be used to create, or enable the creation or redistribution of,
  1783  // unlawful or unlicensed copies of an Apple operating system, or to
  1784  // circumvent, violate, or enable the circumvention or violation of, any
  1785  // terms of an Apple operating system software license agreement.
  1786  //
  1787  // Please obtain a copy of the License at
  1788  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1789  //
  1790  // The Original Code and all software distributed under the License are
  1791  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1792  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1793  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1794  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1795  // Please see the License for the specific language governing rights and
  1796  // limitations under the License.
  1797  //
  1798  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1799  
  1800  type Blksize_t = X__darwin_blksize_t /* _blksize_t.h:31:35 */
  1801  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  1802  //
  1803  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1804  //
  1805  // This file contains Original Code and/or Modifications of Original Code
  1806  // as defined in and that are subject to the Apple Public Source License
  1807  // Version 2.0 (the 'License'). You may not use this file except in
  1808  // compliance with the License. The rights granted to you under the License
  1809  // may not be used to create, or enable the creation or redistribution of,
  1810  // unlawful or unlicensed copies of an Apple operating system, or to
  1811  // circumvent, violate, or enable the circumvention or violation of, any
  1812  // terms of an Apple operating system software license agreement.
  1813  //
  1814  // Please obtain a copy of the License at
  1815  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1816  //
  1817  // The Original Code and all software distributed under the License are
  1818  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1819  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1820  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1821  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1822  // Please see the License for the specific language governing rights and
  1823  // limitations under the License.
  1824  //
  1825  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1826  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  1827  //
  1828  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1829  //
  1830  // This file contains Original Code and/or Modifications of Original Code
  1831  // as defined in and that are subject to the Apple Public Source License
  1832  // Version 2.0 (the 'License'). You may not use this file except in
  1833  // compliance with the License. The rights granted to you under the License
  1834  // may not be used to create, or enable the creation or redistribution of,
  1835  // unlawful or unlicensed copies of an Apple operating system, or to
  1836  // circumvent, violate, or enable the circumvention or violation of, any
  1837  // terms of an Apple operating system software license agreement.
  1838  //
  1839  // Please obtain a copy of the License at
  1840  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1841  //
  1842  // The Original Code and all software distributed under the License are
  1843  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1844  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1845  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1846  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1847  // Please see the License for the specific language governing rights and
  1848  // limitations under the License.
  1849  //
  1850  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1851  
  1852  type Gid_t = X__darwin_gid_t /* _gid_t.h:31:25 */
  1853  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  1854  //
  1855  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1856  //
  1857  // This file contains Original Code and/or Modifications of Original Code
  1858  // as defined in and that are subject to the Apple Public Source License
  1859  // Version 2.0 (the 'License'). You may not use this file except in
  1860  // compliance with the License. The rights granted to you under the License
  1861  // may not be used to create, or enable the creation or redistribution of,
  1862  // unlawful or unlicensed copies of an Apple operating system, or to
  1863  // circumvent, violate, or enable the circumvention or violation of, any
  1864  // terms of an Apple operating system software license agreement.
  1865  //
  1866  // Please obtain a copy of the License at
  1867  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1868  //
  1869  // The Original Code and all software distributed under the License are
  1870  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1871  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1872  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1873  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1874  // Please see the License for the specific language governing rights and
  1875  // limitations under the License.
  1876  //
  1877  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1878  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  1879  //
  1880  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1881  //
  1882  // This file contains Original Code and/or Modifications of Original Code
  1883  // as defined in and that are subject to the Apple Public Source License
  1884  // Version 2.0 (the 'License'). You may not use this file except in
  1885  // compliance with the License. The rights granted to you under the License
  1886  // may not be used to create, or enable the creation or redistribution of,
  1887  // unlawful or unlicensed copies of an Apple operating system, or to
  1888  // circumvent, violate, or enable the circumvention or violation of, any
  1889  // terms of an Apple operating system software license agreement.
  1890  //
  1891  // Please obtain a copy of the License at
  1892  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1893  //
  1894  // The Original Code and all software distributed under the License are
  1895  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1896  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1897  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1898  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1899  // Please see the License for the specific language governing rights and
  1900  // limitations under the License.
  1901  //
  1902  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1903  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  1904  type In_addr_t = X__uint32_t /* _in_addr_t.h:31:25 */ // base type for internet address
  1905  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  1906  //
  1907  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1908  //
  1909  // This file contains Original Code and/or Modifications of Original Code
  1910  // as defined in and that are subject to the Apple Public Source License
  1911  // Version 2.0 (the 'License'). You may not use this file except in
  1912  // compliance with the License. The rights granted to you under the License
  1913  // may not be used to create, or enable the creation or redistribution of,
  1914  // unlawful or unlicensed copies of an Apple operating system, or to
  1915  // circumvent, violate, or enable the circumvention or violation of, any
  1916  // terms of an Apple operating system software license agreement.
  1917  //
  1918  // Please obtain a copy of the License at
  1919  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1920  //
  1921  // The Original Code and all software distributed under the License are
  1922  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1923  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1924  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1925  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1926  // Please see the License for the specific language governing rights and
  1927  // limitations under the License.
  1928  //
  1929  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1930  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  1931  //
  1932  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1933  //
  1934  // This file contains Original Code and/or Modifications of Original Code
  1935  // as defined in and that are subject to the Apple Public Source License
  1936  // Version 2.0 (the 'License'). You may not use this file except in
  1937  // compliance with the License. The rights granted to you under the License
  1938  // may not be used to create, or enable the creation or redistribution of,
  1939  // unlawful or unlicensed copies of an Apple operating system, or to
  1940  // circumvent, violate, or enable the circumvention or violation of, any
  1941  // terms of an Apple operating system software license agreement.
  1942  //
  1943  // Please obtain a copy of the License at
  1944  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1945  //
  1946  // The Original Code and all software distributed under the License are
  1947  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1948  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1949  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1950  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1951  // Please see the License for the specific language governing rights and
  1952  // limitations under the License.
  1953  //
  1954  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1955  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  1956  type In_port_t = X__uint16_t /* _in_port_t.h:31:33 */
  1957  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  1958  //
  1959  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1960  //
  1961  // This file contains Original Code and/or Modifications of Original Code
  1962  // as defined in and that are subject to the Apple Public Source License
  1963  // Version 2.0 (the 'License'). You may not use this file except in
  1964  // compliance with the License. The rights granted to you under the License
  1965  // may not be used to create, or enable the creation or redistribution of,
  1966  // unlawful or unlicensed copies of an Apple operating system, or to
  1967  // circumvent, violate, or enable the circumvention or violation of, any
  1968  // terms of an Apple operating system software license agreement.
  1969  //
  1970  // Please obtain a copy of the License at
  1971  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1972  //
  1973  // The Original Code and all software distributed under the License are
  1974  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1975  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1976  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1977  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1978  // Please see the License for the specific language governing rights and
  1979  // limitations under the License.
  1980  //
  1981  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1982  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  1983  //
  1984  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1985  //
  1986  // This file contains Original Code and/or Modifications of Original Code
  1987  // as defined in and that are subject to the Apple Public Source License
  1988  // Version 2.0 (the 'License'). You may not use this file except in
  1989  // compliance with the License. The rights granted to you under the License
  1990  // may not be used to create, or enable the creation or redistribution of,
  1991  // unlawful or unlicensed copies of an Apple operating system, or to
  1992  // circumvent, violate, or enable the circumvention or violation of, any
  1993  // terms of an Apple operating system software license agreement.
  1994  //
  1995  // Please obtain a copy of the License at
  1996  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1997  //
  1998  // The Original Code and all software distributed under the License are
  1999  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2000  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2001  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2002  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2003  // Please see the License for the specific language governing rights and
  2004  // limitations under the License.
  2005  //
  2006  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2007  
  2008  type Ino_t = X__darwin_ino_t /* _ino_t.h:31:33 */ // inode number
  2009  
  2010  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2011  //
  2012  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2013  //
  2014  // This file contains Original Code and/or Modifications of Original Code
  2015  // as defined in and that are subject to the Apple Public Source License
  2016  // Version 2.0 (the 'License'). You may not use this file except in
  2017  // compliance with the License. The rights granted to you under the License
  2018  // may not be used to create, or enable the creation or redistribution of,
  2019  // unlawful or unlicensed copies of an Apple operating system, or to
  2020  // circumvent, violate, or enable the circumvention or violation of, any
  2021  // terms of an Apple operating system software license agreement.
  2022  //
  2023  // Please obtain a copy of the License at
  2024  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2025  //
  2026  // The Original Code and all software distributed under the License are
  2027  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2028  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2029  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2030  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2031  // Please see the License for the specific language governing rights and
  2032  // limitations under the License.
  2033  //
  2034  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2035  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  2036  //
  2037  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2038  //
  2039  // This file contains Original Code and/or Modifications of Original Code
  2040  // as defined in and that are subject to the Apple Public Source License
  2041  // Version 2.0 (the 'License'). You may not use this file except in
  2042  // compliance with the License. The rights granted to you under the License
  2043  // may not be used to create, or enable the creation or redistribution of,
  2044  // unlawful or unlicensed copies of an Apple operating system, or to
  2045  // circumvent, violate, or enable the circumvention or violation of, any
  2046  // terms of an Apple operating system software license agreement.
  2047  //
  2048  // Please obtain a copy of the License at
  2049  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2050  //
  2051  // The Original Code and all software distributed under the License are
  2052  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2053  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2054  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2055  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2056  // Please see the License for the specific language governing rights and
  2057  // limitations under the License.
  2058  //
  2059  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2060  
  2061  type Ino64_t = X__darwin_ino64_t /* _ino64_t.h:31:33 */ // 64bit inode number
  2062  
  2063  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2064  //
  2065  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2066  //
  2067  // This file contains Original Code and/or Modifications of Original Code
  2068  // as defined in and that are subject to the Apple Public Source License
  2069  // Version 2.0 (the 'License'). You may not use this file except in
  2070  // compliance with the License. The rights granted to you under the License
  2071  // may not be used to create, or enable the creation or redistribution of,
  2072  // unlawful or unlicensed copies of an Apple operating system, or to
  2073  // circumvent, violate, or enable the circumvention or violation of, any
  2074  // terms of an Apple operating system software license agreement.
  2075  //
  2076  // Please obtain a copy of the License at
  2077  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2078  //
  2079  // The Original Code and all software distributed under the License are
  2080  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2081  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2082  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2083  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2084  // Please see the License for the specific language governing rights and
  2085  // limitations under the License.
  2086  //
  2087  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2088  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  2089  //
  2090  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2091  //
  2092  // This file contains Original Code and/or Modifications of Original Code
  2093  // as defined in and that are subject to the Apple Public Source License
  2094  // Version 2.0 (the 'License'). You may not use this file except in
  2095  // compliance with the License. The rights granted to you under the License
  2096  // may not be used to create, or enable the creation or redistribution of,
  2097  // unlawful or unlicensed copies of an Apple operating system, or to
  2098  // circumvent, violate, or enable the circumvention or violation of, any
  2099  // terms of an Apple operating system software license agreement.
  2100  //
  2101  // Please obtain a copy of the License at
  2102  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2103  //
  2104  // The Original Code and all software distributed under the License are
  2105  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2106  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2107  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2108  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2109  // Please see the License for the specific language governing rights and
  2110  // limitations under the License.
  2111  //
  2112  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2113  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  2114  type Key_t = X__int32_t /* _key_t.h:31:26 */ // IPC key (for Sys V IPC)
  2115  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2116  //
  2117  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2118  //
  2119  // This file contains Original Code and/or Modifications of Original Code
  2120  // as defined in and that are subject to the Apple Public Source License
  2121  // Version 2.0 (the 'License'). You may not use this file except in
  2122  // compliance with the License. The rights granted to you under the License
  2123  // may not be used to create, or enable the creation or redistribution of,
  2124  // unlawful or unlicensed copies of an Apple operating system, or to
  2125  // circumvent, violate, or enable the circumvention or violation of, any
  2126  // terms of an Apple operating system software license agreement.
  2127  //
  2128  // Please obtain a copy of the License at
  2129  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2130  //
  2131  // The Original Code and all software distributed under the License are
  2132  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2133  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2134  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2135  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2136  // Please see the License for the specific language governing rights and
  2137  // limitations under the License.
  2138  //
  2139  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2140  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  2141  //
  2142  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2143  //
  2144  // This file contains Original Code and/or Modifications of Original Code
  2145  // as defined in and that are subject to the Apple Public Source License
  2146  // Version 2.0 (the 'License'). You may not use this file except in
  2147  // compliance with the License. The rights granted to you under the License
  2148  // may not be used to create, or enable the creation or redistribution of,
  2149  // unlawful or unlicensed copies of an Apple operating system, or to
  2150  // circumvent, violate, or enable the circumvention or violation of, any
  2151  // terms of an Apple operating system software license agreement.
  2152  //
  2153  // Please obtain a copy of the License at
  2154  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2155  //
  2156  // The Original Code and all software distributed under the License are
  2157  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2158  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2159  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2160  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2161  // Please see the License for the specific language governing rights and
  2162  // limitations under the License.
  2163  //
  2164  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2165  
  2166  type Mode_t = X__darwin_mode_t /* _mode_t.h:31:33 */
  2167  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2168  //
  2169  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2170  //
  2171  // This file contains Original Code and/or Modifications of Original Code
  2172  // as defined in and that are subject to the Apple Public Source License
  2173  // Version 2.0 (the 'License'). You may not use this file except in
  2174  // compliance with the License. The rights granted to you under the License
  2175  // may not be used to create, or enable the creation or redistribution of,
  2176  // unlawful or unlicensed copies of an Apple operating system, or to
  2177  // circumvent, violate, or enable the circumvention or violation of, any
  2178  // terms of an Apple operating system software license agreement.
  2179  //
  2180  // Please obtain a copy of the License at
  2181  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2182  //
  2183  // The Original Code and all software distributed under the License are
  2184  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2185  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2186  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2187  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2188  // Please see the License for the specific language governing rights and
  2189  // limitations under the License.
  2190  //
  2191  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2192  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  2193  //
  2194  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2195  //
  2196  // This file contains Original Code and/or Modifications of Original Code
  2197  // as defined in and that are subject to the Apple Public Source License
  2198  // Version 2.0 (the 'License'). You may not use this file except in
  2199  // compliance with the License. The rights granted to you under the License
  2200  // may not be used to create, or enable the creation or redistribution of,
  2201  // unlawful or unlicensed copies of an Apple operating system, or to
  2202  // circumvent, violate, or enable the circumvention or violation of, any
  2203  // terms of an Apple operating system software license agreement.
  2204  //
  2205  // Please obtain a copy of the License at
  2206  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2207  //
  2208  // The Original Code and all software distributed under the License are
  2209  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2210  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2211  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2212  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2213  // Please see the License for the specific language governing rights and
  2214  // limitations under the License.
  2215  //
  2216  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2217  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  2218  type Nlink_t = X__uint16_t /* _nlink_t.h:31:27 */ // link count
  2219  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2220  //
  2221  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2222  //
  2223  // This file contains Original Code and/or Modifications of Original Code
  2224  // as defined in and that are subject to the Apple Public Source License
  2225  // Version 2.0 (the 'License'). You may not use this file except in
  2226  // compliance with the License. The rights granted to you under the License
  2227  // may not be used to create, or enable the creation or redistribution of,
  2228  // unlawful or unlicensed copies of an Apple operating system, or to
  2229  // circumvent, violate, or enable the circumvention or violation of, any
  2230  // terms of an Apple operating system software license agreement.
  2231  //
  2232  // Please obtain a copy of the License at
  2233  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2234  //
  2235  // The Original Code and all software distributed under the License are
  2236  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2237  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2238  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2239  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2240  // Please see the License for the specific language governing rights and
  2241  // limitations under the License.
  2242  //
  2243  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2244  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  2245  //
  2246  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2247  //
  2248  // This file contains Original Code and/or Modifications of Original Code
  2249  // as defined in and that are subject to the Apple Public Source License
  2250  // Version 2.0 (the 'License'). You may not use this file except in
  2251  // compliance with the License. The rights granted to you under the License
  2252  // may not be used to create, or enable the creation or redistribution of,
  2253  // unlawful or unlicensed copies of an Apple operating system, or to
  2254  // circumvent, violate, or enable the circumvention or violation of, any
  2255  // terms of an Apple operating system software license agreement.
  2256  //
  2257  // Please obtain a copy of the License at
  2258  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2259  //
  2260  // The Original Code and all software distributed under the License are
  2261  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2262  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2263  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2264  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2265  // Please see the License for the specific language governing rights and
  2266  // limitations under the License.
  2267  //
  2268  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2269  
  2270  type Id_t = X__darwin_id_t /* _id_t.h:31:25 */ // can hold pid_t, gid_t, or uid_t
  2271  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2272  //
  2273  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2274  //
  2275  // This file contains Original Code and/or Modifications of Original Code
  2276  // as defined in and that are subject to the Apple Public Source License
  2277  // Version 2.0 (the 'License'). You may not use this file except in
  2278  // compliance with the License. The rights granted to you under the License
  2279  // may not be used to create, or enable the creation or redistribution of,
  2280  // unlawful or unlicensed copies of an Apple operating system, or to
  2281  // circumvent, violate, or enable the circumvention or violation of, any
  2282  // terms of an Apple operating system software license agreement.
  2283  //
  2284  // Please obtain a copy of the License at
  2285  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2286  //
  2287  // The Original Code and all software distributed under the License are
  2288  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2289  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2290  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2291  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2292  // Please see the License for the specific language governing rights and
  2293  // limitations under the License.
  2294  //
  2295  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2296  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  2297  //
  2298  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2299  //
  2300  // This file contains Original Code and/or Modifications of Original Code
  2301  // as defined in and that are subject to the Apple Public Source License
  2302  // Version 2.0 (the 'License'). You may not use this file except in
  2303  // compliance with the License. The rights granted to you under the License
  2304  // may not be used to create, or enable the creation or redistribution of,
  2305  // unlawful or unlicensed copies of an Apple operating system, or to
  2306  // circumvent, violate, or enable the circumvention or violation of, any
  2307  // terms of an Apple operating system software license agreement.
  2308  //
  2309  // Please obtain a copy of the License at
  2310  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2311  //
  2312  // The Original Code and all software distributed under the License are
  2313  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2314  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2315  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2316  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2317  // Please see the License for the specific language governing rights and
  2318  // limitations under the License.
  2319  //
  2320  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2321  
  2322  type Pid_t = X__darwin_pid_t /* _pid_t.h:31:31 */
  2323  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2324  //
  2325  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2326  //
  2327  // This file contains Original Code and/or Modifications of Original Code
  2328  // as defined in and that are subject to the Apple Public Source License
  2329  // Version 2.0 (the 'License'). You may not use this file except in
  2330  // compliance with the License. The rights granted to you under the License
  2331  // may not be used to create, or enable the creation or redistribution of,
  2332  // unlawful or unlicensed copies of an Apple operating system, or to
  2333  // circumvent, violate, or enable the circumvention or violation of, any
  2334  // terms of an Apple operating system software license agreement.
  2335  //
  2336  // Please obtain a copy of the License at
  2337  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2338  //
  2339  // The Original Code and all software distributed under the License are
  2340  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2341  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2342  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2343  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2344  // Please see the License for the specific language governing rights and
  2345  // limitations under the License.
  2346  //
  2347  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2348  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  2349  //
  2350  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2351  //
  2352  // This file contains Original Code and/or Modifications of Original Code
  2353  // as defined in and that are subject to the Apple Public Source License
  2354  // Version 2.0 (the 'License'). You may not use this file except in
  2355  // compliance with the License. The rights granted to you under the License
  2356  // may not be used to create, or enable the creation or redistribution of,
  2357  // unlawful or unlicensed copies of an Apple operating system, or to
  2358  // circumvent, violate, or enable the circumvention or violation of, any
  2359  // terms of an Apple operating system software license agreement.
  2360  //
  2361  // Please obtain a copy of the License at
  2362  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2363  //
  2364  // The Original Code and all software distributed under the License are
  2365  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2366  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2367  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2368  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2369  // Please see the License for the specific language governing rights and
  2370  // limitations under the License.
  2371  //
  2372  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2373  
  2374  type Off_t = X__darwin_off_t /* _off_t.h:31:33 */
  2375  
  2376  type Segsz_t = Int32_t /* types.h:125:33 */ // segment size
  2377  type Swblk_t = Int32_t /* types.h:126:33 */ // swap offset
  2378  
  2379  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2380  //
  2381  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2382  //
  2383  // This file contains Original Code and/or Modifications of Original Code
  2384  // as defined in and that are subject to the Apple Public Source License
  2385  // Version 2.0 (the 'License'). You may not use this file except in
  2386  // compliance with the License. The rights granted to you under the License
  2387  // may not be used to create, or enable the creation or redistribution of,
  2388  // unlawful or unlicensed copies of an Apple operating system, or to
  2389  // circumvent, violate, or enable the circumvention or violation of, any
  2390  // terms of an Apple operating system software license agreement.
  2391  //
  2392  // Please obtain a copy of the License at
  2393  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2394  //
  2395  // The Original Code and all software distributed under the License are
  2396  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2397  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2398  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2399  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2400  // Please see the License for the specific language governing rights and
  2401  // limitations under the License.
  2402  //
  2403  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2404  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  2405  //
  2406  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2407  //
  2408  // This file contains Original Code and/or Modifications of Original Code
  2409  // as defined in and that are subject to the Apple Public Source License
  2410  // Version 2.0 (the 'License'). You may not use this file except in
  2411  // compliance with the License. The rights granted to you under the License
  2412  // may not be used to create, or enable the creation or redistribution of,
  2413  // unlawful or unlicensed copies of an Apple operating system, or to
  2414  // circumvent, violate, or enable the circumvention or violation of, any
  2415  // terms of an Apple operating system software license agreement.
  2416  //
  2417  // Please obtain a copy of the License at
  2418  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2419  //
  2420  // The Original Code and all software distributed under the License are
  2421  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2422  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2423  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2424  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2425  // Please see the License for the specific language governing rights and
  2426  // limitations under the License.
  2427  //
  2428  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2429  
  2430  type Uid_t = X__darwin_uid_t /* _uid_t.h:31:31 */
  2431  
  2432  // Major, minor numbers, dev_t's.
  2433  
  2434  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2435  //
  2436  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2437  //
  2438  // This file contains Original Code and/or Modifications of Original Code
  2439  // as defined in and that are subject to the Apple Public Source License
  2440  // Version 2.0 (the 'License'). You may not use this file except in
  2441  // compliance with the License. The rights granted to you under the License
  2442  // may not be used to create, or enable the creation or redistribution of,
  2443  // unlawful or unlicensed copies of an Apple operating system, or to
  2444  // circumvent, violate, or enable the circumvention or violation of, any
  2445  // terms of an Apple operating system software license agreement.
  2446  //
  2447  // Please obtain a copy of the License at
  2448  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2449  //
  2450  // The Original Code and all software distributed under the License are
  2451  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2452  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2453  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2454  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2455  // Please see the License for the specific language governing rights and
  2456  // limitations under the License.
  2457  //
  2458  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2459  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  2460  //
  2461  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2462  //
  2463  // This file contains Original Code and/or Modifications of Original Code
  2464  // as defined in and that are subject to the Apple Public Source License
  2465  // Version 2.0 (the 'License'). You may not use this file except in
  2466  // compliance with the License. The rights granted to you under the License
  2467  // may not be used to create, or enable the creation or redistribution of,
  2468  // unlawful or unlicensed copies of an Apple operating system, or to
  2469  // circumvent, violate, or enable the circumvention or violation of, any
  2470  // terms of an Apple operating system software license agreement.
  2471  //
  2472  // Please obtain a copy of the License at
  2473  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2474  //
  2475  // The Original Code and all software distributed under the License are
  2476  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2477  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2478  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2479  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2480  // Please see the License for the specific language governing rights and
  2481  // limitations under the License.
  2482  //
  2483  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2484  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  2485  type Clock_t = X__darwin_clock_t /* _clock_t.h:31:33 */
  2486  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2487  //
  2488  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2489  //
  2490  // This file contains Original Code and/or Modifications of Original Code
  2491  // as defined in and that are subject to the Apple Public Source License
  2492  // Version 2.0 (the 'License'). You may not use this file except in
  2493  // compliance with the License. The rights granted to you under the License
  2494  // may not be used to create, or enable the creation or redistribution of,
  2495  // unlawful or unlicensed copies of an Apple operating system, or to
  2496  // circumvent, violate, or enable the circumvention or violation of, any
  2497  // terms of an Apple operating system software license agreement.
  2498  //
  2499  // Please obtain a copy of the License at
  2500  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2501  //
  2502  // The Original Code and all software distributed under the License are
  2503  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2504  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2505  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2506  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2507  // Please see the License for the specific language governing rights and
  2508  // limitations under the License.
  2509  //
  2510  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2511  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  2512  //
  2513  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2514  //
  2515  // This file contains Original Code and/or Modifications of Original Code
  2516  // as defined in and that are subject to the Apple Public Source License
  2517  // Version 2.0 (the 'License'). You may not use this file except in
  2518  // compliance with the License. The rights granted to you under the License
  2519  // may not be used to create, or enable the creation or redistribution of,
  2520  // unlawful or unlicensed copies of an Apple operating system, or to
  2521  // circumvent, violate, or enable the circumvention or violation of, any
  2522  // terms of an Apple operating system software license agreement.
  2523  //
  2524  // Please obtain a copy of the License at
  2525  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2526  //
  2527  // The Original Code and all software distributed under the License are
  2528  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2529  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2530  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2531  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2532  // Please see the License for the specific language governing rights and
  2533  // limitations under the License.
  2534  //
  2535  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2536  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  2537  type Ssize_t = X__darwin_ssize_t /* _ssize_t.h:31:33 */
  2538  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2539  //
  2540  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2541  //
  2542  // This file contains Original Code and/or Modifications of Original Code
  2543  // as defined in and that are subject to the Apple Public Source License
  2544  // Version 2.0 (the 'License'). You may not use this file except in
  2545  // compliance with the License. The rights granted to you under the License
  2546  // may not be used to create, or enable the creation or redistribution of,
  2547  // unlawful or unlicensed copies of an Apple operating system, or to
  2548  // circumvent, violate, or enable the circumvention or violation of, any
  2549  // terms of an Apple operating system software license agreement.
  2550  //
  2551  // Please obtain a copy of the License at
  2552  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2553  //
  2554  // The Original Code and all software distributed under the License are
  2555  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2556  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2557  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2558  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2559  // Please see the License for the specific language governing rights and
  2560  // limitations under the License.
  2561  //
  2562  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2563  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  2564  //
  2565  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2566  //
  2567  // This file contains Original Code and/or Modifications of Original Code
  2568  // as defined in and that are subject to the Apple Public Source License
  2569  // Version 2.0 (the 'License'). You may not use this file except in
  2570  // compliance with the License. The rights granted to you under the License
  2571  // may not be used to create, or enable the creation or redistribution of,
  2572  // unlawful or unlicensed copies of an Apple operating system, or to
  2573  // circumvent, violate, or enable the circumvention or violation of, any
  2574  // terms of an Apple operating system software license agreement.
  2575  //
  2576  // Please obtain a copy of the License at
  2577  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2578  //
  2579  // The Original Code and all software distributed under the License are
  2580  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2581  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2582  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2583  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2584  // Please see the License for the specific language governing rights and
  2585  // limitations under the License.
  2586  //
  2587  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2588  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  2589  type Time_t = X__darwin_time_t /* _time_t.h:31:33 */
  2590  
  2591  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2592  //
  2593  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2594  //
  2595  // This file contains Original Code and/or Modifications of Original Code
  2596  // as defined in and that are subject to the Apple Public Source License
  2597  // Version 2.0 (the 'License'). You may not use this file except in
  2598  // compliance with the License. The rights granted to you under the License
  2599  // may not be used to create, or enable the creation or redistribution of,
  2600  // unlawful or unlicensed copies of an Apple operating system, or to
  2601  // circumvent, violate, or enable the circumvention or violation of, any
  2602  // terms of an Apple operating system software license agreement.
  2603  //
  2604  // Please obtain a copy of the License at
  2605  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2606  //
  2607  // The Original Code and all software distributed under the License are
  2608  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2609  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2610  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2611  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2612  // Please see the License for the specific language governing rights and
  2613  // limitations under the License.
  2614  //
  2615  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2616  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  2617  //
  2618  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2619  //
  2620  // This file contains Original Code and/or Modifications of Original Code
  2621  // as defined in and that are subject to the Apple Public Source License
  2622  // Version 2.0 (the 'License'). You may not use this file except in
  2623  // compliance with the License. The rights granted to you under the License
  2624  // may not be used to create, or enable the creation or redistribution of,
  2625  // unlawful or unlicensed copies of an Apple operating system, or to
  2626  // circumvent, violate, or enable the circumvention or violation of, any
  2627  // terms of an Apple operating system software license agreement.
  2628  //
  2629  // Please obtain a copy of the License at
  2630  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2631  //
  2632  // The Original Code and all software distributed under the License are
  2633  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2634  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2635  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2636  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2637  // Please see the License for the specific language governing rights and
  2638  // limitations under the License.
  2639  //
  2640  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2641  
  2642  type Useconds_t = X__darwin_useconds_t /* _useconds_t.h:31:33 */
  2643  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2644  //
  2645  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2646  //
  2647  // This file contains Original Code and/or Modifications of Original Code
  2648  // as defined in and that are subject to the Apple Public Source License
  2649  // Version 2.0 (the 'License'). You may not use this file except in
  2650  // compliance with the License. The rights granted to you under the License
  2651  // may not be used to create, or enable the creation or redistribution of,
  2652  // unlawful or unlicensed copies of an Apple operating system, or to
  2653  // circumvent, violate, or enable the circumvention or violation of, any
  2654  // terms of an Apple operating system software license agreement.
  2655  //
  2656  // Please obtain a copy of the License at
  2657  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2658  //
  2659  // The Original Code and all software distributed under the License are
  2660  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2661  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2662  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2663  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2664  // Please see the License for the specific language governing rights and
  2665  // limitations under the License.
  2666  //
  2667  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2668  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  2669  //
  2670  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2671  //
  2672  // This file contains Original Code and/or Modifications of Original Code
  2673  // as defined in and that are subject to the Apple Public Source License
  2674  // Version 2.0 (the 'License'). You may not use this file except in
  2675  // compliance with the License. The rights granted to you under the License
  2676  // may not be used to create, or enable the creation or redistribution of,
  2677  // unlawful or unlicensed copies of an Apple operating system, or to
  2678  // circumvent, violate, or enable the circumvention or violation of, any
  2679  // terms of an Apple operating system software license agreement.
  2680  //
  2681  // Please obtain a copy of the License at
  2682  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2683  //
  2684  // The Original Code and all software distributed under the License are
  2685  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2686  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2687  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2688  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2689  // Please see the License for the specific language governing rights and
  2690  // limitations under the License.
  2691  //
  2692  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2693  
  2694  type Suseconds_t = X__darwin_suseconds_t /* _suseconds_t.h:31:33 */
  2695  
  2696  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2697  //
  2698  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2699  //
  2700  // This file contains Original Code and/or Modifications of Original Code
  2701  // as defined in and that are subject to the Apple Public Source License
  2702  // Version 2.0 (the 'License'). You may not use this file except in
  2703  // compliance with the License. The rights granted to you under the License
  2704  // may not be used to create, or enable the creation or redistribution of,
  2705  // unlawful or unlicensed copies of an Apple operating system, or to
  2706  // circumvent, violate, or enable the circumvention or violation of, any
  2707  // terms of an Apple operating system software license agreement.
  2708  //
  2709  // Please obtain a copy of the License at
  2710  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2711  //
  2712  // The Original Code and all software distributed under the License are
  2713  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2714  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2715  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2716  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2717  // Please see the License for the specific language governing rights and
  2718  // limitations under the License.
  2719  //
  2720  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2721  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  2722  //
  2723  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2724  //
  2725  // This file contains Original Code and/or Modifications of Original Code
  2726  // as defined in and that are subject to the Apple Public Source License
  2727  // Version 2.0 (the 'License'). You may not use this file except in
  2728  // compliance with the License. The rights granted to you under the License
  2729  // may not be used to create, or enable the creation or redistribution of,
  2730  // unlawful or unlicensed copies of an Apple operating system, or to
  2731  // circumvent, violate, or enable the circumvention or violation of, any
  2732  // terms of an Apple operating system software license agreement.
  2733  //
  2734  // Please obtain a copy of the License at
  2735  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2736  //
  2737  // The Original Code and all software distributed under the License are
  2738  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2739  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2740  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2741  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2742  // Please see the License for the specific language governing rights and
  2743  // limitations under the License.
  2744  //
  2745  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2746  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  2747  type Rsize_t = X__darwin_size_t /* _rsize_t.h:31:32 */
  2748  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2749  //
  2750  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2751  //
  2752  // This file contains Original Code and/or Modifications of Original Code
  2753  // as defined in and that are subject to the Apple Public Source License
  2754  // Version 2.0 (the 'License'). You may not use this file except in
  2755  // compliance with the License. The rights granted to you under the License
  2756  // may not be used to create, or enable the creation or redistribution of,
  2757  // unlawful or unlicensed copies of an Apple operating system, or to
  2758  // circumvent, violate, or enable the circumvention or violation of, any
  2759  // terms of an Apple operating system software license agreement.
  2760  //
  2761  // Please obtain a copy of the License at
  2762  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2763  //
  2764  // The Original Code and all software distributed under the License are
  2765  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2766  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2767  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2768  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2769  // Please see the License for the specific language governing rights and
  2770  // limitations under the License.
  2771  //
  2772  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2773  type Errno_t = int32 /* _errno_t.h:30:32 */
  2774  
  2775  // This code is present here in order to maintain historical backward
  2776  // compatability, and is intended to be removed at some point in the
  2777  // future; please include <sys/select.h> instead.
  2778  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2779  //
  2780  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2781  //
  2782  // This file contains Original Code and/or Modifications of Original Code
  2783  // as defined in and that are subject to the Apple Public Source License
  2784  // Version 2.0 (the 'License'). You may not use this file except in
  2785  // compliance with the License. The rights granted to you under the License
  2786  // may not be used to create, or enable the creation or redistribution of,
  2787  // unlawful or unlicensed copies of an Apple operating system, or to
  2788  // circumvent, violate, or enable the circumvention or violation of, any
  2789  // terms of an Apple operating system software license agreement.
  2790  //
  2791  // Please obtain a copy of the License at
  2792  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2793  //
  2794  // The Original Code and all software distributed under the License are
  2795  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2796  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2797  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2798  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2799  // Please see the License for the specific language governing rights and
  2800  // limitations under the License.
  2801  //
  2802  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2803  
  2804  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  2805  //
  2806  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2807  //
  2808  // This file contains Original Code and/or Modifications of Original Code
  2809  // as defined in and that are subject to the Apple Public Source License
  2810  // Version 2.0 (the 'License'). You may not use this file except in
  2811  // compliance with the License. The rights granted to you under the License
  2812  // may not be used to create, or enable the creation or redistribution of,
  2813  // unlawful or unlicensed copies of an Apple operating system, or to
  2814  // circumvent, violate, or enable the circumvention or violation of, any
  2815  // terms of an Apple operating system software license agreement.
  2816  //
  2817  // Please obtain a copy of the License at
  2818  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2819  //
  2820  // The Original Code and all software distributed under the License are
  2821  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2822  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2823  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2824  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2825  // Please see the License for the specific language governing rights and
  2826  // limitations under the License.
  2827  //
  2828  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2829  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  2830  // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  2831  //
  2832  // @APPLE_LICENSE_HEADER_START@
  2833  //
  2834  // This file contains Original Code and/or Modifications of Original Code
  2835  // as defined in and that are subject to the Apple Public Source License
  2836  // Version 2.0 (the 'License'). You may not use this file except in
  2837  // compliance with the License. Please obtain a copy of the License at
  2838  // http://www.opensource.apple.com/apsl/ and read it before using this
  2839  // file.
  2840  //
  2841  // The Original Code and all software distributed under the License are
  2842  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2843  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2844  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2845  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2846  // Please see the License for the specific language governing rights and
  2847  // limitations under the License.
  2848  //
  2849  // @APPLE_LICENSE_HEADER_END@
  2850  
  2851  //
  2852  //     These macros are for use in OS header files. They enable function prototypes
  2853  //     and Objective-C methods to be tagged with the OS version in which they
  2854  //     were first available; and, if applicable, the OS version in which they
  2855  //     became deprecated.
  2856  //
  2857  //     The desktop Mac OS X and iOS each have different version numbers.
  2858  //     The __OSX_AVAILABLE_STARTING() macro allows you to specify both the desktop
  2859  //     and iOS version numbers.  For instance:
  2860  //         __OSX_AVAILABLE_STARTING(__MAC_10_2,__IPHONE_2_0)
  2861  //     means the function/method was first available on Mac OS X 10.2 on the desktop
  2862  //     and first available in iOS 2.0 on the iPhone.
  2863  //
  2864  //     If a function is available on one platform, but not the other a _NA (not
  2865  //     applicable) parameter is used.  For instance:
  2866  //             __OSX_AVAILABLE_STARTING(__MAC_10_3,__IPHONE_NA)
  2867  //     means that the function/method was first available on Mac OS X 10.3, and it
  2868  //     currently not implemented on the iPhone.
  2869  //
  2870  //     At some point, a function/method may be deprecated.  That means Apple
  2871  //     recommends applications stop using the function, either because there is a
  2872  //     better replacement or the functionality is being phased out.  Deprecated
  2873  //     functions/methods can be tagged with a __OSX_AVAILABLE_BUT_DEPRECATED()
  2874  //     macro which specifies the OS version where the function became available
  2875  //     as well as the OS version in which it became deprecated.  For instance:
  2876  //         __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0,__MAC_10_5,__IPHONE_NA,__IPHONE_NA)
  2877  //     means that the function/method was introduced in Mac OS X 10.0, then
  2878  //     became deprecated beginning in Mac OS X 10.5.  On iOS the function
  2879  //     has never been available.
  2880  //
  2881  //     For these macros to function properly, a program must specify the OS version range
  2882  //     it is targeting.  The min OS version is specified as an option to the compiler:
  2883  //     -mmacosx-version-min=10.x when building for Mac OS X, and -miphoneos-version-min=y.z
  2884  //     when building for the iPhone.  The upper bound for the OS version is rarely needed,
  2885  //     but it can be set on the command line via: -D__MAC_OS_X_VERSION_MAX_ALLOWED=10x0 for
  2886  //     Mac OS X and __IPHONE_OS_VERSION_MAX_ALLOWED = y0z00 for iOS.
  2887  //
  2888  //     Examples:
  2889  //
  2890  //         A function available in Mac OS X 10.5 and later, but not on the phone:
  2891  //
  2892  //             extern void mymacfunc() __OSX_AVAILABLE_STARTING(__MAC_10_5,__IPHONE_NA);
  2893  //
  2894  //
  2895  //         An Objective-C method in Mac OS X 10.5 and later, but not on the phone:
  2896  //
  2897  //             @interface MyClass : NSObject
  2898  //             -(void) mymacmethod __OSX_AVAILABLE_STARTING(__MAC_10_5,__IPHONE_NA);
  2899  //             @end
  2900  //
  2901  //
  2902  //         An enum available on the phone, but not available on Mac OS X:
  2903  //
  2904  //             #if __IPHONE_OS_VERSION_MIN_REQUIRED
  2905  //                 enum { myEnum = 1 };
  2906  //             #endif
  2907  //            Note: this works when targeting the Mac OS X platform because
  2908  //            __IPHONE_OS_VERSION_MIN_REQUIRED is undefined which evaluates to zero.
  2909  //
  2910  //
  2911  //         An enum with values added in different iPhoneOS versions:
  2912  //
  2913  // 			enum {
  2914  // 			    myX  = 1,	// Usable on iPhoneOS 2.1 and later
  2915  // 			    myY  = 2,	// Usable on iPhoneOS 3.0 and later
  2916  // 			    myZ  = 3,	// Usable on iPhoneOS 3.0 and later
  2917  // 				...
  2918  // 		      Note: you do not want to use #if with enumeration values
  2919  // 			  when a client needs to see all values at compile time
  2920  // 			  and use runtime logic to only use the viable values.
  2921  //
  2922  //
  2923  //     It is also possible to use the *_VERSION_MIN_REQUIRED in source code to make one
  2924  //     source base that can be compiled to target a range of OS versions.  It is best
  2925  //     to not use the _MAC_* and __IPHONE_* macros for comparisons, but rather their values.
  2926  //     That is because you might get compiled on an old OS that does not define a later
  2927  //     OS version macro, and in the C preprocessor undefined values evaluate to zero
  2928  //     in expresssions, which could cause the #if expression to evaluate in an unexpected
  2929  //     way.
  2930  //
  2931  //         #ifdef __MAC_OS_X_VERSION_MIN_REQUIRED
  2932  //             // code only compiled when targeting Mac OS X and not iPhone
  2933  //             // note use of 1050 instead of __MAC_10_5
  2934  //             #if __MAC_OS_X_VERSION_MIN_REQUIRED < 1050
  2935  //                 // code in here might run on pre-Leopard OS
  2936  //             #else
  2937  //                 // code here can assume Leopard or later
  2938  //             #endif
  2939  //         #endif
  2940  //
  2941  //
  2942  
  2943  // __API_TO_BE_DEPRECATED is used as a version number in API that will be deprecated
  2944  // in an upcoming release. This soft deprecation is an intermediate step before formal
  2945  // deprecation to notify developers about the API before compiler warnings are generated.
  2946  // You can find all places in your code that use soft deprecated API by redefining the
  2947  // value of this macro to your current minimum deployment target, for example:
  2948  // (macOS)
  2949  //   clang -D__API_TO_BE_DEPRECATED=10.12 <other compiler flags>
  2950  // (iOS)
  2951  //   clang -D__API_TO_BE_DEPRECATED=11.0 <other compiler flags>
  2952  
  2953  // __MAC_NA is not defined to a value but is uses as a token by macros to indicate that the API is unavailable
  2954  
  2955  // __IPHONE_NA is not defined to a value but is uses as a token by macros to indicate that the API is unavailable
  2956  
  2957  // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  2958  //
  2959  // @APPLE_LICENSE_HEADER_START@
  2960  //
  2961  // This file contains Original Code and/or Modifications of Original Code
  2962  // as defined in and that are subject to the Apple Public Source License
  2963  // Version 2.0 (the 'License'). You may not use this file except in
  2964  // compliance with the License. Please obtain a copy of the License at
  2965  // http://www.opensource.apple.com/apsl/ and read it before using this
  2966  // file.
  2967  //
  2968  // The Original Code and all software distributed under the License are
  2969  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2970  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2971  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2972  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2973  // Please see the License for the specific language governing rights and
  2974  // limitations under the License.
  2975  //
  2976  // @APPLE_LICENSE_HEADER_END@
  2977  
  2978  //
  2979  //     File:       AvailabilityInternal.h
  2980  //
  2981  //     Contains:   implementation details of __OSX_AVAILABLE_* macros from <Availability.h>
  2982  //
  2983  
  2984  // compiler for Mac OS X sets __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__
  2985  
  2986  // make sure a default max version is set
  2987  
  2988  //
  2989  //  Macros for defining which versions/platform a given symbol can be used.
  2990  //
  2991  //  @see http://clang.llvm.org/docs/AttributeReference.html#availability
  2992  //
  2993  
  2994  // Evaluate to nothing for compilers that don't support availability.
  2995  
  2996  // Swift compiler version
  2997  // Allows for project-agnostic “epochs” for frameworks imported into Swift via the Clang importer, like #if _compiler_version for Swift
  2998  // Example:
  2999  //
  3000  //  #if __swift_compiler_version_at_least(800, 2, 20)
  3001  //  - (nonnull NSString *)description;
  3002  //  #else
  3003  //  - (NSString *)description;
  3004  //  #endif
  3005  
  3006  // If __SPI_AVAILABLE has not been defined elsewhere, disable it.
  3007  
  3008  // for use to document app extension usage
  3009  
  3010  // for use marking APIs available info for Mac OSX
  3011  
  3012  // for use marking APIs available info for iOS
  3013  
  3014  // for use marking APIs available info for tvOS
  3015  
  3016  // for use marking APIs available info for Watch OS
  3017  
  3018  // for use marking APIs unavailable for swift
  3019  
  3020  //
  3021  //  Macros for defining which versions/platform a given symbol can be used.
  3022  //
  3023  //  @see http://clang.llvm.org/docs/AttributeReference.html#availability
  3024  //
  3025  //  * Note that these macros are only compatible with clang compilers that
  3026  //  * support the following target selection options:
  3027  //  *
  3028  //  * -mmacosx-version-min
  3029  //  * -miphoneos-version-min
  3030  //  * -mwatchos-version-min
  3031  //  * -mtvos-version-min
  3032  //
  3033  
  3034  // Evaluate to nothing for compilers that don't support availability.
  3035  
  3036  // If SPI decorations have not been defined elsewhere, disable them.
  3037  
  3038  // Select uses bit masks of file descriptors in longs.  These macros
  3039  // manipulate such bit fields (the filesystem macros use chars).  The
  3040  // extra protection here is to permit application redefinition above
  3041  // the default size.
  3042  
  3043  type Fd_set1 = struct{ Ffds_bits [32]X__int32_t } /* _fd_def.h:50:9 */
  3044  
  3045  // This code is present here in order to maintain historical backward
  3046  // compatability, and is intended to be removed at some point in the
  3047  // future; please include <sys/select.h> instead.
  3048  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3049  //
  3050  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3051  //
  3052  // This file contains Original Code and/or Modifications of Original Code
  3053  // as defined in and that are subject to the Apple Public Source License
  3054  // Version 2.0 (the 'License'). You may not use this file except in
  3055  // compliance with the License. The rights granted to you under the License
  3056  // may not be used to create, or enable the creation or redistribution of,
  3057  // unlawful or unlicensed copies of an Apple operating system, or to
  3058  // circumvent, violate, or enable the circumvention or violation of, any
  3059  // terms of an Apple operating system software license agreement.
  3060  //
  3061  // Please obtain a copy of the License at
  3062  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3063  //
  3064  // The Original Code and all software distributed under the License are
  3065  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3066  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3067  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3068  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3069  // Please see the License for the specific language governing rights and
  3070  // limitations under the License.
  3071  //
  3072  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3073  
  3074  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  3075  //
  3076  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3077  //
  3078  // This file contains Original Code and/or Modifications of Original Code
  3079  // as defined in and that are subject to the Apple Public Source License
  3080  // Version 2.0 (the 'License'). You may not use this file except in
  3081  // compliance with the License. The rights granted to you under the License
  3082  // may not be used to create, or enable the creation or redistribution of,
  3083  // unlawful or unlicensed copies of an Apple operating system, or to
  3084  // circumvent, violate, or enable the circumvention or violation of, any
  3085  // terms of an Apple operating system software license agreement.
  3086  //
  3087  // Please obtain a copy of the License at
  3088  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3089  //
  3090  // The Original Code and all software distributed under the License are
  3091  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3092  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3093  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3094  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3095  // Please see the License for the specific language governing rights and
  3096  // limitations under the License.
  3097  //
  3098  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3099  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  3100  // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  3101  //
  3102  // @APPLE_LICENSE_HEADER_START@
  3103  //
  3104  // This file contains Original Code and/or Modifications of Original Code
  3105  // as defined in and that are subject to the Apple Public Source License
  3106  // Version 2.0 (the 'License'). You may not use this file except in
  3107  // compliance with the License. Please obtain a copy of the License at
  3108  // http://www.opensource.apple.com/apsl/ and read it before using this
  3109  // file.
  3110  //
  3111  // The Original Code and all software distributed under the License are
  3112  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3113  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3114  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3115  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3116  // Please see the License for the specific language governing rights and
  3117  // limitations under the License.
  3118  //
  3119  // @APPLE_LICENSE_HEADER_END@
  3120  
  3121  //
  3122  //     These macros are for use in OS header files. They enable function prototypes
  3123  //     and Objective-C methods to be tagged with the OS version in which they
  3124  //     were first available; and, if applicable, the OS version in which they
  3125  //     became deprecated.
  3126  //
  3127  //     The desktop Mac OS X and iOS each have different version numbers.
  3128  //     The __OSX_AVAILABLE_STARTING() macro allows you to specify both the desktop
  3129  //     and iOS version numbers.  For instance:
  3130  //         __OSX_AVAILABLE_STARTING(__MAC_10_2,__IPHONE_2_0)
  3131  //     means the function/method was first available on Mac OS X 10.2 on the desktop
  3132  //     and first available in iOS 2.0 on the iPhone.
  3133  //
  3134  //     If a function is available on one platform, but not the other a _NA (not
  3135  //     applicable) parameter is used.  For instance:
  3136  //             __OSX_AVAILABLE_STARTING(__MAC_10_3,__IPHONE_NA)
  3137  //     means that the function/method was first available on Mac OS X 10.3, and it
  3138  //     currently not implemented on the iPhone.
  3139  //
  3140  //     At some point, a function/method may be deprecated.  That means Apple
  3141  //     recommends applications stop using the function, either because there is a
  3142  //     better replacement or the functionality is being phased out.  Deprecated
  3143  //     functions/methods can be tagged with a __OSX_AVAILABLE_BUT_DEPRECATED()
  3144  //     macro which specifies the OS version where the function became available
  3145  //     as well as the OS version in which it became deprecated.  For instance:
  3146  //         __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0,__MAC_10_5,__IPHONE_NA,__IPHONE_NA)
  3147  //     means that the function/method was introduced in Mac OS X 10.0, then
  3148  //     became deprecated beginning in Mac OS X 10.5.  On iOS the function
  3149  //     has never been available.
  3150  //
  3151  //     For these macros to function properly, a program must specify the OS version range
  3152  //     it is targeting.  The min OS version is specified as an option to the compiler:
  3153  //     -mmacosx-version-min=10.x when building for Mac OS X, and -miphoneos-version-min=y.z
  3154  //     when building for the iPhone.  The upper bound for the OS version is rarely needed,
  3155  //     but it can be set on the command line via: -D__MAC_OS_X_VERSION_MAX_ALLOWED=10x0 for
  3156  //     Mac OS X and __IPHONE_OS_VERSION_MAX_ALLOWED = y0z00 for iOS.
  3157  //
  3158  //     Examples:
  3159  //
  3160  //         A function available in Mac OS X 10.5 and later, but not on the phone:
  3161  //
  3162  //             extern void mymacfunc() __OSX_AVAILABLE_STARTING(__MAC_10_5,__IPHONE_NA);
  3163  //
  3164  //
  3165  //         An Objective-C method in Mac OS X 10.5 and later, but not on the phone:
  3166  //
  3167  //             @interface MyClass : NSObject
  3168  //             -(void) mymacmethod __OSX_AVAILABLE_STARTING(__MAC_10_5,__IPHONE_NA);
  3169  //             @end
  3170  //
  3171  //
  3172  //         An enum available on the phone, but not available on Mac OS X:
  3173  //
  3174  //             #if __IPHONE_OS_VERSION_MIN_REQUIRED
  3175  //                 enum { myEnum = 1 };
  3176  //             #endif
  3177  //            Note: this works when targeting the Mac OS X platform because
  3178  //            __IPHONE_OS_VERSION_MIN_REQUIRED is undefined which evaluates to zero.
  3179  //
  3180  //
  3181  //         An enum with values added in different iPhoneOS versions:
  3182  //
  3183  // 			enum {
  3184  // 			    myX  = 1,	// Usable on iPhoneOS 2.1 and later
  3185  // 			    myY  = 2,	// Usable on iPhoneOS 3.0 and later
  3186  // 			    myZ  = 3,	// Usable on iPhoneOS 3.0 and later
  3187  // 				...
  3188  // 		      Note: you do not want to use #if with enumeration values
  3189  // 			  when a client needs to see all values at compile time
  3190  // 			  and use runtime logic to only use the viable values.
  3191  //
  3192  //
  3193  //     It is also possible to use the *_VERSION_MIN_REQUIRED in source code to make one
  3194  //     source base that can be compiled to target a range of OS versions.  It is best
  3195  //     to not use the _MAC_* and __IPHONE_* macros for comparisons, but rather their values.
  3196  //     That is because you might get compiled on an old OS that does not define a later
  3197  //     OS version macro, and in the C preprocessor undefined values evaluate to zero
  3198  //     in expresssions, which could cause the #if expression to evaluate in an unexpected
  3199  //     way.
  3200  //
  3201  //         #ifdef __MAC_OS_X_VERSION_MIN_REQUIRED
  3202  //             // code only compiled when targeting Mac OS X and not iPhone
  3203  //             // note use of 1050 instead of __MAC_10_5
  3204  //             #if __MAC_OS_X_VERSION_MIN_REQUIRED < 1050
  3205  //                 // code in here might run on pre-Leopard OS
  3206  //             #else
  3207  //                 // code here can assume Leopard or later
  3208  //             #endif
  3209  //         #endif
  3210  //
  3211  //
  3212  
  3213  // __API_TO_BE_DEPRECATED is used as a version number in API that will be deprecated
  3214  // in an upcoming release. This soft deprecation is an intermediate step before formal
  3215  // deprecation to notify developers about the API before compiler warnings are generated.
  3216  // You can find all places in your code that use soft deprecated API by redefining the
  3217  // value of this macro to your current minimum deployment target, for example:
  3218  // (macOS)
  3219  //   clang -D__API_TO_BE_DEPRECATED=10.12 <other compiler flags>
  3220  // (iOS)
  3221  //   clang -D__API_TO_BE_DEPRECATED=11.0 <other compiler flags>
  3222  
  3223  // __MAC_NA is not defined to a value but is uses as a token by macros to indicate that the API is unavailable
  3224  
  3225  // __IPHONE_NA is not defined to a value but is uses as a token by macros to indicate that the API is unavailable
  3226  
  3227  // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  3228  //
  3229  // @APPLE_LICENSE_HEADER_START@
  3230  //
  3231  // This file contains Original Code and/or Modifications of Original Code
  3232  // as defined in and that are subject to the Apple Public Source License
  3233  // Version 2.0 (the 'License'). You may not use this file except in
  3234  // compliance with the License. Please obtain a copy of the License at
  3235  // http://www.opensource.apple.com/apsl/ and read it before using this
  3236  // file.
  3237  //
  3238  // The Original Code and all software distributed under the License are
  3239  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3240  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3241  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3242  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3243  // Please see the License for the specific language governing rights and
  3244  // limitations under the License.
  3245  //
  3246  // @APPLE_LICENSE_HEADER_END@
  3247  
  3248  //
  3249  //     File:       AvailabilityInternal.h
  3250  //
  3251  //     Contains:   implementation details of __OSX_AVAILABLE_* macros from <Availability.h>
  3252  //
  3253  
  3254  // compiler for Mac OS X sets __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__
  3255  
  3256  // make sure a default max version is set
  3257  
  3258  //
  3259  //  Macros for defining which versions/platform a given symbol can be used.
  3260  //
  3261  //  @see http://clang.llvm.org/docs/AttributeReference.html#availability
  3262  //
  3263  
  3264  // Evaluate to nothing for compilers that don't support availability.
  3265  
  3266  // Swift compiler version
  3267  // Allows for project-agnostic “epochs” for frameworks imported into Swift via the Clang importer, like #if _compiler_version for Swift
  3268  // Example:
  3269  //
  3270  //  #if __swift_compiler_version_at_least(800, 2, 20)
  3271  //  - (nonnull NSString *)description;
  3272  //  #else
  3273  //  - (NSString *)description;
  3274  //  #endif
  3275  
  3276  // If __SPI_AVAILABLE has not been defined elsewhere, disable it.
  3277  
  3278  // for use to document app extension usage
  3279  
  3280  // for use marking APIs available info for Mac OSX
  3281  
  3282  // for use marking APIs available info for iOS
  3283  
  3284  // for use marking APIs available info for tvOS
  3285  
  3286  // for use marking APIs available info for Watch OS
  3287  
  3288  // for use marking APIs unavailable for swift
  3289  
  3290  //
  3291  //  Macros for defining which versions/platform a given symbol can be used.
  3292  //
  3293  //  @see http://clang.llvm.org/docs/AttributeReference.html#availability
  3294  //
  3295  //  * Note that these macros are only compatible with clang compilers that
  3296  //  * support the following target selection options:
  3297  //  *
  3298  //  * -mmacosx-version-min
  3299  //  * -miphoneos-version-min
  3300  //  * -mwatchos-version-min
  3301  //  * -mtvos-version-min
  3302  //
  3303  
  3304  // Evaluate to nothing for compilers that don't support availability.
  3305  
  3306  // If SPI decorations have not been defined elsewhere, disable them.
  3307  
  3308  // Select uses bit masks of file descriptors in longs.  These macros
  3309  // manipulate such bit fields (the filesystem macros use chars).  The
  3310  // extra protection here is to permit application redefinition above
  3311  // the default size.
  3312  
  3313  type Fd_set = Fd_set1 /* _fd_def.h:52:3 */
  3314  
  3315  // Use the built-in bzero function instead of the library version so that
  3316  // we do not pollute the namespace or introduce prototype warnings.
  3317  
  3318  type Fd_mask = X__int32_t /* types.h:189:25 */
  3319  
  3320  // Select uses bit masks of file descriptors in longs.  These macros
  3321  // manipulate such bit fields (the filesystem macros use chars).  The
  3322  // extra protection here is to permit application redefinition above
  3323  // the default size.
  3324  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3325  //
  3326  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3327  //
  3328  // This file contains Original Code and/or Modifications of Original Code
  3329  // as defined in and that are subject to the Apple Public Source License
  3330  // Version 2.0 (the 'License'). You may not use this file except in
  3331  // compliance with the License. The rights granted to you under the License
  3332  // may not be used to create, or enable the creation or redistribution of,
  3333  // unlawful or unlicensed copies of an Apple operating system, or to
  3334  // circumvent, violate, or enable the circumvention or violation of, any
  3335  // terms of an Apple operating system software license agreement.
  3336  //
  3337  // Please obtain a copy of the License at
  3338  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3339  //
  3340  // The Original Code and all software distributed under the License are
  3341  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3342  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3343  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3344  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3345  // Please see the License for the specific language governing rights and
  3346  // limitations under the License.
  3347  //
  3348  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3349  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3350  //
  3351  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3352  //
  3353  // This file contains Original Code and/or Modifications of Original Code
  3354  // as defined in and that are subject to the Apple Public Source License
  3355  // Version 2.0 (the 'License'). You may not use this file except in
  3356  // compliance with the License. The rights granted to you under the License
  3357  // may not be used to create, or enable the creation or redistribution of,
  3358  // unlawful or unlicensed copies of an Apple operating system, or to
  3359  // circumvent, violate, or enable the circumvention or violation of, any
  3360  // terms of an Apple operating system software license agreement.
  3361  //
  3362  // Please obtain a copy of the License at
  3363  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3364  //
  3365  // The Original Code and all software distributed under the License are
  3366  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3367  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3368  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3369  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3370  // Please see the License for the specific language governing rights and
  3371  // limitations under the License.
  3372  //
  3373  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3374  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3375  //
  3376  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3377  //
  3378  // This file contains Original Code and/or Modifications of Original Code
  3379  // as defined in and that are subject to the Apple Public Source License
  3380  // Version 2.0 (the 'License'). You may not use this file except in
  3381  // compliance with the License. The rights granted to you under the License
  3382  // may not be used to create, or enable the creation or redistribution of,
  3383  // unlawful or unlicensed copies of an Apple operating system, or to
  3384  // circumvent, violate, or enable the circumvention or violation of, any
  3385  // terms of an Apple operating system software license agreement.
  3386  //
  3387  // Please obtain a copy of the License at
  3388  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3389  //
  3390  // The Original Code and all software distributed under the License are
  3391  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3392  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3393  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3394  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3395  // Please see the License for the specific language governing rights and
  3396  // limitations under the License.
  3397  //
  3398  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3399  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3400  //
  3401  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3402  //
  3403  // This file contains Original Code and/or Modifications of Original Code
  3404  // as defined in and that are subject to the Apple Public Source License
  3405  // Version 2.0 (the 'License'). You may not use this file except in
  3406  // compliance with the License. The rights granted to you under the License
  3407  // may not be used to create, or enable the creation or redistribution of,
  3408  // unlawful or unlicensed copies of an Apple operating system, or to
  3409  // circumvent, violate, or enable the circumvention or violation of, any
  3410  // terms of an Apple operating system software license agreement.
  3411  //
  3412  // Please obtain a copy of the License at
  3413  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3414  //
  3415  // The Original Code and all software distributed under the License are
  3416  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3417  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3418  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3419  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3420  // Please see the License for the specific language governing rights and
  3421  // limitations under the License.
  3422  //
  3423  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3424  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3425  //
  3426  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3427  //
  3428  // This file contains Original Code and/or Modifications of Original Code
  3429  // as defined in and that are subject to the Apple Public Source License
  3430  // Version 2.0 (the 'License'). You may not use this file except in
  3431  // compliance with the License. The rights granted to you under the License
  3432  // may not be used to create, or enable the creation or redistribution of,
  3433  // unlawful or unlicensed copies of an Apple operating system, or to
  3434  // circumvent, violate, or enable the circumvention or violation of, any
  3435  // terms of an Apple operating system software license agreement.
  3436  //
  3437  // Please obtain a copy of the License at
  3438  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3439  //
  3440  // The Original Code and all software distributed under the License are
  3441  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3442  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3443  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3444  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3445  // Please see the License for the specific language governing rights and
  3446  // limitations under the License.
  3447  //
  3448  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3449  
  3450  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3451  //
  3452  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3453  //
  3454  // This file contains Original Code and/or Modifications of Original Code
  3455  // as defined in and that are subject to the Apple Public Source License
  3456  // Version 2.0 (the 'License'). You may not use this file except in
  3457  // compliance with the License. The rights granted to you under the License
  3458  // may not be used to create, or enable the creation or redistribution of,
  3459  // unlawful or unlicensed copies of an Apple operating system, or to
  3460  // circumvent, violate, or enable the circumvention or violation of, any
  3461  // terms of an Apple operating system software license agreement.
  3462  //
  3463  // Please obtain a copy of the License at
  3464  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3465  //
  3466  // The Original Code and all software distributed under the License are
  3467  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3468  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3469  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3470  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3471  // Please see the License for the specific language governing rights and
  3472  // limitations under the License.
  3473  //
  3474  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3475  
  3476  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3477  //
  3478  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3479  //
  3480  // This file contains Original Code and/or Modifications of Original Code
  3481  // as defined in and that are subject to the Apple Public Source License
  3482  // Version 2.0 (the 'License'). You may not use this file except in
  3483  // compliance with the License. The rights granted to you under the License
  3484  // may not be used to create, or enable the creation or redistribution of,
  3485  // unlawful or unlicensed copies of an Apple operating system, or to
  3486  // circumvent, violate, or enable the circumvention or violation of, any
  3487  // terms of an Apple operating system software license agreement.
  3488  //
  3489  // Please obtain a copy of the License at
  3490  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3491  //
  3492  // The Original Code and all software distributed under the License are
  3493  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3494  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3495  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3496  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3497  // Please see the License for the specific language governing rights and
  3498  // limitations under the License.
  3499  //
  3500  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3501  // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  3502  //
  3503  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3504  //
  3505  // This file contains Original Code and/or Modifications of Original Code
  3506  // as defined in and that are subject to the Apple Public Source License
  3507  // Version 2.0 (the 'License'). You may not use this file except in
  3508  // compliance with the License. The rights granted to you under the License
  3509  // may not be used to create, or enable the creation or redistribution of,
  3510  // unlawful or unlicensed copies of an Apple operating system, or to
  3511  // circumvent, violate, or enable the circumvention or violation of, any
  3512  // terms of an Apple operating system software license agreement.
  3513  //
  3514  // Please obtain a copy of the License at
  3515  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3516  //
  3517  // The Original Code and all software distributed under the License are
  3518  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3519  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3520  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3521  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3522  // Please see the License for the specific language governing rights and
  3523  // limitations under the License.
  3524  //
  3525  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3526  
  3527  type Pthread_attr_t = X__darwin_pthread_attr_t /* _pthread_attr_t.h:31:33 */
  3528  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3529  //
  3530  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3531  //
  3532  // This file contains Original Code and/or Modifications of Original Code
  3533  // as defined in and that are subject to the Apple Public Source License
  3534  // Version 2.0 (the 'License'). You may not use this file except in
  3535  // compliance with the License. The rights granted to you under the License
  3536  // may not be used to create, or enable the creation or redistribution of,
  3537  // unlawful or unlicensed copies of an Apple operating system, or to
  3538  // circumvent, violate, or enable the circumvention or violation of, any
  3539  // terms of an Apple operating system software license agreement.
  3540  //
  3541  // Please obtain a copy of the License at
  3542  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3543  //
  3544  // The Original Code and all software distributed under the License are
  3545  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3546  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3547  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3548  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3549  // Please see the License for the specific language governing rights and
  3550  // limitations under the License.
  3551  //
  3552  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3553  // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  3554  //
  3555  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3556  //
  3557  // This file contains Original Code and/or Modifications of Original Code
  3558  // as defined in and that are subject to the Apple Public Source License
  3559  // Version 2.0 (the 'License'). You may not use this file except in
  3560  // compliance with the License. The rights granted to you under the License
  3561  // may not be used to create, or enable the creation or redistribution of,
  3562  // unlawful or unlicensed copies of an Apple operating system, or to
  3563  // circumvent, violate, or enable the circumvention or violation of, any
  3564  // terms of an Apple operating system software license agreement.
  3565  //
  3566  // Please obtain a copy of the License at
  3567  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3568  //
  3569  // The Original Code and all software distributed under the License are
  3570  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3571  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3572  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3573  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3574  // Please see the License for the specific language governing rights and
  3575  // limitations under the License.
  3576  //
  3577  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3578  
  3579  type Pthread_cond_t = X__darwin_pthread_cond_t /* _pthread_cond_t.h:31:33 */
  3580  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3581  //
  3582  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3583  //
  3584  // This file contains Original Code and/or Modifications of Original Code
  3585  // as defined in and that are subject to the Apple Public Source License
  3586  // Version 2.0 (the 'License'). You may not use this file except in
  3587  // compliance with the License. The rights granted to you under the License
  3588  // may not be used to create, or enable the creation or redistribution of,
  3589  // unlawful or unlicensed copies of an Apple operating system, or to
  3590  // circumvent, violate, or enable the circumvention or violation of, any
  3591  // terms of an Apple operating system software license agreement.
  3592  //
  3593  // Please obtain a copy of the License at
  3594  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3595  //
  3596  // The Original Code and all software distributed under the License are
  3597  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3598  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3599  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3600  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3601  // Please see the License for the specific language governing rights and
  3602  // limitations under the License.
  3603  //
  3604  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3605  // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  3606  //
  3607  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3608  //
  3609  // This file contains Original Code and/or Modifications of Original Code
  3610  // as defined in and that are subject to the Apple Public Source License
  3611  // Version 2.0 (the 'License'). You may not use this file except in
  3612  // compliance with the License. The rights granted to you under the License
  3613  // may not be used to create, or enable the creation or redistribution of,
  3614  // unlawful or unlicensed copies of an Apple operating system, or to
  3615  // circumvent, violate, or enable the circumvention or violation of, any
  3616  // terms of an Apple operating system software license agreement.
  3617  //
  3618  // Please obtain a copy of the License at
  3619  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3620  //
  3621  // The Original Code and all software distributed under the License are
  3622  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3623  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3624  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3625  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3626  // Please see the License for the specific language governing rights and
  3627  // limitations under the License.
  3628  //
  3629  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3630  
  3631  type Pthread_condattr_t = X__darwin_pthread_condattr_t /* _pthread_condattr_t.h:31:37 */
  3632  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3633  //
  3634  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3635  //
  3636  // This file contains Original Code and/or Modifications of Original Code
  3637  // as defined in and that are subject to the Apple Public Source License
  3638  // Version 2.0 (the 'License'). You may not use this file except in
  3639  // compliance with the License. The rights granted to you under the License
  3640  // may not be used to create, or enable the creation or redistribution of,
  3641  // unlawful or unlicensed copies of an Apple operating system, or to
  3642  // circumvent, violate, or enable the circumvention or violation of, any
  3643  // terms of an Apple operating system software license agreement.
  3644  //
  3645  // Please obtain a copy of the License at
  3646  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3647  //
  3648  // The Original Code and all software distributed under the License are
  3649  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3650  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3651  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3652  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3653  // Please see the License for the specific language governing rights and
  3654  // limitations under the License.
  3655  //
  3656  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3657  // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  3658  //
  3659  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3660  //
  3661  // This file contains Original Code and/or Modifications of Original Code
  3662  // as defined in and that are subject to the Apple Public Source License
  3663  // Version 2.0 (the 'License'). You may not use this file except in
  3664  // compliance with the License. The rights granted to you under the License
  3665  // may not be used to create, or enable the creation or redistribution of,
  3666  // unlawful or unlicensed copies of an Apple operating system, or to
  3667  // circumvent, violate, or enable the circumvention or violation of, any
  3668  // terms of an Apple operating system software license agreement.
  3669  //
  3670  // Please obtain a copy of the License at
  3671  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3672  //
  3673  // The Original Code and all software distributed under the License are
  3674  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3675  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3676  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3677  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3678  // Please see the License for the specific language governing rights and
  3679  // limitations under the License.
  3680  //
  3681  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3682  
  3683  type Pthread_mutex_t = X__darwin_pthread_mutex_t /* _pthread_mutex_t.h:31:34 */
  3684  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3685  //
  3686  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3687  //
  3688  // This file contains Original Code and/or Modifications of Original Code
  3689  // as defined in and that are subject to the Apple Public Source License
  3690  // Version 2.0 (the 'License'). You may not use this file except in
  3691  // compliance with the License. The rights granted to you under the License
  3692  // may not be used to create, or enable the creation or redistribution of,
  3693  // unlawful or unlicensed copies of an Apple operating system, or to
  3694  // circumvent, violate, or enable the circumvention or violation of, any
  3695  // terms of an Apple operating system software license agreement.
  3696  //
  3697  // Please obtain a copy of the License at
  3698  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3699  //
  3700  // The Original Code and all software distributed under the License are
  3701  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3702  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3703  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3704  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3705  // Please see the License for the specific language governing rights and
  3706  // limitations under the License.
  3707  //
  3708  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3709  // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  3710  //
  3711  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3712  //
  3713  // This file contains Original Code and/or Modifications of Original Code
  3714  // as defined in and that are subject to the Apple Public Source License
  3715  // Version 2.0 (the 'License'). You may not use this file except in
  3716  // compliance with the License. The rights granted to you under the License
  3717  // may not be used to create, or enable the creation or redistribution of,
  3718  // unlawful or unlicensed copies of an Apple operating system, or to
  3719  // circumvent, violate, or enable the circumvention or violation of, any
  3720  // terms of an Apple operating system software license agreement.
  3721  //
  3722  // Please obtain a copy of the License at
  3723  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3724  //
  3725  // The Original Code and all software distributed under the License are
  3726  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3727  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3728  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3729  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3730  // Please see the License for the specific language governing rights and
  3731  // limitations under the License.
  3732  //
  3733  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3734  
  3735  type Pthread_mutexattr_t = X__darwin_pthread_mutexattr_t /* _pthread_mutexattr_t.h:31:38 */
  3736  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3737  //
  3738  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3739  //
  3740  // This file contains Original Code and/or Modifications of Original Code
  3741  // as defined in and that are subject to the Apple Public Source License
  3742  // Version 2.0 (the 'License'). You may not use this file except in
  3743  // compliance with the License. The rights granted to you under the License
  3744  // may not be used to create, or enable the creation or redistribution of,
  3745  // unlawful or unlicensed copies of an Apple operating system, or to
  3746  // circumvent, violate, or enable the circumvention or violation of, any
  3747  // terms of an Apple operating system software license agreement.
  3748  //
  3749  // Please obtain a copy of the License at
  3750  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3751  //
  3752  // The Original Code and all software distributed under the License are
  3753  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3754  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3755  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3756  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3757  // Please see the License for the specific language governing rights and
  3758  // limitations under the License.
  3759  //
  3760  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3761  // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  3762  //
  3763  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3764  //
  3765  // This file contains Original Code and/or Modifications of Original Code
  3766  // as defined in and that are subject to the Apple Public Source License
  3767  // Version 2.0 (the 'License'). You may not use this file except in
  3768  // compliance with the License. The rights granted to you under the License
  3769  // may not be used to create, or enable the creation or redistribution of,
  3770  // unlawful or unlicensed copies of an Apple operating system, or to
  3771  // circumvent, violate, or enable the circumvention or violation of, any
  3772  // terms of an Apple operating system software license agreement.
  3773  //
  3774  // Please obtain a copy of the License at
  3775  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3776  //
  3777  // The Original Code and all software distributed under the License are
  3778  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3779  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3780  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3781  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3782  // Please see the License for the specific language governing rights and
  3783  // limitations under the License.
  3784  //
  3785  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3786  
  3787  type Pthread_once_t = X__darwin_pthread_once_t /* _pthread_once_t.h:31:33 */
  3788  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3789  //
  3790  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3791  //
  3792  // This file contains Original Code and/or Modifications of Original Code
  3793  // as defined in and that are subject to the Apple Public Source License
  3794  // Version 2.0 (the 'License'). You may not use this file except in
  3795  // compliance with the License. The rights granted to you under the License
  3796  // may not be used to create, or enable the creation or redistribution of,
  3797  // unlawful or unlicensed copies of an Apple operating system, or to
  3798  // circumvent, violate, or enable the circumvention or violation of, any
  3799  // terms of an Apple operating system software license agreement.
  3800  //
  3801  // Please obtain a copy of the License at
  3802  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3803  //
  3804  // The Original Code and all software distributed under the License are
  3805  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3806  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3807  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3808  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3809  // Please see the License for the specific language governing rights and
  3810  // limitations under the License.
  3811  //
  3812  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3813  // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  3814  //
  3815  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3816  //
  3817  // This file contains Original Code and/or Modifications of Original Code
  3818  // as defined in and that are subject to the Apple Public Source License
  3819  // Version 2.0 (the 'License'). You may not use this file except in
  3820  // compliance with the License. The rights granted to you under the License
  3821  // may not be used to create, or enable the creation or redistribution of,
  3822  // unlawful or unlicensed copies of an Apple operating system, or to
  3823  // circumvent, violate, or enable the circumvention or violation of, any
  3824  // terms of an Apple operating system software license agreement.
  3825  //
  3826  // Please obtain a copy of the License at
  3827  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3828  //
  3829  // The Original Code and all software distributed under the License are
  3830  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3831  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3832  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3833  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3834  // Please see the License for the specific language governing rights and
  3835  // limitations under the License.
  3836  //
  3837  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3838  
  3839  type Pthread_rwlock_t = X__darwin_pthread_rwlock_t /* _pthread_rwlock_t.h:31:35 */
  3840  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3841  //
  3842  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3843  //
  3844  // This file contains Original Code and/or Modifications of Original Code
  3845  // as defined in and that are subject to the Apple Public Source License
  3846  // Version 2.0 (the 'License'). You may not use this file except in
  3847  // compliance with the License. The rights granted to you under the License
  3848  // may not be used to create, or enable the creation or redistribution of,
  3849  // unlawful or unlicensed copies of an Apple operating system, or to
  3850  // circumvent, violate, or enable the circumvention or violation of, any
  3851  // terms of an Apple operating system software license agreement.
  3852  //
  3853  // Please obtain a copy of the License at
  3854  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3855  //
  3856  // The Original Code and all software distributed under the License are
  3857  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3858  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3859  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3860  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3861  // Please see the License for the specific language governing rights and
  3862  // limitations under the License.
  3863  //
  3864  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3865  // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  3866  //
  3867  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3868  //
  3869  // This file contains Original Code and/or Modifications of Original Code
  3870  // as defined in and that are subject to the Apple Public Source License
  3871  // Version 2.0 (the 'License'). You may not use this file except in
  3872  // compliance with the License. The rights granted to you under the License
  3873  // may not be used to create, or enable the creation or redistribution of,
  3874  // unlawful or unlicensed copies of an Apple operating system, or to
  3875  // circumvent, violate, or enable the circumvention or violation of, any
  3876  // terms of an Apple operating system software license agreement.
  3877  //
  3878  // Please obtain a copy of the License at
  3879  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3880  //
  3881  // The Original Code and all software distributed under the License are
  3882  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3883  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3884  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3885  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3886  // Please see the License for the specific language governing rights and
  3887  // limitations under the License.
  3888  //
  3889  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3890  
  3891  type Pthread_rwlockattr_t = X__darwin_pthread_rwlockattr_t /* _pthread_rwlockattr_t.h:31:39 */
  3892  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3893  //
  3894  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3895  //
  3896  // This file contains Original Code and/or Modifications of Original Code
  3897  // as defined in and that are subject to the Apple Public Source License
  3898  // Version 2.0 (the 'License'). You may not use this file except in
  3899  // compliance with the License. The rights granted to you under the License
  3900  // may not be used to create, or enable the creation or redistribution of,
  3901  // unlawful or unlicensed copies of an Apple operating system, or to
  3902  // circumvent, violate, or enable the circumvention or violation of, any
  3903  // terms of an Apple operating system software license agreement.
  3904  //
  3905  // Please obtain a copy of the License at
  3906  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3907  //
  3908  // The Original Code and all software distributed under the License are
  3909  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3910  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3911  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3912  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3913  // Please see the License for the specific language governing rights and
  3914  // limitations under the License.
  3915  //
  3916  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3917  // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  3918  //
  3919  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3920  //
  3921  // This file contains Original Code and/or Modifications of Original Code
  3922  // as defined in and that are subject to the Apple Public Source License
  3923  // Version 2.0 (the 'License'). You may not use this file except in
  3924  // compliance with the License. The rights granted to you under the License
  3925  // may not be used to create, or enable the creation or redistribution of,
  3926  // unlawful or unlicensed copies of an Apple operating system, or to
  3927  // circumvent, violate, or enable the circumvention or violation of, any
  3928  // terms of an Apple operating system software license agreement.
  3929  //
  3930  // Please obtain a copy of the License at
  3931  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3932  //
  3933  // The Original Code and all software distributed under the License are
  3934  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3935  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3936  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3937  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3938  // Please see the License for the specific language governing rights and
  3939  // limitations under the License.
  3940  //
  3941  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3942  
  3943  type Pthread_t = X__darwin_pthread_t /* _pthread_t.h:31:28 */
  3944  
  3945  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3946  //
  3947  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3948  //
  3949  // This file contains Original Code and/or Modifications of Original Code
  3950  // as defined in and that are subject to the Apple Public Source License
  3951  // Version 2.0 (the 'License'). You may not use this file except in
  3952  // compliance with the License. The rights granted to you under the License
  3953  // may not be used to create, or enable the creation or redistribution of,
  3954  // unlawful or unlicensed copies of an Apple operating system, or to
  3955  // circumvent, violate, or enable the circumvention or violation of, any
  3956  // terms of an Apple operating system software license agreement.
  3957  //
  3958  // Please obtain a copy of the License at
  3959  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3960  //
  3961  // The Original Code and all software distributed under the License are
  3962  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3963  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3964  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3965  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3966  // Please see the License for the specific language governing rights and
  3967  // limitations under the License.
  3968  //
  3969  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3970  // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  3971  //
  3972  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3973  //
  3974  // This file contains Original Code and/or Modifications of Original Code
  3975  // as defined in and that are subject to the Apple Public Source License
  3976  // Version 2.0 (the 'License'). You may not use this file except in
  3977  // compliance with the License. The rights granted to you under the License
  3978  // may not be used to create, or enable the creation or redistribution of,
  3979  // unlawful or unlicensed copies of an Apple operating system, or to
  3980  // circumvent, violate, or enable the circumvention or violation of, any
  3981  // terms of an Apple operating system software license agreement.
  3982  //
  3983  // Please obtain a copy of the License at
  3984  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3985  //
  3986  // The Original Code and all software distributed under the License are
  3987  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3988  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3989  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3990  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3991  // Please see the License for the specific language governing rights and
  3992  // limitations under the License.
  3993  //
  3994  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3995  
  3996  type Pthread_key_t = X__darwin_pthread_key_t /* _pthread_key_t.h:31:32 */
  3997  
  3998  // statvfs and fstatvfs
  3999  
  4000  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4001  //
  4002  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4003  //
  4004  // This file contains Original Code and/or Modifications of Original Code
  4005  // as defined in and that are subject to the Apple Public Source License
  4006  // Version 2.0 (the 'License'). You may not use this file except in
  4007  // compliance with the License. The rights granted to you under the License
  4008  // may not be used to create, or enable the creation or redistribution of,
  4009  // unlawful or unlicensed copies of an Apple operating system, or to
  4010  // circumvent, violate, or enable the circumvention or violation of, any
  4011  // terms of an Apple operating system software license agreement.
  4012  //
  4013  // Please obtain a copy of the License at
  4014  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4015  //
  4016  // The Original Code and all software distributed under the License are
  4017  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4018  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4019  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4020  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4021  // Please see the License for the specific language governing rights and
  4022  // limitations under the License.
  4023  //
  4024  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4025  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  4026  //
  4027  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4028  //
  4029  // This file contains Original Code and/or Modifications of Original Code
  4030  // as defined in and that are subject to the Apple Public Source License
  4031  // Version 2.0 (the 'License'). You may not use this file except in
  4032  // compliance with the License. The rights granted to you under the License
  4033  // may not be used to create, or enable the creation or redistribution of,
  4034  // unlawful or unlicensed copies of an Apple operating system, or to
  4035  // circumvent, violate, or enable the circumvention or violation of, any
  4036  // terms of an Apple operating system software license agreement.
  4037  //
  4038  // Please obtain a copy of the License at
  4039  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4040  //
  4041  // The Original Code and all software distributed under the License are
  4042  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4043  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4044  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4045  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4046  // Please see the License for the specific language governing rights and
  4047  // limitations under the License.
  4048  //
  4049  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4050  
  4051  type Fsblkcnt_t = X__darwin_fsblkcnt_t /* _fsblkcnt_t.h:31:41 */
  4052  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4053  //
  4054  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4055  //
  4056  // This file contains Original Code and/or Modifications of Original Code
  4057  // as defined in and that are subject to the Apple Public Source License
  4058  // Version 2.0 (the 'License'). You may not use this file except in
  4059  // compliance with the License. The rights granted to you under the License
  4060  // may not be used to create, or enable the creation or redistribution of,
  4061  // unlawful or unlicensed copies of an Apple operating system, or to
  4062  // circumvent, violate, or enable the circumvention or violation of, any
  4063  // terms of an Apple operating system software license agreement.
  4064  //
  4065  // Please obtain a copy of the License at
  4066  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4067  //
  4068  // The Original Code and all software distributed under the License are
  4069  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4070  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4071  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4072  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4073  // Please see the License for the specific language governing rights and
  4074  // limitations under the License.
  4075  //
  4076  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4077  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  4078  //
  4079  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4080  //
  4081  // This file contains Original Code and/or Modifications of Original Code
  4082  // as defined in and that are subject to the Apple Public Source License
  4083  // Version 2.0 (the 'License'). You may not use this file except in
  4084  // compliance with the License. The rights granted to you under the License
  4085  // may not be used to create, or enable the creation or redistribution of,
  4086  // unlawful or unlicensed copies of an Apple operating system, or to
  4087  // circumvent, violate, or enable the circumvention or violation of, any
  4088  // terms of an Apple operating system software license agreement.
  4089  //
  4090  // Please obtain a copy of the License at
  4091  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4092  //
  4093  // The Original Code and all software distributed under the License are
  4094  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4095  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4096  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4097  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4098  // Please see the License for the specific language governing rights and
  4099  // limitations under the License.
  4100  //
  4101  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4102  
  4103  type Fsfilcnt_t = X__darwin_fsfilcnt_t /* _fsfilcnt_t.h:31:41 */
  4104  
  4105  // Copyright (c) 2000-2014 Apple Inc. All rights reserved.
  4106  //
  4107  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4108  //
  4109  // This file contains Original Code and/or Modifications of Original Code
  4110  // as defined in and that are subject to the Apple Public Source License
  4111  // Version 2.0 (the 'License'). You may not use this file except in
  4112  // compliance with the License. The rights granted to you under the License
  4113  // may not be used to create, or enable the creation or redistribution of,
  4114  // unlawful or unlicensed copies of an Apple operating system, or to
  4115  // circumvent, violate, or enable the circumvention or violation of, any
  4116  // terms of an Apple operating system software license agreement.
  4117  //
  4118  // Please obtain a copy of the License at
  4119  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4120  //
  4121  // The Original Code and all software distributed under the License are
  4122  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4123  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4124  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4125  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4126  // Please see the License for the specific language governing rights and
  4127  // limitations under the License.
  4128  //
  4129  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4130  // Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved
  4131  // -
  4132  // Copyright (c) 1982, 1986, 1989, 1993
  4133  //	The Regents of the University of California.  All rights reserved.
  4134  // (c) UNIX System Laboratories, Inc.
  4135  // All or some portions of this file are derived from material licensed
  4136  // to the University of California by American Telephone and Telegraph
  4137  // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  4138  // the permission of UNIX System Laboratories, Inc.
  4139  //
  4140  // Redistribution and use in source and binary forms, with or without
  4141  // modification, are permitted provided that the following conditions
  4142  // are met:
  4143  // 1. Redistributions of source code must retain the above copyright
  4144  //    notice, this list of conditions and the following disclaimer.
  4145  // 2. Redistributions in binary form must reproduce the above copyright
  4146  //    notice, this list of conditions and the following disclaimer in the
  4147  //    documentation and/or other materials provided with the distribution.
  4148  // 3. All advertising materials mentioning features or use of this software
  4149  //    must display the following acknowledgement:
  4150  //	This product includes software developed by the University of
  4151  //	California, Berkeley and its contributors.
  4152  // 4. Neither the name of the University nor the names of its contributors
  4153  //    may be used to endorse or promote products derived from this software
  4154  //    without specific prior written permission.
  4155  //
  4156  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  4157  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  4158  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  4159  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  4160  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  4161  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  4162  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  4163  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  4164  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  4165  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  4166  // SUCH DAMAGE.
  4167  //
  4168  //	@(#)stat.h	8.9 (Berkeley) 8/17/94
  4169  
  4170  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  4171  //
  4172  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4173  //
  4174  // This file contains Original Code and/or Modifications of Original Code
  4175  // as defined in and that are subject to the Apple Public Source License
  4176  // Version 2.0 (the 'License'). You may not use this file except in
  4177  // compliance with the License. The rights granted to you under the License
  4178  // may not be used to create, or enable the creation or redistribution of,
  4179  // unlawful or unlicensed copies of an Apple operating system, or to
  4180  // circumvent, violate, or enable the circumvention or violation of, any
  4181  // terms of an Apple operating system software license agreement.
  4182  //
  4183  // Please obtain a copy of the License at
  4184  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4185  //
  4186  // The Original Code and all software distributed under the License are
  4187  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4188  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4189  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4190  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4191  // Please see the License for the specific language governing rights and
  4192  // limitations under the License.
  4193  //
  4194  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4195  
  4196  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  4197  //
  4198  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4199  //
  4200  // This file contains Original Code and/or Modifications of Original Code
  4201  // as defined in and that are subject to the Apple Public Source License
  4202  // Version 2.0 (the 'License'). You may not use this file except in
  4203  // compliance with the License. The rights granted to you under the License
  4204  // may not be used to create, or enable the creation or redistribution of,
  4205  // unlawful or unlicensed copies of an Apple operating system, or to
  4206  // circumvent, violate, or enable the circumvention or violation of, any
  4207  // terms of an Apple operating system software license agreement.
  4208  //
  4209  // Please obtain a copy of the License at
  4210  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4211  //
  4212  // The Original Code and all software distributed under the License are
  4213  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4214  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4215  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4216  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4217  // Please see the License for the specific language governing rights and
  4218  // limitations under the License.
  4219  //
  4220  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4221  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  4222  // Copyright (c) 1991, 1993
  4223  //	The Regents of the University of California.  All rights reserved.
  4224  //
  4225  // This code is derived from software contributed to Berkeley by
  4226  // Berkeley Software Design, Inc.
  4227  //
  4228  // Redistribution and use in source and binary forms, with or without
  4229  // modification, are permitted provided that the following conditions
  4230  // are met:
  4231  // 1. Redistributions of source code must retain the above copyright
  4232  //    notice, this list of conditions and the following disclaimer.
  4233  // 2. Redistributions in binary form must reproduce the above copyright
  4234  //    notice, this list of conditions and the following disclaimer in the
  4235  //    documentation and/or other materials provided with the distribution.
  4236  // 3. All advertising materials mentioning features or use of this software
  4237  //    must display the following acknowledgement:
  4238  //	This product includes software developed by the University of
  4239  //	California, Berkeley and its contributors.
  4240  // 4. Neither the name of the University nor the names of its contributors
  4241  //    may be used to endorse or promote products derived from this software
  4242  //    without specific prior written permission.
  4243  //
  4244  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  4245  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  4246  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  4247  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  4248  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  4249  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  4250  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  4251  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  4252  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  4253  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  4254  // SUCH DAMAGE.
  4255  //
  4256  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  4257  
  4258  // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  4259  //
  4260  // @APPLE_LICENSE_HEADER_START@
  4261  //
  4262  // This file contains Original Code and/or Modifications of Original Code
  4263  // as defined in and that are subject to the Apple Public Source License
  4264  // Version 2.0 (the 'License'). You may not use this file except in
  4265  // compliance with the License. Please obtain a copy of the License at
  4266  // http://www.opensource.apple.com/apsl/ and read it before using this
  4267  // file.
  4268  //
  4269  // The Original Code and all software distributed under the License are
  4270  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4271  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4272  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4273  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4274  // Please see the License for the specific language governing rights and
  4275  // limitations under the License.
  4276  //
  4277  // @APPLE_LICENSE_HEADER_END@
  4278  
  4279  // [XSI] The timespec structure may be defined as described in <time.h>
  4280  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4281  //
  4282  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4283  //
  4284  // This file contains Original Code and/or Modifications of Original Code
  4285  // as defined in and that are subject to the Apple Public Source License
  4286  // Version 2.0 (the 'License'). You may not use this file except in
  4287  // compliance with the License. The rights granted to you under the License
  4288  // may not be used to create, or enable the creation or redistribution of,
  4289  // unlawful or unlicensed copies of an Apple operating system, or to
  4290  // circumvent, violate, or enable the circumvention or violation of, any
  4291  // terms of an Apple operating system software license agreement.
  4292  //
  4293  // Please obtain a copy of the License at
  4294  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4295  //
  4296  // The Original Code and all software distributed under the License are
  4297  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4298  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4299  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4300  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4301  // Please see the License for the specific language governing rights and
  4302  // limitations under the License.
  4303  //
  4304  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4305  
  4306  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  4307  //
  4308  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4309  //
  4310  // This file contains Original Code and/or Modifications of Original Code
  4311  // as defined in and that are subject to the Apple Public Source License
  4312  // Version 2.0 (the 'License'). You may not use this file except in
  4313  // compliance with the License. The rights granted to you under the License
  4314  // may not be used to create, or enable the creation or redistribution of,
  4315  // unlawful or unlicensed copies of an Apple operating system, or to
  4316  // circumvent, violate, or enable the circumvention or violation of, any
  4317  // terms of an Apple operating system software license agreement.
  4318  //
  4319  // Please obtain a copy of the License at
  4320  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4321  //
  4322  // The Original Code and all software distributed under the License are
  4323  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4324  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4325  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4326  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4327  // Please see the License for the specific language governing rights and
  4328  // limitations under the License.
  4329  //
  4330  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4331  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  4332  
  4333  type Timespec = struct {
  4334  	Ftv_sec  X__darwin_time_t
  4335  	Ftv_nsec int64
  4336  } /* _timespec.h:33:1 */
  4337  
  4338  // [XSI] The blkcnt_t, blksize_t, dev_t, ino_t, mode_t, nlink_t, uid_t,
  4339  // gid_t, off_t, and time_t types shall be defined as described in
  4340  // <sys/types.h>.
  4341  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4342  //
  4343  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4344  //
  4345  // This file contains Original Code and/or Modifications of Original Code
  4346  // as defined in and that are subject to the Apple Public Source License
  4347  // Version 2.0 (the 'License'). You may not use this file except in
  4348  // compliance with the License. The rights granted to you under the License
  4349  // may not be used to create, or enable the creation or redistribution of,
  4350  // unlawful or unlicensed copies of an Apple operating system, or to
  4351  // circumvent, violate, or enable the circumvention or violation of, any
  4352  // terms of an Apple operating system software license agreement.
  4353  //
  4354  // Please obtain a copy of the License at
  4355  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4356  //
  4357  // The Original Code and all software distributed under the License are
  4358  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4359  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4360  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4361  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4362  // Please see the License for the specific language governing rights and
  4363  // limitations under the License.
  4364  //
  4365  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4366  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4367  //
  4368  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4369  //
  4370  // This file contains Original Code and/or Modifications of Original Code
  4371  // as defined in and that are subject to the Apple Public Source License
  4372  // Version 2.0 (the 'License'). You may not use this file except in
  4373  // compliance with the License. The rights granted to you under the License
  4374  // may not be used to create, or enable the creation or redistribution of,
  4375  // unlawful or unlicensed copies of an Apple operating system, or to
  4376  // circumvent, violate, or enable the circumvention or violation of, any
  4377  // terms of an Apple operating system software license agreement.
  4378  //
  4379  // Please obtain a copy of the License at
  4380  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4381  //
  4382  // The Original Code and all software distributed under the License are
  4383  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4384  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4385  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4386  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4387  // Please see the License for the specific language governing rights and
  4388  // limitations under the License.
  4389  //
  4390  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4391  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4392  //
  4393  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4394  //
  4395  // This file contains Original Code and/or Modifications of Original Code
  4396  // as defined in and that are subject to the Apple Public Source License
  4397  // Version 2.0 (the 'License'). You may not use this file except in
  4398  // compliance with the License. The rights granted to you under the License
  4399  // may not be used to create, or enable the creation or redistribution of,
  4400  // unlawful or unlicensed copies of an Apple operating system, or to
  4401  // circumvent, violate, or enable the circumvention or violation of, any
  4402  // terms of an Apple operating system software license agreement.
  4403  //
  4404  // Please obtain a copy of the License at
  4405  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4406  //
  4407  // The Original Code and all software distributed under the License are
  4408  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4409  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4410  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4411  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4412  // Please see the License for the specific language governing rights and
  4413  // limitations under the License.
  4414  //
  4415  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4416  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4417  //
  4418  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4419  //
  4420  // This file contains Original Code and/or Modifications of Original Code
  4421  // as defined in and that are subject to the Apple Public Source License
  4422  // Version 2.0 (the 'License'). You may not use this file except in
  4423  // compliance with the License. The rights granted to you under the License
  4424  // may not be used to create, or enable the creation or redistribution of,
  4425  // unlawful or unlicensed copies of an Apple operating system, or to
  4426  // circumvent, violate, or enable the circumvention or violation of, any
  4427  // terms of an Apple operating system software license agreement.
  4428  //
  4429  // Please obtain a copy of the License at
  4430  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4431  //
  4432  // The Original Code and all software distributed under the License are
  4433  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4434  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4435  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4436  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4437  // Please see the License for the specific language governing rights and
  4438  // limitations under the License.
  4439  //
  4440  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4441  
  4442  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4443  //
  4444  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4445  //
  4446  // This file contains Original Code and/or Modifications of Original Code
  4447  // as defined in and that are subject to the Apple Public Source License
  4448  // Version 2.0 (the 'License'). You may not use this file except in
  4449  // compliance with the License. The rights granted to you under the License
  4450  // may not be used to create, or enable the creation or redistribution of,
  4451  // unlawful or unlicensed copies of an Apple operating system, or to
  4452  // circumvent, violate, or enable the circumvention or violation of, any
  4453  // terms of an Apple operating system software license agreement.
  4454  //
  4455  // Please obtain a copy of the License at
  4456  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4457  //
  4458  // The Original Code and all software distributed under the License are
  4459  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4460  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4461  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4462  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4463  // Please see the License for the specific language governing rights and
  4464  // limitations under the License.
  4465  //
  4466  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4467  
  4468  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4469  //
  4470  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4471  //
  4472  // This file contains Original Code and/or Modifications of Original Code
  4473  // as defined in and that are subject to the Apple Public Source License
  4474  // Version 2.0 (the 'License'). You may not use this file except in
  4475  // compliance with the License. The rights granted to you under the License
  4476  // may not be used to create, or enable the creation or redistribution of,
  4477  // unlawful or unlicensed copies of an Apple operating system, or to
  4478  // circumvent, violate, or enable the circumvention or violation of, any
  4479  // terms of an Apple operating system software license agreement.
  4480  //
  4481  // Please obtain a copy of the License at
  4482  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4483  //
  4484  // The Original Code and all software distributed under the License are
  4485  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4486  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4487  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4488  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4489  // Please see the License for the specific language governing rights and
  4490  // limitations under the License.
  4491  //
  4492  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4493  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4494  //
  4495  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4496  //
  4497  // This file contains Original Code and/or Modifications of Original Code
  4498  // as defined in and that are subject to the Apple Public Source License
  4499  // Version 2.0 (the 'License'). You may not use this file except in
  4500  // compliance with the License. The rights granted to you under the License
  4501  // may not be used to create, or enable the creation or redistribution of,
  4502  // unlawful or unlicensed copies of an Apple operating system, or to
  4503  // circumvent, violate, or enable the circumvention or violation of, any
  4504  // terms of an Apple operating system software license agreement.
  4505  //
  4506  // Please obtain a copy of the License at
  4507  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4508  //
  4509  // The Original Code and all software distributed under the License are
  4510  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4511  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4512  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4513  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4514  // Please see the License for the specific language governing rights and
  4515  // limitations under the License.
  4516  //
  4517  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4518  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4519  //
  4520  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4521  //
  4522  // This file contains Original Code and/or Modifications of Original Code
  4523  // as defined in and that are subject to the Apple Public Source License
  4524  // Version 2.0 (the 'License'). You may not use this file except in
  4525  // compliance with the License. The rights granted to you under the License
  4526  // may not be used to create, or enable the creation or redistribution of,
  4527  // unlawful or unlicensed copies of an Apple operating system, or to
  4528  // circumvent, violate, or enable the circumvention or violation of, any
  4529  // terms of an Apple operating system software license agreement.
  4530  //
  4531  // Please obtain a copy of the License at
  4532  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4533  //
  4534  // The Original Code and all software distributed under the License are
  4535  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4536  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4537  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4538  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4539  // Please see the License for the specific language governing rights and
  4540  // limitations under the License.
  4541  //
  4542  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4543  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4544  //
  4545  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4546  //
  4547  // This file contains Original Code and/or Modifications of Original Code
  4548  // as defined in and that are subject to the Apple Public Source License
  4549  // Version 2.0 (the 'License'). You may not use this file except in
  4550  // compliance with the License. The rights granted to you under the License
  4551  // may not be used to create, or enable the creation or redistribution of,
  4552  // unlawful or unlicensed copies of an Apple operating system, or to
  4553  // circumvent, violate, or enable the circumvention or violation of, any
  4554  // terms of an Apple operating system software license agreement.
  4555  //
  4556  // Please obtain a copy of the License at
  4557  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4558  //
  4559  // The Original Code and all software distributed under the License are
  4560  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4561  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4562  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4563  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4564  // Please see the License for the specific language governing rights and
  4565  // limitations under the License.
  4566  //
  4567  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4568  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4569  //
  4570  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4571  //
  4572  // This file contains Original Code and/or Modifications of Original Code
  4573  // as defined in and that are subject to the Apple Public Source License
  4574  // Version 2.0 (the 'License'). You may not use this file except in
  4575  // compliance with the License. The rights granted to you under the License
  4576  // may not be used to create, or enable the creation or redistribution of,
  4577  // unlawful or unlicensed copies of an Apple operating system, or to
  4578  // circumvent, violate, or enable the circumvention or violation of, any
  4579  // terms of an Apple operating system software license agreement.
  4580  //
  4581  // Please obtain a copy of the License at
  4582  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4583  //
  4584  // The Original Code and all software distributed under the License are
  4585  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4586  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4587  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4588  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4589  // Please see the License for the specific language governing rights and
  4590  // limitations under the License.
  4591  //
  4592  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4593  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4594  //
  4595  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4596  //
  4597  // This file contains Original Code and/or Modifications of Original Code
  4598  // as defined in and that are subject to the Apple Public Source License
  4599  // Version 2.0 (the 'License'). You may not use this file except in
  4600  // compliance with the License. The rights granted to you under the License
  4601  // may not be used to create, or enable the creation or redistribution of,
  4602  // unlawful or unlicensed copies of an Apple operating system, or to
  4603  // circumvent, violate, or enable the circumvention or violation of, any
  4604  // terms of an Apple operating system software license agreement.
  4605  //
  4606  // Please obtain a copy of the License at
  4607  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4608  //
  4609  // The Original Code and all software distributed under the License are
  4610  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4611  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4612  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4613  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4614  // Please see the License for the specific language governing rights and
  4615  // limitations under the License.
  4616  //
  4617  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4618  
  4619  // XXX So deprecated, it would make your head spin
  4620  //
  4621  // The old stat structure.  In fact, this is not used by the kernel at all,
  4622  // and should not be used by user space, and should be removed from this
  4623  // header file entirely (along with the unused cvtstat() prototype in
  4624  // vnode_internal.h).
  4625  type Ostat = struct {
  4626  	Fst_dev       X__uint16_t
  4627  	F__ccgo_pad1  [6]byte
  4628  	Fst_ino       Ino_t
  4629  	Fst_mode      Mode_t
  4630  	Fst_nlink     Nlink_t
  4631  	Fst_uid       X__uint16_t
  4632  	Fst_gid       X__uint16_t
  4633  	Fst_rdev      X__uint16_t
  4634  	F__ccgo_pad2  [2]byte
  4635  	Fst_size      X__int32_t
  4636  	Fst_atimespec struct {
  4637  		Ftv_sec  X__darwin_time_t
  4638  		Ftv_nsec int64
  4639  	}
  4640  	Fst_mtimespec struct {
  4641  		Ftv_sec  X__darwin_time_t
  4642  		Ftv_nsec int64
  4643  	}
  4644  	Fst_ctimespec struct {
  4645  		Ftv_sec  X__darwin_time_t
  4646  		Ftv_nsec int64
  4647  	}
  4648  	Fst_blksize X__int32_t
  4649  	Fst_blocks  X__int32_t
  4650  	Fst_flags   X__uint32_t
  4651  	Fst_gen     X__uint32_t
  4652  } /* stat.h:110:1 */
  4653  
  4654  // This structure is used as the second parameter to the fstat64(),
  4655  // lstat64(), and stat64() functions, and for struct stat when
  4656  // __DARWIN_64_BIT_INO_T is set. __DARWIN_STRUCT_STAT64 is defined
  4657  // above, depending on whether we use struct timespec or the direct
  4658  // components.
  4659  //
  4660  // This is simillar to stat except for 64bit inode number
  4661  // number instead of 32bit ino_t and the addition of create(birth) time.
  4662  
  4663  // [XSI] This structure is used as the second parameter to the fstat(),
  4664  // lstat(), and stat() functions.
  4665  
  4666  type Stat = struct {
  4667  	Fst_dev       Dev_t
  4668  	Fst_mode      Mode_t
  4669  	Fst_nlink     Nlink_t
  4670  	Fst_ino       X__darwin_ino64_t
  4671  	Fst_uid       Uid_t
  4672  	Fst_gid       Gid_t
  4673  	Fst_rdev      Dev_t
  4674  	F__ccgo_pad1  [4]byte
  4675  	Fst_atimespec struct {
  4676  		Ftv_sec  X__darwin_time_t
  4677  		Ftv_nsec int64
  4678  	}
  4679  	Fst_mtimespec struct {
  4680  		Ftv_sec  X__darwin_time_t
  4681  		Ftv_nsec int64
  4682  	}
  4683  	Fst_ctimespec struct {
  4684  		Ftv_sec  X__darwin_time_t
  4685  		Ftv_nsec int64
  4686  	}
  4687  	Fst_birthtimespec struct {
  4688  		Ftv_sec  X__darwin_time_t
  4689  		Ftv_nsec int64
  4690  	}
  4691  	Fst_size    Off_t
  4692  	Fst_blocks  Blkcnt_t
  4693  	Fst_blksize Blksize_t
  4694  	Fst_flags   X__uint32_t
  4695  	Fst_gen     X__uint32_t
  4696  	Fst_lspare  X__int32_t
  4697  	Fst_qspare  [2]X__int64_t
  4698  } /* stat.h:182:1 */
  4699  
  4700  type Stat64 = struct {
  4701  	Fst_dev       Dev_t
  4702  	Fst_mode      Mode_t
  4703  	Fst_nlink     Nlink_t
  4704  	Fst_ino       X__darwin_ino64_t
  4705  	Fst_uid       Uid_t
  4706  	Fst_gid       Gid_t
  4707  	Fst_rdev      Dev_t
  4708  	F__ccgo_pad1  [4]byte
  4709  	Fst_atimespec struct {
  4710  		Ftv_sec  X__darwin_time_t
  4711  		Ftv_nsec int64
  4712  	}
  4713  	Fst_mtimespec struct {
  4714  		Ftv_sec  X__darwin_time_t
  4715  		Ftv_nsec int64
  4716  	}
  4717  	Fst_ctimespec struct {
  4718  		Ftv_sec  X__darwin_time_t
  4719  		Ftv_nsec int64
  4720  	}
  4721  	Fst_birthtimespec struct {
  4722  		Ftv_sec  X__darwin_time_t
  4723  		Ftv_nsec int64
  4724  	}
  4725  	Fst_size    Off_t
  4726  	Fst_blocks  Blkcnt_t
  4727  	Fst_blksize Blksize_t
  4728  	Fst_flags   X__uint32_t
  4729  	Fst_gen     X__uint32_t
  4730  	Fst_lspare  X__int32_t
  4731  	Fst_qspare  [2]X__int64_t
  4732  } /* stat.h:221:1 */
  4733  
  4734  type Filesec_t = uintptr /* _filesec_t.h:31:25 */
  4735  
  4736  // Copyright (c) 2000, 2003-2006, 2008, 2012 Apple Inc. All rights reserved.
  4737  //
  4738  // @APPLE_LICENSE_HEADER_START@
  4739  //
  4740  // This file contains Original Code and/or Modifications of Original Code
  4741  // as defined in and that are subject to the Apple Public Source License
  4742  // Version 2.0 (the 'License'). You may not use this file except in
  4743  // compliance with the License. Please obtain a copy of the License at
  4744  // http://www.opensource.apple.com/apsl/ and read it before using this
  4745  // file.
  4746  //
  4747  // The Original Code and all software distributed under the License are
  4748  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4749  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4750  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4751  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4752  // Please see the License for the specific language governing rights and
  4753  // limitations under the License.
  4754  //
  4755  // @APPLE_LICENSE_HEADER_END@
  4756  // Copyright (c) 1989, 1993
  4757  //	The Regents of the University of California.  All rights reserved.
  4758  //
  4759  // Redistribution and use in source and binary forms, with or without
  4760  // modification, are permitted provided that the following conditions
  4761  // are met:
  4762  // 1. Redistributions of source code must retain the above copyright
  4763  //    notice, this list of conditions and the following disclaimer.
  4764  // 2. Redistributions in binary form must reproduce the above copyright
  4765  //    notice, this list of conditions and the following disclaimer in the
  4766  //    documentation and/or other materials provided with the distribution.
  4767  // 3. All advertising materials mentioning features or use of this software
  4768  //    must display the following acknowledgement:
  4769  //	This product includes software developed by the University of
  4770  //	California, Berkeley and its contributors.
  4771  // 4. Neither the name of the University nor the names of its contributors
  4772  //    may be used to endorse or promote products derived from this software
  4773  //    without specific prior written permission.
  4774  //
  4775  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  4776  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  4777  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  4778  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  4779  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  4780  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  4781  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  4782  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  4783  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  4784  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  4785  // SUCH DAMAGE.
  4786  //
  4787  //	@(#)fts.h	8.3 (Berkeley) 8/14/94
  4788  
  4789  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  4790  //
  4791  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4792  //
  4793  // This file contains Original Code and/or Modifications of Original Code
  4794  // as defined in and that are subject to the Apple Public Source License
  4795  // Version 2.0 (the 'License'). You may not use this file except in
  4796  // compliance with the License. The rights granted to you under the License
  4797  // may not be used to create, or enable the creation or redistribution of,
  4798  // unlawful or unlicensed copies of an Apple operating system, or to
  4799  // circumvent, violate, or enable the circumvention or violation of, any
  4800  // terms of an Apple operating system software license agreement.
  4801  //
  4802  // Please obtain a copy of the License at
  4803  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4804  //
  4805  // The Original Code and all software distributed under the License are
  4806  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4807  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4808  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4809  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4810  // Please see the License for the specific language governing rights and
  4811  // limitations under the License.
  4812  //
  4813  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4814  
  4815  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4816  //
  4817  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4818  //
  4819  // This file contains Original Code and/or Modifications of Original Code
  4820  // as defined in and that are subject to the Apple Public Source License
  4821  // Version 2.0 (the 'License'). You may not use this file except in
  4822  // compliance with the License. The rights granted to you under the License
  4823  // may not be used to create, or enable the creation or redistribution of,
  4824  // unlawful or unlicensed copies of an Apple operating system, or to
  4825  // circumvent, violate, or enable the circumvention or violation of, any
  4826  // terms of an Apple operating system software license agreement.
  4827  //
  4828  // Please obtain a copy of the License at
  4829  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4830  //
  4831  // The Original Code and all software distributed under the License are
  4832  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4833  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4834  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4835  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4836  // Please see the License for the specific language governing rights and
  4837  // limitations under the License.
  4838  //
  4839  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4840  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4841  //
  4842  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4843  //
  4844  // This file contains Original Code and/or Modifications of Original Code
  4845  // as defined in and that are subject to the Apple Public Source License
  4846  // Version 2.0 (the 'License'). You may not use this file except in
  4847  // compliance with the License. The rights granted to you under the License
  4848  // may not be used to create, or enable the creation or redistribution of,
  4849  // unlawful or unlicensed copies of an Apple operating system, or to
  4850  // circumvent, violate, or enable the circumvention or violation of, any
  4851  // terms of an Apple operating system software license agreement.
  4852  //
  4853  // Please obtain a copy of the License at
  4854  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4855  //
  4856  // The Original Code and all software distributed under the License are
  4857  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4858  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4859  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4860  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4861  // Please see the License for the specific language governing rights and
  4862  // limitations under the License.
  4863  //
  4864  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4865  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4866  //
  4867  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4868  //
  4869  // This file contains Original Code and/or Modifications of Original Code
  4870  // as defined in and that are subject to the Apple Public Source License
  4871  // Version 2.0 (the 'License'). You may not use this file except in
  4872  // compliance with the License. The rights granted to you under the License
  4873  // may not be used to create, or enable the creation or redistribution of,
  4874  // unlawful or unlicensed copies of an Apple operating system, or to
  4875  // circumvent, violate, or enable the circumvention or violation of, any
  4876  // terms of an Apple operating system software license agreement.
  4877  //
  4878  // Please obtain a copy of the License at
  4879  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4880  //
  4881  // The Original Code and all software distributed under the License are
  4882  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4883  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4884  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4885  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4886  // Please see the License for the specific language governing rights and
  4887  // limitations under the License.
  4888  //
  4889  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4890  
  4891  // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  4892  //
  4893  // @APPLE_LICENSE_HEADER_START@
  4894  //
  4895  // This file contains Original Code and/or Modifications of Original Code
  4896  // as defined in and that are subject to the Apple Public Source License
  4897  // Version 2.0 (the 'License'). You may not use this file except in
  4898  // compliance with the License. Please obtain a copy of the License at
  4899  // http://www.opensource.apple.com/apsl/ and read it before using this
  4900  // file.
  4901  //
  4902  // The Original Code and all software distributed under the License are
  4903  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4904  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4905  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4906  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4907  // Please see the License for the specific language governing rights and
  4908  // limitations under the License.
  4909  //
  4910  // @APPLE_LICENSE_HEADER_END@
  4911  
  4912  type X_ftsent = struct {
  4913  	Ffts_cycle   uintptr
  4914  	Ffts_parent  uintptr
  4915  	Ffts_link    uintptr
  4916  	Ffts_number  int64
  4917  	Ffts_pointer uintptr
  4918  	Ffts_accpath uintptr
  4919  	Ffts_path    uintptr
  4920  	Ffts_errno   int32
  4921  	Ffts_symfd   int32
  4922  	Ffts_pathlen uint16
  4923  	Ffts_namelen uint16
  4924  	F__ccgo_pad1 [4]byte
  4925  	Ffts_ino     Ino_t
  4926  	Ffts_dev     Dev_t
  4927  	Ffts_nlink   Nlink_t
  4928  	Ffts_level   int16
  4929  	Ffts_info    uint16
  4930  	Ffts_flags   uint16
  4931  	Ffts_instr   uint16
  4932  	F__ccgo_pad2 [2]byte
  4933  	Ffts_statp   uintptr
  4934  	Ffts_name    [1]int8
  4935  	F__ccgo_pad3 [7]byte
  4936  } /* fts.h:72:2 */
  4937  
  4938  // Copyright (c) 2000, 2003-2006, 2008, 2012 Apple Inc. All rights reserved.
  4939  //
  4940  // @APPLE_LICENSE_HEADER_START@
  4941  //
  4942  // This file contains Original Code and/or Modifications of Original Code
  4943  // as defined in and that are subject to the Apple Public Source License
  4944  // Version 2.0 (the 'License'). You may not use this file except in
  4945  // compliance with the License. Please obtain a copy of the License at
  4946  // http://www.opensource.apple.com/apsl/ and read it before using this
  4947  // file.
  4948  //
  4949  // The Original Code and all software distributed under the License are
  4950  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4951  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4952  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4953  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4954  // Please see the License for the specific language governing rights and
  4955  // limitations under the License.
  4956  //
  4957  // @APPLE_LICENSE_HEADER_END@
  4958  // Copyright (c) 1989, 1993
  4959  //	The Regents of the University of California.  All rights reserved.
  4960  //
  4961  // Redistribution and use in source and binary forms, with or without
  4962  // modification, are permitted provided that the following conditions
  4963  // are met:
  4964  // 1. Redistributions of source code must retain the above copyright
  4965  //    notice, this list of conditions and the following disclaimer.
  4966  // 2. Redistributions in binary form must reproduce the above copyright
  4967  //    notice, this list of conditions and the following disclaimer in the
  4968  //    documentation and/or other materials provided with the distribution.
  4969  // 3. All advertising materials mentioning features or use of this software
  4970  //    must display the following acknowledgement:
  4971  //	This product includes software developed by the University of
  4972  //	California, Berkeley and its contributors.
  4973  // 4. Neither the name of the University nor the names of its contributors
  4974  //    may be used to endorse or promote products derived from this software
  4975  //    without specific prior written permission.
  4976  //
  4977  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  4978  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  4979  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  4980  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  4981  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  4982  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  4983  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  4984  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  4985  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  4986  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  4987  // SUCH DAMAGE.
  4988  //
  4989  //	@(#)fts.h	8.3 (Berkeley) 8/14/94
  4990  
  4991  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  4992  //
  4993  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4994  //
  4995  // This file contains Original Code and/or Modifications of Original Code
  4996  // as defined in and that are subject to the Apple Public Source License
  4997  // Version 2.0 (the 'License'). You may not use this file except in
  4998  // compliance with the License. The rights granted to you under the License
  4999  // may not be used to create, or enable the creation or redistribution of,
  5000  // unlawful or unlicensed copies of an Apple operating system, or to
  5001  // circumvent, violate, or enable the circumvention or violation of, any
  5002  // terms of an Apple operating system software license agreement.
  5003  //
  5004  // Please obtain a copy of the License at
  5005  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5006  //
  5007  // The Original Code and all software distributed under the License are
  5008  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5009  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5010  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5011  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5012  // Please see the License for the specific language governing rights and
  5013  // limitations under the License.
  5014  //
  5015  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5016  
  5017  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  5018  //
  5019  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5020  //
  5021  // This file contains Original Code and/or Modifications of Original Code
  5022  // as defined in and that are subject to the Apple Public Source License
  5023  // Version 2.0 (the 'License'). You may not use this file except in
  5024  // compliance with the License. The rights granted to you under the License
  5025  // may not be used to create, or enable the creation or redistribution of,
  5026  // unlawful or unlicensed copies of an Apple operating system, or to
  5027  // circumvent, violate, or enable the circumvention or violation of, any
  5028  // terms of an Apple operating system software license agreement.
  5029  //
  5030  // Please obtain a copy of the License at
  5031  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5032  //
  5033  // The Original Code and all software distributed under the License are
  5034  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5035  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5036  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5037  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5038  // Please see the License for the specific language governing rights and
  5039  // limitations under the License.
  5040  //
  5041  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5042  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  5043  //
  5044  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5045  //
  5046  // This file contains Original Code and/or Modifications of Original Code
  5047  // as defined in and that are subject to the Apple Public Source License
  5048  // Version 2.0 (the 'License'). You may not use this file except in
  5049  // compliance with the License. The rights granted to you under the License
  5050  // may not be used to create, or enable the creation or redistribution of,
  5051  // unlawful or unlicensed copies of an Apple operating system, or to
  5052  // circumvent, violate, or enable the circumvention or violation of, any
  5053  // terms of an Apple operating system software license agreement.
  5054  //
  5055  // Please obtain a copy of the License at
  5056  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5057  //
  5058  // The Original Code and all software distributed under the License are
  5059  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5060  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5061  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5062  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5063  // Please see the License for the specific language governing rights and
  5064  // limitations under the License.
  5065  //
  5066  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5067  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  5068  //
  5069  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5070  //
  5071  // This file contains Original Code and/or Modifications of Original Code
  5072  // as defined in and that are subject to the Apple Public Source License
  5073  // Version 2.0 (the 'License'). You may not use this file except in
  5074  // compliance with the License. The rights granted to you under the License
  5075  // may not be used to create, or enable the creation or redistribution of,
  5076  // unlawful or unlicensed copies of an Apple operating system, or to
  5077  // circumvent, violate, or enable the circumvention or violation of, any
  5078  // terms of an Apple operating system software license agreement.
  5079  //
  5080  // Please obtain a copy of the License at
  5081  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5082  //
  5083  // The Original Code and all software distributed under the License are
  5084  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5085  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5086  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5087  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5088  // Please see the License for the specific language governing rights and
  5089  // limitations under the License.
  5090  //
  5091  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5092  
  5093  // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  5094  //
  5095  // @APPLE_LICENSE_HEADER_START@
  5096  //
  5097  // This file contains Original Code and/or Modifications of Original Code
  5098  // as defined in and that are subject to the Apple Public Source License
  5099  // Version 2.0 (the 'License'). You may not use this file except in
  5100  // compliance with the License. Please obtain a copy of the License at
  5101  // http://www.opensource.apple.com/apsl/ and read it before using this
  5102  // file.
  5103  //
  5104  // The Original Code and all software distributed under the License are
  5105  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5106  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5107  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5108  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5109  // Please see the License for the specific language governing rights and
  5110  // limitations under the License.
  5111  //
  5112  // @APPLE_LICENSE_HEADER_END@
  5113  
  5114  type FTS = struct {
  5115  	Ffts_cur     uintptr
  5116  	Ffts_child   uintptr
  5117  	Ffts_array   uintptr
  5118  	Ffts_dev     Dev_t
  5119  	F__ccgo_pad1 [4]byte
  5120  	Ffts_path    uintptr
  5121  	Ffts_rfd     int32
  5122  	Ffts_pathlen int32
  5123  	Ffts_nitems  int32
  5124  	F__ccgo_pad2 [4]byte
  5125  	F__56        struct{ Ffts_compar uintptr }
  5126  	Ffts_options int32
  5127  	F__ccgo_pad3 [4]byte
  5128  } /* fts.h:111:3 */
  5129  
  5130  type FTSENT = X_ftsent /* fts.h:164:3 */
  5131  
  5132  var _ int8 /* gen.c:5:13: */