limits_darwin_arm64.go (44231B)
1 // Code generated by 'ccgo limits/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 limits/limits_darwin_arm64.go -pkgname limits', DO NOT EDIT. 2 3 package limits 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 ARG_MAX = 1048576 19 BC_BASE_MAX = 99 20 BC_DIM_MAX = 2048 21 BC_SCALE_MAX = 99 22 BC_STRING_MAX = 1000 23 CHARCLASS_NAME_MAX = 14 24 CHAR_BIT = 8 25 CHAR_MAX = 127 26 CHAR_MIN = -128 27 CHILD_MAX = 266 28 CLK_TCK = 100 29 COLL_WEIGHTS_MAX = 2 30 EQUIV_CLASS_MAX = 2 31 EXPR_NEST_MAX = 32 32 GID_MAX = 2147483647 33 INT_MAX = 2147483647 34 INT_MIN = -2147483648 35 IOV_MAX = 1024 36 LINE_MAX = 2048 37 LINK_MAX = 32767 38 LLONG_MAX = 9223372036854775807 39 LLONG_MIN = -9223372036854775808 40 LONG_BIT = 64 41 LONG_LONG_MAX = 9223372036854775807 42 LONG_LONG_MIN = -9223372036854775808 43 LONG_MAX = 9223372036854775807 44 LONG_MIN = -9223372036854775808 45 MAX_CANON = 1024 46 MAX_INPUT = 1024 47 MB_LEN_MAX = 6 48 NAME_MAX = 255 49 NGROUPS_MAX = 16 50 NL_ARGMAX = 9 51 NL_LANGMAX = 14 52 NL_MSGMAX = 32767 53 NL_NMAX = 1 54 NL_SETMAX = 255 55 NL_TEXTMAX = 2048 56 NZERO = 20 57 OFF_MAX = 9223372036854775807 58 OFF_MIN = -9223372036854775808 59 OPEN_MAX = 10240 60 PASS_MAX = 128 61 PATH_MAX = 1024 62 PIPE_BUF = 512 63 PTHREAD_DESTRUCTOR_ITERATIONS = 4 64 PTHREAD_KEYS_MAX = 512 65 PTHREAD_STACK_MIN = 16384 66 QUAD_MAX = 9223372036854775807 67 QUAD_MIN = -9223372036854775808 68 RE_DUP_MAX = 255 69 SCHAR_MAX = 127 70 SCHAR_MIN = -128 71 SHRT_MAX = 32767 72 SHRT_MIN = -32768 73 SIZE_T_MAX = 18446744073709551615 74 SSIZE_MAX = 9223372036854775807 75 UCHAR_MAX = 255 76 UID_MAX = 2147483647 77 UINT_MAX = 4294967295 78 ULLONG_MAX = 18446744073709551615 79 ULONG_LONG_MAX = 18446744073709551615 80 ULONG_MAX = 18446744073709551615 81 UQUAD_MAX = 18446744073709551615 82 USHRT_MAX = 65535 83 WORD_BIT = 32 84 X_ARM_LIMITS_H_ = 0 85 X_ARM__LIMITS_H_ = 0 86 X_BSD_MACHINE_LIMITS_H_ = 0 87 X_CDEFS_H_ = 0 88 X_DARWIN_FEATURE_64_BIT_INODE = 1 89 X_DARWIN_FEATURE_ONLY_64_BIT_INODE = 1 90 X_DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE = 1 91 X_DARWIN_FEATURE_ONLY_VERS_1050 = 1 92 X_DARWIN_FEATURE_UNIX_CONFORMANCE = 3 93 X_FILE_OFFSET_BITS = 64 94 X_GCC_LIMITS_H_ = 0 95 X_LIMITS_H_ = 0 96 X_LIMITS_H___ = 0 97 X_LP64 = 1 98 X_Nonnull = 0 99 X_Null_unspecified = 0 100 X_Nullable = 0 101 X_POSIX2_BC_BASE_MAX = 99 102 X_POSIX2_BC_DIM_MAX = 2048 103 X_POSIX2_BC_SCALE_MAX = 99 104 X_POSIX2_BC_STRING_MAX = 1000 105 X_POSIX2_CHARCLASS_NAME_MAX = 14 106 X_POSIX2_COLL_WEIGHTS_MAX = 2 107 X_POSIX2_EQUIV_CLASS_MAX = 2 108 X_POSIX2_EXPR_NEST_MAX = 32 109 X_POSIX2_LINE_MAX = 2048 110 X_POSIX2_RE_DUP_MAX = 255 111 X_POSIX_AIO_LISTIO_MAX = 2 112 X_POSIX_AIO_MAX = 1 113 X_POSIX_ARG_MAX = 4096 114 X_POSIX_CHILD_MAX = 25 115 X_POSIX_CLOCKRES_MIN = 20000000 116 X_POSIX_DELAYTIMER_MAX = 32 117 X_POSIX_HOST_NAME_MAX = 255 118 X_POSIX_LINK_MAX = 8 119 X_POSIX_LOGIN_NAME_MAX = 9 120 X_POSIX_MAX_CANON = 255 121 X_POSIX_MAX_INPUT = 255 122 X_POSIX_MQ_OPEN_MAX = 8 123 X_POSIX_MQ_PRIO_MAX = 32 124 X_POSIX_NAME_MAX = 14 125 X_POSIX_NGROUPS_MAX = 8 126 X_POSIX_OPEN_MAX = 20 127 X_POSIX_PATH_MAX = 256 128 X_POSIX_PIPE_BUF = 512 129 X_POSIX_RE_DUP_MAX = 255 130 X_POSIX_RTSIG_MAX = 8 131 X_POSIX_SEM_NSEMS_MAX = 256 132 X_POSIX_SEM_VALUE_MAX = 32767 133 X_POSIX_SIGQUEUE_MAX = 32 134 X_POSIX_SSIZE_MAX = 32767 135 X_POSIX_SS_REPL_MAX = 4 136 X_POSIX_STREAM_MAX = 8 137 X_POSIX_SYMLINK_MAX = 255 138 X_POSIX_SYMLOOP_MAX = 8 139 X_POSIX_THREAD_DESTRUCTOR_ITERATIONS = 4 140 X_POSIX_THREAD_KEYS_MAX = 128 141 X_POSIX_THREAD_THREADS_MAX = 64 142 X_POSIX_TIMER_MAX = 32 143 X_POSIX_TRACE_EVENT_NAME_MAX = 30 144 X_POSIX_TRACE_NAME_MAX = 8 145 X_POSIX_TRACE_SYS_MAX = 8 146 X_POSIX_TRACE_USER_EVENT_MAX = 32 147 X_POSIX_TTY_NAME_MAX = 9 148 X_POSIX_TZNAME_MAX = 6 149 X_SYS_SYSLIMITS_H_ = 0 150 X_XOPEN_IOV_MAX = 16 151 X_XOPEN_NAME_MAX = 255 152 X_XOPEN_PATH_MAX = 1024 153 ) 154 155 type Ptrdiff_t = int64 /* <builtin>:3:26 */ 156 157 type Size_t = uint64 /* <builtin>:9:23 */ 158 159 type Wchar_t = int32 /* <builtin>:15:24 */ 160 161 type X__int128_t = struct { 162 Flo int64 163 Fhi int64 164 } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128 165 type X__uint128_t = struct { 166 Flo uint64 167 Fhi uint64 168 } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128 169 170 type X__builtin_va_list = uintptr /* <builtin>:46:14 */ 171 type X__float128 = float64 /* <builtin>:47:21 */ 172 173 // Copyright (C) 1992-2021 Free Software Foundation, Inc. 174 // 175 // This file is part of GCC. 176 // 177 // GCC is free software; you can redistribute it and/or modify it under 178 // the terms of the GNU General Public License as published by the Free 179 // Software Foundation; either version 3, or (at your option) any later 180 // version. 181 // 182 // GCC is distributed in the hope that it will be useful, but WITHOUT ANY 183 // WARRANTY; without even the implied warranty of MERCHANTABILITY or 184 // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 185 // for more details. 186 // 187 // Under Section 7 of GPL version 3, you are granted additional 188 // permissions described in the GCC Runtime Library Exception, version 189 // 3.1, as published by the Free Software Foundation. 190 // 191 // You should have received a copy of the GNU General Public License and 192 // a copy of the GCC Runtime Library Exception along with this program; 193 // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 194 // <http://www.gnu.org/licenses/>. 195 196 // This administrivia gets added to the beginning of limits.h 197 // if the system has its own version of limits.h. 198 199 // We use _GCC_LIMITS_H_ because we want this not to match 200 // any macros that the system's limits.h uses for its own purposes. 201 202 // Use "..." so that we find syslimits.h only in this same directory. 203 // syslimits.h stands for the system's own limits.h file. 204 // If we can use it ok unmodified, then we install this text. 205 // If fixincludes fixes it, then the fixed version is installed 206 // instead of this text. 207 208 // Copyright (c) 2000, 2004-2007, 2009 Apple Inc. All rights reserved. 209 // 210 // @APPLE_LICENSE_HEADER_START@ 211 // 212 // This file contains Original Code and/or Modifications of Original Code 213 // as defined in and that are subject to the Apple Public Source License 214 // Version 2.0 (the 'License'). You may not use this file except in 215 // compliance with the License. Please obtain a copy of the License at 216 // http://www.opensource.apple.com/apsl/ and read it before using this 217 // file. 218 // 219 // The Original Code and all software distributed under the License are 220 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 221 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 222 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 223 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 224 // Please see the License for the specific language governing rights and 225 // limitations under the License. 226 // 227 // @APPLE_LICENSE_HEADER_END@ 228 // $NetBSD: limits.h,v 1.8 1996/10/21 05:10:50 jtc Exp $ 229 230 // Copyright (c) 1988, 1993 231 // The Regents of the University of California. All rights reserved. 232 // 233 // Redistribution and use in source and binary forms, with or without 234 // modification, are permitted provided that the following conditions 235 // are met: 236 // 1. Redistributions of source code must retain the above copyright 237 // notice, this list of conditions and the following disclaimer. 238 // 2. Redistributions in binary form must reproduce the above copyright 239 // notice, this list of conditions and the following disclaimer in the 240 // documentation and/or other materials provided with the distribution. 241 // 3. All advertising materials mentioning features or use of this software 242 // must display the following acknowledgement: 243 // This product includes software developed by the University of 244 // California, Berkeley and its contributors. 245 // 4. Neither the name of the University nor the names of its contributors 246 // may be used to endorse or promote products derived from this software 247 // without specific prior written permission. 248 // 249 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 250 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 251 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 252 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 253 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 254 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 255 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 256 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 257 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 258 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 259 // SUCH DAMAGE. 260 // 261 // @(#)limits.h 8.2 (Berkeley) 1/4/94 262 263 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 264 // 265 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 266 // 267 // This file contains Original Code and/or Modifications of Original Code 268 // as defined in and that are subject to the Apple Public Source License 269 // Version 2.0 (the 'License'). You may not use this file except in 270 // compliance with the License. The rights granted to you under the License 271 // may not be used to create, or enable the creation or redistribution of, 272 // unlawful or unlicensed copies of an Apple operating system, or to 273 // circumvent, violate, or enable the circumvention or violation of, any 274 // terms of an Apple operating system software license agreement. 275 // 276 // Please obtain a copy of the License at 277 // http://www.opensource.apple.com/apsl/ and read it before using this file. 278 // 279 // The Original Code and all software distributed under the License are 280 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 281 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 282 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 283 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 284 // Please see the License for the specific language governing rights and 285 // limitations under the License. 286 // 287 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 288 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 289 // Copyright (c) 1991, 1993 290 // The Regents of the University of California. All rights reserved. 291 // 292 // This code is derived from software contributed to Berkeley by 293 // Berkeley Software Design, Inc. 294 // 295 // Redistribution and use in source and binary forms, with or without 296 // modification, are permitted provided that the following conditions 297 // are met: 298 // 1. Redistributions of source code must retain the above copyright 299 // notice, this list of conditions and the following disclaimer. 300 // 2. Redistributions in binary form must reproduce the above copyright 301 // notice, this list of conditions and the following disclaimer in the 302 // documentation and/or other materials provided with the distribution. 303 // 3. All advertising materials mentioning features or use of this software 304 // must display the following acknowledgement: 305 // This product includes software developed by the University of 306 // California, Berkeley and its contributors. 307 // 4. Neither the name of the University nor the names of its contributors 308 // may be used to endorse or promote products derived from this software 309 // without specific prior written permission. 310 // 311 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 312 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 313 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 314 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 315 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 316 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 317 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 318 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 319 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 320 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 321 // SUCH DAMAGE. 322 // 323 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 324 325 // This SDK is designed to work with clang and specific versions of 326 // gcc >= 4.0 with Apple's patch sets 327 328 // Compatibility with compilers and environments that don't support compiler 329 // feature checking function-like macros. 330 331 // The __CONCAT macro is used to concatenate parts of symbol names, e.g. 332 // with "#define OLD(foo) __CONCAT(old,foo)", OLD(foo) produces oldfoo. 333 // The __CONCAT macro is a bit tricky -- make sure you don't put spaces 334 // in between its arguments. __CONCAT can also concatenate double-quoted 335 // strings produced by the __STRING macro, but this only works with ANSI C. 336 337 // __pure2 can be used for functions that are only a function of their scalar 338 // arguments (meaning they can't dereference pointers). 339 // 340 // __stateful_pure can be used for functions that have no side effects, 341 // but depend on the state of the memory. 342 343 // __unused denotes variables and functions that may not be used, preventing 344 // the compiler from warning about it if not used. 345 346 // __used forces variables and functions to be included even if it appears 347 // to the compiler that they are not used (and would thust be discarded). 348 349 // __cold marks code used for debugging or that is rarely taken 350 // and tells the compiler to optimize for size and outline code. 351 352 // __exported denotes symbols that should be exported even when symbols 353 // are hidden by default. 354 // __exported_push/_exported_pop are pragmas used to delimit a range of 355 // symbols that should be exported even when symbols are hidden by default. 356 357 // __deprecated causes the compiler to produce a warning when encountering 358 // code using the deprecated functionality. 359 // __deprecated_msg() does the same, and compilers that support it will print 360 // a message along with the deprecation warning. 361 // This may require turning on such warning with the -Wdeprecated flag. 362 // __deprecated_enum_msg() should be used on enums, and compilers that support 363 // it will print the deprecation warning. 364 // __kpi_deprecated() specifically indicates deprecation of kernel programming 365 // interfaces in Kernel.framework used by KEXTs. 366 367 // __unavailable causes the compiler to error out when encountering 368 // code using the tagged function 369 370 // Delete pseudo-keywords wherever they are not available or needed. 371 372 // We use `__restrict' as a way to define the `restrict' type qualifier 373 // without disturbing older software that is unaware of C99 keywords. 374 375 // Compatibility with compilers and environments that don't support the 376 // nullability feature. 377 378 // __disable_tail_calls causes the compiler to not perform tail call 379 // optimization inside the marked function. 380 381 // __not_tail_called causes the compiler to prevent tail call optimization 382 // on statically bound calls to the function. It has no effect on indirect 383 // calls. Virtual functions, objective-c methods, and functions marked as 384 // "always_inline" cannot be marked as __not_tail_called. 385 386 // __result_use_check warns callers of a function that not using the function 387 // return value is a bug, i.e. dismissing malloc() return value results in a 388 // memory leak. 389 390 // __swift_unavailable causes the compiler to mark a symbol as specifically 391 // unavailable in Swift, regardless of any other availability in C. 392 393 // __abortlike is the attribute to put on functions like abort() that are 394 // typically used to mark assertions. These optimize the codegen 395 // for outlining while still maintaining debugability. 396 397 // Declaring inline functions within headers is error-prone due to differences 398 // across various versions of the C language and extensions. __header_inline 399 // can be used to declare inline functions within system headers. In cases 400 // where you want to force inlining instead of letting the compiler make 401 // the decision, you can use __header_always_inline. 402 // 403 // Be aware that using inline for functions which compilers may also provide 404 // builtins can behave differently under various compilers. If you intend to 405 // provide an inline version of such a function, you may want to use a macro 406 // instead. 407 // 408 // The check for !__GNUC__ || __clang__ is because gcc doesn't correctly 409 // support c99 inline in some cases: 410 // http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55965 411 412 // Compiler-dependent macros that bracket portions of code where the 413 // "-Wunreachable-code" warning should be ignored. Please use sparingly. 414 415 // Compiler-dependent macros to declare that functions take printf-like 416 // or scanf-like arguments. They are null except for versions of gcc 417 // that are known to support the features properly. Functions declared 418 // with these attributes will cause compilation warnings if there is a 419 // mismatch between the format string and subsequent function parameter 420 // types. 421 422 // Source compatibility only, ID string not emitted in object file 423 424 // __alloc_size can be used to label function arguments that represent the 425 // size of memory that the function allocates and returns. The one-argument 426 // form labels a single argument that gives the allocation size (where the 427 // arguments are numbered from 1): 428 // 429 // void *malloc(size_t __size) __alloc_size(1); 430 // 431 // The two-argument form handles the case where the size is calculated as the 432 // product of two arguments: 433 // 434 // void *calloc(size_t __count, size_t __size) __alloc_size(1,2); 435 436 // COMPILATION ENVIRONMENTS -- see compat(5) for additional detail 437 // 438 // DEFAULT By default newly complied code will get POSIX APIs plus 439 // Apple API extensions in scope. 440 // 441 // Most users will use this compilation environment to avoid 442 // behavioral differences between 32 and 64 bit code. 443 // 444 // LEGACY Defining _NONSTD_SOURCE will get pre-POSIX APIs plus Apple 445 // API extensions in scope. 446 // 447 // This is generally equivalent to the Tiger release compilation 448 // environment, except that it cannot be applied to 64 bit code; 449 // its use is discouraged. 450 // 451 // We expect this environment to be deprecated in the future. 452 // 453 // STRICT Defining _POSIX_C_SOURCE or _XOPEN_SOURCE restricts the 454 // available APIs to exactly the set of APIs defined by the 455 // corresponding standard, based on the value defined. 456 // 457 // A correct, portable definition for _POSIX_C_SOURCE is 200112L. 458 // A correct, portable definition for _XOPEN_SOURCE is 600L. 459 // 460 // Apple API extensions are not visible in this environment, 461 // which can cause Apple specific code to fail to compile, 462 // or behave incorrectly if prototypes are not in scope or 463 // warnings about missing prototypes are not enabled or ignored. 464 // 465 // In any compilation environment, for correct symbol resolution to occur, 466 // function prototypes must be in scope. It is recommended that all Apple 467 // tools users add either the "-Wall" or "-Wimplicit-function-declaration" 468 // compiler flags to their projects to be warned when a function is being 469 // used without a prototype in scope. 470 471 // These settings are particular to each product. 472 // Platform: MacOSX 473 474 // The __DARWIN_ALIAS macros are used to do symbol renaming; they allow 475 // legacy code to use the old symbol, thus maintaining binary compatibility 476 // while new code can use a standards compliant version of the same function. 477 // 478 // __DARWIN_ALIAS is used by itself if the function signature has not 479 // changed, it is used along with a #ifdef check for __DARWIN_UNIX03 480 // if the signature has changed. Because the __LP64__ environment 481 // only supports UNIX03 semantics it causes __DARWIN_UNIX03 to be 482 // defined, but causes __DARWIN_ALIAS to do no symbol mangling. 483 // 484 // As a special case, when XCode is used to target a specific version of the 485 // OS, the manifest constant __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ 486 // will be defined by the compiler, with the digits representing major version 487 // time 100 + minor version times 10 (e.g. 10.5 := 1050). If we are targeting 488 // pre-10.5, and it is the default compilation environment, revert the 489 // compilation environment to pre-__DARWIN_UNIX03. 490 491 // symbol suffixes used for symbol versioning 492 493 // symbol versioning macros 494 495 // symbol release macros 496 // Copyright (c) 2010 Apple Inc. All rights reserved. 497 // 498 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 499 // 500 // This file contains Original Code and/or Modifications of Original Code 501 // as defined in and that are subject to the Apple Public Source License 502 // Version 2.0 (the 'License'). You may not use this file except in 503 // compliance with the License. The rights granted to you under the License 504 // may not be used to create, or enable the creation or redistribution of, 505 // unlawful or unlicensed copies of an Apple operating system, or to 506 // circumvent, violate, or enable the circumvention or violation of, any 507 // terms of an Apple operating system software license agreement. 508 // 509 // Please obtain a copy of the License at 510 // http://www.opensource.apple.com/apsl/ and read it before using this file. 511 // 512 // The Original Code and all software distributed under the License are 513 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 514 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 515 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 516 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 517 // Please see the License for the specific language governing rights and 518 // limitations under the License. 519 // 520 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 521 522 // POSIX.1 requires that the macros we test be defined before any standard 523 // header file is included. This permits us to convert values for feature 524 // testing, as necessary, using only _POSIX_C_SOURCE. 525 // 526 // Here's a quick run-down of the versions: 527 // defined(_POSIX_SOURCE) 1003.1-1988 528 // _POSIX_C_SOURCE == 1L 1003.1-1990 529 // _POSIX_C_SOURCE == 2L 1003.2-1992 C Language Binding Option 530 // _POSIX_C_SOURCE == 199309L 1003.1b-1993 531 // _POSIX_C_SOURCE == 199506L 1003.1c-1995, 1003.1i-1995, 532 // and the omnibus ISO/IEC 9945-1: 1996 533 // _POSIX_C_SOURCE == 200112L 1003.1-2001 534 // _POSIX_C_SOURCE == 200809L 1003.1-2008 535 // 536 // In addition, the X/Open Portability Guide, which is now the Single UNIX 537 // Specification, defines a feature-test macro which indicates the version of 538 // that specification, and which subsumes _POSIX_C_SOURCE. 539 540 // Deal with IEEE Std. 1003.1-1990, in which _POSIX_C_SOURCE == 1L. 541 542 // Deal with IEEE Std. 1003.2-1992, in which _POSIX_C_SOURCE == 2L. 543 544 // Deal with various X/Open Portability Guides and Single UNIX Spec. 545 546 // Deal with all versions of POSIX. The ordering relative to the tests above is 547 // important. 548 549 // POSIX C deprecation macros 550 // Copyright (c) 2010 Apple Inc. All rights reserved. 551 // 552 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 553 // 554 // This file contains Original Code and/or Modifications of Original Code 555 // as defined in and that are subject to the Apple Public Source License 556 // Version 2.0 (the 'License'). You may not use this file except in 557 // compliance with the License. The rights granted to you under the License 558 // may not be used to create, or enable the creation or redistribution of, 559 // unlawful or unlicensed copies of an Apple operating system, or to 560 // circumvent, violate, or enable the circumvention or violation of, any 561 // terms of an Apple operating system software license agreement. 562 // 563 // Please obtain a copy of the License at 564 // http://www.opensource.apple.com/apsl/ and read it before using this file. 565 // 566 // The Original Code and all software distributed under the License are 567 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 568 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 569 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 570 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 571 // Please see the License for the specific language governing rights and 572 // limitations under the License. 573 // 574 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 575 576 // Set a single macro which will always be defined and can be used to determine 577 // the appropriate namespace. For POSIX, these values will correspond to 578 // _POSIX_C_SOURCE value. Currently there are two additional levels corresponding 579 // to ANSI (_ANSI_SOURCE) and Darwin extensions (_DARWIN_C_SOURCE) 580 581 // If the developer has neither requested a strict language mode nor a version 582 // of POSIX, turn on functionality provided by __STDC_WANT_LIB_EXT1__ as part 583 // of __DARWIN_C_FULL. 584 585 // long long is not supported in c89 (__STRICT_ANSI__), but g++ -ansi and 586 // c99 still want long longs. While not perfect, we allow long longs for 587 // g++. 588 589 // **************************************** 590 // 591 // Public darwin-specific feature macros 592 // 593 594 // _DARWIN_FEATURE_64_BIT_INODE indicates that the ino_t type is 64-bit, and 595 // structures modified for 64-bit inodes (like struct stat) will be used. 596 597 // _DARWIN_FEATURE_64_ONLY_BIT_INODE indicates that the ino_t type may only 598 // be 64-bit; there is no support for 32-bit ino_t when this macro is defined 599 // (and non-zero). There is no struct stat64 either, as the regular 600 // struct stat will already be the 64-bit version. 601 602 // _DARWIN_FEATURE_ONLY_VERS_1050 indicates that only those APIs updated 603 // in 10.5 exists; no pre-10.5 variants are available. 604 605 // _DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE indicates only UNIX conforming API 606 // are available (the legacy BSD APIs are not available) 607 608 // _DARWIN_FEATURE_UNIX_CONFORMANCE indicates whether UNIX conformance is on, 609 // and specifies the conformance level (3 is SUSv3) 610 611 // This macro casts away the qualifier from the variable 612 // 613 // Note: use at your own risk, removing qualifiers can result in 614 // catastrophic run-time failures. 615 616 // __XNU_PRIVATE_EXTERN is a linkage decoration indicating that a symbol can be 617 // used from other compilation units, but not other libraries or executables. 618 619 // Architecture validation for current SDK 620 621 // Similar to OS_ENUM/OS_CLOSED_ENUM/OS_OPTIONS/OS_CLOSED_OPTIONS 622 // 623 // This provides more advanced type checking on compilers supporting 624 // the proper extensions, even in C. 625 626 // This is the `system' limits.h, independent of any particular 627 // compiler. GCC provides its own limits.h which can be found in 628 // /usr/lib/gcc, although it is not very informative. 629 // This file is public domain. 630 631 // Copyright (c) 2000-2007 Apple Inc. All rights reserved. 632 // Copyright (c) 1988, 1993 633 // The Regents of the University of California. All rights reserved. 634 // 635 // Redistribution and use in source and binary forms, with or without 636 // modification, are permitted provided that the following conditions 637 // are met: 638 // 1. Redistributions of source code must retain the above copyright 639 // notice, this list of conditions and the following disclaimer. 640 // 2. Redistributions in binary form must reproduce the above copyright 641 // notice, this list of conditions and the following disclaimer in the 642 // documentation and/or other materials provided with the distribution. 643 // 3. All advertising materials mentioning features or use of this software 644 // must display the following acknowledgement: 645 // This product includes software developed by the University of 646 // California, Berkeley and its contributors. 647 // 4. Neither the name of the University nor the names of its contributors 648 // may be used to endorse or promote products derived from this software 649 // without specific prior written permission. 650 // 651 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 652 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 653 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 654 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 655 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 656 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 657 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 658 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 659 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 660 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 661 // SUCH DAMAGE. 662 // 663 // @(#)limits.h 8.3 (Berkeley) 1/4/94 664 665 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 666 // 667 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 668 // 669 // This file contains Original Code and/or Modifications of Original Code 670 // as defined in and that are subject to the Apple Public Source License 671 // Version 2.0 (the 'License'). You may not use this file except in 672 // compliance with the License. The rights granted to you under the License 673 // may not be used to create, or enable the creation or redistribution of, 674 // unlawful or unlicensed copies of an Apple operating system, or to 675 // circumvent, violate, or enable the circumvention or violation of, any 676 // terms of an Apple operating system software license agreement. 677 // 678 // Please obtain a copy of the License at 679 // http://www.opensource.apple.com/apsl/ and read it before using this file. 680 // 681 // The Original Code and all software distributed under the License are 682 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 683 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 684 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 685 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 686 // Please see the License for the specific language governing rights and 687 // limitations under the License. 688 // 689 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 690 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 691 // Copyright (c) 1991, 1993 692 // The Regents of the University of California. All rights reserved. 693 // 694 // This code is derived from software contributed to Berkeley by 695 // Berkeley Software Design, Inc. 696 // 697 // Redistribution and use in source and binary forms, with or without 698 // modification, are permitted provided that the following conditions 699 // are met: 700 // 1. Redistributions of source code must retain the above copyright 701 // notice, this list of conditions and the following disclaimer. 702 // 2. Redistributions in binary form must reproduce the above copyright 703 // notice, this list of conditions and the following disclaimer in the 704 // documentation and/or other materials provided with the distribution. 705 // 3. All advertising materials mentioning features or use of this software 706 // must display the following acknowledgement: 707 // This product includes software developed by the University of 708 // California, Berkeley and its contributors. 709 // 4. Neither the name of the University nor the names of its contributors 710 // may be used to endorse or promote products derived from this software 711 // without specific prior written permission. 712 // 713 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 714 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 715 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 716 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 717 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 718 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 719 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 720 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 721 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 722 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 723 // SUCH DAMAGE. 724 // 725 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 726 727 // Copyright (c) 2004-2007 Apple Inc. All rights reserved. 728 729 // According to ANSI (section 2.2.4.2), the values below must be usable by 730 // #if preprocessing directives. Additionally, the expression must have the 731 // same type as would an expression that is an object of the corresponding 732 // type converted according to the integral promotions. The subtraction for 733 // INT_MIN and LONG_MIN is so the value is not unsigned; 2147483648 is an 734 // unsigned int for 32-bit two's complement ANSI compilers (section 3.1.3.2). 735 // These numbers work for pcc as well. The UINT_MAX and ULONG_MAX values 736 // are written as hex so that GCC will be quiet about large integer constants. 737 738 // Copyright (c) 2000 Apple Computer, Inc. All rights reserved. 739 // 740 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 741 // 742 // This file contains Original Code and/or Modifications of Original Code 743 // as defined in and that are subject to the Apple Public Source License 744 // Version 2.0 (the 'License'). You may not use this file except in 745 // compliance with the License. The rights granted to you under the License 746 // may not be used to create, or enable the creation or redistribution of, 747 // unlawful or unlicensed copies of an Apple operating system, or to 748 // circumvent, violate, or enable the circumvention or violation of, any 749 // terms of an Apple operating system software license agreement. 750 // 751 // Please obtain a copy of the License at 752 // http://www.opensource.apple.com/apsl/ and read it before using this file. 753 // 754 // The Original Code and all software distributed under the License are 755 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 756 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 757 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 758 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 759 // Please see the License for the specific language governing rights and 760 // limitations under the License. 761 // 762 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 763 // $NetBSD: syslimits.h,v 1.15 1997/06/25 00:48:09 lukem Exp $ 764 765 // Copyright (c) 1988, 1993 766 // The Regents of the University of California. All rights reserved. 767 // 768 // Redistribution and use in source and binary forms, with or without 769 // modification, are permitted provided that the following conditions 770 // are met: 771 // 1. Redistributions of source code must retain the above copyright 772 // notice, this list of conditions and the following disclaimer. 773 // 2. Redistributions in binary form must reproduce the above copyright 774 // notice, this list of conditions and the following disclaimer in the 775 // documentation and/or other materials provided with the distribution. 776 // 3. All advertising materials mentioning features or use of this software 777 // must display the following acknowledgement: 778 // This product includes software developed by the University of 779 // California, Berkeley and its contributors. 780 // 4. Neither the name of the University nor the names of its contributors 781 // may be used to endorse or promote products derived from this software 782 // without specific prior written permission. 783 // 784 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 785 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 786 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 787 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 788 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 789 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 790 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 791 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 792 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 793 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 794 // SUCH DAMAGE. 795 // 796 // @(#)syslimits.h 8.1 (Berkeley) 6/2/93 797 798 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 799 // 800 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 801 // 802 // This file contains Original Code and/or Modifications of Original Code 803 // as defined in and that are subject to the Apple Public Source License 804 // Version 2.0 (the 'License'). You may not use this file except in 805 // compliance with the License. The rights granted to you under the License 806 // may not be used to create, or enable the creation or redistribution of, 807 // unlawful or unlicensed copies of an Apple operating system, or to 808 // circumvent, violate, or enable the circumvention or violation of, any 809 // terms of an Apple operating system software license agreement. 810 // 811 // Please obtain a copy of the License at 812 // http://www.opensource.apple.com/apsl/ and read it before using this file. 813 // 814 // The Original Code and all software distributed under the License are 815 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 816 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 817 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 818 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 819 // Please see the License for the specific language governing rights and 820 // limitations under the License. 821 // 822 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 823 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 824 // Copyright (c) 1991, 1993 825 // The Regents of the University of California. All rights reserved. 826 // 827 // This code is derived from software contributed to Berkeley by 828 // Berkeley Software Design, Inc. 829 // 830 // Redistribution and use in source and binary forms, with or without 831 // modification, are permitted provided that the following conditions 832 // are met: 833 // 1. Redistributions of source code must retain the above copyright 834 // notice, this list of conditions and the following disclaimer. 835 // 2. Redistributions in binary form must reproduce the above copyright 836 // notice, this list of conditions and the following disclaimer in the 837 // documentation and/or other materials provided with the distribution. 838 // 3. All advertising materials mentioning features or use of this software 839 // must display the following acknowledgement: 840 // This product includes software developed by the University of 841 // California, Berkeley and its contributors. 842 // 4. Neither the name of the University nor the names of its contributors 843 // may be used to endorse or promote products derived from this software 844 // without specific prior written permission. 845 // 846 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 847 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 848 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 849 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 850 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 851 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 852 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 853 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 854 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 855 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 856 // SUCH DAMAGE. 857 // 858 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 859 860 // max bytes for an exec function 861 862 // Note: CHILD_MAX *must* be less than hard_maxproc, which is set at 863 // compile time; you *cannot* set it higher than the hard limit!! 864 865 // = ((PRIO_MAX - PRIO_MIN) / 2) + 1 866 // range: 0 - 39 [(2 * NZERO) - 1] 867 // 0 is not actually used 868 869 // Actually for XSI Visible 870 871 // Removed in Issue 6 872 873 // NZERO to be defined here. TBD. See also sys/param.h 874 875 // Copyright (C) 1991-2021 Free Software Foundation, Inc. 876 // 877 // This file is part of GCC. 878 // 879 // GCC is free software; you can redistribute it and/or modify it under 880 // the terms of the GNU General Public License as published by the Free 881 // Software Foundation; either version 3, or (at your option) any later 882 // version. 883 // 884 // GCC is distributed in the hope that it will be useful, but WITHOUT ANY 885 // WARRANTY; without even the implied warranty of MERCHANTABILITY or 886 // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 887 // for more details. 888 // 889 // Under Section 7 of GPL version 3, you are granted additional 890 // permissions described in the GCC Runtime Library Exception, version 891 // 3.1, as published by the Free Software Foundation. 892 // 893 // You should have received a copy of the GNU General Public License and 894 // a copy of the GCC Runtime Library Exception along with this program; 895 // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 896 // <http://www.gnu.org/licenses/>. 897 898 // Number of bits in a `char'. 899 900 // Maximum length of a multibyte character. 901 902 // Minimum and maximum values a `signed char' can hold. 903 904 // Maximum value an `unsigned char' can hold. (Minimum is 0). 905 906 // Minimum and maximum values a `char' can hold. 907 908 // Minimum and maximum values a `signed short int' can hold. 909 910 // Maximum value an `unsigned short int' can hold. (Minimum is 0). 911 912 // Minimum and maximum values a `signed int' can hold. 913 914 // Maximum value an `unsigned int' can hold. (Minimum is 0). 915 916 // Minimum and maximum values a `signed long int' can hold. 917 // (Same as `int'). 918 919 // Maximum value an `unsigned long int' can hold. (Minimum is 0). 920 921 // Minimum and maximum values a `signed long long int' can hold. 922 923 // Maximum value an `unsigned long long int' can hold. (Minimum is 0). 924 925 // Minimum and maximum values a `signed long long int' can hold. 926 927 // Maximum value an `unsigned long long int' can hold. (Minimum is 0). 928 929 // This administrivia gets added to the end of limits.h 930 // if the system has its own version of limits.h. 931 932 var _ int8 /* gen.c:2:13: */