limits_netbsd_arm.go 23 KB

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