time_darwin_arm64.go (85236B)
1 // Code generated by 'ccgo time/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o time/time_darwin_arm64.go -pkgname time', DO NOT EDIT. 2 3 package time 4 5 import ( 6 "math" 7 "reflect" 8 "sync/atomic" 9 "unsafe" 10 ) 11 12 var _ = math.Pi 13 var _ reflect.Kind 14 var _ atomic.Value 15 var _ unsafe.Pointer 16 17 const ( 18 CLOCKS_PER_SEC = 1000000 19 MAC_OS_VERSION_11_0 = 110000 20 MAC_OS_VERSION_12_0 = 120000 21 MAC_OS_X_VERSION_10_0 = 1000 22 MAC_OS_X_VERSION_10_1 = 1010 23 MAC_OS_X_VERSION_10_10 = 101000 24 MAC_OS_X_VERSION_10_10_2 = 101002 25 MAC_OS_X_VERSION_10_10_3 = 101003 26 MAC_OS_X_VERSION_10_11 = 101100 27 MAC_OS_X_VERSION_10_11_2 = 101102 28 MAC_OS_X_VERSION_10_11_3 = 101103 29 MAC_OS_X_VERSION_10_11_4 = 101104 30 MAC_OS_X_VERSION_10_12 = 101200 31 MAC_OS_X_VERSION_10_12_1 = 101201 32 MAC_OS_X_VERSION_10_12_2 = 101202 33 MAC_OS_X_VERSION_10_12_4 = 101204 34 MAC_OS_X_VERSION_10_13 = 101300 35 MAC_OS_X_VERSION_10_13_1 = 101301 36 MAC_OS_X_VERSION_10_13_2 = 101302 37 MAC_OS_X_VERSION_10_13_4 = 101304 38 MAC_OS_X_VERSION_10_14 = 101400 39 MAC_OS_X_VERSION_10_14_1 = 101401 40 MAC_OS_X_VERSION_10_14_4 = 101404 41 MAC_OS_X_VERSION_10_14_6 = 101406 42 MAC_OS_X_VERSION_10_15 = 101500 43 MAC_OS_X_VERSION_10_15_1 = 101501 44 MAC_OS_X_VERSION_10_16 = 101600 45 MAC_OS_X_VERSION_10_2 = 1020 46 MAC_OS_X_VERSION_10_3 = 1030 47 MAC_OS_X_VERSION_10_4 = 1040 48 MAC_OS_X_VERSION_10_5 = 1050 49 MAC_OS_X_VERSION_10_6 = 1060 50 MAC_OS_X_VERSION_10_7 = 1070 51 MAC_OS_X_VERSION_10_8 = 1080 52 MAC_OS_X_VERSION_10_9 = 1090 53 TIME_UTC = 1 54 X_ARM_MACHTYPES_H_ = 0 55 X_BSD_ARM__TYPES_H_ = 0 56 X_BSD_MACHINE_TYPES_H_ = 0 57 X_BSD_MACHINE__TYPES_H_ = 0 58 X_CDEFS_H_ = 0 59 X_CLOCK_T = 0 60 X_DARWIN_FEATURE_64_BIT_INODE = 1 61 X_DARWIN_FEATURE_ONLY_64_BIT_INODE = 1 62 X_DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE = 1 63 X_DARWIN_FEATURE_ONLY_VERS_1050 = 1 64 X_DARWIN_FEATURE_UNIX_CONFORMANCE = 3 65 X_FILE_OFFSET_BITS = 64 66 X_FORTIFY_SOURCE = 2 67 X_INT16_T = 0 68 X_INT32_T = 0 69 X_INT64_T = 0 70 X_INT8_T = 0 71 X_INTPTR_T = 0 72 X_LP64 = 1 73 X_MACHTYPES_H_ = 0 74 X_Nonnull = 0 75 X_Null_unspecified = 0 76 X_Nullable = 0 77 X_SIZE_T = 0 78 X_SYS__PTHREAD_TYPES_H_ = 0 79 X_SYS__TYPES_H_ = 0 80 X_TIME_H_ = 0 81 X_TIME_T = 0 82 X_UINTPTR_T = 0 83 X_U_INT16_T = 0 84 X_U_INT32_T = 0 85 X_U_INT64_T = 0 86 X_U_INT8_T = 0 87 ) 88 89 const ( /* time.h:153:1: */ 90 X_CLOCK_REALTIME = 0 91 X_CLOCK_MONOTONIC = 6 92 X_CLOCK_MONOTONIC_RAW = 4 93 X_CLOCK_MONOTONIC_RAW_APPROX = 5 94 X_CLOCK_UPTIME_RAW = 8 95 X_CLOCK_UPTIME_RAW_APPROX = 9 96 X_CLOCK_PROCESS_CPUTIME_ID = 12 97 X_CLOCK_THREAD_CPUTIME_ID = 16 98 ) 99 100 type Ptrdiff_t = int64 /* <builtin>:3:26 */ 101 102 type Size_t = uint64 /* <builtin>:9:23 */ 103 104 type Wchar_t = int32 /* <builtin>:15:24 */ 105 106 type X__int128_t = struct { 107 Flo int64 108 Fhi int64 109 } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128 110 type X__uint128_t = struct { 111 Flo uint64 112 Fhi uint64 113 } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128 114 115 type X__builtin_va_list = uintptr /* <builtin>:46:14 */ 116 type X__float128 = float64 /* <builtin>:47:21 */ 117 118 var X__darwin_check_fd_set_overflow uintptr /* <builtin>:146:5: */ 119 120 // Copyright (c) 2000 Apple Computer, Inc. All rights reserved. 121 // 122 // @APPLE_LICENSE_HEADER_START@ 123 // 124 // This file contains Original Code and/or Modifications of Original Code 125 // as defined in and that are subject to the Apple Public Source License 126 // Version 2.0 (the 'License'). You may not use this file except in 127 // compliance with the License. Please obtain a copy of the License at 128 // http://www.opensource.apple.com/apsl/ and read it before using this 129 // file. 130 // 131 // The Original Code and all software distributed under the License are 132 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 133 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 134 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 135 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 136 // Please see the License for the specific language governing rights and 137 // limitations under the License. 138 // 139 // @APPLE_LICENSE_HEADER_END@ 140 // Copyright (c) 1989, 1993 141 // The Regents of the University of California. All rights reserved. 142 // (c) UNIX System Laboratories, Inc. 143 // All or some portions of this file are derived from material licensed 144 // to the University of California by American Telephone and Telegraph 145 // Co. or Unix System Laboratories, Inc. and are reproduced herein with 146 // the permission of UNIX System Laboratories, Inc. 147 // 148 // Redistribution and use in source and binary forms, with or without 149 // modification, are permitted provided that the following conditions 150 // are met: 151 // 1. Redistributions of source code must retain the above copyright 152 // notice, this list of conditions and the following disclaimer. 153 // 2. Redistributions in binary form must reproduce the above copyright 154 // notice, this list of conditions and the following disclaimer in the 155 // documentation and/or other materials provided with the distribution. 156 // 3. All advertising materials mentioning features or use of this software 157 // must display the following acknowledgement: 158 // This product includes software developed by the University of 159 // California, Berkeley and its contributors. 160 // 4. Neither the name of the University nor the names of its contributors 161 // may be used to endorse or promote products derived from this software 162 // without specific prior written permission. 163 // 164 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 165 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 166 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 167 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 168 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 169 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 170 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 171 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 172 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 173 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 174 // SUCH DAMAGE. 175 // 176 // @(#)time.h 8.3 (Berkeley) 1/21/94 177 178 // Copyright (c) 2004, 2008, 2009 Apple Inc. All rights reserved. 179 // 180 // @APPLE_LICENSE_HEADER_START@ 181 // 182 // This file contains Original Code and/or Modifications of Original Code 183 // as defined in and that are subject to the Apple Public Source License 184 // Version 2.0 (the 'License'). You may not use this file except in 185 // compliance with the License. Please obtain a copy of the License at 186 // http://www.opensource.apple.com/apsl/ and read it before using this 187 // file. 188 // 189 // The Original Code and all software distributed under the License are 190 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 191 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 192 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 193 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 194 // Please see the License for the specific language governing rights and 195 // limitations under the License. 196 // 197 // @APPLE_LICENSE_HEADER_END@ 198 199 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 200 // 201 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 202 // 203 // This file contains Original Code and/or Modifications of Original Code 204 // as defined in and that are subject to the Apple Public Source License 205 // Version 2.0 (the 'License'). You may not use this file except in 206 // compliance with the License. The rights granted to you under the License 207 // may not be used to create, or enable the creation or redistribution of, 208 // unlawful or unlicensed copies of an Apple operating system, or to 209 // circumvent, violate, or enable the circumvention or violation of, any 210 // terms of an Apple operating system software license agreement. 211 // 212 // Please obtain a copy of the License at 213 // http://www.opensource.apple.com/apsl/ and read it before using this file. 214 // 215 // The Original Code and all software distributed under the License are 216 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 217 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 218 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 219 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 220 // Please see the License for the specific language governing rights and 221 // limitations under the License. 222 // 223 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 224 225 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 226 // 227 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 228 // 229 // This file contains Original Code and/or Modifications of Original Code 230 // as defined in and that are subject to the Apple Public Source License 231 // Version 2.0 (the 'License'). You may not use this file except in 232 // compliance with the License. The rights granted to you under the License 233 // may not be used to create, or enable the creation or redistribution of, 234 // unlawful or unlicensed copies of an Apple operating system, or to 235 // circumvent, violate, or enable the circumvention or violation of, any 236 // terms of an Apple operating system software license agreement. 237 // 238 // Please obtain a copy of the License at 239 // http://www.opensource.apple.com/apsl/ and read it before using this file. 240 // 241 // The Original Code and all software distributed under the License are 242 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 243 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 244 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 245 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 246 // Please see the License for the specific language governing rights and 247 // limitations under the License. 248 // 249 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 250 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 251 // Copyright (c) 1991, 1993 252 // The Regents of the University of California. All rights reserved. 253 // 254 // This code is derived from software contributed to Berkeley by 255 // Berkeley Software Design, Inc. 256 // 257 // Redistribution and use in source and binary forms, with or without 258 // modification, are permitted provided that the following conditions 259 // are met: 260 // 1. Redistributions of source code must retain the above copyright 261 // notice, this list of conditions and the following disclaimer. 262 // 2. Redistributions in binary form must reproduce the above copyright 263 // notice, this list of conditions and the following disclaimer in the 264 // documentation and/or other materials provided with the distribution. 265 // 3. All advertising materials mentioning features or use of this software 266 // must display the following acknowledgement: 267 // This product includes software developed by the University of 268 // California, Berkeley and its contributors. 269 // 4. Neither the name of the University nor the names of its contributors 270 // may be used to endorse or promote products derived from this software 271 // without specific prior written permission. 272 // 273 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 274 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 275 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 276 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 277 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 278 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 279 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 280 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 281 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 282 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 283 // SUCH DAMAGE. 284 // 285 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 286 287 // This SDK is designed to work with clang and specific versions of 288 // gcc >= 4.0 with Apple's patch sets 289 290 // Compatibility with compilers and environments that don't support compiler 291 // feature checking function-like macros. 292 293 // The __CONCAT macro is used to concatenate parts of symbol names, e.g. 294 // with "#define OLD(foo) __CONCAT(old,foo)", OLD(foo) produces oldfoo. 295 // The __CONCAT macro is a bit tricky -- make sure you don't put spaces 296 // in between its arguments. __CONCAT can also concatenate double-quoted 297 // strings produced by the __STRING macro, but this only works with ANSI C. 298 299 // In non-ANSI C environments, new programs will want ANSI-only C keywords 300 // deleted from the program and old programs will want them left alone. 301 // When using a compiler other than gcc, programs using the ANSI C keywords 302 // const, inline etc. as normal identifiers should define -DNO_ANSI_KEYWORDS. 303 // When using "gcc -traditional", we assume that this is the intent; if 304 // __GNUC__ is defined but __STDC__ is not, we leave the new keywords alone. 305 306 // __pure2 can be used for functions that are only a function of their scalar 307 // arguments (meaning they can't dereference pointers). 308 // 309 // __stateful_pure can be used for functions that have no side effects, 310 // but depend on the state of the memory. 311 312 // __unused denotes variables and functions that may not be used, preventing 313 // the compiler from warning about it if not used. 314 315 // __used forces variables and functions to be included even if it appears 316 // to the compiler that they are not used (and would thust be discarded). 317 318 // __cold marks code used for debugging or that is rarely taken 319 // and tells the compiler to optimize for size and outline code. 320 321 // __exported denotes symbols that should be exported even when symbols 322 // are hidden by default. 323 // __exported_push/_exported_pop are pragmas used to delimit a range of 324 // symbols that should be exported even when symbols are hidden by default. 325 326 // __deprecated causes the compiler to produce a warning when encountering 327 // code using the deprecated functionality. 328 // __deprecated_msg() does the same, and compilers that support it will print 329 // a message along with the deprecation warning. 330 // This may require turning on such warning with the -Wdeprecated flag. 331 // __deprecated_enum_msg() should be used on enums, and compilers that support 332 // it will print the deprecation warning. 333 // __kpi_deprecated() specifically indicates deprecation of kernel programming 334 // interfaces in Kernel.framework used by KEXTs. 335 336 // __unavailable causes the compiler to error out when encountering 337 // code using the tagged function 338 339 // Delete pseudo-keywords wherever they are not available or needed. 340 341 // We use `__restrict' as a way to define the `restrict' type qualifier 342 // without disturbing older software that is unaware of C99 keywords. 343 344 // Compatibility with compilers and environments that don't support the 345 // nullability feature. 346 347 // __disable_tail_calls causes the compiler to not perform tail call 348 // optimization inside the marked function. 349 350 // __not_tail_called causes the compiler to prevent tail call optimization 351 // on statically bound calls to the function. It has no effect on indirect 352 // calls. Virtual functions, objective-c methods, and functions marked as 353 // "always_inline" cannot be marked as __not_tail_called. 354 355 // __result_use_check warns callers of a function that not using the function 356 // return value is a bug, i.e. dismissing malloc() return value results in a 357 // memory leak. 358 359 // __swift_unavailable causes the compiler to mark a symbol as specifically 360 // unavailable in Swift, regardless of any other availability in C. 361 362 // __abortlike is the attribute to put on functions like abort() that are 363 // typically used to mark assertions. These optimize the codegen 364 // for outlining while still maintaining debugability. 365 366 // Declaring inline functions within headers is error-prone due to differences 367 // across various versions of the C language and extensions. __header_inline 368 // can be used to declare inline functions within system headers. In cases 369 // where you want to force inlining instead of letting the compiler make 370 // the decision, you can use __header_always_inline. 371 // 372 // Be aware that using inline for functions which compilers may also provide 373 // builtins can behave differently under various compilers. If you intend to 374 // provide an inline version of such a function, you may want to use a macro 375 // instead. 376 // 377 // The check for !__GNUC__ || __clang__ is because gcc doesn't correctly 378 // support c99 inline in some cases: 379 // http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55965 380 381 // Compiler-dependent macros that bracket portions of code where the 382 // "-Wunreachable-code" warning should be ignored. Please use sparingly. 383 384 // Compiler-dependent macros to declare that functions take printf-like 385 // or scanf-like arguments. They are null except for versions of gcc 386 // that are known to support the features properly. Functions declared 387 // with these attributes will cause compilation warnings if there is a 388 // mismatch between the format string and subsequent function parameter 389 // types. 390 391 // Source compatibility only, ID string not emitted in object file 392 393 // __alloc_size can be used to label function arguments that represent the 394 // size of memory that the function allocates and returns. The one-argument 395 // form labels a single argument that gives the allocation size (where the 396 // arguments are numbered from 1): 397 // 398 // void *malloc(size_t __size) __alloc_size(1); 399 // 400 // The two-argument form handles the case where the size is calculated as the 401 // product of two arguments: 402 // 403 // void *calloc(size_t __count, size_t __size) __alloc_size(1,2); 404 405 // COMPILATION ENVIRONMENTS -- see compat(5) for additional detail 406 // 407 // DEFAULT By default newly complied code will get POSIX APIs plus 408 // Apple API extensions in scope. 409 // 410 // Most users will use this compilation environment to avoid 411 // behavioral differences between 32 and 64 bit code. 412 // 413 // LEGACY Defining _NONSTD_SOURCE will get pre-POSIX APIs plus Apple 414 // API extensions in scope. 415 // 416 // This is generally equivalent to the Tiger release compilation 417 // environment, except that it cannot be applied to 64 bit code; 418 // its use is discouraged. 419 // 420 // We expect this environment to be deprecated in the future. 421 // 422 // STRICT Defining _POSIX_C_SOURCE or _XOPEN_SOURCE restricts the 423 // available APIs to exactly the set of APIs defined by the 424 // corresponding standard, based on the value defined. 425 // 426 // A correct, portable definition for _POSIX_C_SOURCE is 200112L. 427 // A correct, portable definition for _XOPEN_SOURCE is 600L. 428 // 429 // Apple API extensions are not visible in this environment, 430 // which can cause Apple specific code to fail to compile, 431 // or behave incorrectly if prototypes are not in scope or 432 // warnings about missing prototypes are not enabled or ignored. 433 // 434 // In any compilation environment, for correct symbol resolution to occur, 435 // function prototypes must be in scope. It is recommended that all Apple 436 // tools users add either the "-Wall" or "-Wimplicit-function-declaration" 437 // compiler flags to their projects to be warned when a function is being 438 // used without a prototype in scope. 439 440 // These settings are particular to each product. 441 // Platform: MacOSX 442 443 // The __DARWIN_ALIAS macros are used to do symbol renaming; they allow 444 // legacy code to use the old symbol, thus maintaining binary compatibility 445 // while new code can use a standards compliant version of the same function. 446 // 447 // __DARWIN_ALIAS is used by itself if the function signature has not 448 // changed, it is used along with a #ifdef check for __DARWIN_UNIX03 449 // if the signature has changed. Because the __LP64__ environment 450 // only supports UNIX03 semantics it causes __DARWIN_UNIX03 to be 451 // defined, but causes __DARWIN_ALIAS to do no symbol mangling. 452 // 453 // As a special case, when XCode is used to target a specific version of the 454 // OS, the manifest constant __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ 455 // will be defined by the compiler, with the digits representing major version 456 // time 100 + minor version times 10 (e.g. 10.5 := 1050). If we are targeting 457 // pre-10.5, and it is the default compilation environment, revert the 458 // compilation environment to pre-__DARWIN_UNIX03. 459 460 // symbol suffixes used for symbol versioning 461 462 // symbol versioning macros 463 464 // symbol release macros 465 // Copyright (c) 2010 Apple Inc. All rights reserved. 466 // 467 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 468 // 469 // This file contains Original Code and/or Modifications of Original Code 470 // as defined in and that are subject to the Apple Public Source License 471 // Version 2.0 (the 'License'). You may not use this file except in 472 // compliance with the License. The rights granted to you under the License 473 // may not be used to create, or enable the creation or redistribution of, 474 // unlawful or unlicensed copies of an Apple operating system, or to 475 // circumvent, violate, or enable the circumvention or violation of, any 476 // terms of an Apple operating system software license agreement. 477 // 478 // Please obtain a copy of the License at 479 // http://www.opensource.apple.com/apsl/ and read it before using this file. 480 // 481 // The Original Code and all software distributed under the License are 482 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 483 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 484 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 485 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 486 // Please see the License for the specific language governing rights and 487 // limitations under the License. 488 // 489 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 490 491 // POSIX.1 requires that the macros we test be defined before any standard 492 // header file is included. This permits us to convert values for feature 493 // testing, as necessary, using only _POSIX_C_SOURCE. 494 // 495 // Here's a quick run-down of the versions: 496 // defined(_POSIX_SOURCE) 1003.1-1988 497 // _POSIX_C_SOURCE == 1L 1003.1-1990 498 // _POSIX_C_SOURCE == 2L 1003.2-1992 C Language Binding Option 499 // _POSIX_C_SOURCE == 199309L 1003.1b-1993 500 // _POSIX_C_SOURCE == 199506L 1003.1c-1995, 1003.1i-1995, 501 // and the omnibus ISO/IEC 9945-1: 1996 502 // _POSIX_C_SOURCE == 200112L 1003.1-2001 503 // _POSIX_C_SOURCE == 200809L 1003.1-2008 504 // 505 // In addition, the X/Open Portability Guide, which is now the Single UNIX 506 // Specification, defines a feature-test macro which indicates the version of 507 // that specification, and which subsumes _POSIX_C_SOURCE. 508 509 // Deal with IEEE Std. 1003.1-1990, in which _POSIX_C_SOURCE == 1L. 510 511 // Deal with IEEE Std. 1003.2-1992, in which _POSIX_C_SOURCE == 2L. 512 513 // Deal with various X/Open Portability Guides and Single UNIX Spec. 514 515 // Deal with all versions of POSIX. The ordering relative to the tests above is 516 // important. 517 518 // POSIX C deprecation macros 519 // Copyright (c) 2010 Apple Inc. All rights reserved. 520 // 521 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 522 // 523 // This file contains Original Code and/or Modifications of Original Code 524 // as defined in and that are subject to the Apple Public Source License 525 // Version 2.0 (the 'License'). You may not use this file except in 526 // compliance with the License. The rights granted to you under the License 527 // may not be used to create, or enable the creation or redistribution of, 528 // unlawful or unlicensed copies of an Apple operating system, or to 529 // circumvent, violate, or enable the circumvention or violation of, any 530 // terms of an Apple operating system software license agreement. 531 // 532 // Please obtain a copy of the License at 533 // http://www.opensource.apple.com/apsl/ and read it before using this file. 534 // 535 // The Original Code and all software distributed under the License are 536 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 537 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 538 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 539 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 540 // Please see the License for the specific language governing rights and 541 // limitations under the License. 542 // 543 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 544 545 // Set a single macro which will always be defined and can be used to determine 546 // the appropriate namespace. For POSIX, these values will correspond to 547 // _POSIX_C_SOURCE value. Currently there are two additional levels corresponding 548 // to ANSI (_ANSI_SOURCE) and Darwin extensions (_DARWIN_C_SOURCE) 549 550 // If the developer has neither requested a strict language mode nor a version 551 // of POSIX, turn on functionality provided by __STDC_WANT_LIB_EXT1__ as part 552 // of __DARWIN_C_FULL. 553 554 // long long is not supported in c89 (__STRICT_ANSI__), but g++ -ansi and 555 // c99 still want long longs. While not perfect, we allow long longs for 556 // g++. 557 558 // **************************************** 559 // 560 // Public darwin-specific feature macros 561 // 562 563 // _DARWIN_FEATURE_64_BIT_INODE indicates that the ino_t type is 64-bit, and 564 // structures modified for 64-bit inodes (like struct stat) will be used. 565 566 // _DARWIN_FEATURE_64_ONLY_BIT_INODE indicates that the ino_t type may only 567 // be 64-bit; there is no support for 32-bit ino_t when this macro is defined 568 // (and non-zero). There is no struct stat64 either, as the regular 569 // struct stat will already be the 64-bit version. 570 571 // _DARWIN_FEATURE_ONLY_VERS_1050 indicates that only those APIs updated 572 // in 10.5 exists; no pre-10.5 variants are available. 573 574 // _DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE indicates only UNIX conforming API 575 // are available (the legacy BSD APIs are not available) 576 577 // _DARWIN_FEATURE_UNIX_CONFORMANCE indicates whether UNIX conformance is on, 578 // and specifies the conformance level (3 is SUSv3) 579 580 // This macro casts away the qualifier from the variable 581 // 582 // Note: use at your own risk, removing qualifiers can result in 583 // catastrophic run-time failures. 584 585 // __XNU_PRIVATE_EXTERN is a linkage decoration indicating that a symbol can be 586 // used from other compilation units, but not other libraries or executables. 587 588 // Architecture validation for current SDK 589 590 // Similar to OS_ENUM/OS_CLOSED_ENUM/OS_OPTIONS/OS_CLOSED_OPTIONS 591 // 592 // This provides more advanced type checking on compilers supporting 593 // the proper extensions, even in C. 594 595 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 596 // 597 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 598 // 599 // This file contains Original Code and/or Modifications of Original Code 600 // as defined in and that are subject to the Apple Public Source License 601 // Version 2.0 (the 'License'). You may not use this file except in 602 // compliance with the License. The rights granted to you under the License 603 // may not be used to create, or enable the creation or redistribution of, 604 // unlawful or unlicensed copies of an Apple operating system, or to 605 // circumvent, violate, or enable the circumvention or violation of, any 606 // terms of an Apple operating system software license agreement. 607 // 608 // Please obtain a copy of the License at 609 // http://www.opensource.apple.com/apsl/ and read it before using this file. 610 // 611 // The Original Code and all software distributed under the License are 612 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 613 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 614 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 615 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 616 // Please see the License for the specific language governing rights and 617 // limitations under the License. 618 // 619 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 620 621 // Copyright (c) 2000-2007 Apple Inc. All rights reserved. 622 623 // This header file contains integer types. It's intended to also contain 624 // flotaing point and other arithmetic types, as needed, later. 625 626 type X__int8_t = int8 /* _types.h:15:33 */ 627 type X__uint8_t = uint8 /* _types.h:19:33 */ 628 type X__int16_t = int16 /* _types.h:20:33 */ 629 type X__uint16_t = uint16 /* _types.h:21:33 */ 630 type X__int32_t = int32 /* _types.h:22:33 */ 631 type X__uint32_t = uint32 /* _types.h:23:33 */ 632 type X__int64_t = int64 /* _types.h:24:33 */ 633 type X__uint64_t = uint64 /* _types.h:25:33 */ 634 635 type X__darwin_intptr_t = int64 /* _types.h:27:33 */ 636 type X__darwin_natural_t = uint32 /* _types.h:28:33 */ 637 638 // The rune type below is declared to be an ``int'' instead of the more natural 639 // ``unsigned long'' or ``long''. Two things are happening here. It is not 640 // unsigned so that EOF (-1) can be naturally assigned to it and used. Also, 641 // it looks like 10646 will be a 31 bit standard. This means that if your 642 // ints cannot hold 32 bits, you will be in trouble. The reason an int was 643 // chosen over a long is that the is*() and to*() routines take ints (says 644 // ANSI C), but they use __darwin_ct_rune_t instead of int. By changing it 645 // here, you lose a bit of ANSI conformance, but your programs will still 646 // work. 647 // 648 // NOTE: rune_t is not covered by ANSI nor other standards, and should not 649 // be instantiated outside of lib/libc/locale. Use wchar_t. wchar_t and 650 // rune_t must be the same type. Also wint_t must be no narrower than 651 // wchar_t, and should also be able to hold all members of the largest 652 // character set plus one extra value (WEOF). wint_t must be at least 16 bits. 653 654 type X__darwin_ct_rune_t = int32 /* _types.h:48:33 */ // ct_rune_t 655 656 // mbstate_t is an opaque object to keep conversion state, during multibyte 657 // stream conversions. The content must not be referenced by user programs. 658 type X__mbstate_t = struct { 659 F__ccgo_pad1 [0]uint64 660 F__mbstate8 [128]int8 661 } /* _types.h:57:3 */ 662 663 type X__darwin_mbstate_t = X__mbstate_t /* _types.h:59:33 */ // mbstate_t 664 665 type X__darwin_ptrdiff_t = int64 /* _types.h:62:33 */ // ptr1 - ptr2 666 667 type X__darwin_size_t = uint64 /* _types.h:70:33 */ // sizeof() 668 669 type X__darwin_va_list = X__builtin_va_list /* _types.h:76:33 */ // va_list 670 671 type X__darwin_wchar_t = int32 /* _types.h:82:33 */ // wchar_t 672 673 type X__darwin_rune_t = X__darwin_wchar_t /* _types.h:87:33 */ // rune_t 674 675 type X__darwin_wint_t = int32 /* _types.h:90:33 */ // wint_t 676 677 type X__darwin_clock_t = uint64 /* _types.h:95:33 */ // clock() 678 type X__darwin_socklen_t = X__uint32_t /* _types.h:96:33 */ // socklen_t (duh) 679 type X__darwin_ssize_t = int64 /* _types.h:97:33 */ // byte count or error 680 type X__darwin_time_t = int64 /* _types.h:98:33 */ // time() 681 682 // Type definitions; takes common type definitions that must be used 683 // in multiple header files due to [XSI], removes them from the system 684 // space, and puts them in the implementation space. 685 686 type X__darwin_blkcnt_t = X__int64_t /* _types.h:55:25 */ // total blocks 687 type X__darwin_blksize_t = X__int32_t /* _types.h:56:25 */ // preferred block size 688 type X__darwin_dev_t = X__int32_t /* _types.h:57:25 */ // dev_t 689 type X__darwin_fsblkcnt_t = uint32 /* _types.h:58:25 */ // Used by statvfs and fstatvfs 690 type X__darwin_fsfilcnt_t = uint32 /* _types.h:59:25 */ // Used by statvfs and fstatvfs 691 type X__darwin_gid_t = X__uint32_t /* _types.h:60:25 */ // [???] process and group IDs 692 type X__darwin_id_t = X__uint32_t /* _types.h:61:25 */ // [XSI] pid_t, uid_t, or gid_t 693 type X__darwin_ino64_t = X__uint64_t /* _types.h:62:25 */ // [???] Used for 64 bit inodes 694 type X__darwin_ino_t = X__darwin_ino64_t /* _types.h:64:26 */ // [???] Used for inodes 695 type X__darwin_mach_port_name_t = X__darwin_natural_t /* _types.h:68:28 */ // Used by mach 696 type X__darwin_mach_port_t = X__darwin_mach_port_name_t /* _types.h:69:35 */ // Used by mach 697 type X__darwin_mode_t = X__uint16_t /* _types.h:70:25 */ // [???] Some file attributes 698 type X__darwin_off_t = X__int64_t /* _types.h:71:25 */ // [???] Used for file sizes 699 type X__darwin_pid_t = X__int32_t /* _types.h:72:25 */ // [???] process and group IDs 700 type X__darwin_sigset_t = X__uint32_t /* _types.h:73:25 */ // [???] signal set 701 type X__darwin_suseconds_t = X__int32_t /* _types.h:74:25 */ // [???] microseconds 702 type X__darwin_uid_t = X__uint32_t /* _types.h:75:25 */ // [???] user IDs 703 type X__darwin_useconds_t = X__uint32_t /* _types.h:76:25 */ // [???] microseconds 704 type X__darwin_uuid_t = [16]uint8 /* _types.h:77:25 */ 705 type X__darwin_uuid_string_t = [37]int8 /* _types.h:78:17 */ 706 707 // Copyright (c) 2003-2013 Apple Inc. All rights reserved. 708 // 709 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 710 // 711 // This file contains Original Code and/or Modifications of Original Code 712 // as defined in and that are subject to the Apple Public Source License 713 // Version 2.0 (the 'License'). You may not use this file except in 714 // compliance with the License. The rights granted to you under the License 715 // may not be used to create, or enable the creation or redistribution of, 716 // unlawful or unlicensed copies of an Apple operating system, or to 717 // circumvent, violate, or enable the circumvention or violation of, any 718 // terms of an Apple operating system software license agreement. 719 // 720 // Please obtain a copy of the License at 721 // http://www.opensource.apple.com/apsl/ and read it before using this file. 722 // 723 // The Original Code and all software distributed under the License are 724 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 725 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 726 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 727 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 728 // Please see the License for the specific language governing rights and 729 // limitations under the License. 730 // 731 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 732 733 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 734 // 735 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 736 // 737 // This file contains Original Code and/or Modifications of Original Code 738 // as defined in and that are subject to the Apple Public Source License 739 // Version 2.0 (the 'License'). You may not use this file except in 740 // compliance with the License. The rights granted to you under the License 741 // may not be used to create, or enable the creation or redistribution of, 742 // unlawful or unlicensed copies of an Apple operating system, or to 743 // circumvent, violate, or enable the circumvention or violation of, any 744 // terms of an Apple operating system software license agreement. 745 // 746 // Please obtain a copy of the License at 747 // http://www.opensource.apple.com/apsl/ and read it before using this file. 748 // 749 // The Original Code and all software distributed under the License are 750 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 751 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 752 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 753 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 754 // Please see the License for the specific language governing rights and 755 // limitations under the License. 756 // 757 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 758 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 759 // Copyright (c) 1991, 1993 760 // The Regents of the University of California. All rights reserved. 761 // 762 // This code is derived from software contributed to Berkeley by 763 // Berkeley Software Design, Inc. 764 // 765 // Redistribution and use in source and binary forms, with or without 766 // modification, are permitted provided that the following conditions 767 // are met: 768 // 1. Redistributions of source code must retain the above copyright 769 // notice, this list of conditions and the following disclaimer. 770 // 2. Redistributions in binary form must reproduce the above copyright 771 // notice, this list of conditions and the following disclaimer in the 772 // documentation and/or other materials provided with the distribution. 773 // 3. All advertising materials mentioning features or use of this software 774 // must display the following acknowledgement: 775 // This product includes software developed by the University of 776 // California, Berkeley and its contributors. 777 // 4. Neither the name of the University nor the names of its contributors 778 // may be used to endorse or promote products derived from this software 779 // without specific prior written permission. 780 // 781 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 782 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 783 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 784 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 785 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 786 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 787 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 788 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 789 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 790 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 791 // SUCH DAMAGE. 792 // 793 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 794 795 // pthread opaque structures 796 797 type X__darwin_pthread_handler_rec = struct { 798 F__routine uintptr 799 F__arg uintptr 800 F__next uintptr 801 } /* _pthread_types.h:57:1 */ 802 803 type X_opaque_pthread_attr_t = struct { 804 F__sig int64 805 F__opaque [56]int8 806 } /* _pthread_types.h:63:1 */ 807 808 type X_opaque_pthread_cond_t = struct { 809 F__sig int64 810 F__opaque [40]int8 811 } /* _pthread_types.h:68:1 */ 812 813 type X_opaque_pthread_condattr_t = struct { 814 F__sig int64 815 F__opaque [8]int8 816 } /* _pthread_types.h:73:1 */ 817 818 type X_opaque_pthread_mutex_t = struct { 819 F__sig int64 820 F__opaque [56]int8 821 } /* _pthread_types.h:78:1 */ 822 823 type X_opaque_pthread_mutexattr_t = struct { 824 F__sig int64 825 F__opaque [8]int8 826 } /* _pthread_types.h:83:1 */ 827 828 type X_opaque_pthread_once_t = struct { 829 F__sig int64 830 F__opaque [8]int8 831 } /* _pthread_types.h:88:1 */ 832 833 type X_opaque_pthread_rwlock_t = struct { 834 F__sig int64 835 F__opaque [192]int8 836 } /* _pthread_types.h:93:1 */ 837 838 type X_opaque_pthread_rwlockattr_t = struct { 839 F__sig int64 840 F__opaque [16]int8 841 } /* _pthread_types.h:98:1 */ 842 843 type X_opaque_pthread_t = struct { 844 F__sig int64 845 F__cleanup_stack uintptr 846 F__opaque [8176]int8 847 } /* _pthread_types.h:103:1 */ 848 849 type X__darwin_pthread_attr_t = X_opaque_pthread_attr_t /* _pthread_types.h:109:39 */ 850 type X__darwin_pthread_cond_t = X_opaque_pthread_cond_t /* _pthread_types.h:110:39 */ 851 type X__darwin_pthread_condattr_t = X_opaque_pthread_condattr_t /* _pthread_types.h:111:43 */ 852 type X__darwin_pthread_key_t = uint64 /* _pthread_types.h:112:23 */ 853 type X__darwin_pthread_mutex_t = X_opaque_pthread_mutex_t /* _pthread_types.h:113:40 */ 854 type X__darwin_pthread_mutexattr_t = X_opaque_pthread_mutexattr_t /* _pthread_types.h:114:44 */ 855 type X__darwin_pthread_once_t = X_opaque_pthread_once_t /* _pthread_types.h:115:39 */ 856 type X__darwin_pthread_rwlock_t = X_opaque_pthread_rwlock_t /* _pthread_types.h:116:41 */ 857 type X__darwin_pthread_rwlockattr_t = X_opaque_pthread_rwlockattr_t /* _pthread_types.h:117:45 */ 858 type X__darwin_pthread_t = uintptr /* _pthread_types.h:118:34 */ 859 860 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 861 // 862 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 863 // 864 // This file contains Original Code and/or Modifications of Original Code 865 // as defined in and that are subject to the Apple Public Source License 866 // Version 2.0 (the 'License'). You may not use this file except in 867 // compliance with the License. The rights granted to you under the License 868 // may not be used to create, or enable the creation or redistribution of, 869 // unlawful or unlicensed copies of an Apple operating system, or to 870 // circumvent, violate, or enable the circumvention or violation of, any 871 // terms of an Apple operating system software license agreement. 872 // 873 // Please obtain a copy of the License at 874 // http://www.opensource.apple.com/apsl/ and read it before using this file. 875 // 876 // The Original Code and all software distributed under the License are 877 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 878 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 879 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 880 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 881 // Please see the License for the specific language governing rights and 882 // limitations under the License. 883 // 884 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 885 886 type X__darwin_nl_item = int32 /* _types.h:40:14 */ 887 type X__darwin_wctrans_t = int32 /* _types.h:41:14 */ 888 type X__darwin_wctype_t = X__uint32_t /* _types.h:43:20 */ 889 890 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 891 // 892 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 893 // 894 // This file contains Original Code and/or Modifications of Original Code 895 // as defined in and that are subject to the Apple Public Source License 896 // Version 2.0 (the 'License'). You may not use this file except in 897 // compliance with the License. The rights granted to you under the License 898 // may not be used to create, or enable the creation or redistribution of, 899 // unlawful or unlicensed copies of an Apple operating system, or to 900 // circumvent, violate, or enable the circumvention or violation of, any 901 // terms of an Apple operating system software license agreement. 902 // 903 // Please obtain a copy of the License at 904 // http://www.opensource.apple.com/apsl/ and read it before using this file. 905 // 906 // The Original Code and all software distributed under the License are 907 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 908 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 909 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 910 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 911 // Please see the License for the specific language governing rights and 912 // limitations under the License. 913 // 914 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 915 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 916 // Copyright (c) 1991, 1993 917 // The Regents of the University of California. All rights reserved. 918 // 919 // This code is derived from software contributed to Berkeley by 920 // Berkeley Software Design, Inc. 921 // 922 // Redistribution and use in source and binary forms, with or without 923 // modification, are permitted provided that the following conditions 924 // are met: 925 // 1. Redistributions of source code must retain the above copyright 926 // notice, this list of conditions and the following disclaimer. 927 // 2. Redistributions in binary form must reproduce the above copyright 928 // notice, this list of conditions and the following disclaimer in the 929 // documentation and/or other materials provided with the distribution. 930 // 3. All advertising materials mentioning features or use of this software 931 // must display the following acknowledgement: 932 // This product includes software developed by the University of 933 // California, Berkeley and its contributors. 934 // 4. Neither the name of the University nor the names of its contributors 935 // may be used to endorse or promote products derived from this software 936 // without specific prior written permission. 937 // 938 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 939 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 940 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 941 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 942 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 943 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 944 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 945 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 946 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 947 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 948 // SUCH DAMAGE. 949 // 950 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 951 952 // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved. 953 // 954 // @APPLE_LICENSE_HEADER_START@ 955 // 956 // This file contains Original Code and/or Modifications of Original Code 957 // as defined in and that are subject to the Apple Public Source License 958 // Version 2.0 (the 'License'). You may not use this file except in 959 // compliance with the License. Please obtain a copy of the License at 960 // http://www.opensource.apple.com/apsl/ and read it before using this 961 // file. 962 // 963 // The Original Code and all software distributed under the License are 964 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 965 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 966 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 967 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 968 // Please see the License for the specific language governing rights and 969 // limitations under the License. 970 // 971 // @APPLE_LICENSE_HEADER_END@ 972 973 // 974 // These macros are for use in OS header files. They enable function prototypes 975 // and Objective-C methods to be tagged with the OS version in which they 976 // were first available; and, if applicable, the OS version in which they 977 // became deprecated. 978 // 979 // The desktop Mac OS X and iOS each have different version numbers. 980 // The __OSX_AVAILABLE_STARTING() macro allows you to specify both the desktop 981 // and iOS version numbers. For instance: 982 // __OSX_AVAILABLE_STARTING(__MAC_10_2,__IPHONE_2_0) 983 // means the function/method was first available on Mac OS X 10.2 on the desktop 984 // and first available in iOS 2.0 on the iPhone. 985 // 986 // If a function is available on one platform, but not the other a _NA (not 987 // applicable) parameter is used. For instance: 988 // __OSX_AVAILABLE_STARTING(__MAC_10_3,__IPHONE_NA) 989 // means that the function/method was first available on Mac OS X 10.3, and it 990 // currently not implemented on the iPhone. 991 // 992 // At some point, a function/method may be deprecated. That means Apple 993 // recommends applications stop using the function, either because there is a 994 // better replacement or the functionality is being phased out. Deprecated 995 // functions/methods can be tagged with a __OSX_AVAILABLE_BUT_DEPRECATED() 996 // macro which specifies the OS version where the function became available 997 // as well as the OS version in which it became deprecated. For instance: 998 // __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0,__MAC_10_5,__IPHONE_NA,__IPHONE_NA) 999 // means that the function/method was introduced in Mac OS X 10.0, then 1000 // became deprecated beginning in Mac OS X 10.5. On iOS the function 1001 // has never been available. 1002 // 1003 // For these macros to function properly, a program must specify the OS version range 1004 // it is targeting. The min OS version is specified as an option to the compiler: 1005 // -mmacosx-version-min=10.x when building for Mac OS X, and -miphoneos-version-min=y.z 1006 // when building for the iPhone. The upper bound for the OS version is rarely needed, 1007 // but it can be set on the command line via: -D__MAC_OS_X_VERSION_MAX_ALLOWED=10x0 for 1008 // Mac OS X and __IPHONE_OS_VERSION_MAX_ALLOWED = y0z00 for iOS. 1009 // 1010 // Examples: 1011 // 1012 // A function available in Mac OS X 10.5 and later, but not on the phone: 1013 // 1014 // extern void mymacfunc() __OSX_AVAILABLE_STARTING(__MAC_10_5,__IPHONE_NA); 1015 // 1016 // 1017 // An Objective-C method in Mac OS X 10.5 and later, but not on the phone: 1018 // 1019 // @interface MyClass : NSObject 1020 // -(void) mymacmethod __OSX_AVAILABLE_STARTING(__MAC_10_5,__IPHONE_NA); 1021 // @end 1022 // 1023 // 1024 // An enum available on the phone, but not available on Mac OS X: 1025 // 1026 // #if __IPHONE_OS_VERSION_MIN_REQUIRED 1027 // enum { myEnum = 1 }; 1028 // #endif 1029 // Note: this works when targeting the Mac OS X platform because 1030 // __IPHONE_OS_VERSION_MIN_REQUIRED is undefined which evaluates to zero. 1031 // 1032 // 1033 // An enum with values added in different iPhoneOS versions: 1034 // 1035 // enum { 1036 // myX = 1, // Usable on iPhoneOS 2.1 and later 1037 // myY = 2, // Usable on iPhoneOS 3.0 and later 1038 // myZ = 3, // Usable on iPhoneOS 3.0 and later 1039 // ... 1040 // Note: you do not want to use #if with enumeration values 1041 // when a client needs to see all values at compile time 1042 // and use runtime logic to only use the viable values. 1043 // 1044 // 1045 // It is also possible to use the *_VERSION_MIN_REQUIRED in source code to make one 1046 // source base that can be compiled to target a range of OS versions. It is best 1047 // to not use the _MAC_* and __IPHONE_* macros for comparisons, but rather their values. 1048 // That is because you might get compiled on an old OS that does not define a later 1049 // OS version macro, and in the C preprocessor undefined values evaluate to zero 1050 // in expresssions, which could cause the #if expression to evaluate in an unexpected 1051 // way. 1052 // 1053 // #ifdef __MAC_OS_X_VERSION_MIN_REQUIRED 1054 // // code only compiled when targeting Mac OS X and not iPhone 1055 // // note use of 1050 instead of __MAC_10_5 1056 // #if __MAC_OS_X_VERSION_MIN_REQUIRED < 1050 1057 // // code in here might run on pre-Leopard OS 1058 // #else 1059 // // code here can assume Leopard or later 1060 // #endif 1061 // #endif 1062 // 1063 // 1064 1065 // __API_TO_BE_DEPRECATED is used as a version number in API that will be deprecated 1066 // in an upcoming release. This soft deprecation is an intermediate step before formal 1067 // deprecation to notify developers about the API before compiler warnings are generated. 1068 // You can find all places in your code that use soft deprecated API by redefining the 1069 // value of this macro to your current minimum deployment target, for example: 1070 // (macOS) 1071 // clang -D__API_TO_BE_DEPRECATED=10.12 <other compiler flags> 1072 // (iOS) 1073 // clang -D__API_TO_BE_DEPRECATED=11.0 <other compiler flags> 1074 1075 // Copyright (c) 2019 by Apple Inc.. All rights reserved. 1076 // 1077 // @APPLE_LICENSE_HEADER_START@ 1078 // 1079 // This file contains Original Code and/or Modifications of Original Code 1080 // as defined in and that are subject to the Apple Public Source License 1081 // Version 2.0 (the 'License'). You may not use this file except in 1082 // compliance with the License. Please obtain a copy of the License at 1083 // http://www.opensource.apple.com/apsl/ and read it before using this 1084 // file. 1085 // 1086 // The Original Code and all software distributed under the License are 1087 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1088 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1089 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1090 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1091 // Please see the License for the specific language governing rights and 1092 // limitations under the License. 1093 // 1094 // @APPLE_LICENSE_HEADER_END@ 1095 1096 // __MAC_NA is not defined to a value but is used as a token by macros to indicate that the API is unavailable 1097 1098 // __IPHONE_NA is not defined to a value but is used as a token by macros to indicate that the API is unavailable 1099 1100 // Set up standard Mac OS X versions 1101 1102 // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved. 1103 // 1104 // @APPLE_LICENSE_HEADER_START@ 1105 // 1106 // This file contains Original Code and/or Modifications of Original Code 1107 // as defined in and that are subject to the Apple Public Source License 1108 // Version 2.0 (the 'License'). You may not use this file except in 1109 // compliance with the License. Please obtain a copy of the License at 1110 // http://www.opensource.apple.com/apsl/ and read it before using this 1111 // file. 1112 // 1113 // The Original Code and all software distributed under the License are 1114 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1115 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1116 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1117 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1118 // Please see the License for the specific language governing rights and 1119 // limitations under the License. 1120 // 1121 // @APPLE_LICENSE_HEADER_END@ 1122 1123 // 1124 // File: AvailabilityInternal.h 1125 // 1126 // Contains: implementation details of __OSX_AVAILABLE_* macros from <Availability.h> 1127 // 1128 1129 // compiler for Mac OS X sets __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ 1130 1131 // make sure a default max version is set 1132 1133 // 1134 // Macros for defining which versions/platform a given symbol can be used. 1135 // 1136 // @see http://clang.llvm.org/docs/AttributeReference.html#availability 1137 // 1138 1139 // Evaluate to nothing for compilers that don't support availability. 1140 1141 // Swift compiler version 1142 // Allows for project-agnostic "epochs" for frameworks imported into Swift via the Clang importer, like #if _compiler_version for Swift 1143 // Example: 1144 // 1145 // #if __swift_compiler_version_at_least(800, 2, 20) 1146 // - (nonnull NSString *)description; 1147 // #else 1148 // - (NSString *)description; 1149 // #endif 1150 1151 // If __SPI_AVAILABLE has not been defined elsewhere, disable it. 1152 1153 // for use to document app extension usage 1154 1155 // for use marking APIs available info for Mac OSX 1156 1157 // for use marking APIs available info for iOS 1158 1159 // for use marking APIs available info for tvOS 1160 1161 // for use marking APIs available info for Watch OS 1162 1163 // for use marking APIs unavailable for swift 1164 1165 // 1166 // Macros for defining which versions/platform a given symbol can be used. 1167 // 1168 // @see http://clang.llvm.org/docs/AttributeReference.html#availability 1169 // 1170 // * Note that these macros are only compatible with clang compilers that 1171 // * support the following target selection options: 1172 // * 1173 // * -mmacosx-version-min 1174 // * -miphoneos-version-min 1175 // * -mwatchos-version-min 1176 // * -mtvos-version-min 1177 // 1178 1179 // Evaluate to nothing for compilers that don't support availability. 1180 1181 // If SPI decorations have not been defined elsewhere, disable them. 1182 1183 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 1184 // 1185 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 1186 // 1187 // This file contains Original Code and/or Modifications of Original Code 1188 // as defined in and that are subject to the Apple Public Source License 1189 // Version 2.0 (the 'License'). You may not use this file except in 1190 // compliance with the License. The rights granted to you under the License 1191 // may not be used to create, or enable the creation or redistribution of, 1192 // unlawful or unlicensed copies of an Apple operating system, or to 1193 // circumvent, violate, or enable the circumvention or violation of, any 1194 // terms of an Apple operating system software license agreement. 1195 // 1196 // Please obtain a copy of the License at 1197 // http://www.opensource.apple.com/apsl/ and read it before using this file. 1198 // 1199 // The Original Code and all software distributed under the License are 1200 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1201 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1202 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1203 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1204 // Please see the License for the specific language governing rights and 1205 // limitations under the License. 1206 // 1207 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 1208 // Copyright (c) 2000-2007 Apple Inc. All rights reserved. 1209 // 1210 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 1211 // 1212 // This file contains Original Code and/or Modifications of Original Code 1213 // as defined in and that are subject to the Apple Public Source License 1214 // Version 2.0 (the 'License'). You may not use this file except in 1215 // compliance with the License. The rights granted to you under the License 1216 // may not be used to create, or enable the creation or redistribution of, 1217 // unlawful or unlicensed copies of an Apple operating system, or to 1218 // circumvent, violate, or enable the circumvention or violation of, any 1219 // terms of an Apple operating system software license agreement. 1220 // 1221 // Please obtain a copy of the License at 1222 // http://www.opensource.apple.com/apsl/ and read it before using this file. 1223 // 1224 // The Original Code and all software distributed under the License are 1225 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1226 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1227 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1228 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1229 // Please see the License for the specific language governing rights and 1230 // limitations under the License. 1231 // 1232 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 1233 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 1234 1235 // Copyright (c) 2000-2008 Apple Inc. All rights reserved. 1236 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 1237 // Copyright (c) 1990, 1993 1238 // The Regents of the University of California. All rights reserved. 1239 // 1240 // Redistribution and use in source and binary forms, with or without 1241 // modification, are permitted provided that the following conditions 1242 // are met: 1243 // 1. Redistributions of source code must retain the above copyright 1244 // notice, this list of conditions and the following disclaimer. 1245 // 2. Redistributions in binary form must reproduce the above copyright 1246 // notice, this list of conditions and the following disclaimer in the 1247 // documentation and/or other materials provided with the distribution. 1248 // 3. All advertising materials mentioning features or use of this software 1249 // must display the following acknowledgement: 1250 // This product includes software developed by the University of 1251 // California, Berkeley and its contributors. 1252 // 4. Neither the name of the University nor the names of its contributors 1253 // may be used to endorse or promote products derived from this software 1254 // without specific prior written permission. 1255 // 1256 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1257 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1258 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1259 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 1260 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1261 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1262 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1263 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1264 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1265 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1266 // SUCH DAMAGE. 1267 // 1268 // @(#)types.h 8.3 (Berkeley) 1/5/94 1269 1270 // Copyright (c) 2000-2007 Apple Inc. All rights reserved. 1271 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 1272 // 1273 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 1274 // 1275 // This file contains Original Code and/or Modifications of Original Code 1276 // as defined in and that are subject to the Apple Public Source License 1277 // Version 2.0 (the 'License'). You may not use this file except in 1278 // compliance with the License. The rights granted to you under the License 1279 // may not be used to create, or enable the creation or redistribution of, 1280 // unlawful or unlicensed copies of an Apple operating system, or to 1281 // circumvent, violate, or enable the circumvention or violation of, any 1282 // terms of an Apple operating system software license agreement. 1283 // 1284 // Please obtain a copy of the License at 1285 // http://www.opensource.apple.com/apsl/ and read it before using this file. 1286 // 1287 // The Original Code and all software distributed under the License are 1288 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1289 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1290 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1291 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1292 // Please see the License for the specific language governing rights and 1293 // limitations under the License. 1294 // 1295 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 1296 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 1297 // Copyright (c) 1991, 1993 1298 // The Regents of the University of California. All rights reserved. 1299 // 1300 // This code is derived from software contributed to Berkeley by 1301 // Berkeley Software Design, Inc. 1302 // 1303 // Redistribution and use in source and binary forms, with or without 1304 // modification, are permitted provided that the following conditions 1305 // are met: 1306 // 1. Redistributions of source code must retain the above copyright 1307 // notice, this list of conditions and the following disclaimer. 1308 // 2. Redistributions in binary form must reproduce the above copyright 1309 // notice, this list of conditions and the following disclaimer in the 1310 // documentation and/or other materials provided with the distribution. 1311 // 3. All advertising materials mentioning features or use of this software 1312 // must display the following acknowledgement: 1313 // This product includes software developed by the University of 1314 // California, Berkeley and its contributors. 1315 // 4. Neither the name of the University nor the names of its contributors 1316 // may be used to endorse or promote products derived from this software 1317 // without specific prior written permission. 1318 // 1319 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1320 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1321 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1322 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 1323 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1324 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1325 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1326 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1327 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1328 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1329 // SUCH DAMAGE. 1330 // 1331 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 1332 1333 // Basic integral types. Omit the typedef if 1334 // not possible for a machine/compiler combination. 1335 // Copyright (c) 2012 Apple Inc. All rights reserved. 1336 // 1337 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 1338 // 1339 // This file contains Original Code and/or Modifications of Original Code 1340 // as defined in and that are subject to the Apple Public Source License 1341 // Version 2.0 (the 'License'). You may not use this file except in 1342 // compliance with the License. The rights granted to you under the License 1343 // may not be used to create, or enable the creation or redistribution of, 1344 // unlawful or unlicensed copies of an Apple operating system, or to 1345 // circumvent, violate, or enable the circumvention or violation of, any 1346 // terms of an Apple operating system software license agreement. 1347 // 1348 // Please obtain a copy of the License at 1349 // http://www.opensource.apple.com/apsl/ and read it before using this file. 1350 // 1351 // The Original Code and all software distributed under the License are 1352 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1353 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1354 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1355 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1356 // Please see the License for the specific language governing rights and 1357 // limitations under the License. 1358 // 1359 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 1360 type Int8_t = int8 /* _int8_t.h:30:31 */ 1361 // Copyright (c) 2012 Apple Inc. All rights reserved. 1362 // 1363 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 1364 // 1365 // This file contains Original Code and/or Modifications of Original Code 1366 // as defined in and that are subject to the Apple Public Source License 1367 // Version 2.0 (the 'License'). You may not use this file except in 1368 // compliance with the License. The rights granted to you under the License 1369 // may not be used to create, or enable the creation or redistribution of, 1370 // unlawful or unlicensed copies of an Apple operating system, or to 1371 // circumvent, violate, or enable the circumvention or violation of, any 1372 // terms of an Apple operating system software license agreement. 1373 // 1374 // Please obtain a copy of the License at 1375 // http://www.opensource.apple.com/apsl/ and read it before using this file. 1376 // 1377 // The Original Code and all software distributed under the License are 1378 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1379 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1380 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1381 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1382 // Please see the License for the specific language governing rights and 1383 // limitations under the License. 1384 // 1385 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 1386 type Int16_t = int16 /* _int16_t.h:30:33 */ 1387 // Copyright (c) 2012 Apple Inc. All rights reserved. 1388 // 1389 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 1390 // 1391 // This file contains Original Code and/or Modifications of Original Code 1392 // as defined in and that are subject to the Apple Public Source License 1393 // Version 2.0 (the 'License'). You may not use this file except in 1394 // compliance with the License. The rights granted to you under the License 1395 // may not be used to create, or enable the creation or redistribution of, 1396 // unlawful or unlicensed copies of an Apple operating system, or to 1397 // circumvent, violate, or enable the circumvention or violation of, any 1398 // terms of an Apple operating system software license agreement. 1399 // 1400 // Please obtain a copy of the License at 1401 // http://www.opensource.apple.com/apsl/ and read it before using this file. 1402 // 1403 // The Original Code and all software distributed under the License are 1404 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1405 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1406 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1407 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1408 // Please see the License for the specific language governing rights and 1409 // limitations under the License. 1410 // 1411 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 1412 type Int32_t = int32 /* _int32_t.h:30:33 */ 1413 // Copyright (c) 2012 Apple Inc. All rights reserved. 1414 // 1415 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 1416 // 1417 // This file contains Original Code and/or Modifications of Original Code 1418 // as defined in and that are subject to the Apple Public Source License 1419 // Version 2.0 (the 'License'). You may not use this file except in 1420 // compliance with the License. The rights granted to you under the License 1421 // may not be used to create, or enable the creation or redistribution of, 1422 // unlawful or unlicensed copies of an Apple operating system, or to 1423 // circumvent, violate, or enable the circumvention or violation of, any 1424 // terms of an Apple operating system software license agreement. 1425 // 1426 // Please obtain a copy of the License at 1427 // http://www.opensource.apple.com/apsl/ and read it before using this file. 1428 // 1429 // The Original Code and all software distributed under the License are 1430 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1431 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1432 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1433 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1434 // Please see the License for the specific language governing rights and 1435 // limitations under the License. 1436 // 1437 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 1438 type Int64_t = int64 /* _int64_t.h:30:33 */ 1439 1440 // Copyright (c) 2016 Apple Inc. All rights reserved. 1441 // 1442 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 1443 // 1444 // This file contains Original Code and/or Modifications of Original Code 1445 // as defined in and that are subject to the Apple Public Source License 1446 // Version 2.0 (the 'License'). You may not use this file except in 1447 // compliance with the License. The rights granted to you under the License 1448 // may not be used to create, or enable the creation or redistribution of, 1449 // unlawful or unlicensed copies of an Apple operating system, or to 1450 // circumvent, violate, or enable the circumvention or violation of, any 1451 // terms of an Apple operating system software license agreement. 1452 // 1453 // Please obtain a copy of the License at 1454 // http://www.opensource.apple.com/apsl/ and read it before using this file. 1455 // 1456 // The Original Code and all software distributed under the License are 1457 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1458 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1459 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1460 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1461 // Please see the License for the specific language governing rights and 1462 // limitations under the License. 1463 // 1464 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 1465 type U_int8_t = uint8 /* _u_int8_t.h:30:33 */ 1466 // Copyright (c) 2012 Apple Inc. All rights reserved. 1467 // 1468 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 1469 // 1470 // This file contains Original Code and/or Modifications of Original Code 1471 // as defined in and that are subject to the Apple Public Source License 1472 // Version 2.0 (the 'License'). You may not use this file except in 1473 // compliance with the License. The rights granted to you under the License 1474 // may not be used to create, or enable the creation or redistribution of, 1475 // unlawful or unlicensed copies of an Apple operating system, or to 1476 // circumvent, violate, or enable the circumvention or violation of, any 1477 // terms of an Apple operating system software license agreement. 1478 // 1479 // Please obtain a copy of the License at 1480 // http://www.opensource.apple.com/apsl/ and read it before using this file. 1481 // 1482 // The Original Code and all software distributed under the License are 1483 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1484 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1485 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1486 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1487 // Please see the License for the specific language governing rights and 1488 // limitations under the License. 1489 // 1490 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 1491 type U_int16_t = uint16 /* _u_int16_t.h:30:41 */ 1492 // Copyright (c) 2012 Apple Inc. All rights reserved. 1493 // 1494 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 1495 // 1496 // This file contains Original Code and/or Modifications of Original Code 1497 // as defined in and that are subject to the Apple Public Source License 1498 // Version 2.0 (the 'License'). You may not use this file except in 1499 // compliance with the License. The rights granted to you under the License 1500 // may not be used to create, or enable the creation or redistribution of, 1501 // unlawful or unlicensed copies of an Apple operating system, or to 1502 // circumvent, violate, or enable the circumvention or violation of, any 1503 // terms of an Apple operating system software license agreement. 1504 // 1505 // Please obtain a copy of the License at 1506 // http://www.opensource.apple.com/apsl/ and read it before using this file. 1507 // 1508 // The Original Code and all software distributed under the License are 1509 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1510 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1511 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1512 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1513 // Please see the License for the specific language governing rights and 1514 // limitations under the License. 1515 // 1516 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 1517 type U_int32_t = uint32 /* _u_int32_t.h:30:33 */ 1518 // Copyright (c) 2012 Apple Inc. All rights reserved. 1519 // 1520 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 1521 // 1522 // This file contains Original Code and/or Modifications of Original Code 1523 // as defined in and that are subject to the Apple Public Source License 1524 // Version 2.0 (the 'License'). You may not use this file except in 1525 // compliance with the License. The rights granted to you under the License 1526 // may not be used to create, or enable the creation or redistribution of, 1527 // unlawful or unlicensed copies of an Apple operating system, or to 1528 // circumvent, violate, or enable the circumvention or violation of, any 1529 // terms of an Apple operating system software license agreement. 1530 // 1531 // Please obtain a copy of the License at 1532 // http://www.opensource.apple.com/apsl/ and read it before using this file. 1533 // 1534 // The Original Code and all software distributed under the License are 1535 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1536 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1537 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1538 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1539 // Please see the License for the specific language governing rights and 1540 // limitations under the License. 1541 // 1542 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 1543 type U_int64_t = uint64 /* _u_int64_t.h:30:33 */ 1544 1545 type Register_t = Int64_t /* types.h:66:33 */ 1546 1547 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 1548 // 1549 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 1550 // 1551 // This file contains Original Code and/or Modifications of Original Code 1552 // as defined in and that are subject to the Apple Public Source License 1553 // Version 2.0 (the 'License'). You may not use this file except in 1554 // compliance with the License. The rights granted to you under the License 1555 // may not be used to create, or enable the creation or redistribution of, 1556 // unlawful or unlicensed copies of an Apple operating system, or to 1557 // circumvent, violate, or enable the circumvention or violation of, any 1558 // terms of an Apple operating system software license agreement. 1559 // 1560 // Please obtain a copy of the License at 1561 // http://www.opensource.apple.com/apsl/ and read it before using this file. 1562 // 1563 // The Original Code and all software distributed under the License are 1564 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1565 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1566 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1567 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1568 // Please see the License for the specific language governing rights and 1569 // limitations under the License. 1570 // 1571 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 1572 // Copyright (c) 2000-2007 Apple Inc. All rights reserved. 1573 // 1574 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 1575 // 1576 // This file contains Original Code and/or Modifications of Original Code 1577 // as defined in and that are subject to the Apple Public Source License 1578 // Version 2.0 (the 'License'). You may not use this file except in 1579 // compliance with the License. The rights granted to you under the License 1580 // may not be used to create, or enable the creation or redistribution of, 1581 // unlawful or unlicensed copies of an Apple operating system, or to 1582 // circumvent, violate, or enable the circumvention or violation of, any 1583 // terms of an Apple operating system software license agreement. 1584 // 1585 // Please obtain a copy of the License at 1586 // http://www.opensource.apple.com/apsl/ and read it before using this file. 1587 // 1588 // The Original Code and all software distributed under the License are 1589 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1590 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1591 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1592 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1593 // Please see the License for the specific language governing rights and 1594 // limitations under the License. 1595 // 1596 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 1597 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 1598 1599 type Intptr_t = X__darwin_intptr_t /* _intptr_t.h:32:33 */ 1600 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 1601 // 1602 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 1603 // 1604 // This file contains Original Code and/or Modifications of Original Code 1605 // as defined in and that are subject to the Apple Public Source License 1606 // Version 2.0 (the 'License'). You may not use this file except in 1607 // compliance with the License. The rights granted to you under the License 1608 // may not be used to create, or enable the creation or redistribution of, 1609 // unlawful or unlicensed copies of an Apple operating system, or to 1610 // circumvent, violate, or enable the circumvention or violation of, any 1611 // terms of an Apple operating system software license agreement. 1612 // 1613 // Please obtain a copy of the License at 1614 // http://www.opensource.apple.com/apsl/ and read it before using this file. 1615 // 1616 // The Original Code and all software distributed under the License are 1617 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1618 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1619 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1620 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1621 // Please see the License for the specific language governing rights and 1622 // limitations under the License. 1623 // 1624 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 1625 1626 type Uintptr_t = uint64 /* _uintptr_t.h:34:33 */ 1627 1628 // These types are used for reserving the largest possible size. 1629 type User_addr_t = U_int64_t /* types.h:77:33 */ 1630 type User_size_t = U_int64_t /* types.h:78:33 */ 1631 type User_ssize_t = Int64_t /* types.h:79:33 */ 1632 type User_long_t = Int64_t /* types.h:80:33 */ 1633 type User_ulong_t = U_int64_t /* types.h:81:33 */ 1634 type User_time_t = Int64_t /* types.h:82:33 */ 1635 type User_off_t = Int64_t /* types.h:83:33 */ 1636 1637 // This defines the size of syscall arguments after copying into the kernel: 1638 type Syscall_arg_t = U_int64_t /* types.h:104:33 */ 1639 1640 type Clock_t = X__darwin_clock_t /* _clock_t.h:31:33 */ 1641 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 1642 // 1643 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 1644 // 1645 // This file contains Original Code and/or Modifications of Original Code 1646 // as defined in and that are subject to the Apple Public Source License 1647 // Version 2.0 (the 'License'). You may not use this file except in 1648 // compliance with the License. The rights granted to you under the License 1649 // may not be used to create, or enable the creation or redistribution of, 1650 // unlawful or unlicensed copies of an Apple operating system, or to 1651 // circumvent, violate, or enable the circumvention or violation of, any 1652 // terms of an Apple operating system software license agreement. 1653 // 1654 // Please obtain a copy of the License at 1655 // http://www.opensource.apple.com/apsl/ and read it before using this file. 1656 // 1657 // The Original Code and all software distributed under the License are 1658 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1659 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1660 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1661 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1662 // Please see the License for the specific language governing rights and 1663 // limitations under the License. 1664 // 1665 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 1666 // Copyright (c) 2000-2007 Apple Inc. All rights reserved. 1667 // 1668 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 1669 // 1670 // This file contains Original Code and/or Modifications of Original Code 1671 // as defined in and that are subject to the Apple Public Source License 1672 // Version 2.0 (the 'License'). You may not use this file except in 1673 // compliance with the License. The rights granted to you under the License 1674 // may not be used to create, or enable the creation or redistribution of, 1675 // unlawful or unlicensed copies of an Apple operating system, or to 1676 // circumvent, violate, or enable the circumvention or violation of, any 1677 // terms of an Apple operating system software license agreement. 1678 // 1679 // Please obtain a copy of the License at 1680 // http://www.opensource.apple.com/apsl/ and read it before using this file. 1681 // 1682 // The Original Code and all software distributed under the License are 1683 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1684 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1685 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1686 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1687 // Please see the License for the specific language governing rights and 1688 // limitations under the License. 1689 // 1690 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 1691 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 1692 type Time_t = X__darwin_time_t /* _time_t.h:31:33 */ 1693 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 1694 // 1695 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 1696 // 1697 // This file contains Original Code and/or Modifications of Original Code 1698 // as defined in and that are subject to the Apple Public Source License 1699 // Version 2.0 (the 'License'). You may not use this file except in 1700 // compliance with the License. The rights granted to you under the License 1701 // may not be used to create, or enable the creation or redistribution of, 1702 // unlawful or unlicensed copies of an Apple operating system, or to 1703 // circumvent, violate, or enable the circumvention or violation of, any 1704 // terms of an Apple operating system software license agreement. 1705 // 1706 // Please obtain a copy of the License at 1707 // http://www.opensource.apple.com/apsl/ and read it before using this file. 1708 // 1709 // The Original Code and all software distributed under the License are 1710 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1711 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1712 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1713 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1714 // Please see the License for the specific language governing rights and 1715 // limitations under the License. 1716 // 1717 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 1718 1719 // Copyright (c) 2000-2007 Apple Inc. All rights reserved. 1720 // 1721 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 1722 // 1723 // This file contains Original Code and/or Modifications of Original Code 1724 // as defined in and that are subject to the Apple Public Source License 1725 // Version 2.0 (the 'License'). You may not use this file except in 1726 // compliance with the License. The rights granted to you under the License 1727 // may not be used to create, or enable the creation or redistribution of, 1728 // unlawful or unlicensed copies of an Apple operating system, or to 1729 // circumvent, violate, or enable the circumvention or violation of, any 1730 // terms of an Apple operating system software license agreement. 1731 // 1732 // Please obtain a copy of the License at 1733 // http://www.opensource.apple.com/apsl/ and read it before using this file. 1734 // 1735 // The Original Code and all software distributed under the License are 1736 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1737 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1738 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1739 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1740 // Please see the License for the specific language governing rights and 1741 // limitations under the License. 1742 // 1743 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 1744 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 1745 1746 type Timespec = struct { 1747 Ftv_sec X__darwin_time_t 1748 Ftv_nsec int64 1749 } /* _timespec.h:33:1 */ 1750 1751 type Tm = struct { 1752 Ftm_sec int32 1753 Ftm_min int32 1754 Ftm_hour int32 1755 Ftm_mday int32 1756 Ftm_mon int32 1757 Ftm_year int32 1758 Ftm_wday int32 1759 Ftm_yday int32 1760 Ftm_isdst int32 1761 F__ccgo_pad1 [4]byte 1762 Ftm_gmtoff int64 1763 Ftm_zone uintptr 1764 } /* time.h:75:1 */ 1765 1766 type Clockid_t = uint32 /* time.h:172:3 */ 1767 1768 var _ int8 /* gen.c:2:13: */