gtsocial-umbx

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

signal_darwin_arm64.go (153868B)


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