gtsocial-umbx

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

pthread_darwin_amd64.go (153243B)


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