limits_netbsd_amd64.go 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460
  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 -ignore-unsupported-alignment -o limits/limits_netbsd_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 // syslimits.h:45:1:
  15. BC_BASE_MAX = 2147483647 // syslimits.h:63:1:
  16. BC_DIM_MAX = 65535 // syslimits.h:64:1:
  17. BC_SCALE_MAX = 2147483647 // syslimits.h:65:1:
  18. BC_STRING_MAX = 2147483647 // syslimits.h:66:1:
  19. CHARCLASS_NAME_MAX = 14 // limits.h:125:1:
  20. CHAR_BIT = 8 // limits.h:41:1:
  21. CHAR_MAX = 127 // limits.h:163:1:
  22. CHAR_MIN = -128 // limits.h:162:1:
  23. CHILD_MAX = 160 // syslimits.h:47:1:
  24. COLL_WEIGHTS_MAX = 2 // syslimits.h:67:1:
  25. DBL_DIG = 15 // limits.h:85:1:
  26. EXPR_NEST_MAX = 32 // syslimits.h:68:1:
  27. FLT_DIG = 6 // limits.h:89:1:
  28. GID_MAX = 2147483647 // syslimits.h:49:1:
  29. INT_MAX = 0x7fffffff // limits.h:52:1:
  30. INT_MIN = -2147483648 // limits.h:53:1:
  31. IOV_MAX = 1024 // syslimits.h:84:1:
  32. LINE_MAX = 2048 // syslimits.h:69:1:
  33. LINK_MAX = 32767 // syslimits.h:50:1:
  34. LLONG_MAX = 0x7fffffffffffffff // limits.h:62:1:
  35. LLONG_MIN = -9223372036854775808 // limits.h:63:1:
  36. LOGIN_NAME_MAX = 17 // syslimits.h:77:1:
  37. LONG_BIT = 64 // limits.h:82:1:
  38. LONG_MAX = 0x7fffffffffffffff // limits.h:56:1:
  39. LONG_MIN = -9223372036854775808 // limits.h:57:1:
  40. MAX_CANON = 255 // syslimits.h:51:1:
  41. MAX_INPUT = 255 // syslimits.h:52:1:
  42. MB_LEN_MAX = 32 // limits.h:145:1:
  43. NAME_MAX = 511 // syslimits.h:53:1:
  44. NGROUPS_MAX = 16 // syslimits.h:55:1:
  45. NL_ARGMAX = 9 // limits.h:126:1:
  46. NL_LANGMAX = 14 // limits.h:127:1:
  47. NL_MSGMAX = 32767 // limits.h:128:1:
  48. NL_NMAX = 1 // limits.h:129:1:
  49. NL_SETMAX = 255 // limits.h:130:1:
  50. NL_TEXTMAX = 2048 // limits.h:131:1:
  51. NZERO = 20 // syslimits.h:85:1:
  52. OPEN_MAX = 128 // syslimits.h:58:1:
  53. PASS_MAX = 128 // limits.h:123:1:
  54. PATH_MAX = 1024 // syslimits.h:60:1:
  55. PIPE_BUF = 512 // syslimits.h:61:1:
  56. PTHREAD_DESTRUCTOR_ITERATIONS = 4 // limits.h:90:1:
  57. PTHREAD_KEYS_MAX = 256 // limits.h:91:1:
  58. PTHREAD_THREADS_MAX = 64 // limits.h:93:1:
  59. QUAD_MAX = 0x7fffffffffffffff // limits.h:75:1:
  60. QUAD_MIN = -9223372036854775808 // limits.h:76:1:
  61. RE_DUP_MAX = 255 // syslimits.h:70:1:
  62. SCHAR_MAX = 0x7f // limits.h:44:1:
  63. SCHAR_MIN = -128 // limits.h:45:1:
  64. SHRT_MAX = 0x7fff // limits.h:48:1:
  65. SHRT_MIN = -32768 // limits.h:49:1:
  66. SIZE_T_MAX = 18446744073709551615 // limits.h:72:1:
  67. SSIZE_MAX = 9223372036854775807 // limits.h:68:1:
  68. SSIZE_MIN = -9223372036854775808 // limits.h:71:1:
  69. TMP_MAX = 308915776 // limits.h:139:1:
  70. UCHAR_MAX = 0xff // limits.h:43:1:
  71. UID_MAX = 2147483647 // syslimits.h:56:1:
  72. UINT_MAX = 0xffffffff // limits.h:51:1:
  73. ULLONG_MAX = 0xffffffffffffffff // limits.h:61:1:
  74. ULONG_MAX = 0xffffffffffffffff // limits.h:55:1:
  75. UQUAD_MAX = 0xffffffffffffffff // limits.h:74:1:
  76. USHRT_MAX = 0xffff // limits.h:47:1:
  77. WORD_BIT = 32 // limits.h:83:1:
  78. X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
  79. X_GETGR_R_SIZE_MAX = 1024 // limits.h:134:1:
  80. X_GETPW_R_SIZE_MAX = 1024 // limits.h:135:1:
  81. X_LIMITS_H_ = 0 // limits.h:35:1:
  82. X_LP64 = 1 // <predefined>:268:1:
  83. X_NETBSD_SOURCE = 1 // featuretest.h:70:1:
  84. X_POSIX2_BC_BASE_MAX = 99 // limits.h:103:1:
  85. X_POSIX2_BC_DIM_MAX = 2048 // limits.h:104:1:
  86. X_POSIX2_BC_SCALE_MAX = 99 // limits.h:105:1:
  87. X_POSIX2_BC_STRING_MAX = 1000 // limits.h:106:1:
  88. X_POSIX2_CHARCLASS_NAME_MAX = 14 // limits.h:107:1:
  89. X_POSIX2_COLL_WEIGHTS_MAX = 2 // limits.h:108:1:
  90. X_POSIX2_EXPR_NEST_MAX = 32 // limits.h:109:1:
  91. X_POSIX2_LINE_MAX = 2048 // limits.h:110:1:
  92. X_POSIX2_RE_DUP_MAX = 255 // limits.h:111:1:
  93. X_POSIX_AIO_LISTIO_MAX = 2 // limits.h:41:1:
  94. X_POSIX_AIO_MAX = 1 // limits.h:42:1:
  95. X_POSIX_ARG_MAX = 4096 // limits.h:43:1:
  96. X_POSIX_CHILD_MAX = 25 // limits.h:44:1:
  97. X_POSIX_DELAYTIMER_MAX = 32 // limits.h:99:1:
  98. X_POSIX_HOST_NAME_MAX = 255 // limits.h:45:1:
  99. X_POSIX_LINK_MAX = 8 // limits.h:46:1:
  100. X_POSIX_LOGIN_NAME_MAX = 9 // limits.h:47:1:
  101. X_POSIX_MAX_CANON = 255 // limits.h:48:1:
  102. X_POSIX_MAX_INPUT = 255 // limits.h:49:1:
  103. X_POSIX_MQ_OPEN_MAX = 8 // limits.h:50:1:
  104. X_POSIX_MQ_PRIO_MAX = 32 // limits.h:51:1:
  105. X_POSIX_NAME_MAX = 14 // limits.h:52:1:
  106. X_POSIX_NGROUPS_MAX = 8 // limits.h:53:1:
  107. X_POSIX_OPEN_MAX = 20 // limits.h:54:1:
  108. X_POSIX_PATH_MAX = 256 // limits.h:55:1:
  109. X_POSIX_PIPE_BUF = 512 // limits.h:56:1:
  110. X_POSIX_REALTIME_SIGNALS = 200112 // limits.h:98:1:
  111. X_POSIX_RE_DUP_MAX = 255 // limits.h:57:1:
  112. X_POSIX_SEM_NSEMS_MAX = 256 // limits.h:96:1:
  113. X_POSIX_SIGQUEUE_MAX = 32 // limits.h:97:1:
  114. X_POSIX_SSIZE_MAX = 32767 // limits.h:58:1:
  115. X_POSIX_STREAM_MAX = 8 // limits.h:59:1:
  116. X_POSIX_SYMLINK_MAX = 255 // limits.h:60:1:
  117. X_POSIX_SYMLOOP_MAX = 8 // limits.h:61:1:
  118. X_POSIX_THREAD_DESTRUCTOR_ITERATIONS = 4 // limits.h:81:1:
  119. X_POSIX_THREAD_KEYS_MAX = 128 // limits.h:82:1:
  120. X_POSIX_THREAD_THREADS_MAX = 64 // limits.h:83:1:
  121. X_POSIX_TIMER_MAX = 32 // limits.h:95:1:
  122. X_POSIX_TTY_NAME_MAX = 9 // limits.h:100:1:
  123. X_POSIX_TZNAME_MAX = 6 // limits.h:101:1:
  124. X_SYS_SYSLIMITS_H_ = 0 // syslimits.h:35:1:
  125. X_X86_64_LIMITS_H_ = 0 // limits.h:35:1:
  126. X_XOPEN_IOV_MAX = 16 // limits.h:119:1:
  127. X_XOPEN_NAME_MAX = 256 // limits.h:120:1:
  128. X_XOPEN_PATH_MAX = 1024 // limits.h:121:1:
  129. )
  130. type Ptrdiff_t = int64 /* <builtin>:3:26 */
  131. type Size_t = uint64 /* <builtin>:9:23 */
  132. type Wchar_t = int32 /* <builtin>:15:24 */
  133. type X__int128_t = struct {
  134. Flo int64
  135. Fhi int64
  136. } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
  137. type X__uint128_t = struct {
  138. Flo uint64
  139. Fhi uint64
  140. } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
  141. type X__builtin_va_list = uintptr /* <builtin>:46:14 */
  142. type X__float128 = float64 /* <builtin>:47:21 */
  143. // $NetBSD: limits.h,v 1.40 2016/08/04 06:43:43 christos Exp $
  144. // Copyright (c) 1988, 1993
  145. // The Regents of the University of California. All rights reserved.
  146. //
  147. // Redistribution and use in source and binary forms, with or without
  148. // modification, are permitted provided that the following conditions
  149. // are met:
  150. // 1. Redistributions of source code must retain the above copyright
  151. // notice, this list of conditions and the following disclaimer.
  152. // 2. Redistributions in binary form must reproduce the above copyright
  153. // notice, this list of conditions and the following disclaimer in the
  154. // documentation and/or other materials provided with the distribution.
  155. // 3. Neither the name of the University nor the names of its contributors
  156. // may be used to endorse or promote products derived from this software
  157. // without specific prior written permission.
  158. //
  159. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  160. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  161. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  162. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  163. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  164. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  165. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  166. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  167. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  168. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  169. // SUCH DAMAGE.
  170. //
  171. // @(#)limits.h 8.2 (Berkeley) 1/4/94
  172. // $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
  173. // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
  174. // Public domain.
  175. //
  176. // NOTE: Do not protect this header against multiple inclusion. Doing
  177. // so can have subtle side-effects due to header file inclusion order
  178. // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE. Instead,
  179. // protect each CPP macro that we want to supply.
  180. // Feature-test macros are defined by several standards, and allow an
  181. // application to specify what symbols they want the system headers to
  182. // expose, and hence what standard they want them to conform to.
  183. // There are two classes of feature-test macros. The first class
  184. // specify complete standards, and if one of these is defined, header
  185. // files will try to conform to the relevant standard. They are:
  186. //
  187. // ANSI macros:
  188. // _ANSI_SOURCE ANSI C89
  189. //
  190. // POSIX macros:
  191. // _POSIX_SOURCE == 1 IEEE Std 1003.1 (version?)
  192. // _POSIX_C_SOURCE == 1 IEEE Std 1003.1-1990
  193. // _POSIX_C_SOURCE == 2 IEEE Std 1003.2-1992
  194. // _POSIX_C_SOURCE == 199309L IEEE Std 1003.1b-1993
  195. // _POSIX_C_SOURCE == 199506L ISO/IEC 9945-1:1996
  196. // _POSIX_C_SOURCE == 200112L IEEE Std 1003.1-2001
  197. // _POSIX_C_SOURCE == 200809L IEEE Std 1003.1-2008
  198. //
  199. // X/Open macros:
  200. // _XOPEN_SOURCE System Interfaces and Headers, Issue 4, Ver 2
  201. // _XOPEN_SOURCE_EXTENDED == 1 XSH4.2 UNIX extensions
  202. // _XOPEN_SOURCE == 500 System Interfaces and Headers, Issue 5
  203. // _XOPEN_SOURCE == 520 Networking Services (XNS), Issue 5.2
  204. // _XOPEN_SOURCE == 600 IEEE Std 1003.1-2001, XSI option
  205. // _XOPEN_SOURCE == 700 IEEE Std 1003.1-2008, XSI option
  206. //
  207. // NetBSD macros:
  208. // _NETBSD_SOURCE == 1 Make all NetBSD features available.
  209. //
  210. // If more than one of these "major" feature-test macros is defined,
  211. // then the set of facilities provided (and namespace used) is the
  212. // union of that specified by the relevant standards, and in case of
  213. // conflict, the earlier standard in the above list has precedence (so
  214. // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
  215. // of rename() that's used is the POSIX one). If none of the "major"
  216. // feature-test macros is defined, _NETBSD_SOURCE is assumed.
  217. //
  218. // There are also "minor" feature-test macros, which enable extra
  219. // functionality in addition to some base standard. They should be
  220. // defined along with one of the "major" macros. The "minor" macros
  221. // are:
  222. //
  223. // _REENTRANT
  224. // _ISOC99_SOURCE
  225. // _ISOC11_SOURCE
  226. // _LARGEFILE_SOURCE Large File Support
  227. // <http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
  228. // We have not implemented these yet
  229. //
  230. // _POSIX_THREAD_ATTR_STACKADDR
  231. // _POSIX_THREAD_ATTR_STACKSIZE
  232. // _POSIX_THREAD_CPUTIME
  233. // _POSIX_THREAD_PRIORITY_SCHEDULING
  234. // _POSIX_THREAD_PRIO_INHERIT
  235. // _POSIX_THREAD_PRIO_PROTECT
  236. // _POSIX_THREAD_PROCESS_SHARED
  237. // _POSIX_THREAD_SAFE_FUNCTIONS
  238. // _POSIX_THREAD_SPORADIC_SERVER
  239. // The following 3 are defined in
  240. // Open Group Base Specifications Issue 7
  241. // These are the correct names, defined in terms of the above
  242. // except for PTHREAD_KEYS_MAX which is bigger than standard
  243. // mandated minimum value _POSIX_THREAD_KEYS_MAX.
  244. // Not yet: PTHREAD_STACK_MIN
  245. // X/Open CAE Specifications,
  246. // adopted in IEEE Std 1003.1-2001 XSI.
  247. // IEEE Std 1003.1-2001 TSF
  248. // Always ensure that this is consistent with <stdio.h>
  249. // X/Open Extended API set 2 (a.k.a. C063)
  250. // This hides unimplemented functions from GNU configure until
  251. // we are done implementing them.
  252. // $NetBSD: limits.h,v 1.15 2019/01/21 20:22:48 dholland Exp $
  253. // Copyright (c) 1988 The Regents of the University of California.
  254. // All rights reserved.
  255. //
  256. // Redistribution and use in source and binary forms, with or without
  257. // modification, are permitted provided that the following conditions
  258. // are met:
  259. // 1. Redistributions of source code must retain the above copyright
  260. // notice, this list of conditions and the following disclaimer.
  261. // 2. Redistributions in binary form must reproduce the above copyright
  262. // notice, this list of conditions and the following disclaimer in the
  263. // documentation and/or other materials provided with the distribution.
  264. // 3. Neither the name of the University nor the names of its contributors
  265. // may be used to endorse or promote products derived from this software
  266. // without specific prior written permission.
  267. //
  268. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  269. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  270. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  271. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  272. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  273. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  274. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  275. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  276. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  277. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  278. // SUCH DAMAGE.
  279. //
  280. // @(#)limits.h 7.2 (Berkeley) 6/28/90
  281. // $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
  282. // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
  283. // Public domain.
  284. //
  285. // NOTE: Do not protect this header against multiple inclusion. Doing
  286. // so can have subtle side-effects due to header file inclusion order
  287. // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE. Instead,
  288. // protect each CPP macro that we want to supply.
  289. // Feature-test macros are defined by several standards, and allow an
  290. // application to specify what symbols they want the system headers to
  291. // expose, and hence what standard they want them to conform to.
  292. // There are two classes of feature-test macros. The first class
  293. // specify complete standards, and if one of these is defined, header
  294. // files will try to conform to the relevant standard. They are:
  295. //
  296. // ANSI macros:
  297. // _ANSI_SOURCE ANSI C89
  298. //
  299. // POSIX macros:
  300. // _POSIX_SOURCE == 1 IEEE Std 1003.1 (version?)
  301. // _POSIX_C_SOURCE == 1 IEEE Std 1003.1-1990
  302. // _POSIX_C_SOURCE == 2 IEEE Std 1003.2-1992
  303. // _POSIX_C_SOURCE == 199309L IEEE Std 1003.1b-1993
  304. // _POSIX_C_SOURCE == 199506L ISO/IEC 9945-1:1996
  305. // _POSIX_C_SOURCE == 200112L IEEE Std 1003.1-2001
  306. // _POSIX_C_SOURCE == 200809L IEEE Std 1003.1-2008
  307. //
  308. // X/Open macros:
  309. // _XOPEN_SOURCE System Interfaces and Headers, Issue 4, Ver 2
  310. // _XOPEN_SOURCE_EXTENDED == 1 XSH4.2 UNIX extensions
  311. // _XOPEN_SOURCE == 500 System Interfaces and Headers, Issue 5
  312. // _XOPEN_SOURCE == 520 Networking Services (XNS), Issue 5.2
  313. // _XOPEN_SOURCE == 600 IEEE Std 1003.1-2001, XSI option
  314. // _XOPEN_SOURCE == 700 IEEE Std 1003.1-2008, XSI option
  315. //
  316. // NetBSD macros:
  317. // _NETBSD_SOURCE == 1 Make all NetBSD features available.
  318. //
  319. // If more than one of these "major" feature-test macros is defined,
  320. // then the set of facilities provided (and namespace used) is the
  321. // union of that specified by the relevant standards, and in case of
  322. // conflict, the earlier standard in the above list has precedence (so
  323. // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
  324. // of rename() that's used is the POSIX one). If none of the "major"
  325. // feature-test macros is defined, _NETBSD_SOURCE is assumed.
  326. //
  327. // There are also "minor" feature-test macros, which enable extra
  328. // functionality in addition to some base standard. They should be
  329. // defined along with one of the "major" macros. The "minor" macros
  330. // are:
  331. //
  332. // _REENTRANT
  333. // _ISOC99_SOURCE
  334. // _ISOC11_SOURCE
  335. // _LARGEFILE_SOURCE Large File Support
  336. // <http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
  337. // $NetBSD: syslimits.h,v 1.28 2015/08/21 07:19:39 uebayasi Exp $
  338. // Copyright (c) 1988, 1993
  339. // The Regents of the University of California. All rights reserved.
  340. //
  341. // Redistribution and use in source and binary forms, with or without
  342. // modification, are permitted provided that the following conditions
  343. // are met:
  344. // 1. Redistributions of source code must retain the above copyright
  345. // notice, this list of conditions and the following disclaimer.
  346. // 2. Redistributions in binary form must reproduce the above copyright
  347. // notice, this list of conditions and the following disclaimer in the
  348. // documentation and/or other materials provided with the distribution.
  349. // 3. Neither the name of the University nor the names of its contributors
  350. // may be used to endorse or promote products derived from this software
  351. // without specific prior written permission.
  352. //
  353. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  354. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  355. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  356. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  357. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  358. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  359. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  360. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  361. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  362. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  363. // SUCH DAMAGE.
  364. //
  365. // @(#)syslimits.h 8.1 (Berkeley) 6/2/93
  366. // $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
  367. // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
  368. // Public domain.
  369. //
  370. // NOTE: Do not protect this header against multiple inclusion. Doing
  371. // so can have subtle side-effects due to header file inclusion order
  372. // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE. Instead,
  373. // protect each CPP macro that we want to supply.
  374. // Feature-test macros are defined by several standards, and allow an
  375. // application to specify what symbols they want the system headers to
  376. // expose, and hence what standard they want them to conform to.
  377. // There are two classes of feature-test macros. The first class
  378. // specify complete standards, and if one of these is defined, header
  379. // files will try to conform to the relevant standard. They are:
  380. //
  381. // ANSI macros:
  382. // _ANSI_SOURCE ANSI C89
  383. //
  384. // POSIX macros:
  385. // _POSIX_SOURCE == 1 IEEE Std 1003.1 (version?)
  386. // _POSIX_C_SOURCE == 1 IEEE Std 1003.1-1990
  387. // _POSIX_C_SOURCE == 2 IEEE Std 1003.2-1992
  388. // _POSIX_C_SOURCE == 199309L IEEE Std 1003.1b-1993
  389. // _POSIX_C_SOURCE == 199506L ISO/IEC 9945-1:1996
  390. // _POSIX_C_SOURCE == 200112L IEEE Std 1003.1-2001
  391. // _POSIX_C_SOURCE == 200809L IEEE Std 1003.1-2008
  392. //
  393. // X/Open macros:
  394. // _XOPEN_SOURCE System Interfaces and Headers, Issue 4, Ver 2
  395. // _XOPEN_SOURCE_EXTENDED == 1 XSH4.2 UNIX extensions
  396. // _XOPEN_SOURCE == 500 System Interfaces and Headers, Issue 5
  397. // _XOPEN_SOURCE == 520 Networking Services (XNS), Issue 5.2
  398. // _XOPEN_SOURCE == 600 IEEE Std 1003.1-2001, XSI option
  399. // _XOPEN_SOURCE == 700 IEEE Std 1003.1-2008, XSI option
  400. //
  401. // NetBSD macros:
  402. // _NETBSD_SOURCE == 1 Make all NetBSD features available.
  403. //
  404. // If more than one of these "major" feature-test macros is defined,
  405. // then the set of facilities provided (and namespace used) is the
  406. // union of that specified by the relevant standards, and in case of
  407. // conflict, the earlier standard in the above list has precedence (so
  408. // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
  409. // of rename() that's used is the POSIX one). If none of the "major"
  410. // feature-test macros is defined, _NETBSD_SOURCE is assumed.
  411. //
  412. // There are also "minor" feature-test macros, which enable extra
  413. // functionality in addition to some base standard. They should be
  414. // defined along with one of the "major" macros. The "minor" macros
  415. // are:
  416. //
  417. // _REENTRANT
  418. // _ISOC99_SOURCE
  419. // _ISOC11_SOURCE
  420. // _LARGEFILE_SOURCE Large File Support
  421. // <http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
  422. // kept in sync with MAXNAMLEN
  423. // IEEE Std 1003.1c-95, adopted in X/Open CAE Specification Issue 5 Version 2
  424. // X/Open CAE Specification Issue 5 Version 2
  425. var _ int8 /* gen.c:2:13: */