github.com/afumu/libc@v0.0.6/pthread/pthread_darwin_arm64.go (about)

     1  // Code generated by 'ccgo pthread/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 pthread/pthread_darwin_arm64.go -pkgname pthread', DO NOT EDIT.
     2  
     3  package pthread
     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  	MAC_OS_VERSION_11_0                    = 110000     // AvailabilityVersions.h:238:1:
    19  	MAC_OS_VERSION_12_0                    = 120000     // AvailabilityVersions.h:239:1:
    20  	MAC_OS_X_VERSION_10_0                  = 1000       // AvailabilityVersions.h:206:1:
    21  	MAC_OS_X_VERSION_10_1                  = 1010       // AvailabilityVersions.h:207:1:
    22  	MAC_OS_X_VERSION_10_10                 = 101000     // AvailabilityVersions.h:216:1:
    23  	MAC_OS_X_VERSION_10_10_2               = 101002     // AvailabilityVersions.h:217:1:
    24  	MAC_OS_X_VERSION_10_10_3               = 101003     // AvailabilityVersions.h:218:1:
    25  	MAC_OS_X_VERSION_10_11                 = 101100     // AvailabilityVersions.h:219:1:
    26  	MAC_OS_X_VERSION_10_11_2               = 101102     // AvailabilityVersions.h:220:1:
    27  	MAC_OS_X_VERSION_10_11_3               = 101103     // AvailabilityVersions.h:221:1:
    28  	MAC_OS_X_VERSION_10_11_4               = 101104     // AvailabilityVersions.h:222:1:
    29  	MAC_OS_X_VERSION_10_12                 = 101200     // AvailabilityVersions.h:223:1:
    30  	MAC_OS_X_VERSION_10_12_1               = 101201     // AvailabilityVersions.h:224:1:
    31  	MAC_OS_X_VERSION_10_12_2               = 101202     // AvailabilityVersions.h:225:1:
    32  	MAC_OS_X_VERSION_10_12_4               = 101204     // AvailabilityVersions.h:226:1:
    33  	MAC_OS_X_VERSION_10_13                 = 101300     // AvailabilityVersions.h:227:1:
    34  	MAC_OS_X_VERSION_10_13_1               = 101301     // AvailabilityVersions.h:228:1:
    35  	MAC_OS_X_VERSION_10_13_2               = 101302     // AvailabilityVersions.h:229:1:
    36  	MAC_OS_X_VERSION_10_13_4               = 101304     // AvailabilityVersions.h:230:1:
    37  	MAC_OS_X_VERSION_10_14                 = 101400     // AvailabilityVersions.h:231:1:
    38  	MAC_OS_X_VERSION_10_14_1               = 101401     // AvailabilityVersions.h:232:1:
    39  	MAC_OS_X_VERSION_10_14_4               = 101404     // AvailabilityVersions.h:233:1:
    40  	MAC_OS_X_VERSION_10_14_6               = 101406     // AvailabilityVersions.h:234:1:
    41  	MAC_OS_X_VERSION_10_15                 = 101500     // AvailabilityVersions.h:235:1:
    42  	MAC_OS_X_VERSION_10_15_1               = 101501     // AvailabilityVersions.h:236:1:
    43  	MAC_OS_X_VERSION_10_16                 = 101600     // AvailabilityVersions.h:237:1:
    44  	MAC_OS_X_VERSION_10_2                  = 1020       // AvailabilityVersions.h:208:1:
    45  	MAC_OS_X_VERSION_10_3                  = 1030       // AvailabilityVersions.h:209:1:
    46  	MAC_OS_X_VERSION_10_4                  = 1040       // AvailabilityVersions.h:210:1:
    47  	MAC_OS_X_VERSION_10_5                  = 1050       // AvailabilityVersions.h:211:1:
    48  	MAC_OS_X_VERSION_10_6                  = 1060       // AvailabilityVersions.h:212:1:
    49  	MAC_OS_X_VERSION_10_7                  = 1070       // AvailabilityVersions.h:213:1:
    50  	MAC_OS_X_VERSION_10_8                  = 1080       // AvailabilityVersions.h:214:1:
    51  	MAC_OS_X_VERSION_10_9                  = 1090       // AvailabilityVersions.h:215:1:
    52  	PTHREAD_CANCEL_ASYNCHRONOUS            = 0x00       // pthread.h:144:1:
    53  	PTHREAD_CANCEL_DEFERRED                = 0x02       // pthread.h:143:1:
    54  	PTHREAD_CANCEL_DISABLE                 = 0x00       // pthread.h:142:1:
    55  	PTHREAD_CANCEL_ENABLE                  = 0x01       // pthread.h:141:1:
    56  	PTHREAD_CREATE_DETACHED                = 2          // pthread.h:136:1:
    57  	PTHREAD_CREATE_JOINABLE                = 1          // pthread.h:135:1:
    58  	PTHREAD_EXPLICIT_SCHED                 = 2          // pthread.h:139:1:
    59  	PTHREAD_INHERIT_SCHED                  = 1          // pthread.h:138:1:
    60  	PTHREAD_MUTEX_DEFAULT                  = 0          // pthread.h:169:1:
    61  	PTHREAD_MUTEX_ERRORCHECK               = 1          // pthread.h:167:1:
    62  	PTHREAD_MUTEX_NORMAL                   = 0          // pthread.h:166:1:
    63  	PTHREAD_MUTEX_POLICY_FAIRSHARE_NP      = 1          // pthread.h:174:1:
    64  	PTHREAD_MUTEX_POLICY_FIRSTFIT_NP       = 3          // pthread.h:175:1:
    65  	PTHREAD_MUTEX_RECURSIVE                = 2          // pthread.h:168:1:
    66  	PTHREAD_PRIO_INHERIT                   = 1          // pthread.h:160:1:
    67  	PTHREAD_PRIO_NONE                      = 0          // pthread.h:159:1:
    68  	PTHREAD_PRIO_PROTECT                   = 2          // pthread.h:161:1:
    69  	PTHREAD_PROCESS_PRIVATE                = 2          // pthread.h:154:1:
    70  	PTHREAD_PROCESS_SHARED                 = 1          // pthread.h:153:1:
    71  	PTHREAD_SCOPE_PROCESS                  = 2          // pthread.h:151:1:
    72  	PTHREAD_SCOPE_SYSTEM                   = 1          // pthread.h:150:1:
    73  	QOS_MIN_RELATIVE_PRIORITY              = -15        // qos.h:153:1:
    74  	SCHED_FIFO                             = 4          // pthread_impl.h:55:1:
    75  	SCHED_OTHER                            = 1          // pthread_impl.h:54:1:
    76  	SCHED_RR                               = 2          // pthread_impl.h:56:1:
    77  	TIME_UTC                               = 1          // time.h:197:1:
    78  	X_ARM_MACHTYPES_H_                     = 0          // types.h:43:1:
    79  	X_BSD_ARM__TYPES_H_                    = 0          // _types.h:5:1:
    80  	X_BSD_MACHINE_TYPES_H_                 = 0          // types.h:32:1:
    81  	X_BSD_MACHINE__TYPES_H_                = 0          // _types.h:29:1:
    82  	X_CDEFS_H_                             = 0          // cdefs.h:68:1:
    83  	X_CLOCK_T                              = 0          // _clock_t.h:29:1:
    84  	X_DARWIN_FEATURE_64_BIT_INODE          = 1          // cdefs.h:774:1:
    85  	X_DARWIN_FEATURE_ONLY_64_BIT_INODE     = 1          // cdefs.h:784:1:
    86  	X_DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE = 1          // cdefs.h:800:1:
    87  	X_DARWIN_FEATURE_ONLY_VERS_1050        = 1          // cdefs.h:792:1:
    88  	X_DARWIN_FEATURE_UNIX_CONFORMANCE      = 3          // cdefs.h:808:1:
    89  	X_FILE_OFFSET_BITS                     = 64         // <builtin>:25:1:
    90  	X_FORTIFY_SOURCE                       = 2          // _types.h:65:1:
    91  	X_INT16_T                              = 0          // _int16_t.h:29:1:
    92  	X_INT32_T                              = 0          // _int32_t.h:29:1:
    93  	X_INT64_T                              = 0          // _int64_t.h:29:1:
    94  	X_INT8_T                               = 0          // _int8_t.h:29:1:
    95  	X_INTPTR_T                             = 0          // _intptr_t.h:29:1:
    96  	X_LP64                                 = 1          // <predefined>:1:1:
    97  	X_MACHTYPES_H_                         = 0          // types.h:44:1:
    98  	X_MACH_PORT_T                          = 0          // _mach_port_t.h:48:1:
    99  	X_Nonnull                              = 0          // cdefs.h:268:1:
   100  	X_Null_unspecified                     = 0          // cdefs.h:271:1:
   101  	X_Nullable                             = 0          // cdefs.h:265:1:
   102  	X_PTHREAD_ATTR_T                       = 0          // _pthread_attr_t.h:29:1:
   103  	X_PTHREAD_CONDATTR_T                   = 0          // _pthread_condattr_t.h:29:1:
   104  	X_PTHREAD_COND_SIG_init                = 0x3CB0B1BB // pthread_impl.h:47:1:
   105  	X_PTHREAD_COND_T                       = 0          // _pthread_cond_t.h:29:1:
   106  	X_PTHREAD_ERRORCHECK_MUTEX_SIG_init    = 0x32AAABA1 // pthread_impl.h:43:1:
   107  	X_PTHREAD_FIRSTFIT_MUTEX_SIG_init      = 0x32AAABA3 // pthread_impl.h:45:1:
   108  	X_PTHREAD_H                            = 0          // pthread.h:53:1:
   109  	X_PTHREAD_IMPL_H_                      = 0          // pthread_impl.h:25:1:
   110  	X_PTHREAD_KEY_T                        = 0          // _pthread_key_t.h:29:1:
   111  	X_PTHREAD_MUTEXATTR_T                  = 0          // _pthread_mutexattr_t.h:29:1:
   112  	X_PTHREAD_MUTEX_SIG_init               = 0x32AAABA7 // pthread_impl.h:41:1:
   113  	X_PTHREAD_MUTEX_T                      = 0          // _pthread_mutex_t.h:29:1:
   114  	X_PTHREAD_ONCE_SIG_init                = 0x30B1BCBA // pthread_impl.h:48:1:
   115  	X_PTHREAD_ONCE_T                       = 0          // _pthread_once_t.h:29:1:
   116  	X_PTHREAD_QOS_H                        = 0          // qos.h:25:1:
   117  	X_PTHREAD_RECURSIVE_MUTEX_SIG_init     = 0x32AAABA2 // pthread_impl.h:44:1:
   118  	X_PTHREAD_RWLOCKATTR_T                 = 0          // _pthread_rwlockattr_t.h:29:1:
   119  	X_PTHREAD_RWLOCK_SIG_init              = 0x2DA8B3B4 // pthread_impl.h:49:1:
   120  	X_PTHREAD_RWLOCK_T                     = 0          // _pthread_rwlock_t.h:29:1:
   121  	X_PTHREAD_T                            = 0          // _pthread_t.h:29:1:
   122  	X_SCHED_H_                             = 0          // sched.h:25:1:
   123  	X_SIGSET_T                             = 0          // _sigset_t.h:29:1:
   124  	X_SIZE_T                               = 0          // _size_t.h:29:1:
   125  	X_SYS_QOS_H                            = 0          // qos.h:25:1:
   126  	X_SYS__PTHREAD_TYPES_H_                = 0          // _pthread_types.h:30:1:
   127  	X_SYS__TYPES_H_                        = 0          // _types.h:30:1:
   128  	X_TIME_H_                              = 0          // time.h:64:1:
   129  	X_TIME_T                               = 0          // _time_t.h:29:1:
   130  	X_UINTPTR_T                            = 0          // _uintptr_t.h:29:1:
   131  	X_U_INT16_T                            = 0          // _u_int16_t.h:29:1:
   132  	X_U_INT32_T                            = 0          // _u_int32_t.h:29:1:
   133  	X_U_INT64_T                            = 0          // _u_int64_t.h:29:1:
   134  	X_U_INT8_T                             = 0          // _u_int8_t.h:29:1:
   135  )
   136  
   137  // Copyright (c) 2013-2014 Apple Inc. All rights reserved.
   138  //
   139  // @APPLE_LICENSE_HEADER_START@
   140  //
   141  // This file contains Original Code and/or Modifications of Original Code
   142  // as defined in and that are subject to the Apple Public Source License
   143  // Version 2.0 (the 'License'). You may not use this file except in
   144  // compliance with the License. Please obtain a copy of the License at
   145  // http://www.opensource.apple.com/apsl/ and read it before using this
   146  // file.
   147  //
   148  // The Original Code and all software distributed under the License are
   149  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   150  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   151  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   152  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   153  // Please see the License for the specific language governing rights and
   154  // limitations under the License.
   155  //
   156  // @APPLE_LICENSE_HEADER_END@
   157  
   158  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
   159  //
   160  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   161  //
   162  // This file contains Original Code and/or Modifications of Original Code
   163  // as defined in and that are subject to the Apple Public Source License
   164  // Version 2.0 (the 'License'). You may not use this file except in
   165  // compliance with the License. The rights granted to you under the License
   166  // may not be used to create, or enable the creation or redistribution of,
   167  // unlawful or unlicensed copies of an Apple operating system, or to
   168  // circumvent, violate, or enable the circumvention or violation of, any
   169  // terms of an Apple operating system software license agreement.
   170  //
   171  // Please obtain a copy of the License at
   172  // http://www.opensource.apple.com/apsl/ and read it before using this file.
   173  //
   174  // The Original Code and all software distributed under the License are
   175  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   176  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   177  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   178  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   179  // Please see the License for the specific language governing rights and
   180  // limitations under the License.
   181  //
   182  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   183  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
   184  // Copyright (c) 1991, 1993
   185  //	The Regents of the University of California.  All rights reserved.
   186  //
   187  // This code is derived from software contributed to Berkeley by
   188  // Berkeley Software Design, Inc.
   189  //
   190  // Redistribution and use in source and binary forms, with or without
   191  // modification, are permitted provided that the following conditions
   192  // are met:
   193  // 1. Redistributions of source code must retain the above copyright
   194  //    notice, this list of conditions and the following disclaimer.
   195  // 2. Redistributions in binary form must reproduce the above copyright
   196  //    notice, this list of conditions and the following disclaimer in the
   197  //    documentation and/or other materials provided with the distribution.
   198  // 3. All advertising materials mentioning features or use of this software
   199  //    must display the following acknowledgement:
   200  //	This product includes software developed by the University of
   201  //	California, Berkeley and its contributors.
   202  // 4. Neither the name of the University nor the names of its contributors
   203  //    may be used to endorse or promote products derived from this software
   204  //    without specific prior written permission.
   205  //
   206  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   207  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   208  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   209  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   210  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   211  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   212  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   213  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   214  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   215  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   216  // SUCH DAMAGE.
   217  //
   218  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
   219  
   220  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
   221  //
   222  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   223  //
   224  // This file contains Original Code and/or Modifications of Original Code
   225  // as defined in and that are subject to the Apple Public Source License
   226  // Version 2.0 (the 'License'). You may not use this file except in
   227  // compliance with the License. The rights granted to you under the License
   228  // may not be used to create, or enable the creation or redistribution of,
   229  // unlawful or unlicensed copies of an Apple operating system, or to
   230  // circumvent, violate, or enable the circumvention or violation of, any
   231  // terms of an Apple operating system software license agreement.
   232  //
   233  // Please obtain a copy of the License at
   234  // http://www.opensource.apple.com/apsl/ and read it before using this file.
   235  //
   236  // The Original Code and all software distributed under the License are
   237  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   238  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   239  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   240  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   241  // Please see the License for the specific language governing rights and
   242  // limitations under the License.
   243  //
   244  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   245  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
   246  //
   247  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   248  //
   249  // This file contains Original Code and/or Modifications of Original Code
   250  // as defined in and that are subject to the Apple Public Source License
   251  // Version 2.0 (the 'License'). You may not use this file except in
   252  // compliance with the License. The rights granted to you under the License
   253  // may not be used to create, or enable the creation or redistribution of,
   254  // unlawful or unlicensed copies of an Apple operating system, or to
   255  // circumvent, violate, or enable the circumvention or violation of, any
   256  // terms of an Apple operating system software license agreement.
   257  //
   258  // Please obtain a copy of the License at
   259  // http://www.opensource.apple.com/apsl/ and read it before using this file.
   260  //
   261  // The Original Code and all software distributed under the License are
   262  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   263  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   264  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   265  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   266  // Please see the License for the specific language governing rights and
   267  // limitations under the License.
   268  //
   269  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   270  // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
   271  //
   272  // @APPLE_LICENSE_HEADER_START@
   273  //
   274  // This file contains Original Code and/or Modifications of Original Code
   275  // as defined in and that are subject to the Apple Public Source License
   276  // Version 2.0 (the 'License'). You may not use this file except in
   277  // compliance with the License. Please obtain a copy of the License at
   278  // http://www.opensource.apple.com/apsl/ and read it before using this
   279  // file.
   280  //
   281  // The Original Code and all software distributed under the License are
   282  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   283  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   284  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   285  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   286  // Please see the License for the specific language governing rights and
   287  // limitations under the License.
   288  //
   289  // @APPLE_LICENSE_HEADER_END@
   290  
   291  // Copyright (c) 2013-2014 Apple Inc. All rights reserved.
   292  //
   293  // @APPLE_LICENSE_HEADER_START@
   294  //
   295  // This file contains Original Code and/or Modifications of Original Code
   296  // as defined in and that are subject to the Apple Public Source License
   297  // Version 2.0 (the 'License'). You may not use this file except in
   298  // compliance with the License. Please obtain a copy of the License at
   299  // http://www.opensource.apple.com/apsl/ and read it before using this
   300  // file.
   301  //
   302  // The Original Code and all software distributed under the License are
   303  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   304  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   305  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   306  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   307  // Please see the License for the specific language governing rights and
   308  // limitations under the License.
   309  //
   310  // @APPLE_LICENSE_HEADER_END@
   311  
   312  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
   313  //
   314  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   315  //
   316  // This file contains Original Code and/or Modifications of Original Code
   317  // as defined in and that are subject to the Apple Public Source License
   318  // Version 2.0 (the 'License'). You may not use this file except in
   319  // compliance with the License. The rights granted to you under the License
   320  // may not be used to create, or enable the creation or redistribution of,
   321  // unlawful or unlicensed copies of an Apple operating system, or to
   322  // circumvent, violate, or enable the circumvention or violation of, any
   323  // terms of an Apple operating system software license agreement.
   324  //
   325  // Please obtain a copy of the License at
   326  // http://www.opensource.apple.com/apsl/ and read it before using this file.
   327  //
   328  // The Original Code and all software distributed under the License are
   329  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   330  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   331  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   332  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   333  // Please see the License for the specific language governing rights and
   334  // limitations under the License.
   335  //
   336  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   337  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
   338  // Copyright (c) 1991, 1993
   339  //	The Regents of the University of California.  All rights reserved.
   340  //
   341  // This code is derived from software contributed to Berkeley by
   342  // Berkeley Software Design, Inc.
   343  //
   344  // Redistribution and use in source and binary forms, with or without
   345  // modification, are permitted provided that the following conditions
   346  // are met:
   347  // 1. Redistributions of source code must retain the above copyright
   348  //    notice, this list of conditions and the following disclaimer.
   349  // 2. Redistributions in binary form must reproduce the above copyright
   350  //    notice, this list of conditions and the following disclaimer in the
   351  //    documentation and/or other materials provided with the distribution.
   352  // 3. All advertising materials mentioning features or use of this software
   353  //    must display the following acknowledgement:
   354  //	This product includes software developed by the University of
   355  //	California, Berkeley and its contributors.
   356  // 4. Neither the name of the University nor the names of its contributors
   357  //    may be used to endorse or promote products derived from this software
   358  //    without specific prior written permission.
   359  //
   360  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   361  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   362  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   363  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   364  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   365  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   366  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   367  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   368  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   369  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   370  // SUCH DAMAGE.
   371  //
   372  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
   373  
   374  // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
   375  //
   376  // @APPLE_LICENSE_HEADER_START@
   377  //
   378  // This file contains Original Code and/or Modifications of Original Code
   379  // as defined in and that are subject to the Apple Public Source License
   380  // Version 2.0 (the 'License'). You may not use this file except in
   381  // compliance with the License. Please obtain a copy of the License at
   382  // http://www.opensource.apple.com/apsl/ and read it before using this
   383  // file.
   384  //
   385  // The Original Code and all software distributed under the License are
   386  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   387  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   388  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   389  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   390  // Please see the License for the specific language governing rights and
   391  // limitations under the License.
   392  //
   393  // @APPLE_LICENSE_HEADER_END@
   394  
   395  // !
   396  // @typedef qos_class_t
   397  //
   398  // @abstract
   399  // An abstract thread quality of service (QOS) classification.
   400  //
   401  // @discussion
   402  // Thread quality of service (QOS) classes are ordered abstract representations
   403  // of the nature of work that is expected to be performed by a pthread, dispatch
   404  // queue, or NSOperation. Each class specifies a maximum thread scheduling
   405  // priority for that band (which may be used in combination with a relative
   406  // priority offset within the band), as well as quality of service
   407  // characteristics for timer latency, CPU throughput, I/O throughput, network
   408  // socket traffic management behavior and more.
   409  //
   410  // A best effort is made to allocate available system resources to every QOS
   411  // class. Quality of service degredation only occurs during system resource
   412  // contention, proportionally to the QOS class. That said, QOS classes
   413  // representing user-initiated work attempt to achieve peak throughput while
   414  // QOS classes for other work attempt to achieve peak energy and thermal
   415  // efficiency, even in the absence of contention. Finally, the use of QOS
   416  // classes does not allow threads to supersede any limits that may be applied
   417  // to the overall process.
   418  
   419  // !
   420  // @constant QOS_CLASS_USER_INTERACTIVE
   421  // @abstract A QOS class which indicates work performed by this thread
   422  // is interactive with the user.
   423  // @discussion Such work is requested to run at high priority relative to other
   424  // work on the system. Specifying this QOS class is a request to run with
   425  // nearly all available system CPU and I/O bandwidth even under contention.
   426  // This is not an energy-efficient QOS class to use for large tasks. The use of
   427  // this QOS class should be limited to critical interaction with the user such
   428  // as handling events on the main event loop, view drawing, animation, etc.
   429  //
   430  // @constant QOS_CLASS_USER_INITIATED
   431  // @abstract A QOS class which indicates work performed by this thread
   432  // was initiated by the user and that the user is likely waiting for the
   433  // results.
   434  // @discussion Such work is requested to run at a priority below critical user-
   435  // interactive work, but relatively higher than other work on the system. This
   436  // is not an energy-efficient QOS class to use for large tasks. Its use
   437  // should be limited to operations of short enough duration that the user is
   438  // unlikely to switch tasks while waiting for the results. Typical
   439  // user-initiated work will have progress indicated by the display of
   440  // placeholder content or modal user interface.
   441  //
   442  // @constant QOS_CLASS_DEFAULT
   443  // @abstract A default QOS class used by the system in cases where more specific
   444  // QOS class information is not available.
   445  // @discussion Such work is requested to run at a priority below critical user-
   446  // interactive and user-initiated work, but relatively higher than utility and
   447  // background tasks. Threads created by pthread_create() without an attribute
   448  // specifying a QOS class will default to QOS_CLASS_DEFAULT. This QOS class
   449  // value is not intended to be used as a work classification, it should only be
   450  // set when propagating or restoring QOS class values provided by the system.
   451  //
   452  // @constant QOS_CLASS_UTILITY
   453  // @abstract A QOS class which indicates work performed by this thread
   454  // may or may not be initiated by the user and that the user is unlikely to be
   455  // immediately waiting for the results.
   456  // @discussion Such work is requested to run at a priority below critical user-
   457  // interactive and user-initiated work, but relatively higher than low-level
   458  // system maintenance tasks. The use of this QOS class indicates the work
   459  // should be run in an energy and thermally-efficient manner. The progress of
   460  // utility work may or may not be indicated to the user, but the effect of such
   461  // work is user-visible.
   462  //
   463  // @constant QOS_CLASS_BACKGROUND
   464  // @abstract A QOS class which indicates work performed by this thread was not
   465  // initiated by the user and that the user may be unaware of the results.
   466  // @discussion Such work is requested to run at a priority below other work.
   467  // The use of this QOS class indicates the work should be run in the most energy
   468  // and thermally-efficient manner.
   469  //
   470  // @constant QOS_CLASS_UNSPECIFIED
   471  // @abstract A QOS class value which indicates the absence or removal of QOS
   472  // class information.
   473  // @discussion As an API return value, may indicate that threads or pthread
   474  // attributes were configured with legacy API incompatible or in conflict with
   475  // the QOS class system.
   476  
   477  const ( /* qos.h:130:1: */
   478  	QOS_CLASS_USER_INTERACTIVE = 33
   479  	QOS_CLASS_USER_INITIATED   = 25
   480  	QOS_CLASS_DEFAULT          = 21
   481  	QOS_CLASS_UTILITY          = 17
   482  	QOS_CLASS_BACKGROUND       = 9
   483  	QOS_CLASS_UNSPECIFIED      = 0
   484  )
   485  
   486  const ( /* time.h:153:1: */
   487  	X_CLOCK_REALTIME             = 0
   488  	X_CLOCK_MONOTONIC            = 6
   489  	X_CLOCK_MONOTONIC_RAW        = 4
   490  	X_CLOCK_MONOTONIC_RAW_APPROX = 5
   491  	X_CLOCK_UPTIME_RAW           = 8
   492  	X_CLOCK_UPTIME_RAW_APPROX    = 9
   493  	X_CLOCK_PROCESS_CPUTIME_ID   = 12
   494  	X_CLOCK_THREAD_CPUTIME_ID    = 16
   495  )
   496  
   497  type Ptrdiff_t = int64 /* <builtin>:3:26 */
   498  
   499  type Size_t = uint64 /* <builtin>:9:23 */
   500  
   501  type Wchar_t = int32 /* <builtin>:15:24 */
   502  
   503  type X__int128_t = struct {
   504  	Flo int64
   505  	Fhi int64
   506  } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
   507  type X__uint128_t = struct {
   508  	Flo uint64
   509  	Fhi uint64
   510  } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
   511  
   512  type X__builtin_va_list = uintptr /* <builtin>:46:14 */
   513  type X__float128 = float64        /* <builtin>:47:21 */
   514  
   515  var X__darwin_check_fd_set_overflow uintptr /* <builtin>:146:5: */
   516  
   517  // Copyright (c) 2000-2012 Apple Inc. All rights reserved.
   518  //
   519  // @APPLE_LICENSE_HEADER_START@
   520  //
   521  // This file contains Original Code and/or Modifications of Original Code
   522  // as defined in and that are subject to the Apple Public Source License
   523  // Version 2.0 (the 'License'). You may not use this file except in
   524  // compliance with the License. Please obtain a copy of the License at
   525  // http://www.opensource.apple.com/apsl/ and read it before using this
   526  // file.
   527  //
   528  // The Original Code and all software distributed under the License are
   529  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   530  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   531  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   532  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   533  // Please see the License for the specific language governing rights and
   534  // limitations under the License.
   535  //
   536  // @APPLE_LICENSE_HEADER_END@
   537  // Copyright 1996 1995 by Open Software Foundation, Inc. 1997 1996 1995 1994 1993 1992 1991
   538  //              All Rights Reserved
   539  //
   540  // Permission to use, copy, modify, and distribute this software and
   541  // its documentation for any purpose and without fee is hereby granted,
   542  // provided that the above copyright notice appears in all copies and
   543  // that both the copyright notice and this permission notice appear in
   544  // supporting documentation.
   545  //
   546  // OSF DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE
   547  // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
   548  // FOR A PARTICULAR PURPOSE.
   549  //
   550  // IN NO EVENT SHALL OSF BE LIABLE FOR ANY SPECIAL, INDIRECT, OR
   551  // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
   552  // LOSS OF USE, DATA OR PROFITS, WHETHER IN ACTION OF CONTRACT,
   553  // NEGLIGENCE, OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
   554  // WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
   555  //
   556  // MkLinux
   557  
   558  // POSIX Threads - IEEE 1003.1c
   559  
   560  // Copyright (c) 2004, 2008, 2009 Apple Inc. All rights reserved.
   561  //
   562  // @APPLE_LICENSE_HEADER_START@
   563  //
   564  // This file contains Original Code and/or Modifications of Original Code
   565  // as defined in and that are subject to the Apple Public Source License
   566  // Version 2.0 (the 'License'). You may not use this file except in
   567  // compliance with the License. Please obtain a copy of the License at
   568  // http://www.opensource.apple.com/apsl/ and read it before using this
   569  // file.
   570  //
   571  // The Original Code and all software distributed under the License are
   572  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   573  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   574  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   575  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   576  // Please see the License for the specific language governing rights and
   577  // limitations under the License.
   578  //
   579  // @APPLE_LICENSE_HEADER_END@
   580  
   581  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
   582  //
   583  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   584  //
   585  // This file contains Original Code and/or Modifications of Original Code
   586  // as defined in and that are subject to the Apple Public Source License
   587  // Version 2.0 (the 'License'). You may not use this file except in
   588  // compliance with the License. The rights granted to you under the License
   589  // may not be used to create, or enable the creation or redistribution of,
   590  // unlawful or unlicensed copies of an Apple operating system, or to
   591  // circumvent, violate, or enable the circumvention or violation of, any
   592  // terms of an Apple operating system software license agreement.
   593  //
   594  // Please obtain a copy of the License at
   595  // http://www.opensource.apple.com/apsl/ and read it before using this file.
   596  //
   597  // The Original Code and all software distributed under the License are
   598  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   599  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   600  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   601  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   602  // Please see the License for the specific language governing rights and
   603  // limitations under the License.
   604  //
   605  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   606  
   607  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
   608  //
   609  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   610  //
   611  // This file contains Original Code and/or Modifications of Original Code
   612  // as defined in and that are subject to the Apple Public Source License
   613  // Version 2.0 (the 'License'). You may not use this file except in
   614  // compliance with the License. The rights granted to you under the License
   615  // may not be used to create, or enable the creation or redistribution of,
   616  // unlawful or unlicensed copies of an Apple operating system, or to
   617  // circumvent, violate, or enable the circumvention or violation of, any
   618  // terms of an Apple operating system software license agreement.
   619  //
   620  // Please obtain a copy of the License at
   621  // http://www.opensource.apple.com/apsl/ and read it before using this file.
   622  //
   623  // The Original Code and all software distributed under the License are
   624  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   625  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   626  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   627  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   628  // Please see the License for the specific language governing rights and
   629  // limitations under the License.
   630  //
   631  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   632  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
   633  // Copyright (c) 1991, 1993
   634  //	The Regents of the University of California.  All rights reserved.
   635  //
   636  // This code is derived from software contributed to Berkeley by
   637  // Berkeley Software Design, Inc.
   638  //
   639  // Redistribution and use in source and binary forms, with or without
   640  // modification, are permitted provided that the following conditions
   641  // are met:
   642  // 1. Redistributions of source code must retain the above copyright
   643  //    notice, this list of conditions and the following disclaimer.
   644  // 2. Redistributions in binary form must reproduce the above copyright
   645  //    notice, this list of conditions and the following disclaimer in the
   646  //    documentation and/or other materials provided with the distribution.
   647  // 3. All advertising materials mentioning features or use of this software
   648  //    must display the following acknowledgement:
   649  //	This product includes software developed by the University of
   650  //	California, Berkeley and its contributors.
   651  // 4. Neither the name of the University nor the names of its contributors
   652  //    may be used to endorse or promote products derived from this software
   653  //    without specific prior written permission.
   654  //
   655  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   656  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   657  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   658  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   659  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   660  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   661  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   662  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   663  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   664  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   665  // SUCH DAMAGE.
   666  //
   667  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
   668  
   669  // This SDK is designed to work with clang and specific versions of
   670  // gcc >= 4.0 with Apple's patch sets
   671  
   672  // Compatibility with compilers and environments that don't support compiler
   673  // feature checking function-like macros.
   674  
   675  // The __CONCAT macro is used to concatenate parts of symbol names, e.g.
   676  // with "#define OLD(foo) __CONCAT(old,foo)", OLD(foo) produces oldfoo.
   677  // The __CONCAT macro is a bit tricky -- make sure you don't put spaces
   678  // in between its arguments.  __CONCAT can also concatenate double-quoted
   679  // strings produced by the __STRING macro, but this only works with ANSI C.
   680  
   681  // In non-ANSI C environments, new programs will want ANSI-only C keywords
   682  // deleted from the program and old programs will want them left alone.
   683  // When using a compiler other than gcc, programs using the ANSI C keywords
   684  // const, inline etc. as normal identifiers should define -DNO_ANSI_KEYWORDS.
   685  // When using "gcc -traditional", we assume that this is the intent; if
   686  // __GNUC__ is defined but __STDC__ is not, we leave the new keywords alone.
   687  
   688  // __pure2 can be used for functions that are only a function of their scalar
   689  // arguments (meaning they can't dereference pointers).
   690  //
   691  // __stateful_pure can be used for functions that have no side effects,
   692  // but depend on the state of the memory.
   693  
   694  // __unused denotes variables and functions that may not be used, preventing
   695  // the compiler from warning about it if not used.
   696  
   697  // __used forces variables and functions to be included even if it appears
   698  // to the compiler that they are not used (and would thust be discarded).
   699  
   700  // __cold marks code used for debugging or that is rarely taken
   701  // and tells the compiler to optimize for size and outline code.
   702  
   703  // __exported denotes symbols that should be exported even when symbols
   704  // are hidden by default.
   705  // __exported_push/_exported_pop are pragmas used to delimit a range of
   706  //  symbols that should be exported even when symbols are hidden by default.
   707  
   708  // __deprecated causes the compiler to produce a warning when encountering
   709  // code using the deprecated functionality.
   710  // __deprecated_msg() does the same, and compilers that support it will print
   711  // a message along with the deprecation warning.
   712  // This may require turning on such warning with the -Wdeprecated flag.
   713  // __deprecated_enum_msg() should be used on enums, and compilers that support
   714  // it will print the deprecation warning.
   715  // __kpi_deprecated() specifically indicates deprecation of kernel programming
   716  // interfaces in Kernel.framework used by KEXTs.
   717  
   718  // __unavailable causes the compiler to error out when encountering
   719  // code using the tagged function
   720  
   721  // Delete pseudo-keywords wherever they are not available or needed.
   722  
   723  // We use `__restrict' as a way to define the `restrict' type qualifier
   724  // without disturbing older software that is unaware of C99 keywords.
   725  
   726  // Compatibility with compilers and environments that don't support the
   727  // nullability feature.
   728  
   729  // __disable_tail_calls causes the compiler to not perform tail call
   730  // optimization inside the marked function.
   731  
   732  // __not_tail_called causes the compiler to prevent tail call optimization
   733  // on statically bound calls to the function.  It has no effect on indirect
   734  // calls.  Virtual functions, objective-c methods, and functions marked as
   735  // "always_inline" cannot be marked as __not_tail_called.
   736  
   737  // __result_use_check warns callers of a function that not using the function
   738  // return value is a bug, i.e. dismissing malloc() return value results in a
   739  // memory leak.
   740  
   741  // __swift_unavailable causes the compiler to mark a symbol as specifically
   742  // unavailable in Swift, regardless of any other availability in C.
   743  
   744  // __abortlike is the attribute to put on functions like abort() that are
   745  // typically used to mark assertions. These optimize the codegen
   746  // for outlining while still maintaining debugability.
   747  
   748  // Declaring inline functions within headers is error-prone due to differences
   749  // across various versions of the C language and extensions.  __header_inline
   750  // can be used to declare inline functions within system headers.  In cases
   751  // where you want to force inlining instead of letting the compiler make
   752  // the decision, you can use __header_always_inline.
   753  //
   754  // Be aware that using inline for functions which compilers may also provide
   755  // builtins can behave differently under various compilers.  If you intend to
   756  // provide an inline version of such a function, you may want to use a macro
   757  // instead.
   758  //
   759  // The check for !__GNUC__ || __clang__ is because gcc doesn't correctly
   760  // support c99 inline in some cases:
   761  // http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55965
   762  
   763  // Compiler-dependent macros that bracket portions of code where the
   764  // "-Wunreachable-code" warning should be ignored. Please use sparingly.
   765  
   766  // Compiler-dependent macros to declare that functions take printf-like
   767  // or scanf-like arguments.  They are null except for versions of gcc
   768  // that are known to support the features properly.  Functions declared
   769  // with these attributes will cause compilation warnings if there is a
   770  // mismatch between the format string and subsequent function parameter
   771  // types.
   772  
   773  // Source compatibility only, ID string not emitted in object file
   774  
   775  // __alloc_size can be used to label function arguments that represent the
   776  // size of memory that the function allocates and returns. The one-argument
   777  // form labels a single argument that gives the allocation size (where the
   778  // arguments are numbered from 1):
   779  //
   780  // void	*malloc(size_t __size) __alloc_size(1);
   781  //
   782  // The two-argument form handles the case where the size is calculated as the
   783  // product of two arguments:
   784  //
   785  // void	*calloc(size_t __count, size_t __size) __alloc_size(1,2);
   786  
   787  // COMPILATION ENVIRONMENTS -- see compat(5) for additional detail
   788  //
   789  // DEFAULT	By default newly complied code will get POSIX APIs plus
   790  //		Apple API extensions in scope.
   791  //
   792  //		Most users will use this compilation environment to avoid
   793  //		behavioral differences between 32 and 64 bit code.
   794  //
   795  // LEGACY	Defining _NONSTD_SOURCE will get pre-POSIX APIs plus Apple
   796  //		API extensions in scope.
   797  //
   798  //		This is generally equivalent to the Tiger release compilation
   799  //		environment, except that it cannot be applied to 64 bit code;
   800  //		its use is discouraged.
   801  //
   802  //		We expect this environment to be deprecated in the future.
   803  //
   804  // STRICT	Defining _POSIX_C_SOURCE or _XOPEN_SOURCE restricts the
   805  //		available APIs to exactly the set of APIs defined by the
   806  //		corresponding standard, based on the value defined.
   807  //
   808  //		A correct, portable definition for _POSIX_C_SOURCE is 200112L.
   809  //		A correct, portable definition for _XOPEN_SOURCE is 600L.
   810  //
   811  //		Apple API extensions are not visible in this environment,
   812  //		which can cause Apple specific code to fail to compile,
   813  //		or behave incorrectly if prototypes are not in scope or
   814  //		warnings about missing prototypes are not enabled or ignored.
   815  //
   816  // In any compilation environment, for correct symbol resolution to occur,
   817  // function prototypes must be in scope.  It is recommended that all Apple
   818  // tools users add either the "-Wall" or "-Wimplicit-function-declaration"
   819  // compiler flags to their projects to be warned when a function is being
   820  // used without a prototype in scope.
   821  
   822  // These settings are particular to each product.
   823  // Platform: MacOSX
   824  
   825  // The __DARWIN_ALIAS macros are used to do symbol renaming; they allow
   826  // legacy code to use the old symbol, thus maintaining binary compatibility
   827  // while new code can use a standards compliant version of the same function.
   828  //
   829  // __DARWIN_ALIAS is used by itself if the function signature has not
   830  // changed, it is used along with a #ifdef check for __DARWIN_UNIX03
   831  // if the signature has changed.  Because the __LP64__ environment
   832  // only supports UNIX03 semantics it causes __DARWIN_UNIX03 to be
   833  // defined, but causes __DARWIN_ALIAS to do no symbol mangling.
   834  //
   835  // As a special case, when XCode is used to target a specific version of the
   836  // OS, the manifest constant __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__
   837  // will be defined by the compiler, with the digits representing major version
   838  // time 100 + minor version times 10 (e.g. 10.5 := 1050).  If we are targeting
   839  // pre-10.5, and it is the default compilation environment, revert the
   840  // compilation environment to pre-__DARWIN_UNIX03.
   841  
   842  // symbol suffixes used for symbol versioning
   843  
   844  // symbol versioning macros
   845  
   846  // symbol release macros
   847  // Copyright (c) 2010 Apple Inc. All rights reserved.
   848  //
   849  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   850  //
   851  // This file contains Original Code and/or Modifications of Original Code
   852  // as defined in and that are subject to the Apple Public Source License
   853  // Version 2.0 (the 'License'). You may not use this file except in
   854  // compliance with the License. The rights granted to you under the License
   855  // may not be used to create, or enable the creation or redistribution of,
   856  // unlawful or unlicensed copies of an Apple operating system, or to
   857  // circumvent, violate, or enable the circumvention or violation of, any
   858  // terms of an Apple operating system software license agreement.
   859  //
   860  // Please obtain a copy of the License at
   861  // http://www.opensource.apple.com/apsl/ and read it before using this file.
   862  //
   863  // The Original Code and all software distributed under the License are
   864  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   865  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   866  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   867  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   868  // Please see the License for the specific language governing rights and
   869  // limitations under the License.
   870  //
   871  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   872  
   873  // POSIX.1 requires that the macros we test be defined before any standard
   874  // header file is included.  This permits us to convert values for feature
   875  // testing, as necessary, using only _POSIX_C_SOURCE.
   876  //
   877  // Here's a quick run-down of the versions:
   878  //  defined(_POSIX_SOURCE)		1003.1-1988
   879  //  _POSIX_C_SOURCE == 1L		1003.1-1990
   880  //  _POSIX_C_SOURCE == 2L		1003.2-1992 C Language Binding Option
   881  //  _POSIX_C_SOURCE == 199309L		1003.1b-1993
   882  //  _POSIX_C_SOURCE == 199506L		1003.1c-1995, 1003.1i-1995,
   883  //					and the omnibus ISO/IEC 9945-1: 1996
   884  //  _POSIX_C_SOURCE == 200112L		1003.1-2001
   885  //  _POSIX_C_SOURCE == 200809L		1003.1-2008
   886  //
   887  // In addition, the X/Open Portability Guide, which is now the Single UNIX
   888  // Specification, defines a feature-test macro which indicates the version of
   889  // that specification, and which subsumes _POSIX_C_SOURCE.
   890  
   891  // Deal with IEEE Std. 1003.1-1990, in which _POSIX_C_SOURCE == 1L.
   892  
   893  // Deal with IEEE Std. 1003.2-1992, in which _POSIX_C_SOURCE == 2L.
   894  
   895  // Deal with various X/Open Portability Guides and Single UNIX Spec.
   896  
   897  // Deal with all versions of POSIX.  The ordering relative to the tests above is
   898  // important.
   899  
   900  // POSIX C deprecation macros
   901  // Copyright (c) 2010 Apple Inc. All rights reserved.
   902  //
   903  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   904  //
   905  // This file contains Original Code and/or Modifications of Original Code
   906  // as defined in and that are subject to the Apple Public Source License
   907  // Version 2.0 (the 'License'). You may not use this file except in
   908  // compliance with the License. The rights granted to you under the License
   909  // may not be used to create, or enable the creation or redistribution of,
   910  // unlawful or unlicensed copies of an Apple operating system, or to
   911  // circumvent, violate, or enable the circumvention or violation of, any
   912  // terms of an Apple operating system software license agreement.
   913  //
   914  // Please obtain a copy of the License at
   915  // http://www.opensource.apple.com/apsl/ and read it before using this file.
   916  //
   917  // The Original Code and all software distributed under the License are
   918  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   919  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   920  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   921  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   922  // Please see the License for the specific language governing rights and
   923  // limitations under the License.
   924  //
   925  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   926  
   927  // Set a single macro which will always be defined and can be used to determine
   928  // the appropriate namespace.  For POSIX, these values will correspond to
   929  // _POSIX_C_SOURCE value.  Currently there are two additional levels corresponding
   930  // to ANSI (_ANSI_SOURCE) and Darwin extensions (_DARWIN_C_SOURCE)
   931  
   932  // If the developer has neither requested a strict language mode nor a version
   933  // of POSIX, turn on functionality provided by __STDC_WANT_LIB_EXT1__ as part
   934  // of __DARWIN_C_FULL.
   935  
   936  // long long is not supported in c89 (__STRICT_ANSI__), but g++ -ansi and
   937  // c99 still want long longs.  While not perfect, we allow long longs for
   938  // g++.
   939  
   940  // ****************************************
   941  //
   942  //  Public darwin-specific feature macros
   943  //
   944  
   945  // _DARWIN_FEATURE_64_BIT_INODE indicates that the ino_t type is 64-bit, and
   946  // structures modified for 64-bit inodes (like struct stat) will be used.
   947  
   948  // _DARWIN_FEATURE_64_ONLY_BIT_INODE indicates that the ino_t type may only
   949  // be 64-bit; there is no support for 32-bit ino_t when this macro is defined
   950  // (and non-zero).  There is no struct stat64 either, as the regular
   951  // struct stat will already be the 64-bit version.
   952  
   953  // _DARWIN_FEATURE_ONLY_VERS_1050 indicates that only those APIs updated
   954  // in 10.5 exists; no pre-10.5 variants are available.
   955  
   956  // _DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE indicates only UNIX conforming API
   957  // are available (the legacy BSD APIs are not available)
   958  
   959  // _DARWIN_FEATURE_UNIX_CONFORMANCE indicates whether UNIX conformance is on,
   960  // and specifies the conformance level (3 is SUSv3)
   961  
   962  // This macro casts away the qualifier from the variable
   963  //
   964  // Note: use at your own risk, removing qualifiers can result in
   965  // catastrophic run-time failures.
   966  
   967  // __XNU_PRIVATE_EXTERN is a linkage decoration indicating that a symbol can be
   968  // used from other compilation units, but not other libraries or executables.
   969  
   970  // We intentionally define to nothing pointer attributes which do not have an
   971  // impact on the ABI. __indexable and __bidi_indexable are not defined because
   972  // of the ABI incompatibility that makes the diagnostic preferable.
   973  
   974  // Similarly, we intentionally define to nothing the
   975  // __ptrcheck_abi_assume_single and __ptrcheck_abi_assume_unsafe_indexable
   976  // macros because they do not lead to an ABI incompatibility. However, we do not
   977  // define the indexable and unsafe_indexable ones because the diagnostic is
   978  // better than the silent ABI break.
   979  
   980  // __unsafe_forge intrinsics are defined as regular C casts.
   981  
   982  // decay operates normally; attribute is meaningless without pointer checks.
   983  
   984  // Architecture validation for current SDK
   985  
   986  // Similar to OS_ENUM/OS_CLOSED_ENUM/OS_OPTIONS/OS_CLOSED_OPTIONS
   987  //
   988  // This provides more advanced type checking on compilers supporting
   989  // the proper extensions, even in C.
   990  
   991  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
   992  //
   993  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   994  //
   995  // This file contains Original Code and/or Modifications of Original Code
   996  // as defined in and that are subject to the Apple Public Source License
   997  // Version 2.0 (the 'License'). You may not use this file except in
   998  // compliance with the License. The rights granted to you under the License
   999  // may not be used to create, or enable the creation or redistribution of,
  1000  // unlawful or unlicensed copies of an Apple operating system, or to
  1001  // circumvent, violate, or enable the circumvention or violation of, any
  1002  // terms of an Apple operating system software license agreement.
  1003  //
  1004  // Please obtain a copy of the License at
  1005  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1006  //
  1007  // The Original Code and all software distributed under the License are
  1008  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1009  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1010  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1011  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1012  // Please see the License for the specific language governing rights and
  1013  // limitations under the License.
  1014  //
  1015  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1016  
  1017  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  1018  
  1019  // This header file contains integer types.  It's intended to also contain
  1020  // flotaing point and other arithmetic types, as needed, later.
  1021  
  1022  type X__int8_t = int8     /* _types.h:15:33 */
  1023  type X__uint8_t = uint8   /* _types.h:19:33 */
  1024  type X__int16_t = int16   /* _types.h:20:33 */
  1025  type X__uint16_t = uint16 /* _types.h:21:33 */
  1026  type X__int32_t = int32   /* _types.h:22:33 */
  1027  type X__uint32_t = uint32 /* _types.h:23:33 */
  1028  type X__int64_t = int64   /* _types.h:24:33 */
  1029  type X__uint64_t = uint64 /* _types.h:25:33 */
  1030  
  1031  type X__darwin_intptr_t = int64   /* _types.h:27:33 */
  1032  type X__darwin_natural_t = uint32 /* _types.h:28:33 */
  1033  
  1034  // The rune type below is declared to be an ``int'' instead of the more natural
  1035  // ``unsigned long'' or ``long''.  Two things are happening here.  It is not
  1036  // unsigned so that EOF (-1) can be naturally assigned to it and used.  Also,
  1037  // it looks like 10646 will be a 31 bit standard.  This means that if your
  1038  // ints cannot hold 32 bits, you will be in trouble.  The reason an int was
  1039  // chosen over a long is that the is*() and to*() routines take ints (says
  1040  // ANSI C), but they use __darwin_ct_rune_t instead of int.  By changing it
  1041  // here, you lose a bit of ANSI conformance, but your programs will still
  1042  // work.
  1043  //
  1044  // NOTE: rune_t is not covered by ANSI nor other standards, and should not
  1045  // be instantiated outside of lib/libc/locale.  Use wchar_t.  wchar_t and
  1046  // rune_t must be the same type.  Also wint_t must be no narrower than
  1047  // wchar_t, and should also be able to hold all members of the largest
  1048  // character set plus one extra value (WEOF). wint_t must be at least 16 bits.
  1049  
  1050  type X__darwin_ct_rune_t = int32 /* _types.h:48:33 */ // ct_rune_t
  1051  
  1052  // mbstate_t is an opaque object to keep conversion state, during multibyte
  1053  // stream conversions.  The content must not be referenced by user programs.
  1054  type X__mbstate_t = struct {
  1055  	F__ccgo_pad1 [0]uint64
  1056  	F__mbstate8  [128]int8
  1057  } /* _types.h:57:3 */
  1058  
  1059  type X__darwin_mbstate_t = X__mbstate_t /* _types.h:59:33 */ // mbstate_t
  1060  
  1061  type X__darwin_ptrdiff_t = int64 /* _types.h:62:33 */ // ptr1 - ptr2
  1062  
  1063  type X__darwin_size_t = uint64 /* _types.h:70:33 */ // sizeof()
  1064  
  1065  type X__darwin_va_list = X__builtin_va_list /* _types.h:76:33 */ // va_list
  1066  
  1067  type X__darwin_wchar_t = int32 /* _types.h:82:33 */ // wchar_t
  1068  
  1069  type X__darwin_rune_t = X__darwin_wchar_t /* _types.h:87:33 */ // rune_t
  1070  
  1071  type X__darwin_wint_t = int32 /* _types.h:90:33 */ // wint_t
  1072  
  1073  type X__darwin_clock_t = uint64        /* _types.h:95:33 */ // clock()
  1074  type X__darwin_socklen_t = X__uint32_t /* _types.h:96:33 */ // socklen_t (duh)
  1075  type X__darwin_ssize_t = int64         /* _types.h:97:33 */ // byte count or error
  1076  type X__darwin_time_t = int64          /* _types.h:98:33 */ // time()
  1077  
  1078  // Type definitions; takes common type definitions that must be used
  1079  // in multiple header files due to [XSI], removes them from the system
  1080  // space, and puts them in the implementation space.
  1081  
  1082  type X__darwin_blkcnt_t = X__int64_t                    /* _types.h:55:25 */ // total blocks
  1083  type X__darwin_blksize_t = X__int32_t                   /* _types.h:56:25 */ // preferred block size
  1084  type X__darwin_dev_t = X__int32_t                       /* _types.h:57:25 */ // dev_t
  1085  type X__darwin_fsblkcnt_t = uint32                      /* _types.h:58:25 */ // Used by statvfs and fstatvfs
  1086  type X__darwin_fsfilcnt_t = uint32                      /* _types.h:59:25 */ // Used by statvfs and fstatvfs
  1087  type X__darwin_gid_t = X__uint32_t                      /* _types.h:60:25 */ // [???] process and group IDs
  1088  type X__darwin_id_t = X__uint32_t                       /* _types.h:61:25 */ // [XSI] pid_t, uid_t, or gid_t
  1089  type X__darwin_ino64_t = X__uint64_t                    /* _types.h:62:25 */ // [???] Used for 64 bit inodes
  1090  type X__darwin_ino_t = X__darwin_ino64_t                /* _types.h:64:26 */ // [???] Used for inodes
  1091  type X__darwin_mach_port_name_t = X__darwin_natural_t   /* _types.h:68:28 */ // Used by mach
  1092  type X__darwin_mach_port_t = X__darwin_mach_port_name_t /* _types.h:69:35 */ // Used by mach
  1093  type X__darwin_mode_t = X__uint16_t                     /* _types.h:70:25 */ // [???] Some file attributes
  1094  type X__darwin_off_t = X__int64_t                       /* _types.h:71:25 */ // [???] Used for file sizes
  1095  type X__darwin_pid_t = X__int32_t                       /* _types.h:72:25 */ // [???] process and group IDs
  1096  type X__darwin_sigset_t = X__uint32_t                   /* _types.h:73:25 */ // [???] signal set
  1097  type X__darwin_suseconds_t = X__int32_t                 /* _types.h:74:25 */ // [???] microseconds
  1098  type X__darwin_uid_t = X__uint32_t                      /* _types.h:75:25 */ // [???] user IDs
  1099  type X__darwin_useconds_t = X__uint32_t                 /* _types.h:76:25 */ // [???] microseconds
  1100  type X__darwin_uuid_t = [16]uint8                       /* _types.h:77:25 */
  1101  type X__darwin_uuid_string_t = [37]int8                 /* _types.h:78:17 */
  1102  
  1103  // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  1104  //
  1105  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1106  //
  1107  // This file contains Original Code and/or Modifications of Original Code
  1108  // as defined in and that are subject to the Apple Public Source License
  1109  // Version 2.0 (the 'License'). You may not use this file except in
  1110  // compliance with the License. The rights granted to you under the License
  1111  // may not be used to create, or enable the creation or redistribution of,
  1112  // unlawful or unlicensed copies of an Apple operating system, or to
  1113  // circumvent, violate, or enable the circumvention or violation of, any
  1114  // terms of an Apple operating system software license agreement.
  1115  //
  1116  // Please obtain a copy of the License at
  1117  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1118  //
  1119  // The Original Code and all software distributed under the License are
  1120  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1121  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1122  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1123  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1124  // Please see the License for the specific language governing rights and
  1125  // limitations under the License.
  1126  //
  1127  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1128  
  1129  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  1130  //
  1131  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1132  //
  1133  // This file contains Original Code and/or Modifications of Original Code
  1134  // as defined in and that are subject to the Apple Public Source License
  1135  // Version 2.0 (the 'License'). You may not use this file except in
  1136  // compliance with the License. The rights granted to you under the License
  1137  // may not be used to create, or enable the creation or redistribution of,
  1138  // unlawful or unlicensed copies of an Apple operating system, or to
  1139  // circumvent, violate, or enable the circumvention or violation of, any
  1140  // terms of an Apple operating system software license agreement.
  1141  //
  1142  // Please obtain a copy of the License at
  1143  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1144  //
  1145  // The Original Code and all software distributed under the License are
  1146  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1147  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1148  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1149  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1150  // Please see the License for the specific language governing rights and
  1151  // limitations under the License.
  1152  //
  1153  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1154  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  1155  // Copyright (c) 1991, 1993
  1156  //	The Regents of the University of California.  All rights reserved.
  1157  //
  1158  // This code is derived from software contributed to Berkeley by
  1159  // Berkeley Software Design, Inc.
  1160  //
  1161  // Redistribution and use in source and binary forms, with or without
  1162  // modification, are permitted provided that the following conditions
  1163  // are met:
  1164  // 1. Redistributions of source code must retain the above copyright
  1165  //    notice, this list of conditions and the following disclaimer.
  1166  // 2. Redistributions in binary form must reproduce the above copyright
  1167  //    notice, this list of conditions and the following disclaimer in the
  1168  //    documentation and/or other materials provided with the distribution.
  1169  // 3. All advertising materials mentioning features or use of this software
  1170  //    must display the following acknowledgement:
  1171  //	This product includes software developed by the University of
  1172  //	California, Berkeley and its contributors.
  1173  // 4. Neither the name of the University nor the names of its contributors
  1174  //    may be used to endorse or promote products derived from this software
  1175  //    without specific prior written permission.
  1176  //
  1177  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1178  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1179  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1180  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1181  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1182  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1183  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1184  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1185  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1186  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1187  // SUCH DAMAGE.
  1188  //
  1189  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  1190  
  1191  // pthread opaque structures
  1192  
  1193  type X__darwin_pthread_handler_rec = struct {
  1194  	F__routine uintptr
  1195  	F__arg     uintptr
  1196  	F__next    uintptr
  1197  } /* _pthread_types.h:57:1 */
  1198  
  1199  type X_opaque_pthread_attr_t = struct {
  1200  	F__sig    int64
  1201  	F__opaque [56]int8
  1202  } /* _pthread_types.h:63:1 */
  1203  
  1204  type X_opaque_pthread_cond_t = struct {
  1205  	F__sig    int64
  1206  	F__opaque [40]int8
  1207  } /* _pthread_types.h:68:1 */
  1208  
  1209  type X_opaque_pthread_condattr_t = struct {
  1210  	F__sig    int64
  1211  	F__opaque [8]int8
  1212  } /* _pthread_types.h:73:1 */
  1213  
  1214  type X_opaque_pthread_mutex_t = struct {
  1215  	F__sig    int64
  1216  	F__opaque [56]int8
  1217  } /* _pthread_types.h:78:1 */
  1218  
  1219  type X_opaque_pthread_mutexattr_t = struct {
  1220  	F__sig    int64
  1221  	F__opaque [8]int8
  1222  } /* _pthread_types.h:83:1 */
  1223  
  1224  type X_opaque_pthread_once_t = struct {
  1225  	F__sig    int64
  1226  	F__opaque [8]int8
  1227  } /* _pthread_types.h:88:1 */
  1228  
  1229  type X_opaque_pthread_rwlock_t = struct {
  1230  	F__sig    int64
  1231  	F__opaque [192]int8
  1232  } /* _pthread_types.h:93:1 */
  1233  
  1234  type X_opaque_pthread_rwlockattr_t = struct {
  1235  	F__sig    int64
  1236  	F__opaque [16]int8
  1237  } /* _pthread_types.h:98:1 */
  1238  
  1239  type X_opaque_pthread_t = struct {
  1240  	F__sig           int64
  1241  	F__cleanup_stack uintptr
  1242  	F__opaque        [8176]int8
  1243  } /* _pthread_types.h:103:1 */
  1244  
  1245  type X__darwin_pthread_attr_t = X_opaque_pthread_attr_t             /* _pthread_types.h:109:39 */
  1246  type X__darwin_pthread_cond_t = X_opaque_pthread_cond_t             /* _pthread_types.h:110:39 */
  1247  type X__darwin_pthread_condattr_t = X_opaque_pthread_condattr_t     /* _pthread_types.h:111:43 */
  1248  type X__darwin_pthread_key_t = uint64                               /* _pthread_types.h:112:23 */
  1249  type X__darwin_pthread_mutex_t = X_opaque_pthread_mutex_t           /* _pthread_types.h:113:40 */
  1250  type X__darwin_pthread_mutexattr_t = X_opaque_pthread_mutexattr_t   /* _pthread_types.h:114:44 */
  1251  type X__darwin_pthread_once_t = X_opaque_pthread_once_t             /* _pthread_types.h:115:39 */
  1252  type X__darwin_pthread_rwlock_t = X_opaque_pthread_rwlock_t         /* _pthread_types.h:116:41 */
  1253  type X__darwin_pthread_rwlockattr_t = X_opaque_pthread_rwlockattr_t /* _pthread_types.h:117:45 */
  1254  type X__darwin_pthread_t = uintptr                                  /* _pthread_types.h:118:34 */
  1255  
  1256  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  1257  //
  1258  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1259  //
  1260  // This file contains Original Code and/or Modifications of Original Code
  1261  // as defined in and that are subject to the Apple Public Source License
  1262  // Version 2.0 (the 'License'). You may not use this file except in
  1263  // compliance with the License. The rights granted to you under the License
  1264  // may not be used to create, or enable the creation or redistribution of,
  1265  // unlawful or unlicensed copies of an Apple operating system, or to
  1266  // circumvent, violate, or enable the circumvention or violation of, any
  1267  // terms of an Apple operating system software license agreement.
  1268  //
  1269  // Please obtain a copy of the License at
  1270  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1271  //
  1272  // The Original Code and all software distributed under the License are
  1273  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1274  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1275  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1276  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1277  // Please see the License for the specific language governing rights and
  1278  // limitations under the License.
  1279  //
  1280  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1281  
  1282  type X__darwin_nl_item = int32        /* _types.h:40:14 */
  1283  type X__darwin_wctrans_t = int32      /* _types.h:41:14 */
  1284  type X__darwin_wctype_t = X__uint32_t /* _types.h:43:20 */
  1285  
  1286  // Copyright (c) 2000-2003 Apple Computer, Inc. All rights reserved.
  1287  //
  1288  // @APPLE_LICENSE_HEADER_START@
  1289  //
  1290  // This file contains Original Code and/or Modifications of Original Code
  1291  // as defined in and that are subject to the Apple Public Source License
  1292  // Version 2.0 (the 'License'). You may not use this file except in
  1293  // compliance with the License. Please obtain a copy of the License at
  1294  // http://www.opensource.apple.com/apsl/ and read it before using this
  1295  // file.
  1296  //
  1297  // The Original Code and all software distributed under the License are
  1298  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1299  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1300  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1301  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1302  // Please see the License for the specific language governing rights and
  1303  // limitations under the License.
  1304  //
  1305  // @APPLE_LICENSE_HEADER_END@
  1306  
  1307  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  1308  //
  1309  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1310  //
  1311  // This file contains Original Code and/or Modifications of Original Code
  1312  // as defined in and that are subject to the Apple Public Source License
  1313  // Version 2.0 (the 'License'). You may not use this file except in
  1314  // compliance with the License. The rights granted to you under the License
  1315  // may not be used to create, or enable the creation or redistribution of,
  1316  // unlawful or unlicensed copies of an Apple operating system, or to
  1317  // circumvent, violate, or enable the circumvention or violation of, any
  1318  // terms of an Apple operating system software license agreement.
  1319  //
  1320  // Please obtain a copy of the License at
  1321  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1322  //
  1323  // The Original Code and all software distributed under the License are
  1324  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1325  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1326  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1327  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1328  // Please see the License for the specific language governing rights and
  1329  // limitations under the License.
  1330  //
  1331  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1332  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  1333  // Copyright (c) 1991, 1993
  1334  //	The Regents of the University of California.  All rights reserved.
  1335  //
  1336  // This code is derived from software contributed to Berkeley by
  1337  // Berkeley Software Design, Inc.
  1338  //
  1339  // Redistribution and use in source and binary forms, with or without
  1340  // modification, are permitted provided that the following conditions
  1341  // are met:
  1342  // 1. Redistributions of source code must retain the above copyright
  1343  //    notice, this list of conditions and the following disclaimer.
  1344  // 2. Redistributions in binary form must reproduce the above copyright
  1345  //    notice, this list of conditions and the following disclaimer in the
  1346  //    documentation and/or other materials provided with the distribution.
  1347  // 3. All advertising materials mentioning features or use of this software
  1348  //    must display the following acknowledgement:
  1349  //	This product includes software developed by the University of
  1350  //	California, Berkeley and its contributors.
  1351  // 4. Neither the name of the University nor the names of its contributors
  1352  //    may be used to endorse or promote products derived from this software
  1353  //    without specific prior written permission.
  1354  //
  1355  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1356  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1357  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1358  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1359  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1360  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1361  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1362  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1363  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1364  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1365  // SUCH DAMAGE.
  1366  //
  1367  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  1368  
  1369  // Copyright (c) 2000-2003 Apple Computer, Inc. All rights reserved.
  1370  //
  1371  // @APPLE_LICENSE_HEADER_START@
  1372  //
  1373  // This file contains Original Code and/or Modifications of Original Code
  1374  // as defined in and that are subject to the Apple Public Source License
  1375  // Version 2.0 (the 'License'). You may not use this file except in
  1376  // compliance with the License. Please obtain a copy of the License at
  1377  // http://www.opensource.apple.com/apsl/ and read it before using this
  1378  // file.
  1379  //
  1380  // The Original Code and all software distributed under the License are
  1381  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1382  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1383  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1384  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1385  // Please see the License for the specific language governing rights and
  1386  // limitations under the License.
  1387  //
  1388  // @APPLE_LICENSE_HEADER_END@
  1389  
  1390  // Internal implementation details
  1391  
  1392  // This whole header file will disappear, so don't depend on it...
  1393  
  1394  // [Internal] data structure signatures
  1395  
  1396  // POSIX scheduling policies
  1397  
  1398  // Scheduling paramters
  1399  type Sched_param = struct {
  1400  	Fsched_priority int32
  1401  	F__opaque       [4]int8
  1402  } /* sched.h:35:1 */
  1403  
  1404  // Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
  1405  //
  1406  // @APPLE_LICENSE_HEADER_START@
  1407  //
  1408  // This file contains Original Code and/or Modifications of Original Code
  1409  // as defined in and that are subject to the Apple Public Source License
  1410  // Version 2.0 (the 'License'). You may not use this file except in
  1411  // compliance with the License. Please obtain a copy of the License at
  1412  // http://www.opensource.apple.com/apsl/ and read it before using this
  1413  // file.
  1414  //
  1415  // The Original Code and all software distributed under the License are
  1416  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1417  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1418  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1419  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1420  // Please see the License for the specific language governing rights and
  1421  // limitations under the License.
  1422  //
  1423  // @APPLE_LICENSE_HEADER_END@
  1424  // Copyright (c) 1989, 1993
  1425  //	The Regents of the University of California.  All rights reserved.
  1426  // (c) UNIX System Laboratories, Inc.
  1427  // All or some portions of this file are derived from material licensed
  1428  // to the University of California by American Telephone and Telegraph
  1429  // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  1430  // the permission of UNIX System Laboratories, 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  //	@(#)time.h	8.3 (Berkeley) 1/21/94
  1461  
  1462  // Copyright (c) 2004, 2008, 2009 Apple Inc. All rights reserved.
  1463  //
  1464  // @APPLE_LICENSE_HEADER_START@
  1465  //
  1466  // This file contains Original Code and/or Modifications of Original Code
  1467  // as defined in and that are subject to the Apple Public Source License
  1468  // Version 2.0 (the 'License'). You may not use this file except in
  1469  // compliance with the License. Please obtain a copy of the License at
  1470  // http://www.opensource.apple.com/apsl/ and read it before using this
  1471  // file.
  1472  //
  1473  // The Original Code and all software distributed under the License are
  1474  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1475  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1476  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1477  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1478  // Please see the License for the specific language governing rights and
  1479  // limitations under the License.
  1480  //
  1481  // @APPLE_LICENSE_HEADER_END@
  1482  
  1483  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  1484  //
  1485  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1486  //
  1487  // This file contains Original Code and/or Modifications of Original Code
  1488  // as defined in and that are subject to the Apple Public Source License
  1489  // Version 2.0 (the 'License'). You may not use this file except in
  1490  // compliance with the License. The rights granted to you under the License
  1491  // may not be used to create, or enable the creation or redistribution of,
  1492  // unlawful or unlicensed copies of an Apple operating system, or to
  1493  // circumvent, violate, or enable the circumvention or violation of, any
  1494  // terms of an Apple operating system software license agreement.
  1495  //
  1496  // Please obtain a copy of the License at
  1497  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1498  //
  1499  // The Original Code and all software distributed under the License are
  1500  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1501  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1502  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1503  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1504  // Please see the License for the specific language governing rights and
  1505  // limitations under the License.
  1506  //
  1507  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1508  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  1509  // Copyright (c) 1991, 1993
  1510  //	The Regents of the University of California.  All rights reserved.
  1511  //
  1512  // This code is derived from software contributed to Berkeley by
  1513  // Berkeley Software Design, Inc.
  1514  //
  1515  // Redistribution and use in source and binary forms, with or without
  1516  // modification, are permitted provided that the following conditions
  1517  // are met:
  1518  // 1. Redistributions of source code must retain the above copyright
  1519  //    notice, this list of conditions and the following disclaimer.
  1520  // 2. Redistributions in binary form must reproduce the above copyright
  1521  //    notice, this list of conditions and the following disclaimer in the
  1522  //    documentation and/or other materials provided with the distribution.
  1523  // 3. All advertising materials mentioning features or use of this software
  1524  //    must display the following acknowledgement:
  1525  //	This product includes software developed by the University of
  1526  //	California, Berkeley and its contributors.
  1527  // 4. Neither the name of the University nor the names of its contributors
  1528  //    may be used to endorse or promote products derived from this software
  1529  //    without specific prior written permission.
  1530  //
  1531  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1532  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1533  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1534  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1535  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1536  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1537  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1538  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1539  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1540  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1541  // SUCH DAMAGE.
  1542  //
  1543  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  1544  
  1545  // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  1546  //
  1547  // @APPLE_LICENSE_HEADER_START@
  1548  //
  1549  // This file contains Original Code and/or Modifications of Original Code
  1550  // as defined in and that are subject to the Apple Public Source License
  1551  // Version 2.0 (the 'License'). You may not use this file except in
  1552  // compliance with the License. Please obtain a copy of the License at
  1553  // http://www.opensource.apple.com/apsl/ and read it before using this
  1554  // file.
  1555  //
  1556  // The Original Code and all software distributed under the License are
  1557  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1558  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1559  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1560  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1561  // Please see the License for the specific language governing rights and
  1562  // limitations under the License.
  1563  //
  1564  // @APPLE_LICENSE_HEADER_END@
  1565  
  1566  //
  1567  //     These macros are for use in OS header files. They enable function prototypes
  1568  //     and Objective-C methods to be tagged with the OS version in which they
  1569  //     were first available; and, if applicable, the OS version in which they
  1570  //     became deprecated.
  1571  //
  1572  //     The desktop Mac OS X and iOS each have different version numbers.
  1573  //     The __OSX_AVAILABLE_STARTING() macro allows you to specify both the desktop
  1574  //     and iOS version numbers.  For instance:
  1575  //         __OSX_AVAILABLE_STARTING(__MAC_10_2,__IPHONE_2_0)
  1576  //     means the function/method was first available on Mac OS X 10.2 on the desktop
  1577  //     and first available in iOS 2.0 on the iPhone.
  1578  //
  1579  //     If a function is available on one platform, but not the other a _NA (not
  1580  //     applicable) parameter is used.  For instance:
  1581  //             __OSX_AVAILABLE_STARTING(__MAC_10_3,__IPHONE_NA)
  1582  //     means that the function/method was first available on Mac OS X 10.3, and it
  1583  //     currently not implemented on the iPhone.
  1584  //
  1585  //     At some point, a function/method may be deprecated.  That means Apple
  1586  //     recommends applications stop using the function, either because there is a
  1587  //     better replacement or the functionality is being phased out.  Deprecated
  1588  //     functions/methods can be tagged with a __OSX_AVAILABLE_BUT_DEPRECATED()
  1589  //     macro which specifies the OS version where the function became available
  1590  //     as well as the OS version in which it became deprecated.  For instance:
  1591  //         __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0,__MAC_10_5,__IPHONE_NA,__IPHONE_NA)
  1592  //     means that the function/method was introduced in Mac OS X 10.0, then
  1593  //     became deprecated beginning in Mac OS X 10.5.  On iOS the function
  1594  //     has never been available.
  1595  //
  1596  //     For these macros to function properly, a program must specify the OS version range
  1597  //     it is targeting.  The min OS version is specified as an option to the compiler:
  1598  //     -mmacosx-version-min=10.x when building for Mac OS X, and -miphoneos-version-min=y.z
  1599  //     when building for the iPhone.  The upper bound for the OS version is rarely needed,
  1600  //     but it can be set on the command line via: -D__MAC_OS_X_VERSION_MAX_ALLOWED=10x0 for
  1601  //     Mac OS X and __IPHONE_OS_VERSION_MAX_ALLOWED = y0z00 for iOS.
  1602  //
  1603  //     Examples:
  1604  //
  1605  //         A function available in Mac OS X 10.5 and later, but not on the phone:
  1606  //
  1607  //             extern void mymacfunc() __OSX_AVAILABLE_STARTING(__MAC_10_5,__IPHONE_NA);
  1608  //
  1609  //
  1610  //         An Objective-C method in Mac OS X 10.5 and later, but not on the phone:
  1611  //
  1612  //             @interface MyClass : NSObject
  1613  //             -(void) mymacmethod __OSX_AVAILABLE_STARTING(__MAC_10_5,__IPHONE_NA);
  1614  //             @end
  1615  //
  1616  //
  1617  //         An enum available on the phone, but not available on Mac OS X:
  1618  //
  1619  //             #if __IPHONE_OS_VERSION_MIN_REQUIRED
  1620  //                 enum { myEnum = 1 };
  1621  //             #endif
  1622  //            Note: this works when targeting the Mac OS X platform because
  1623  //            __IPHONE_OS_VERSION_MIN_REQUIRED is undefined which evaluates to zero.
  1624  //
  1625  //
  1626  //         An enum with values added in different iPhoneOS versions:
  1627  //
  1628  // 			enum {
  1629  // 			    myX  = 1,	// Usable on iPhoneOS 2.1 and later
  1630  // 			    myY  = 2,	// Usable on iPhoneOS 3.0 and later
  1631  // 			    myZ  = 3,	// Usable on iPhoneOS 3.0 and later
  1632  // 				...
  1633  // 		      Note: you do not want to use #if with enumeration values
  1634  // 			  when a client needs to see all values at compile time
  1635  // 			  and use runtime logic to only use the viable values.
  1636  //
  1637  //
  1638  //     It is also possible to use the *_VERSION_MIN_REQUIRED in source code to make one
  1639  //     source base that can be compiled to target a range of OS versions.  It is best
  1640  //     to not use the _MAC_* and __IPHONE_* macros for comparisons, but rather their values.
  1641  //     That is because you might get compiled on an old OS that does not define a later
  1642  //     OS version macro, and in the C preprocessor undefined values evaluate to zero
  1643  //     in expresssions, which could cause the #if expression to evaluate in an unexpected
  1644  //     way.
  1645  //
  1646  //         #ifdef __MAC_OS_X_VERSION_MIN_REQUIRED
  1647  //             // code only compiled when targeting Mac OS X and not iPhone
  1648  //             // note use of 1050 instead of __MAC_10_5
  1649  //             #if __MAC_OS_X_VERSION_MIN_REQUIRED < 1050
  1650  //                 // code in here might run on pre-Leopard OS
  1651  //             #else
  1652  //                 // code here can assume Leopard or later
  1653  //             #endif
  1654  //         #endif
  1655  //
  1656  //
  1657  
  1658  // __API_TO_BE_DEPRECATED is used as a version number in API that will be deprecated
  1659  // in an upcoming release. This soft deprecation is an intermediate step before formal
  1660  // deprecation to notify developers about the API before compiler warnings are generated.
  1661  // You can find all places in your code that use soft deprecated API by redefining the
  1662  // value of this macro to your current minimum deployment target, for example:
  1663  // (macOS)
  1664  //   clang -D__API_TO_BE_DEPRECATED=10.12 <other compiler flags>
  1665  // (iOS)
  1666  //   clang -D__API_TO_BE_DEPRECATED=11.0 <other compiler flags>
  1667  
  1668  // Copyright (c) 2019 by Apple Inc.. All rights reserved.
  1669  //
  1670  // @APPLE_LICENSE_HEADER_START@
  1671  //
  1672  // This file contains Original Code and/or Modifications of Original Code
  1673  // as defined in and that are subject to the Apple Public Source License
  1674  // Version 2.0 (the 'License'). You may not use this file except in
  1675  // compliance with the License. Please obtain a copy of the License at
  1676  // http://www.opensource.apple.com/apsl/ and read it before using this
  1677  // file.
  1678  //
  1679  // The Original Code and all software distributed under the License are
  1680  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1681  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1682  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1683  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1684  // Please see the License for the specific language governing rights and
  1685  // limitations under the License.
  1686  //
  1687  // @APPLE_LICENSE_HEADER_END@
  1688  
  1689  // __MAC_NA is not defined to a value but is used as a token by macros to indicate that the API is unavailable
  1690  
  1691  // __IPHONE_NA is not defined to a value but is used as a token by macros to indicate that the API is unavailable
  1692  
  1693  // Set up standard Mac OS X versions
  1694  
  1695  // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  1696  //
  1697  // @APPLE_LICENSE_HEADER_START@
  1698  //
  1699  // This file contains Original Code and/or Modifications of Original Code
  1700  // as defined in and that are subject to the Apple Public Source License
  1701  // Version 2.0 (the 'License'). You may not use this file except in
  1702  // compliance with the License. Please obtain a copy of the License at
  1703  // http://www.opensource.apple.com/apsl/ and read it before using this
  1704  // file.
  1705  //
  1706  // The Original Code and all software distributed under the License are
  1707  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1708  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1709  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1710  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1711  // Please see the License for the specific language governing rights and
  1712  // limitations under the License.
  1713  //
  1714  // @APPLE_LICENSE_HEADER_END@
  1715  
  1716  //
  1717  //     File:       AvailabilityInternal.h
  1718  //
  1719  //     Contains:   implementation details of __OSX_AVAILABLE_* macros from <Availability.h>
  1720  //
  1721  
  1722  // compiler for Mac OS X sets __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__
  1723  
  1724  // make sure a default max version is set
  1725  
  1726  //
  1727  //  Macros for defining which versions/platform a given symbol can be used.
  1728  //
  1729  //  @see http://clang.llvm.org/docs/AttributeReference.html#availability
  1730  //
  1731  
  1732  // Evaluate to nothing for compilers that don't support availability.
  1733  
  1734  // Swift compiler version
  1735  // Allows for project-agnostic "epochs" for frameworks imported into Swift via the Clang importer, like #if _compiler_version for Swift
  1736  // Example:
  1737  //
  1738  //  #if __swift_compiler_version_at_least(800, 2, 20)
  1739  //  - (nonnull NSString *)description;
  1740  //  #else
  1741  //  - (NSString *)description;
  1742  //  #endif
  1743  
  1744  // If __SPI_AVAILABLE has not been defined elsewhere, disable it.
  1745  
  1746  // for use to document app extension usage
  1747  
  1748  // for use marking APIs available info for Mac OSX
  1749  
  1750  // for use marking APIs available info for iOS
  1751  
  1752  // for use marking APIs available info for tvOS
  1753  
  1754  // for use marking APIs available info for Watch OS
  1755  
  1756  // for use marking APIs unavailable for swift
  1757  
  1758  //
  1759  //  Macros for defining which versions/platform a given symbol can be used.
  1760  //
  1761  //  @see http://clang.llvm.org/docs/AttributeReference.html#availability
  1762  //
  1763  //  * Note that these macros are only compatible with clang compilers that
  1764  //  * support the following target selection options:
  1765  //  *
  1766  //  * -mmacosx-version-min
  1767  //  * -miphoneos-version-min
  1768  //  * -mwatchos-version-min
  1769  //  * -mtvos-version-min
  1770  //
  1771  
  1772  // Evaluate to nothing for compilers that don't support availability.
  1773  
  1774  // If SPI decorations have not been defined elsewhere, disable them.
  1775  
  1776  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  1777  //
  1778  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1779  //
  1780  // This file contains Original Code and/or Modifications of Original Code
  1781  // as defined in and that are subject to the Apple Public Source License
  1782  // Version 2.0 (the 'License'). You may not use this file except in
  1783  // compliance with the License. The rights granted to you under the License
  1784  // may not be used to create, or enable the creation or redistribution of,
  1785  // unlawful or unlicensed copies of an Apple operating system, or to
  1786  // circumvent, violate, or enable the circumvention or violation of, any
  1787  // terms of an Apple operating system software license agreement.
  1788  //
  1789  // Please obtain a copy of the License at
  1790  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1791  //
  1792  // The Original Code and all software distributed under the License are
  1793  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1794  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1795  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1796  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1797  // Please see the License for the specific language governing rights and
  1798  // limitations under the License.
  1799  //
  1800  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1801  // Copyright (c) 2000-2007 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 1995 NeXT Computer, Inc. All rights reserved.
  1827  
  1828  // Copyright (c) 2000-2008 Apple Inc. All rights reserved.
  1829  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  1830  // Copyright (c) 1990, 1993
  1831  //	The Regents of the University of California.  All rights reserved.
  1832  //
  1833  // Redistribution and use in source and binary forms, with or without
  1834  // modification, are permitted provided that the following conditions
  1835  // are met:
  1836  // 1. Redistributions of source code must retain the above copyright
  1837  //    notice, this list of conditions and the following disclaimer.
  1838  // 2. Redistributions in binary form must reproduce the above copyright
  1839  //    notice, this list of conditions and the following disclaimer in the
  1840  //    documentation and/or other materials provided with the distribution.
  1841  // 3. All advertising materials mentioning features or use of this software
  1842  //    must display the following acknowledgement:
  1843  //	This product includes software developed by the University of
  1844  //	California, Berkeley and its contributors.
  1845  // 4. Neither the name of the University nor the names of its contributors
  1846  //    may be used to endorse or promote products derived from this software
  1847  //    without specific prior written permission.
  1848  //
  1849  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1850  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1851  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1852  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1853  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1854  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1855  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1856  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1857  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1858  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1859  // SUCH DAMAGE.
  1860  //
  1861  //	@(#)types.h	8.3 (Berkeley) 1/5/94
  1862  
  1863  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  1864  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  1865  //
  1866  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1867  //
  1868  // This file contains Original Code and/or Modifications of Original Code
  1869  // as defined in and that are subject to the Apple Public Source License
  1870  // Version 2.0 (the 'License'). You may not use this file except in
  1871  // compliance with the License. The rights granted to you under the License
  1872  // may not be used to create, or enable the creation or redistribution of,
  1873  // unlawful or unlicensed copies of an Apple operating system, or to
  1874  // circumvent, violate, or enable the circumvention or violation of, any
  1875  // terms of an Apple operating system software license agreement.
  1876  //
  1877  // Please obtain a copy of the License at
  1878  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1879  //
  1880  // The Original Code and all software distributed under the License are
  1881  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1882  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1883  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1884  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1885  // Please see the License for the specific language governing rights and
  1886  // limitations under the License.
  1887  //
  1888  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1889  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  1890  // Copyright (c) 1991, 1993
  1891  //	The Regents of the University of California.  All rights reserved.
  1892  //
  1893  // This code is derived from software contributed to Berkeley by
  1894  // Berkeley Software Design, Inc.
  1895  //
  1896  // Redistribution and use in source and binary forms, with or without
  1897  // modification, are permitted provided that the following conditions
  1898  // are met:
  1899  // 1. Redistributions of source code must retain the above copyright
  1900  //    notice, this list of conditions and the following disclaimer.
  1901  // 2. Redistributions in binary form must reproduce the above copyright
  1902  //    notice, this list of conditions and the following disclaimer in the
  1903  //    documentation and/or other materials provided with the distribution.
  1904  // 3. All advertising materials mentioning features or use of this software
  1905  //    must display the following acknowledgement:
  1906  //	This product includes software developed by the University of
  1907  //	California, Berkeley and its contributors.
  1908  // 4. Neither the name of the University nor the names of its contributors
  1909  //    may be used to endorse or promote products derived from this software
  1910  //    without specific prior written permission.
  1911  //
  1912  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1913  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1914  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1915  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1916  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1917  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1918  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1919  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1920  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1921  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1922  // SUCH DAMAGE.
  1923  //
  1924  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  1925  
  1926  // Basic integral types.  Omit the typedef if
  1927  // not possible for a machine/compiler combination.
  1928  // Copyright (c) 2012 Apple Inc. All rights reserved.
  1929  //
  1930  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1931  //
  1932  // This file contains Original Code and/or Modifications of Original Code
  1933  // as defined in and that are subject to the Apple Public Source License
  1934  // Version 2.0 (the 'License'). You may not use this file except in
  1935  // compliance with the License. The rights granted to you under the License
  1936  // may not be used to create, or enable the creation or redistribution of,
  1937  // unlawful or unlicensed copies of an Apple operating system, or to
  1938  // circumvent, violate, or enable the circumvention or violation of, any
  1939  // terms of an Apple operating system software license agreement.
  1940  //
  1941  // Please obtain a copy of the License at
  1942  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1943  //
  1944  // The Original Code and all software distributed under the License are
  1945  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1946  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1947  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1948  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1949  // Please see the License for the specific language governing rights and
  1950  // limitations under the License.
  1951  //
  1952  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1953  type Int8_t = int8 /* _int8_t.h:30:31 */
  1954  // Copyright (c) 2012 Apple Inc. All rights reserved.
  1955  //
  1956  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1957  //
  1958  // This file contains Original Code and/or Modifications of Original Code
  1959  // as defined in and that are subject to the Apple Public Source License
  1960  // Version 2.0 (the 'License'). You may not use this file except in
  1961  // compliance with the License. The rights granted to you under the License
  1962  // may not be used to create, or enable the creation or redistribution of,
  1963  // unlawful or unlicensed copies of an Apple operating system, or to
  1964  // circumvent, violate, or enable the circumvention or violation of, any
  1965  // terms of an Apple operating system software license agreement.
  1966  //
  1967  // Please obtain a copy of the License at
  1968  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1969  //
  1970  // The Original Code and all software distributed under the License are
  1971  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1972  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1973  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1974  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1975  // Please see the License for the specific language governing rights and
  1976  // limitations under the License.
  1977  //
  1978  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1979  type Int16_t = int16 /* _int16_t.h:30:33 */
  1980  // Copyright (c) 2012 Apple Inc. All rights reserved.
  1981  //
  1982  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1983  //
  1984  // This file contains Original Code and/or Modifications of Original Code
  1985  // as defined in and that are subject to the Apple Public Source License
  1986  // Version 2.0 (the 'License'). You may not use this file except in
  1987  // compliance with the License. The rights granted to you under the License
  1988  // may not be used to create, or enable the creation or redistribution of,
  1989  // unlawful or unlicensed copies of an Apple operating system, or to
  1990  // circumvent, violate, or enable the circumvention or violation of, any
  1991  // terms of an Apple operating system software license agreement.
  1992  //
  1993  // Please obtain a copy of the License at
  1994  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1995  //
  1996  // The Original Code and all software distributed under the License are
  1997  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1998  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1999  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2000  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2001  // Please see the License for the specific language governing rights and
  2002  // limitations under the License.
  2003  //
  2004  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2005  type Int32_t = int32 /* _int32_t.h:30:33 */
  2006  // Copyright (c) 2012 Apple Inc. All rights reserved.
  2007  //
  2008  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2009  //
  2010  // This file contains Original Code and/or Modifications of Original Code
  2011  // as defined in and that are subject to the Apple Public Source License
  2012  // Version 2.0 (the 'License'). You may not use this file except in
  2013  // compliance with the License. The rights granted to you under the License
  2014  // may not be used to create, or enable the creation or redistribution of,
  2015  // unlawful or unlicensed copies of an Apple operating system, or to
  2016  // circumvent, violate, or enable the circumvention or violation of, any
  2017  // terms of an Apple operating system software license agreement.
  2018  //
  2019  // Please obtain a copy of the License at
  2020  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2021  //
  2022  // The Original Code and all software distributed under the License are
  2023  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2024  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2025  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2026  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2027  // Please see the License for the specific language governing rights and
  2028  // limitations under the License.
  2029  //
  2030  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2031  type Int64_t = int64 /* _int64_t.h:30:33 */
  2032  
  2033  // Copyright (c) 2016 Apple Inc. All rights reserved.
  2034  //
  2035  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2036  //
  2037  // This file contains Original Code and/or Modifications of Original Code
  2038  // as defined in and that are subject to the Apple Public Source License
  2039  // Version 2.0 (the 'License'). You may not use this file except in
  2040  // compliance with the License. The rights granted to you under the License
  2041  // may not be used to create, or enable the creation or redistribution of,
  2042  // unlawful or unlicensed copies of an Apple operating system, or to
  2043  // circumvent, violate, or enable the circumvention or violation of, any
  2044  // terms of an Apple operating system software license agreement.
  2045  //
  2046  // Please obtain a copy of the License at
  2047  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2048  //
  2049  // The Original Code and all software distributed under the License are
  2050  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2051  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2052  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2053  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2054  // Please see the License for the specific language governing rights and
  2055  // limitations under the License.
  2056  //
  2057  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2058  type U_int8_t = uint8 /* _u_int8_t.h:30:33 */
  2059  // Copyright (c) 2012 Apple Inc. All rights reserved.
  2060  //
  2061  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2062  //
  2063  // This file contains Original Code and/or Modifications of Original Code
  2064  // as defined in and that are subject to the Apple Public Source License
  2065  // Version 2.0 (the 'License'). You may not use this file except in
  2066  // compliance with the License. The rights granted to you under the License
  2067  // may not be used to create, or enable the creation or redistribution of,
  2068  // unlawful or unlicensed copies of an Apple operating system, or to
  2069  // circumvent, violate, or enable the circumvention or violation of, any
  2070  // terms of an Apple operating system software license agreement.
  2071  //
  2072  // Please obtain a copy of the License at
  2073  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2074  //
  2075  // The Original Code and all software distributed under the License are
  2076  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2077  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2078  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2079  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2080  // Please see the License for the specific language governing rights and
  2081  // limitations under the License.
  2082  //
  2083  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2084  type U_int16_t = uint16 /* _u_int16_t.h:30:41 */
  2085  // Copyright (c) 2012 Apple Inc. All rights reserved.
  2086  //
  2087  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2088  //
  2089  // This file contains Original Code and/or Modifications of Original Code
  2090  // as defined in and that are subject to the Apple Public Source License
  2091  // Version 2.0 (the 'License'). You may not use this file except in
  2092  // compliance with the License. The rights granted to you under the License
  2093  // may not be used to create, or enable the creation or redistribution of,
  2094  // unlawful or unlicensed copies of an Apple operating system, or to
  2095  // circumvent, violate, or enable the circumvention or violation of, any
  2096  // terms of an Apple operating system software license agreement.
  2097  //
  2098  // Please obtain a copy of the License at
  2099  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2100  //
  2101  // The Original Code and all software distributed under the License are
  2102  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2103  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2104  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2105  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2106  // Please see the License for the specific language governing rights and
  2107  // limitations under the License.
  2108  //
  2109  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2110  type U_int32_t = uint32 /* _u_int32_t.h:30:33 */
  2111  // Copyright (c) 2012 Apple Inc. All rights reserved.
  2112  //
  2113  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2114  //
  2115  // This file contains Original Code and/or Modifications of Original Code
  2116  // as defined in and that are subject to the Apple Public Source License
  2117  // Version 2.0 (the 'License'). You may not use this file except in
  2118  // compliance with the License. The rights granted to you under the License
  2119  // may not be used to create, or enable the creation or redistribution of,
  2120  // unlawful or unlicensed copies of an Apple operating system, or to
  2121  // circumvent, violate, or enable the circumvention or violation of, any
  2122  // terms of an Apple operating system software license agreement.
  2123  //
  2124  // Please obtain a copy of the License at
  2125  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2126  //
  2127  // The Original Code and all software distributed under the License are
  2128  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2129  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2130  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2131  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2132  // Please see the License for the specific language governing rights and
  2133  // limitations under the License.
  2134  //
  2135  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2136  type U_int64_t = uint64 /* _u_int64_t.h:30:33 */
  2137  
  2138  type Register_t = Int64_t /* types.h:66:33 */
  2139  
  2140  // Copyright (c) 2003-2012 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  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  2166  //
  2167  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2168  //
  2169  // This file contains Original Code and/or Modifications of Original Code
  2170  // as defined in and that are subject to the Apple Public Source License
  2171  // Version 2.0 (the 'License'). You may not use this file except in
  2172  // compliance with the License. The rights granted to you under the License
  2173  // may not be used to create, or enable the creation or redistribution of,
  2174  // unlawful or unlicensed copies of an Apple operating system, or to
  2175  // circumvent, violate, or enable the circumvention or violation of, any
  2176  // terms of an Apple operating system software license agreement.
  2177  //
  2178  // Please obtain a copy of the License at
  2179  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2180  //
  2181  // The Original Code and all software distributed under the License are
  2182  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2183  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2184  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2185  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2186  // Please see the License for the specific language governing rights and
  2187  // limitations under the License.
  2188  //
  2189  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2190  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  2191  
  2192  type Intptr_t = X__darwin_intptr_t /* _intptr_t.h:32:33 */
  2193  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2194  //
  2195  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2196  //
  2197  // This file contains Original Code and/or Modifications of Original Code
  2198  // as defined in and that are subject to the Apple Public Source License
  2199  // Version 2.0 (the 'License'). You may not use this file except in
  2200  // compliance with the License. The rights granted to you under the License
  2201  // may not be used to create, or enable the creation or redistribution of,
  2202  // unlawful or unlicensed copies of an Apple operating system, or to
  2203  // circumvent, violate, or enable the circumvention or violation of, any
  2204  // terms of an Apple operating system software license agreement.
  2205  //
  2206  // Please obtain a copy of the License at
  2207  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2208  //
  2209  // The Original Code and all software distributed under the License are
  2210  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2211  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2212  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2213  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2214  // Please see the License for the specific language governing rights and
  2215  // limitations under the License.
  2216  //
  2217  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2218  
  2219  type Uintptr_t = uint64 /* _uintptr_t.h:34:33 */
  2220  
  2221  // These types are used for reserving the largest possible size.
  2222  type User_addr_t = U_int64_t  /* types.h:77:33 */
  2223  type User_size_t = U_int64_t  /* types.h:78:33 */
  2224  type User_ssize_t = Int64_t   /* types.h:79:33 */
  2225  type User_long_t = Int64_t    /* types.h:80:33 */
  2226  type User_ulong_t = U_int64_t /* types.h:81:33 */
  2227  type User_time_t = Int64_t    /* types.h:82:33 */
  2228  type User_off_t = Int64_t     /* types.h:83:33 */
  2229  
  2230  // This defines the size of syscall arguments after copying into the kernel:
  2231  type Syscall_arg_t = U_int64_t /* types.h:104:33 */
  2232  
  2233  type Clock_t = X__darwin_clock_t /* _clock_t.h:31:33 */
  2234  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2235  //
  2236  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2237  //
  2238  // This file contains Original Code and/or Modifications of Original Code
  2239  // as defined in and that are subject to the Apple Public Source License
  2240  // Version 2.0 (the 'License'). You may not use this file except in
  2241  // compliance with the License. The rights granted to you under the License
  2242  // may not be used to create, or enable the creation or redistribution of,
  2243  // unlawful or unlicensed copies of an Apple operating system, or to
  2244  // circumvent, violate, or enable the circumvention or violation of, any
  2245  // terms of an Apple operating system software license agreement.
  2246  //
  2247  // Please obtain a copy of the License at
  2248  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2249  //
  2250  // The Original Code and all software distributed under the License are
  2251  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2252  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2253  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2254  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2255  // Please see the License for the specific language governing rights and
  2256  // limitations under the License.
  2257  //
  2258  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2259  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  2260  //
  2261  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2262  //
  2263  // This file contains Original Code and/or Modifications of Original Code
  2264  // as defined in and that are subject to the Apple Public Source License
  2265  // Version 2.0 (the 'License'). You may not use this file except in
  2266  // compliance with the License. The rights granted to you under the License
  2267  // may not be used to create, or enable the creation or redistribution of,
  2268  // unlawful or unlicensed copies of an Apple operating system, or to
  2269  // circumvent, violate, or enable the circumvention or violation of, any
  2270  // terms of an Apple operating system software license agreement.
  2271  //
  2272  // Please obtain a copy of the License at
  2273  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2274  //
  2275  // The Original Code and all software distributed under the License are
  2276  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2277  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2278  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2279  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2280  // Please see the License for the specific language governing rights and
  2281  // limitations under the License.
  2282  //
  2283  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2284  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  2285  type Time_t = X__darwin_time_t /* _time_t.h:31:33 */
  2286  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2287  //
  2288  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2289  //
  2290  // This file contains Original Code and/or Modifications of Original Code
  2291  // as defined in and that are subject to the Apple Public Source License
  2292  // Version 2.0 (the 'License'). You may not use this file except in
  2293  // compliance with the License. The rights granted to you under the License
  2294  // may not be used to create, or enable the creation or redistribution of,
  2295  // unlawful or unlicensed copies of an Apple operating system, or to
  2296  // circumvent, violate, or enable the circumvention or violation of, any
  2297  // terms of an Apple operating system software license agreement.
  2298  //
  2299  // Please obtain a copy of the License at
  2300  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2301  //
  2302  // The Original Code and all software distributed under the License are
  2303  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2304  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2305  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2306  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2307  // Please see the License for the specific language governing rights and
  2308  // limitations under the License.
  2309  //
  2310  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2311  
  2312  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  2313  //
  2314  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2315  //
  2316  // This file contains Original Code and/or Modifications of Original Code
  2317  // as defined in and that are subject to the Apple Public Source License
  2318  // Version 2.0 (the 'License'). You may not use this file except in
  2319  // compliance with the License. The rights granted to you under the License
  2320  // may not be used to create, or enable the creation or redistribution of,
  2321  // unlawful or unlicensed copies of an Apple operating system, or to
  2322  // circumvent, violate, or enable the circumvention or violation of, any
  2323  // terms of an Apple operating system software license agreement.
  2324  //
  2325  // Please obtain a copy of the License at
  2326  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2327  //
  2328  // The Original Code and all software distributed under the License are
  2329  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2330  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2331  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2332  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2333  // Please see the License for the specific language governing rights and
  2334  // limitations under the License.
  2335  //
  2336  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2337  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  2338  
  2339  type Timespec = struct {
  2340  	Ftv_sec  X__darwin_time_t
  2341  	Ftv_nsec int64
  2342  } /* _timespec.h:33:1 */
  2343  
  2344  type Tm = struct {
  2345  	Ftm_sec      int32
  2346  	Ftm_min      int32
  2347  	Ftm_hour     int32
  2348  	Ftm_mday     int32
  2349  	Ftm_mon      int32
  2350  	Ftm_year     int32
  2351  	Ftm_wday     int32
  2352  	Ftm_yday     int32
  2353  	Ftm_isdst    int32
  2354  	F__ccgo_pad1 [4]byte
  2355  	Ftm_gmtoff   int64
  2356  	Ftm_zone     uintptr
  2357  } /* time.h:75:1 */
  2358  
  2359  type Clockid_t = uint32 /* time.h:172:3 */
  2360  
  2361  // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  2362  //
  2363  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2364  //
  2365  // This file contains Original Code and/or Modifications of Original Code
  2366  // as defined in and that are subject to the Apple Public Source License
  2367  // Version 2.0 (the 'License'). You may not use this file except in
  2368  // compliance with the License. The rights granted to you under the License
  2369  // may not be used to create, or enable the creation or redistribution of,
  2370  // unlawful or unlicensed copies of an Apple operating system, or to
  2371  // circumvent, violate, or enable the circumvention or violation of, any
  2372  // terms of an Apple operating system software license agreement.
  2373  //
  2374  // Please obtain a copy of the License at
  2375  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2376  //
  2377  // The Original Code and all software distributed under the License are
  2378  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2379  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2380  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2381  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2382  // Please see the License for the specific language governing rights and
  2383  // limitations under the License.
  2384  //
  2385  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2386  
  2387  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2388  //
  2389  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2390  //
  2391  // This file contains Original Code and/or Modifications of Original Code
  2392  // as defined in and that are subject to the Apple Public Source License
  2393  // Version 2.0 (the 'License'). You may not use this file except in
  2394  // compliance with the License. The rights granted to you under the License
  2395  // may not be used to create, or enable the creation or redistribution of,
  2396  // unlawful or unlicensed copies of an Apple operating system, or to
  2397  // circumvent, violate, or enable the circumvention or violation of, any
  2398  // terms of an Apple operating system software license agreement.
  2399  //
  2400  // Please obtain a copy of the License at
  2401  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2402  //
  2403  // The Original Code and all software distributed under the License are
  2404  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2405  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2406  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2407  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2408  // Please see the License for the specific language governing rights and
  2409  // limitations under the License.
  2410  //
  2411  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2412  // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  2413  //
  2414  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2415  //
  2416  // This file contains Original Code and/or Modifications of Original Code
  2417  // as defined in and that are subject to the Apple Public Source License
  2418  // Version 2.0 (the 'License'). You may not use this file except in
  2419  // compliance with the License. The rights granted to you under the License
  2420  // may not be used to create, or enable the creation or redistribution of,
  2421  // unlawful or unlicensed copies of an Apple operating system, or to
  2422  // circumvent, violate, or enable the circumvention or violation of, any
  2423  // terms of an Apple operating system software license agreement.
  2424  //
  2425  // Please obtain a copy of the License at
  2426  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2427  //
  2428  // The Original Code and all software distributed under the License are
  2429  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2430  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2431  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2432  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2433  // Please see the License for the specific language governing rights and
  2434  // limitations under the License.
  2435  //
  2436  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2437  
  2438  type Pthread_attr_t = X__darwin_pthread_attr_t /* _pthread_attr_t.h:31:33 */
  2439  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2440  //
  2441  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2442  //
  2443  // This file contains Original Code and/or Modifications of Original Code
  2444  // as defined in and that are subject to the Apple Public Source License
  2445  // Version 2.0 (the 'License'). You may not use this file except in
  2446  // compliance with the License. The rights granted to you under the License
  2447  // may not be used to create, or enable the creation or redistribution of,
  2448  // unlawful or unlicensed copies of an Apple operating system, or to
  2449  // circumvent, violate, or enable the circumvention or violation of, any
  2450  // terms of an Apple operating system software license agreement.
  2451  //
  2452  // Please obtain a copy of the License at
  2453  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2454  //
  2455  // The Original Code and all software distributed under the License are
  2456  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2457  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2458  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2459  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2460  // Please see the License for the specific language governing rights and
  2461  // limitations under the License.
  2462  //
  2463  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2464  // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  2465  //
  2466  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2467  //
  2468  // This file contains Original Code and/or Modifications of Original Code
  2469  // as defined in and that are subject to the Apple Public Source License
  2470  // Version 2.0 (the 'License'). You may not use this file except in
  2471  // compliance with the License. The rights granted to you under the License
  2472  // may not be used to create, or enable the creation or redistribution of,
  2473  // unlawful or unlicensed copies of an Apple operating system, or to
  2474  // circumvent, violate, or enable the circumvention or violation of, any
  2475  // terms of an Apple operating system software license agreement.
  2476  //
  2477  // Please obtain a copy of the License at
  2478  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2479  //
  2480  // The Original Code and all software distributed under the License are
  2481  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2482  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2483  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2484  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2485  // Please see the License for the specific language governing rights and
  2486  // limitations under the License.
  2487  //
  2488  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2489  
  2490  type Pthread_cond_t = X__darwin_pthread_cond_t /* _pthread_cond_t.h:31:33 */
  2491  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2492  //
  2493  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2494  //
  2495  // This file contains Original Code and/or Modifications of Original Code
  2496  // as defined in and that are subject to the Apple Public Source License
  2497  // Version 2.0 (the 'License'). You may not use this file except in
  2498  // compliance with the License. The rights granted to you under the License
  2499  // may not be used to create, or enable the creation or redistribution of,
  2500  // unlawful or unlicensed copies of an Apple operating system, or to
  2501  // circumvent, violate, or enable the circumvention or violation of, any
  2502  // terms of an Apple operating system software license agreement.
  2503  //
  2504  // Please obtain a copy of the License at
  2505  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2506  //
  2507  // The Original Code and all software distributed under the License are
  2508  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2509  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2510  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2511  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2512  // Please see the License for the specific language governing rights and
  2513  // limitations under the License.
  2514  //
  2515  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2516  // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  2517  //
  2518  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2519  //
  2520  // This file contains Original Code and/or Modifications of Original Code
  2521  // as defined in and that are subject to the Apple Public Source License
  2522  // Version 2.0 (the 'License'). You may not use this file except in
  2523  // compliance with the License. The rights granted to you under the License
  2524  // may not be used to create, or enable the creation or redistribution of,
  2525  // unlawful or unlicensed copies of an Apple operating system, or to
  2526  // circumvent, violate, or enable the circumvention or violation of, any
  2527  // terms of an Apple operating system software license agreement.
  2528  //
  2529  // Please obtain a copy of the License at
  2530  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2531  //
  2532  // The Original Code and all software distributed under the License are
  2533  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2534  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2535  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2536  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2537  // Please see the License for the specific language governing rights and
  2538  // limitations under the License.
  2539  //
  2540  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2541  
  2542  type Pthread_condattr_t = X__darwin_pthread_condattr_t /* _pthread_condattr_t.h:31:37 */
  2543  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2544  //
  2545  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2546  //
  2547  // This file contains Original Code and/or Modifications of Original Code
  2548  // as defined in and that are subject to the Apple Public Source License
  2549  // Version 2.0 (the 'License'). You may not use this file except in
  2550  // compliance with the License. The rights granted to you under the License
  2551  // may not be used to create, or enable the creation or redistribution of,
  2552  // unlawful or unlicensed copies of an Apple operating system, or to
  2553  // circumvent, violate, or enable the circumvention or violation of, any
  2554  // terms of an Apple operating system software license agreement.
  2555  //
  2556  // Please obtain a copy of the License at
  2557  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2558  //
  2559  // The Original Code and all software distributed under the License are
  2560  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2561  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2562  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2563  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2564  // Please see the License for the specific language governing rights and
  2565  // limitations under the License.
  2566  //
  2567  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2568  // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  2569  //
  2570  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2571  //
  2572  // This file contains Original Code and/or Modifications of Original Code
  2573  // as defined in and that are subject to the Apple Public Source License
  2574  // Version 2.0 (the 'License'). You may not use this file except in
  2575  // compliance with the License. The rights granted to you under the License
  2576  // may not be used to create, or enable the creation or redistribution of,
  2577  // unlawful or unlicensed copies of an Apple operating system, or to
  2578  // circumvent, violate, or enable the circumvention or violation of, any
  2579  // terms of an Apple operating system software license agreement.
  2580  //
  2581  // Please obtain a copy of the License at
  2582  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2583  //
  2584  // The Original Code and all software distributed under the License are
  2585  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2586  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2587  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2588  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2589  // Please see the License for the specific language governing rights and
  2590  // limitations under the License.
  2591  //
  2592  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2593  
  2594  type Pthread_key_t = X__darwin_pthread_key_t /* _pthread_key_t.h:31:32 */
  2595  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2596  //
  2597  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2598  //
  2599  // This file contains Original Code and/or Modifications of Original Code
  2600  // as defined in and that are subject to the Apple Public Source License
  2601  // Version 2.0 (the 'License'). You may not use this file except in
  2602  // compliance with the License. The rights granted to you under the License
  2603  // may not be used to create, or enable the creation or redistribution of,
  2604  // unlawful or unlicensed copies of an Apple operating system, or to
  2605  // circumvent, violate, or enable the circumvention or violation of, any
  2606  // terms of an Apple operating system software license agreement.
  2607  //
  2608  // Please obtain a copy of the License at
  2609  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2610  //
  2611  // The Original Code and all software distributed under the License are
  2612  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2613  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2614  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2615  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2616  // Please see the License for the specific language governing rights and
  2617  // limitations under the License.
  2618  //
  2619  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2620  // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  2621  //
  2622  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2623  //
  2624  // This file contains Original Code and/or Modifications of Original Code
  2625  // as defined in and that are subject to the Apple Public Source License
  2626  // Version 2.0 (the 'License'). You may not use this file except in
  2627  // compliance with the License. The rights granted to you under the License
  2628  // may not be used to create, or enable the creation or redistribution of,
  2629  // unlawful or unlicensed copies of an Apple operating system, or to
  2630  // circumvent, violate, or enable the circumvention or violation of, any
  2631  // terms of an Apple operating system software license agreement.
  2632  //
  2633  // Please obtain a copy of the License at
  2634  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2635  //
  2636  // The Original Code and all software distributed under the License are
  2637  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2638  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2639  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2640  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2641  // Please see the License for the specific language governing rights and
  2642  // limitations under the License.
  2643  //
  2644  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2645  
  2646  type Pthread_mutex_t = X__darwin_pthread_mutex_t /* _pthread_mutex_t.h:31:34 */
  2647  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2648  //
  2649  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2650  //
  2651  // This file contains Original Code and/or Modifications of Original Code
  2652  // as defined in and that are subject to the Apple Public Source License
  2653  // Version 2.0 (the 'License'). You may not use this file except in
  2654  // compliance with the License. The rights granted to you under the License
  2655  // may not be used to create, or enable the creation or redistribution of,
  2656  // unlawful or unlicensed copies of an Apple operating system, or to
  2657  // circumvent, violate, or enable the circumvention or violation of, any
  2658  // terms of an Apple operating system software license agreement.
  2659  //
  2660  // Please obtain a copy of the License at
  2661  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2662  //
  2663  // The Original Code and all software distributed under the License are
  2664  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2665  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2666  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2667  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2668  // Please see the License for the specific language governing rights and
  2669  // limitations under the License.
  2670  //
  2671  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2672  // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  2673  //
  2674  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2675  //
  2676  // This file contains Original Code and/or Modifications of Original Code
  2677  // as defined in and that are subject to the Apple Public Source License
  2678  // Version 2.0 (the 'License'). You may not use this file except in
  2679  // compliance with the License. The rights granted to you under the License
  2680  // may not be used to create, or enable the creation or redistribution of,
  2681  // unlawful or unlicensed copies of an Apple operating system, or to
  2682  // circumvent, violate, or enable the circumvention or violation of, any
  2683  // terms of an Apple operating system software license agreement.
  2684  //
  2685  // Please obtain a copy of the License at
  2686  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2687  //
  2688  // The Original Code and all software distributed under the License are
  2689  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2690  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2691  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2692  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2693  // Please see the License for the specific language governing rights and
  2694  // limitations under the License.
  2695  //
  2696  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2697  
  2698  type Pthread_mutexattr_t = X__darwin_pthread_mutexattr_t /* _pthread_mutexattr_t.h:31:38 */
  2699  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2700  //
  2701  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2702  //
  2703  // This file contains Original Code and/or Modifications of Original Code
  2704  // as defined in and that are subject to the Apple Public Source License
  2705  // Version 2.0 (the 'License'). You may not use this file except in
  2706  // compliance with the License. The rights granted to you under the License
  2707  // may not be used to create, or enable the creation or redistribution of,
  2708  // unlawful or unlicensed copies of an Apple operating system, or to
  2709  // circumvent, violate, or enable the circumvention or violation of, any
  2710  // terms of an Apple operating system software license agreement.
  2711  //
  2712  // Please obtain a copy of the License at
  2713  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2714  //
  2715  // The Original Code and all software distributed under the License are
  2716  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2717  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2718  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2719  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2720  // Please see the License for the specific language governing rights and
  2721  // limitations under the License.
  2722  //
  2723  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2724  // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  2725  //
  2726  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2727  //
  2728  // This file contains Original Code and/or Modifications of Original Code
  2729  // as defined in and that are subject to the Apple Public Source License
  2730  // Version 2.0 (the 'License'). You may not use this file except in
  2731  // compliance with the License. The rights granted to you under the License
  2732  // may not be used to create, or enable the creation or redistribution of,
  2733  // unlawful or unlicensed copies of an Apple operating system, or to
  2734  // circumvent, violate, or enable the circumvention or violation of, any
  2735  // terms of an Apple operating system software license agreement.
  2736  //
  2737  // Please obtain a copy of the License at
  2738  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2739  //
  2740  // The Original Code and all software distributed under the License are
  2741  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2742  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2743  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2744  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2745  // Please see the License for the specific language governing rights and
  2746  // limitations under the License.
  2747  //
  2748  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2749  
  2750  type Pthread_once_t = X__darwin_pthread_once_t /* _pthread_once_t.h:31:33 */
  2751  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2752  //
  2753  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2754  //
  2755  // This file contains Original Code and/or Modifications of Original Code
  2756  // as defined in and that are subject to the Apple Public Source License
  2757  // Version 2.0 (the 'License'). You may not use this file except in
  2758  // compliance with the License. The rights granted to you under the License
  2759  // may not be used to create, or enable the creation or redistribution of,
  2760  // unlawful or unlicensed copies of an Apple operating system, or to
  2761  // circumvent, violate, or enable the circumvention or violation of, any
  2762  // terms of an Apple operating system software license agreement.
  2763  //
  2764  // Please obtain a copy of the License at
  2765  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2766  //
  2767  // The Original Code and all software distributed under the License are
  2768  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2769  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2770  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2771  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2772  // Please see the License for the specific language governing rights and
  2773  // limitations under the License.
  2774  //
  2775  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2776  // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  2777  //
  2778  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2779  //
  2780  // This file contains Original Code and/or Modifications of Original Code
  2781  // as defined in and that are subject to the Apple Public Source License
  2782  // Version 2.0 (the 'License'). You may not use this file except in
  2783  // compliance with the License. The rights granted to you under the License
  2784  // may not be used to create, or enable the creation or redistribution of,
  2785  // unlawful or unlicensed copies of an Apple operating system, or to
  2786  // circumvent, violate, or enable the circumvention or violation of, any
  2787  // terms of an Apple operating system software license agreement.
  2788  //
  2789  // Please obtain a copy of the License at
  2790  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2791  //
  2792  // The Original Code and all software distributed under the License are
  2793  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2794  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2795  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2796  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2797  // Please see the License for the specific language governing rights and
  2798  // limitations under the License.
  2799  //
  2800  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2801  
  2802  type Pthread_rwlock_t = X__darwin_pthread_rwlock_t /* _pthread_rwlock_t.h:31:35 */
  2803  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2804  //
  2805  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2806  //
  2807  // This file contains Original Code and/or Modifications of Original Code
  2808  // as defined in and that are subject to the Apple Public Source License
  2809  // Version 2.0 (the 'License'). You may not use this file except in
  2810  // compliance with the License. The rights granted to you under the License
  2811  // may not be used to create, or enable the creation or redistribution of,
  2812  // unlawful or unlicensed copies of an Apple operating system, or to
  2813  // circumvent, violate, or enable the circumvention or violation of, any
  2814  // terms of an Apple operating system software license agreement.
  2815  //
  2816  // Please obtain a copy of the License at
  2817  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2818  //
  2819  // The Original Code and all software distributed under the License are
  2820  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2821  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2822  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2823  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2824  // Please see the License for the specific language governing rights and
  2825  // limitations under the License.
  2826  //
  2827  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2828  // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  2829  //
  2830  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2831  //
  2832  // This file contains Original Code and/or Modifications of Original Code
  2833  // as defined in and that are subject to the Apple Public Source License
  2834  // Version 2.0 (the 'License'). You may not use this file except in
  2835  // compliance with the License. The rights granted to you under the License
  2836  // may not be used to create, or enable the creation or redistribution of,
  2837  // unlawful or unlicensed copies of an Apple operating system, or to
  2838  // circumvent, violate, or enable the circumvention or violation of, any
  2839  // terms of an Apple operating system software license agreement.
  2840  //
  2841  // Please obtain a copy of the License at
  2842  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2843  //
  2844  // The Original Code and all software distributed under the License are
  2845  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2846  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2847  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2848  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2849  // Please see the License for the specific language governing rights and
  2850  // limitations under the License.
  2851  //
  2852  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2853  
  2854  type Pthread_rwlockattr_t = X__darwin_pthread_rwlockattr_t /* _pthread_rwlockattr_t.h:31:39 */
  2855  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2856  //
  2857  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2858  //
  2859  // This file contains Original Code and/or Modifications of Original Code
  2860  // as defined in and that are subject to the Apple Public Source License
  2861  // Version 2.0 (the 'License'). You may not use this file except in
  2862  // compliance with the License. The rights granted to you under the License
  2863  // may not be used to create, or enable the creation or redistribution of,
  2864  // unlawful or unlicensed copies of an Apple operating system, or to
  2865  // circumvent, violate, or enable the circumvention or violation of, any
  2866  // terms of an Apple operating system software license agreement.
  2867  //
  2868  // Please obtain a copy of the License at
  2869  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2870  //
  2871  // The Original Code and all software distributed under the License are
  2872  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2873  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2874  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2875  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2876  // Please see the License for the specific language governing rights and
  2877  // limitations under the License.
  2878  //
  2879  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2880  // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  2881  //
  2882  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2883  //
  2884  // This file contains Original Code and/or Modifications of Original Code
  2885  // as defined in and that are subject to the Apple Public Source License
  2886  // Version 2.0 (the 'License'). You may not use this file except in
  2887  // compliance with the License. The rights granted to you under the License
  2888  // may not be used to create, or enable the creation or redistribution of,
  2889  // unlawful or unlicensed copies of an Apple operating system, or to
  2890  // circumvent, violate, or enable the circumvention or violation of, any
  2891  // terms of an Apple operating system software license agreement.
  2892  //
  2893  // Please obtain a copy of the License at
  2894  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2895  //
  2896  // The Original Code and all software distributed under the License are
  2897  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2898  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2899  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2900  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2901  // Please see the License for the specific language governing rights and
  2902  // limitations under the License.
  2903  //
  2904  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2905  
  2906  type Pthread_t = X__darwin_pthread_t /* _pthread_t.h:31:28 */
  2907  type Qos_class_t = uint32            /* qos.h:130:1 */
  2908  
  2909  // !
  2910  // @typedef pthread_override_t
  2911  //
  2912  // @abstract
  2913  // An opaque object representing a QOS class override of a thread.
  2914  //
  2915  // @discussion
  2916  // A QOS class override of a target thread expresses that an item of pending
  2917  // work classified with a specific QOS class and relative priority depends on
  2918  // the completion of the work currently being executed by the thread (e.g. due
  2919  // to ordering requirements).
  2920  //
  2921  // While overrides are in effect, the target thread will execute at the maximum
  2922  // QOS class and relative priority of all overrides and of the QOS class
  2923  // requested by the thread itself.
  2924  //
  2925  // A QOS class override does not modify the target thread's requested QOS class
  2926  // value and the effect of an override is not visible to the qos_class_self()
  2927  // and pthread_get_qos_class_np() interfaces.
  2928  
  2929  type Pthread_override_t = uintptr /* qos.h:211:34 */
  2930  
  2931  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2932  //
  2933  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2934  //
  2935  // This file contains Original Code and/or Modifications of Original Code
  2936  // as defined in and that are subject to the Apple Public Source License
  2937  // Version 2.0 (the 'License'). You may not use this file except in
  2938  // compliance with the License. The rights granted to you under the License
  2939  // may not be used to create, or enable the creation or redistribution of,
  2940  // unlawful or unlicensed copies of an Apple operating system, or to
  2941  // circumvent, violate, or enable the circumvention or violation of, any
  2942  // terms of an Apple operating system software license agreement.
  2943  //
  2944  // Please obtain a copy of the License at
  2945  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2946  //
  2947  // The Original Code and all software distributed under the License are
  2948  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2949  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2950  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2951  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2952  // Please see the License for the specific language governing rights and
  2953  // limitations under the License.
  2954  //
  2955  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2956  
  2957  //	mach_port_t - a named port right
  2958  //
  2959  //	In user-space, "rights" are represented by the name of the
  2960  //	right in the Mach port namespace.  Even so, this type is
  2961  //	presented as a unique one to more clearly denote the presence
  2962  //	of a right coming along with the name.
  2963  //
  2964  //	Often, various rights for a port held in a single name space
  2965  //	will coalesce and are, therefore, be identified by a single name
  2966  //	[this is the case for send and receive rights].  But not
  2967  //	always [send-once rights currently get a unique name for
  2968  //	each right].
  2969  //
  2970  //	This definition of mach_port_t is only for user-space.
  2971  //
  2972  
  2973  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  2974  //
  2975  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2976  //
  2977  // This file contains Original Code and/or Modifications of Original Code
  2978  // as defined in and that are subject to the Apple Public Source License
  2979  // Version 2.0 (the 'License'). You may not use this file except in
  2980  // compliance with the License. The rights granted to you under the License
  2981  // may not be used to create, or enable the creation or redistribution of,
  2982  // unlawful or unlicensed copies of an Apple operating system, or to
  2983  // circumvent, violate, or enable the circumvention or violation of, any
  2984  // terms of an Apple operating system software license agreement.
  2985  //
  2986  // Please obtain a copy of the License at
  2987  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2988  //
  2989  // The Original Code and all software distributed under the License are
  2990  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2991  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2992  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2993  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2994  // Please see the License for the specific language governing rights and
  2995  // limitations under the License.
  2996  //
  2997  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2998  
  2999  type Mach_port_t = X__darwin_mach_port_t /* _mach_port_t.h:50:30 */
  3000  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3001  //
  3002  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3003  //
  3004  // This file contains Original Code and/or Modifications of Original Code
  3005  // as defined in and that are subject to the Apple Public Source License
  3006  // Version 2.0 (the 'License'). You may not use this file except in
  3007  // compliance with the License. The rights granted to you under the License
  3008  // may not be used to create, or enable the creation or redistribution of,
  3009  // unlawful or unlicensed copies of an Apple operating system, or to
  3010  // circumvent, violate, or enable the circumvention or violation of, any
  3011  // terms of an Apple operating system software license agreement.
  3012  //
  3013  // Please obtain a copy of the License at
  3014  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3015  //
  3016  // The Original Code and all software distributed under the License are
  3017  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3018  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3019  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3020  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3021  // Please see the License for the specific language governing rights and
  3022  // limitations under the License.
  3023  //
  3024  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3025  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  3026  //
  3027  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3028  //
  3029  // This file contains Original Code and/or Modifications of Original Code
  3030  // as defined in and that are subject to the Apple Public Source License
  3031  // Version 2.0 (the 'License'). You may not use this file except in
  3032  // compliance with the License. The rights granted to you under the License
  3033  // may not be used to create, or enable the creation or redistribution of,
  3034  // unlawful or unlicensed copies of an Apple operating system, or to
  3035  // circumvent, violate, or enable the circumvention or violation of, any
  3036  // terms of an Apple operating system software license agreement.
  3037  //
  3038  // Please obtain a copy of the License at
  3039  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3040  //
  3041  // The Original Code and all software distributed under the License are
  3042  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3043  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3044  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3045  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3046  // Please see the License for the specific language governing rights and
  3047  // limitations under the License.
  3048  //
  3049  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3050  
  3051  type Sigset_t = X__darwin_sigset_t /* _sigset_t.h:31:41 */
  3052  
  3053  // !
  3054  // @typedef pthread_jit_write_callback_t
  3055  // The type of a function that can be supplied to {@link
  3056  // pthread_jit_write_with_callback_np} to write to the MAP_JIT region while it
  3057  // is writeable.
  3058  //
  3059  // @param ctx
  3060  // A pointer to context that will be passed through to the callback function.
  3061  //
  3062  // @result
  3063  // A result code to be returned to the caller of @{link
  3064  // pthread_jit_write_with_callback_np}.  The system does not interpret/act on
  3065  // the value of this result.
  3066  type Pthread_jit_write_callback_t = uintptr /* pthread.h:581:13 */
  3067  
  3068  var _ int8 /* gen.c:2:13: */