limits_darwin_amd64.go 43 KB

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