limits_illumos_amd64.go 61 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234
  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_illumos_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 = 2096640 // limits.h:73:1:
  15. BC_BASE_MAX = 99 // limits.h:175:1:
  16. BC_DIM_MAX = 2048 // limits.h:176:1:
  17. BC_SCALE_MAX = 99 // limits.h:177:1:
  18. BC_STRING_MAX = 1000 // limits.h:178:1:
  19. CHARCLASS_NAME_MAX = 14 // limits.h:206:1:
  20. CHAR_BIT = 8 // limits.h:64:1:
  21. CHAR_MAX = 127 // limits.h:99:1:
  22. CHAR_MIN = -128 // limits.h:97:1:
  23. CHILD_MAX = 25 // limits.h:272:1:
  24. COLL_WEIGHTS_MAX = 10 // limits.h:179:1:
  25. DBL_DIG = 15 // limits.h:226:1:
  26. DBL_MAX = 1.7976931348623157081452e+308 // limits.h:227:1:
  27. DBL_MIN = 2.2250738585072013830903e-308 // limits.h:236:1:
  28. EXPR_NEST_MAX = 32 // limits.h:180:1:
  29. FCHR_MAX = 1048576 // limits.h:251:1:
  30. FLT_DIG = 6 // limits.h:229:1:
  31. FLT_MAX = 3.4028234663852885981170e+38 // limits.h:230:1:
  32. FLT_MIN = 1.1754943508222875079688e-38 // limits.h:238:1:
  33. INT16_MAX = 32767 // int_limits.h:93:1:
  34. INT16_MIN = -32768 // int_limits.h:211:1:
  35. INT32_MAX = 2147483647 // int_limits.h:94:1:
  36. INT32_MIN = -2147483648 // int_limits.h:212:1:
  37. INT64_MAX = 9223372036854775807 // int_limits.h:96:1:
  38. INT64_MIN = -9223372036854775808 // int_limits.h:214:1:
  39. INT8_MAX = 127 // int_limits.h:92:1:
  40. INT8_MIN = -128 // int_limits.h:210:1:
  41. INTMAX_MAX = 9223372036854775807 // int_limits.h:111:1:
  42. INTMAX_MIN = -9223372036854775808 // int_limits.h:220:1:
  43. INTPTR_MAX = 9223372036854775807 // int_limits.h:157:1:
  44. INTPTR_MIN = -9223372036854775808 // int_limits.h:241:1:
  45. INT_FAST16_MAX = 2147483647 // int_limits.h:137:1:
  46. INT_FAST16_MIN = -2147483648 // int_limits.h:233:1:
  47. INT_FAST32_MAX = 2147483647 // int_limits.h:138:1:
  48. INT_FAST32_MIN = -2147483648 // int_limits.h:234:1:
  49. INT_FAST64_MAX = 9223372036854775807 // int_limits.h:140:1:
  50. INT_FAST64_MIN = -9223372036854775808 // int_limits.h:236:1:
  51. INT_FAST8_MAX = 127 // int_limits.h:136:1:
  52. INT_FAST8_MIN = -128 // int_limits.h:232:1:
  53. INT_LEAST16_MAX = 32767 // int_limits.h:123:1:
  54. INT_LEAST16_MIN = -32768 // int_limits.h:226:1:
  55. INT_LEAST32_MAX = 2147483647 // int_limits.h:124:1:
  56. INT_LEAST32_MIN = -2147483648 // int_limits.h:227:1:
  57. INT_LEAST64_MAX = 9223372036854775807 // int_limits.h:126:1:
  58. INT_LEAST64_MIN = -9223372036854775808 // int_limits.h:229:1:
  59. INT_LEAST8_MAX = 127 // int_limits.h:122:1:
  60. INT_LEAST8_MIN = -128 // int_limits.h:225:1:
  61. INT_MAX = 2147483647 // limits.h:120:1:
  62. INT_MIN = -2147483648 // limits.h:118:1:
  63. IOV_MAX = 1024 // limits.h:22:1:
  64. LINE_MAX = 2048 // limits.h:181:1:
  65. LLONG_MAX = 9223372036854775807 // limits.h:142:1:
  66. LLONG_MIN = -9223372036854775808 // limits.h:140:1:
  67. LOGIN_NAME_MAX = 33 // limits.h:306:1:
  68. LOGIN_NAME_MAX_TRAD = 9 // limits.h:308:1:
  69. LOGNAME_MAX = 32 // limits.h:303:1:
  70. LOGNAME_MAX_TRAD = 8 // limits.h:307:1:
  71. LONG_BIT = 64 // limits.h:219:1:
  72. LONG_LONG_MAX = 9223372036854775807 // limits.h:154:1:
  73. LONG_LONG_MIN = -9223372036854775808 // limits.h:152:1:
  74. LONG_MAX = 9223372036854775807 // limits.h:131:1:
  75. LONG_MIN = -9223372036854775808 // limits.h:129:1:
  76. MAX_CANON = 256 // limits.h:84:1:
  77. MAX_INPUT = 512 // limits.h:88:1:
  78. MB_LEN_MAX = 5 // limits_iso.h:58:1:
  79. NAME_MAX = 255 // limits.h:270:1:
  80. NGROUPS_MAX = 16 // limits.h:91:1:
  81. NL_ARGMAX = 9 // limits.h:208:1:
  82. NL_LANGMAX = 14 // limits.h:210:1:
  83. NL_MSGMAX = 32767 // limits.h:211:1:
  84. NL_NMAX = 1 // limits.h:212:1:
  85. NL_SETMAX = 255 // limits.h:213:1:
  86. NL_TEXTMAX = 2048 // limits.h:214:1:
  87. NZERO = 20 // limits.h:215:1:
  88. OPEN_MAX = 256 // limits.h:274:1:
  89. PASS_MAX = 256 // limits.h:203:1:
  90. PATH_MAX = 1024 // limits.h:94:1:
  91. PID_MAX = 999999 // limits.h:252:1:
  92. PIPE_BUF = 5120 // limits.h:99:1:
  93. PIPE_MAX = 5120 // limits.h:277:1:
  94. PTRDIFF_MAX = 9223372036854775807 // int_limits.h:166:1:
  95. PTRDIFF_MIN = -9223372036854775808 // int_limits.h:248:1:
  96. RE_DUP_MAX = 255 // limits.h:183:1:
  97. SCHAR_MAX = 127 // limits.h:75:1:
  98. SCHAR_MIN = -128 // limits.h:73:1:
  99. SHRT_MAX = 32767 // limits.h:106:1:
  100. SHRT_MIN = -32768 // limits.h:104:1:
  101. SIG_ATOMIC_MAX = 2147483647 // int_limits.h:186:1:
  102. SIG_ATOMIC_MIN = -2147483648 // int_limits.h:255:1:
  103. SIZE_MAX = 18446744073709551615 // int_limits.h:179:1:
  104. SSIZE_MAX = 9223372036854775807 // limits.h:63:1:
  105. STD_BLK = 1024 // limits.h:279:1:
  106. SYMLINK_MAX = 1024 // limits.h:97:1:
  107. SYSPID_MAX = 1 // limits.h:282:1:
  108. SYS_NMLN = 257 // limits.h:285:1:
  109. TMP_MAX = 17576 // limits.h:102:1:
  110. TTYNAME_MAX = 128 // limits.h:310:1:
  111. UCHAR_MAX = 255 // limits.h:82:1:
  112. UID_MAX = 2147483647 // limits.h:280:1:
  113. UINT16_MAX = 65535 // int_limits.h:102:1:
  114. UINT32_MAX = 4294967295 // int_limits.h:103:1:
  115. UINT64_MAX = 18446744073709551615 // int_limits.h:105:1:
  116. UINT8_MAX = 255 // int_limits.h:101:1:
  117. UINTMAX_MAX = 18446744073709551615 // int_limits.h:117:1:
  118. UINTPTR_MAX = 18446744073709551615 // int_limits.h:158:1:
  119. UINT_FAST16_MAX = 4294967295 // int_limits.h:144:1:
  120. UINT_FAST32_MAX = 4294967295 // int_limits.h:145:1:
  121. UINT_FAST64_MAX = 18446744073709551615 // int_limits.h:147:1:
  122. UINT_FAST8_MAX = 255 // int_limits.h:143:1:
  123. UINT_LEAST16_MAX = 65535 // int_limits.h:130:1:
  124. UINT_LEAST32_MAX = 4294967295 // int_limits.h:131:1:
  125. UINT_LEAST64_MAX = 18446744073709551615 // int_limits.h:133:1:
  126. UINT_LEAST8_MAX = 255 // int_limits.h:129:1:
  127. UINT_MAX = 4294967295 // limits.h:124:1:
  128. ULLONG_MAX = 18446744073709551615 // limits.h:146:1:
  129. ULONG_LONG_MAX = 18446744073709551615 // limits.h:158:1:
  130. ULONG_MAX = 18446744073709551615 // limits.h:135:1:
  131. USHRT_MAX = 65535 // limits.h:113:1:
  132. USI_MAX = 4294967295 // limits.h:281:1:
  133. WCHAR_MAX = 2147483647 // int_limits.h:195:1:
  134. WCHAR_MIN = -2147483648 // int_limits.h:264:1:
  135. WINT_MAX = 2147483647 // int_limits.h:200:1:
  136. WINT_MIN = -2147483648 // int_limits.h:269:1:
  137. WORD_BIT = 32 // limits.h:217:1:
  138. X_ALIGNMENT_REQUIRED = 1 // isa_defs.h:262:1:
  139. X_ARG_MAX32 = 1048320 // limits.h:70:1:
  140. X_ARG_MAX64 = 2096640 // limits.h:71:1:
  141. X_BIT_FIELDS_LTOH = 0 // isa_defs.h:245:1:
  142. X_BOOL_ALIGNMENT = 1 // isa_defs.h:248:1:
  143. X_CHAR_ALIGNMENT = 1 // isa_defs.h:249:1:
  144. X_CHAR_IS_SIGNED = 0 // isa_defs.h:247:1:
  145. X_CLOCK_T = 0 // limits.h:291:1:
  146. X_DMA_USES_PHYSADDR = 0 // isa_defs.h:281:1:
  147. X_DONT_USE_1275_GENERIC_NAMES = 0 // isa_defs.h:287:1:
  148. X_DOUBLE_ALIGNMENT = 8 // isa_defs.h:256:1:
  149. X_DOUBLE_COMPLEX_ALIGNMENT = 8 // isa_defs.h:257:1:
  150. X_DTRACE_VERSION = 1 // feature_tests.h:490:1:
  151. X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
  152. X_FIRMWARE_NEEDS_FDISK = 0 // isa_defs.h:282:1:
  153. X_FLOAT_ALIGNMENT = 4 // isa_defs.h:252:1:
  154. X_FLOAT_COMPLEX_ALIGNMENT = 4 // isa_defs.h:253:1:
  155. X_GCC_LIMITS_H_ = 0 // limits.h:30:1:
  156. X_HAVE_CPUID_INSN = 0 // isa_defs.h:288:1:
  157. X_IEEE_754 = 0 // isa_defs.h:246:1:
  158. X_INT_ALIGNMENT = 4 // isa_defs.h:251:1:
  159. X_ISO_CPP_14882_1998 = 0 // feature_tests.h:466:1:
  160. X_ISO_C_9899_1999 = 0 // feature_tests.h:472:1:
  161. X_ISO_C_9899_2011 = 0 // feature_tests.h:478:1:
  162. X_ISO_LIMITS_ISO_H = 0 // limits_iso.h:44:1:
  163. X_LARGEFILE64_SOURCE = 1 // feature_tests.h:231:1:
  164. X_LARGEFILE_SOURCE = 1 // feature_tests.h:235:1:
  165. X_LIMITS_H = 0 // limits.h:36:1:
  166. X_LIMITS_H___ = 0 // limits.h:60:1:
  167. X_LITTLE_ENDIAN = 0 // isa_defs.h:242:1:
  168. X_LONGLONG_TYPE = 0 // feature_tests.h:412:1:
  169. X_LONG_ALIGNMENT = 8 // isa_defs.h:254:1:
  170. X_LONG_DOUBLE_ALIGNMENT = 16 // isa_defs.h:258:1:
  171. X_LONG_DOUBLE_COMPLEX_ALIGNMENT = 16 // isa_defs.h:259:1:
  172. X_LONG_LONG_ALIGNMENT = 8 // isa_defs.h:255:1:
  173. X_LONG_LONG_ALIGNMENT_32 = 4 // isa_defs.h:268:1:
  174. X_LONG_LONG_LTOH = 0 // isa_defs.h:244:1:
  175. X_LP64 = 1 // <predefined>:286:1:
  176. X_MAX_ALIGNMENT = 16 // isa_defs.h:261:1:
  177. X_MULTI_DATAMODEL = 0 // isa_defs.h:279:1:
  178. X_NORETURN_KYWD = 0 // feature_tests.h:448:1:
  179. X_PASS_MAX = 256 // limits.h:198:1:
  180. X_PASS_MAX_XPG = 8 // limits.h:197:1:
  181. X_POINTER_ALIGNMENT = 8 // isa_defs.h:260:1:
  182. X_POSIX2_BC_BASE_MAX = 99 // limits.h:164:1:
  183. X_POSIX2_BC_DIM_MAX = 2048 // limits.h:165:1:
  184. X_POSIX2_BC_SCALE_MAX = 99 // limits.h:166:1:
  185. X_POSIX2_BC_STRING_MAX = 1000 // limits.h:167:1:
  186. X_POSIX2_CHARCLASS_NAME_MAX = 14 // limits.h:173:1:
  187. X_POSIX2_COLL_WEIGHTS_MAX = 2 // limits.h:168:1:
  188. X_POSIX2_EXPR_NEST_MAX = 32 // limits.h:169:1:
  189. X_POSIX2_LINE_MAX = 2048 // limits.h:170:1:
  190. X_POSIX2_RE_DUP_MAX = 255 // limits.h:171:1:
  191. X_POSIX_AIO_LISTIO_MAX = 2 // limits.h:110:1:
  192. X_POSIX_AIO_MAX = 1 // limits.h:111:1:
  193. X_POSIX_ARG_MAX = 4096 // limits.h:112:1:
  194. X_POSIX_CHILD_MAX = 6 // limits.h:116:1:
  195. X_POSIX_CLOCKRES_MIN = 20000000 // limits.h:118:1:
  196. X_POSIX_DELAYTIMER_MAX = 32 // limits.h:119:1:
  197. X_POSIX_HOST_NAME_MAX = 255 // limits.h:155:1:
  198. X_POSIX_LINK_MAX = 8 // limits.h:120:1:
  199. X_POSIX_LOGIN_NAME_MAX = 9 // limits.h:149:1:
  200. X_POSIX_MAX_CANON = 255 // limits.h:121:1:
  201. X_POSIX_MAX_INPUT = 255 // limits.h:122:1:
  202. X_POSIX_MQ_OPEN_MAX = 8 // limits.h:123:1:
  203. X_POSIX_MQ_PRIO_MAX = 32 // limits.h:124:1:
  204. X_POSIX_NAME_MAX = 14 // limits.h:125:1:
  205. X_POSIX_NGROUPS_MAX = 0 // limits.h:131:1:
  206. X_POSIX_OPEN_MAX = 16 // limits.h:132:1:
  207. X_POSIX_PATH_MAX = 255 // limits.h:133:1:
  208. X_POSIX_PIPE_BUF = 512 // limits.h:135:1:
  209. X_POSIX_RE_DUP_MAX = 255 // limits.h:156:1:
  210. X_POSIX_RTSIG_MAX = 8 // limits.h:136:1:
  211. X_POSIX_SEM_NSEMS_MAX = 256 // limits.h:137:1:
  212. X_POSIX_SEM_VALUE_MAX = 32767 // limits.h:138:1:
  213. X_POSIX_SIGQUEUE_MAX = 32 // limits.h:139:1:
  214. X_POSIX_SSIZE_MAX = 32767 // limits.h:140:1:
  215. X_POSIX_STREAM_MAX = 8 // limits.h:141:1:
  216. X_POSIX_SYMLINK_MAX = 255 // limits.h:157:1:
  217. X_POSIX_SYMLOOP_MAX = 8 // limits.h:158:1:
  218. X_POSIX_THREAD_DESTRUCTOR_ITERATIONS = 4 // limits.h:150:1:
  219. X_POSIX_THREAD_KEYS_MAX = 128 // limits.h:151:1:
  220. X_POSIX_THREAD_THREADS_MAX = 64 // limits.h:152:1:
  221. X_POSIX_TIMER_MAX = 32 // limits.h:142:1:
  222. X_POSIX_TTY_NAME_MAX = 9 // limits.h:153:1:
  223. X_POSIX_TZNAME_MAX = 3 // limits.h:146:1:
  224. X_PSM_MODULES = 0 // isa_defs.h:284:1:
  225. X_RESTRICT_KYWD = 0 // feature_tests.h:435:1:
  226. X_RTC_CONFIG = 0 // isa_defs.h:285:1:
  227. X_SHORT_ALIGNMENT = 2 // isa_defs.h:250:1:
  228. X_SOFT_HOSTID = 0 // isa_defs.h:286:1:
  229. X_STACK_GROWS_DOWNWARD = 0 // isa_defs.h:243:1:
  230. X_STDC_C11 = 0 // feature_tests.h:165:1:
  231. X_STDC_C99 = 0 // feature_tests.h:169:1:
  232. X_SUNOS_VTOC_16 = 0 // isa_defs.h:280:1:
  233. X_SYS_CCOMPILE_H = 0 // ccompile.h:32:1:
  234. X_SYS_FEATURE_TESTS_H = 0 // feature_tests.h:41:1:
  235. X_SYS_INT_LIMITS_H = 0 // int_limits.h:39:1:
  236. X_SYS_ISA_DEFS_H = 0 // isa_defs.h:30:1:
  237. X_SYS_LIMITS_H = 0 // limits.h:16:1:
  238. X_XOPEN_IOV_MAX = 16 // limits.h:244:1:
  239. X_XOPEN_NAME_MAX = 255 // limits.h:245:1:
  240. X_XOPEN_PATH_MAX = 1024 // limits.h:246:1:
  241. X_XOPEN_VERSION = 3 // feature_tests.h:392:1:
  242. Sun = 1 // <predefined>:172:1:
  243. Unix = 1 // <predefined>:175:1:
  244. )
  245. type Ptrdiff_t = int64 /* <builtin>:3:26 */
  246. type Size_t = uint64 /* <builtin>:9:23 */
  247. type Wchar_t = int32 /* <builtin>:15:24 */
  248. type X__int128_t = struct {
  249. Flo int64
  250. Fhi int64
  251. } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
  252. type X__uint128_t = struct {
  253. Flo uint64
  254. Fhi uint64
  255. } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
  256. type X__builtin_va_list = uintptr /* <builtin>:46:14 */
  257. type X__float128 = float64 /* <builtin>:47:21 */
  258. // Copyright (C) 1992-2022 Free Software Foundation, Inc.
  259. //
  260. // This file is part of GCC.
  261. //
  262. // GCC is free software; you can redistribute it and/or modify it under
  263. // the terms of the GNU General Public License as published by the Free
  264. // Software Foundation; either version 3, or (at your option) any later
  265. // version.
  266. //
  267. // GCC is distributed in the hope that it will be useful, but WITHOUT ANY
  268. // WARRANTY; without even the implied warranty of MERCHANTABILITY or
  269. // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  270. // for more details.
  271. //
  272. // Under Section 7 of GPL version 3, you are granted additional
  273. // permissions described in the GCC Runtime Library Exception, version
  274. // 3.1, as published by the Free Software Foundation.
  275. //
  276. // You should have received a copy of the GNU General Public License and
  277. // a copy of the GCC Runtime Library Exception along with this program;
  278. // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
  279. // <http://www.gnu.org/licenses/>.
  280. // This administrivia gets added to the beginning of limits.h
  281. // if the system has its own version of limits.h.
  282. // We use _GCC_LIMITS_H_ because we want this not to match
  283. // any macros that the system's limits.h uses for its own purposes.
  284. // Use "..." so that we find syslimits.h only in this same directory.
  285. // syslimits.h stands for the system's own limits.h file.
  286. // If we can use it ok unmodified, then we install this text.
  287. // If fixincludes fixes it, then the fixed version is installed
  288. // instead of this text.
  289. // CDDL HEADER START
  290. //
  291. // The contents of this file are subject to the terms of the
  292. // Common Development and Distribution License (the "License").
  293. // You may not use this file except in compliance with the License.
  294. //
  295. // You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  296. // or http://www.opensolaris.org/os/licensing.
  297. // See the License for the specific language governing permissions
  298. // and limitations under the License.
  299. //
  300. // When distributing Covered Code, include this CDDL HEADER in each
  301. // file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  302. // If applicable, add the following below this CDDL HEADER, with the
  303. // fields enclosed by brackets "[]" replaced with your own identifying
  304. // information: Portions Copyright [yyyy] [name of copyright owner]
  305. //
  306. // CDDL HEADER END
  307. // Copyright (c) 2013 Gary Mills
  308. // Copyright 2017 RackTop Systems.
  309. //
  310. // Copyright 2008 Sun Microsystems, Inc. All rights reserved.
  311. // Use is subject to license terms.
  312. // Copyright 2015 Joyent, Inc. All rights reserved.
  313. // Copyright (c) 1988 AT&T
  314. // All Rights Reserved
  315. // DO NOT EDIT THIS FILE.
  316. //
  317. // It has been auto-edited by fixincludes from:
  318. //
  319. // "/usr/include/sys/feature_tests.h"
  320. //
  321. // This had to be done to correct non-standard usages in the
  322. // original, manufacturer supplied header file.
  323. // CDDL HEADER START
  324. //
  325. // The contents of this file are subject to the terms of the
  326. // Common Development and Distribution License (the "License").
  327. // You may not use this file except in compliance with the License.
  328. //
  329. // You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  330. // or http://www.opensolaris.org/os/licensing.
  331. // See the License for the specific language governing permissions
  332. // and limitations under the License.
  333. //
  334. // When distributing Covered Code, include this CDDL HEADER in each
  335. // file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  336. // If applicable, add the following below this CDDL HEADER, with the
  337. // fields enclosed by brackets "[]" replaced with your own identifying
  338. // information: Portions Copyright [yyyy] [name of copyright owner]
  339. //
  340. // CDDL HEADER END
  341. // Copyright 2013 Garrett D'Amore <garrett@damore.org>
  342. // Copyright 2016 Joyent, Inc.
  343. // Copyright 2022 Oxide Computer Company
  344. //
  345. // Copyright 2006 Sun Microsystems, Inc. All rights reserved.
  346. // Use is subject to license terms.
  347. // CDDL HEADER START
  348. //
  349. // The contents of this file are subject to the terms of the
  350. // Common Development and Distribution License, Version 1.0 only
  351. // (the "License"). You may not use this file except in compliance
  352. // with the License.
  353. //
  354. // You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  355. // or http://www.opensolaris.org/os/licensing.
  356. // See the License for the specific language governing permissions
  357. // and limitations under the License.
  358. //
  359. // When distributing Covered Code, include this CDDL HEADER in each
  360. // file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  361. // If applicable, add the following below this CDDL HEADER, with the
  362. // fields enclosed by brackets "[]" replaced with your own identifying
  363. // information: Portions Copyright [yyyy] [name of copyright owner]
  364. //
  365. // CDDL HEADER END
  366. // Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  367. // Use is subject to license terms.
  368. // Copyright 2015 EveryCity Ltd. All rights reserved.
  369. // Copyright 2019 Joyent, Inc.
  370. // This file contains definitions designed to enable different compilers
  371. // to be used harmoniously on Solaris systems.
  372. // Allow for version tests for compiler bugs and features.
  373. // analogous to lint's PRINTFLIKEn
  374. // Handle the kernel printf routines that can take '%b' too
  375. // This one's pretty obvious -- the function never returns
  376. // The function is 'extern inline' and expects GNU C89 behaviour, not C99
  377. // behaviour.
  378. //
  379. // Should only be used on 'extern inline' definitions for GCC.
  380. // The function has control flow such that it may return multiple times (in
  381. // the manner of setjmp or vfork)
  382. // This is an appropriate label for functions that do not
  383. // modify their arguments, e.g. strlen()
  384. // This is a stronger form of __pure__. Can be used for functions
  385. // that do not modify their arguments and don't depend on global
  386. // memory.
  387. // This attribute, attached to a variable, means that the variable is meant to
  388. // be possibly unused. GCC will not produce a warning for this variable.
  389. // Shorthand versions for readability
  390. // In release build, disable warnings about variables
  391. // which are used only for debugging.
  392. // CDDL HEADER START
  393. //
  394. // The contents of this file are subject to the terms of the
  395. // Common Development and Distribution License (the "License").
  396. // You may not use this file except in compliance with the License.
  397. //
  398. // You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  399. // or http://www.opensolaris.org/os/licensing.
  400. // See the License for the specific language governing permissions
  401. // and limitations under the License.
  402. //
  403. //
  404. // When distributing Covered Code, include this CDDL HEADER in each
  405. // file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  406. // If applicable, add the following below this CDDL HEADER, with the
  407. // fields enclosed by brackets "[]" replaced with your own identifying
  408. // information: Portions Copyright [yyyy] [name of copyright owner]
  409. //
  410. // CDDL HEADER END
  411. // Copyright 2008 Sun Microsystems, Inc. All rights reserved.
  412. // Use is subject to license terms.
  413. // Copyright 2016 Joyent, Inc.
  414. // This header file serves to group a set of well known defines and to
  415. // set these for each instruction set architecture. These defines may
  416. // be divided into two groups; characteristics of the processor and
  417. // implementation choices for Solaris on a processor.
  418. //
  419. // Processor Characteristics:
  420. //
  421. // _LITTLE_ENDIAN / _BIG_ENDIAN:
  422. // The natural byte order of the processor. A pointer to an int points
  423. // to the least/most significant byte of that int.
  424. //
  425. // _STACK_GROWS_UPWARD / _STACK_GROWS_DOWNWARD:
  426. // The processor specific direction of stack growth. A push onto the
  427. // stack increases/decreases the stack pointer, so it stores data at
  428. // successively higher/lower addresses. (Stackless machines ignored
  429. // without regrets).
  430. //
  431. // _LONG_LONG_HTOL / _LONG_LONG_LTOH:
  432. // A pointer to a long long points to the most/least significant long
  433. // within that long long.
  434. //
  435. // _BIT_FIELDS_HTOL / _BIT_FIELDS_LTOH:
  436. // The C compiler assigns bit fields from the high/low to the low/high end
  437. // of an int (most to least significant vs. least to most significant).
  438. //
  439. // _IEEE_754:
  440. // The processor (or supported implementations of the processor)
  441. // supports the ieee-754 floating point standard. No other floating
  442. // point standards are supported (or significant). Any other supported
  443. // floating point formats are expected to be cased on the ISA processor
  444. // symbol.
  445. //
  446. // _CHAR_IS_UNSIGNED / _CHAR_IS_SIGNED:
  447. // The C Compiler implements objects of type `char' as `unsigned' or
  448. // `signed' respectively. This is really an implementation choice of
  449. // the compiler writer, but it is specified in the ABI and tends to
  450. // be uniform across compilers for an instruction set architecture.
  451. // Hence, it has the properties of a processor characteristic.
  452. //
  453. // _CHAR_ALIGNMENT / _SHORT_ALIGNMENT / _INT_ALIGNMENT / _LONG_ALIGNMENT /
  454. // _LONG_LONG_ALIGNMENT / _DOUBLE_ALIGNMENT / _LONG_DOUBLE_ALIGNMENT /
  455. // _POINTER_ALIGNMENT / _FLOAT_ALIGNMENT:
  456. // The ABI defines alignment requirements of each of the primitive
  457. // object types. Some, if not all, may be hardware requirements as
  458. // well. The values are expressed in "byte-alignment" units.
  459. //
  460. // _MAX_ALIGNMENT:
  461. // The most stringent alignment requirement as specified by the ABI.
  462. // Equal to the maximum of all the above _XXX_ALIGNMENT values.
  463. //
  464. // _MAX_ALIGNMENT_TYPE:
  465. // The name of the C type that has the value descried in _MAX_ALIGNMENT.
  466. //
  467. // _ALIGNMENT_REQUIRED:
  468. // True or false (1 or 0) whether or not the hardware requires the ABI
  469. // alignment.
  470. //
  471. // _LONG_LONG_ALIGNMENT_32
  472. // The 32-bit ABI supported by a 64-bit kernel may have different
  473. // alignment requirements for primitive object types. The value of this
  474. // identifier is expressed in "byte-alignment" units.
  475. //
  476. // _HAVE_CPUID_INSN
  477. // This indicates that the architecture supports the 'cpuid'
  478. // instruction as defined by Intel. (Intel allows other vendors
  479. // to extend the instruction for their own purposes.)
  480. //
  481. //
  482. // Implementation Choices:
  483. //
  484. // _ILP32 / _LP64:
  485. // This specifies the compiler data type implementation as specified in
  486. // the relevant ABI. The choice between these is strongly influenced
  487. // by the underlying hardware, but is not absolutely tied to it.
  488. // Currently only two data type models are supported:
  489. //
  490. // _ILP32:
  491. // Int/Long/Pointer are 32 bits. This is the historical UNIX
  492. // and Solaris implementation. Due to its historical standing,
  493. // this is the default case.
  494. //
  495. // _LP64:
  496. // Long/Pointer are 64 bits, Int is 32 bits. This is the chosen
  497. // implementation for 64-bit ABIs such as SPARC V9.
  498. //
  499. // _I32LPx:
  500. // A compilation environment where 'int' is 32-bit, and
  501. // longs and pointers are simply the same size.
  502. //
  503. // In all cases, Char is 8 bits and Short is 16 bits.
  504. //
  505. // _SUNOS_VTOC_8 / _SUNOS_VTOC_16 / _SVR4_VTOC_16:
  506. // This specifies the form of the disk VTOC (or label):
  507. //
  508. // _SUNOS_VTOC_8:
  509. // This is a VTOC form which is upwardly compatible with the
  510. // SunOS 4.x disk label and allows 8 partitions per disk.
  511. //
  512. // _SUNOS_VTOC_16:
  513. // In this format the incore vtoc image matches the ondisk
  514. // version. It allows 16 slices per disk, and is not
  515. // compatible with the SunOS 4.x disk label.
  516. //
  517. // Note that these are not the only two VTOC forms possible and
  518. // additional forms may be added. One possible form would be the
  519. // SVr4 VTOC form. The symbol for that is reserved now, although
  520. // it is not implemented.
  521. //
  522. // _SVR4_VTOC_16:
  523. // This VTOC form is compatible with the System V Release 4
  524. // VTOC (as implemented on the SVr4 Intel and 3b ports) with
  525. // 16 partitions per disk.
  526. //
  527. //
  528. // _DMA_USES_PHYSADDR / _DMA_USES_VIRTADDR
  529. // This describes the type of addresses used by system DMA:
  530. //
  531. // _DMA_USES_PHYSADDR:
  532. // This type of DMA, used in the x86 implementation,
  533. // requires physical addresses for DMA buffers. The 24-bit
  534. // addresses used by some legacy boards is the source of the
  535. // "low-memory" (<16MB) requirement for some devices using DMA.
  536. //
  537. // _DMA_USES_VIRTADDR:
  538. // This method of DMA allows the use of virtual addresses for
  539. // DMA transfers.
  540. //
  541. // _FIRMWARE_NEEDS_FDISK / _NO_FDISK_PRESENT
  542. // This indicates the presence/absence of an fdisk table.
  543. //
  544. // _FIRMWARE_NEEDS_FDISK
  545. // The fdisk table is required by system firmware. If present,
  546. // it allows a disk to be subdivided into multiple fdisk
  547. // partitions, each of which is equivalent to a separate,
  548. // virtual disk. This enables the co-existence of multiple
  549. // operating systems on a shared hard disk.
  550. //
  551. // _NO_FDISK_PRESENT
  552. // If the fdisk table is absent, it is assumed that the entire
  553. // media is allocated for a single operating system.
  554. //
  555. // _HAVE_TEM_FIRMWARE
  556. // Defined if this architecture has the (fallback) option of
  557. // using prom_* calls for doing I/O if a suitable kernel driver
  558. // is not available to do it.
  559. //
  560. // _DONT_USE_1275_GENERIC_NAMES
  561. // Controls whether or not device tree node names should
  562. // comply with the IEEE 1275 "Generic Names" Recommended
  563. // Practice. With _DONT_USE_GENERIC_NAMES, device-specific
  564. // names identifying the particular device will be used.
  565. //
  566. // __i386_COMPAT
  567. // This indicates whether the i386 ABI is supported as a *non-native*
  568. // mode for the platform. When this symbol is defined:
  569. // - 32-bit xstat-style system calls are enabled
  570. // - 32-bit xmknod-style system calls are enabled
  571. // - 32-bit system calls use i386 sizes -and- alignments
  572. //
  573. // Note that this is NOT defined for the i386 native environment!
  574. //
  575. // __x86
  576. // This is ONLY a synonym for defined(__i386) || defined(__amd64)
  577. // which is useful only insofar as these two architectures share
  578. // common attributes. Analogous to __sparc.
  579. //
  580. // _PSM_MODULES
  581. // This indicates whether or not the implementation uses PSM
  582. // modules for processor support, reading /etc/mach from inside
  583. // the kernel to extract a list.
  584. //
  585. // _RTC_CONFIG
  586. // This indicates whether or not the implementation uses /etc/rtc_config
  587. // to configure the real-time clock in the kernel.
  588. //
  589. // _UNIX_KRTLD
  590. // This indicates that the implementation uses a dynamically
  591. // linked unix + krtld to form the core kernel image at boot
  592. // time, or (in the absence of this symbol) a prelinked kernel image.
  593. //
  594. // _OBP
  595. // This indicates the firmware interface is OBP.
  596. //
  597. // _SOFT_HOSTID
  598. // This indicates that the implementation obtains the hostid
  599. // from the file /etc/hostid, rather than from hardware.
  600. // The following set of definitions characterize Solaris on AMD's
  601. // 64-bit systems.
  602. // Define the appropriate "processor characteristics"
  603. // Different alignment constraints for the i386 ABI in compatibility mode
  604. // Define the appropriate "implementation choices".
  605. // The feature test macro __i386 is generic for all processors implementing
  606. // the Intel 386 instruction set or a superset of it. Specifically, this
  607. // includes all members of the 386, 486, and Pentium family of processors.
  608. // Values of _POSIX_C_SOURCE
  609. //
  610. // undefined not a POSIX compilation
  611. // 1 POSIX.1-1990 compilation
  612. // 2 POSIX.2-1992 compilation
  613. // 199309L POSIX.1b-1993 compilation (Real Time)
  614. // 199506L POSIX.1c-1995 compilation (POSIX Threads)
  615. // 200112L POSIX.1-2001 compilation (Austin Group Revision)
  616. // 200809L POSIX.1-2008 compilation
  617. // The feature test macros __XOPEN_OR_POSIX, _STRICT_STDC, _STRICT_SYMBOLS,
  618. // and _STDC_C99 are Sun implementation specific macros created in order to
  619. // compress common standards specified feature test macros for easier reading.
  620. // These macros should not be used by the application developer as
  621. // unexpected results may occur. Instead, the user should reference
  622. // standards(7) for correct usage of the standards feature test macros.
  623. //
  624. // __XOPEN_OR_POSIX Used in cases where a symbol is defined by both
  625. // X/Open or POSIX or in the negative, when neither
  626. // X/Open or POSIX defines a symbol.
  627. //
  628. // _STRICT_STDC __STDC__ is specified by the C Standards and defined
  629. // by the compiler. For Sun compilers the value of
  630. // __STDC__ is either 1, 0, or not defined based on the
  631. // compilation mode (see cc(1)). When the value of
  632. // __STDC__ is 1 and in the absence of any other feature
  633. // test macros, the namespace available to the application
  634. // is limited to only those symbols defined by the C
  635. // Standard. _STRICT_STDC provides a more readable means
  636. // of identifying symbols defined by the standard, or in
  637. // the negative, symbols that are extensions to the C
  638. // Standard. See additional comments for GNU C differences.
  639. //
  640. // _STDC_C99 __STDC_VERSION__ is specified by the C standards and
  641. // defined by the compiler and indicates the version of
  642. // the C standard. A value of 199901L indicates a
  643. // compiler that complies with ISO/IEC 9899:1999, other-
  644. // wise known as the C99 standard.
  645. //
  646. // _STDC_C11 Like _STDC_C99 except that the value of __STDC_VERSION__
  647. // is 201112L indicating a compiler that compiles with
  648. // ISO/IEC 9899:2011, otherwise known as the C11 standard.
  649. //
  650. // _STRICT_SYMBOLS Used in cases where symbol visibility is restricted
  651. // by the standards, and the user has not explicitly
  652. // relaxed the strictness via __EXTENSIONS__.
  653. // ISO/IEC 9899:1990 and it's revisions, ISO/IEC 9899:1999 and ISO/IEC
  654. // 99899:2011 specify the following predefined macro name:
  655. //
  656. // __STDC__ The integer constant 1, intended to indicate a conforming
  657. // implementation.
  658. //
  659. // Furthermore, a strictly conforming program shall use only those features
  660. // of the language and library specified in these standards. A conforming
  661. // implementation shall accept any strictly conforming program.
  662. //
  663. // Based on these requirements, Sun's C compiler defines __STDC__ to 1 for
  664. // strictly conforming environments and __STDC__ to 0 for environments that
  665. // use ANSI C semantics but allow extensions to the C standard. For non-ANSI
  666. // C semantics, Sun's C compiler does not define __STDC__.
  667. //
  668. // The GNU C project interpretation is that __STDC__ should always be defined
  669. // to 1 for compilation modes that accept ANSI C syntax regardless of whether
  670. // or not extensions to the C standard are used. Violations of conforming
  671. // behavior are conditionally flagged as warnings via the use of the
  672. // -pedantic option. In addition to defining __STDC__ to 1, the GNU C
  673. // compiler also defines __STRICT_ANSI__ as a means of specifying strictly
  674. // conforming environments using the -ansi or -std=<standard> options.
  675. //
  676. // In the absence of any other compiler options, Sun and GNU set the value
  677. // of __STDC__ as follows when using the following options:
  678. //
  679. // Value of __STDC__ __STRICT_ANSI__
  680. //
  681. // cc -Xa (default) 0 undefined
  682. // cc -Xt (transitional) 0 undefined
  683. // cc -Xc (strictly conforming) 1 undefined
  684. // cc -Xs (K&R C) undefined undefined
  685. //
  686. // gcc (default) 1 undefined
  687. // gcc -ansi, -std={c89, c99,...) 1 defined
  688. // gcc -traditional (K&R) undefined undefined
  689. //
  690. // The default compilation modes for Sun C compilers versus GNU C compilers
  691. // results in a differing value for __STDC__ which results in a more
  692. // restricted namespace when using Sun compilers. To allow both GNU and Sun
  693. // interpretations to peacefully co-exist, we use the following Sun
  694. // implementation _STRICT_STDC_ macro:
  695. // Compiler complies with ISO/IEC 9899:1999 or ISO/IEC 9989:2011
  696. // Use strict symbol visibility.
  697. // This is a variant of _STRICT_SYMBOLS that is meant to cover headers that are
  698. // governed by POSIX, but have not been governed by ISO C. One can go two ways
  699. // on what should happen if an application actively includes (not transitively)
  700. // a header that isn't part of the ISO C spec, we opt to say that if someone has
  701. // gone out of there way then they're doing it for a reason and that is an act
  702. // of non-compliance and therefore it's not up to us to hide away every symbol.
  703. //
  704. // In general, prefer using _STRICT_SYMBOLS, but this is here in particular for
  705. // cases where in the past we have only used a POSIX related check and we don't
  706. // wish to make something stricter. Often applications are relying on the
  707. // ability to, or more realistically unwittingly, have _STRICT_STDC declared and
  708. // still use these interfaces.
  709. // Large file interfaces:
  710. //
  711. // _LARGEFILE_SOURCE
  712. // 1 large file-related additions to POSIX
  713. // interfaces requested (fseeko, etc.)
  714. // _LARGEFILE64_SOURCE
  715. // 1 transitional large-file-related interfaces
  716. // requested (seek64, stat64, etc.)
  717. //
  718. // The corresponding announcement macros are respectively:
  719. // _LFS_LARGEFILE
  720. // _LFS64_LARGEFILE
  721. // (These are set in <unistd.h>.)
  722. //
  723. // Requesting _LARGEFILE64_SOURCE implies requesting _LARGEFILE_SOURCE as
  724. // well.
  725. //
  726. // The large file interfaces are made visible regardless of the initial values
  727. // of the feature test macros under certain circumstances:
  728. // - If no explicit standards-conforming environment is requested (neither
  729. // of _POSIX_SOURCE nor _XOPEN_SOURCE is defined and the value of
  730. // __STDC__ does not imply standards conformance).
  731. // - Extended system interfaces are explicitly requested (__EXTENSIONS__
  732. // is defined).
  733. // - Access to in-kernel interfaces is requested (_KERNEL or _KMEMUSER is
  734. // defined). (Note that this dependency is an artifact of the current
  735. // kernel implementation and may change in future releases.)
  736. // Large file compilation environment control:
  737. //
  738. // The setting of _FILE_OFFSET_BITS controls the size of various file-related
  739. // types and governs the mapping between file-related source function symbol
  740. // names and the corresponding binary entry points.
  741. //
  742. // In the 32-bit environment, the default value is 32; if not set, set it to
  743. // the default here, to simplify tests in other headers.
  744. //
  745. // In the 64-bit compilation environment, the only value allowed is 64.
  746. // Use of _XOPEN_SOURCE
  747. //
  748. // The following X/Open specifications are supported:
  749. //
  750. // X/Open Portability Guide, Issue 3 (XPG3)
  751. // X/Open CAE Specification, Issue 4 (XPG4)
  752. // X/Open CAE Specification, Issue 4, Version 2 (XPG4v2)
  753. // X/Open CAE Specification, Issue 5 (XPG5)
  754. // Open Group Technical Standard, Issue 6 (XPG6), also referred to as
  755. // IEEE Std. 1003.1-2001 and ISO/IEC 9945:2002.
  756. // Open Group Technical Standard, Issue 7 (XPG7), also referred to as
  757. // IEEE Std. 1003.1-2008 and ISO/IEC 9945:2009.
  758. //
  759. // XPG4v2 is also referred to as UNIX 95 (SUS or SUSv1).
  760. // XPG5 is also referred to as UNIX 98 or the Single Unix Specification,
  761. // Version 2 (SUSv2)
  762. // XPG6 is the result of a merge of the X/Open and POSIX specifications
  763. // and as such is also referred to as IEEE Std. 1003.1-2001 in
  764. // addition to UNIX 03 and SUSv3.
  765. // XPG7 is also referred to as UNIX 08 and SUSv4.
  766. //
  767. // When writing a conforming X/Open application, as per the specification
  768. // requirements, the appropriate feature test macros must be defined at
  769. // compile time. These are as follows. For more info, see standards(7).
  770. //
  771. // Feature Test Macro Specification
  772. // ------------------------------------------------ -------------
  773. // _XOPEN_SOURCE XPG3
  774. // _XOPEN_SOURCE && _XOPEN_VERSION = 4 XPG4
  775. // _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED = 1 XPG4v2
  776. // _XOPEN_SOURCE = 500 XPG5
  777. // _XOPEN_SOURCE = 600 (or POSIX_C_SOURCE=200112L) XPG6
  778. // _XOPEN_SOURCE = 700 (or POSIX_C_SOURCE=200809L) XPG7
  779. //
  780. // In order to simplify the guards within the headers, the following
  781. // implementation private test macros have been created. Applications
  782. // must NOT use these private test macros as unexpected results will
  783. // occur.
  784. //
  785. // Note that in general, the use of these private macros is cumulative.
  786. // For example, the use of _XPG3 with no other restrictions on the X/Open
  787. // namespace will make the symbols visible for XPG3 through XPG6
  788. // compilation environments. The use of _XPG4_2 with no other X/Open
  789. // namespace restrictions indicates that the symbols were introduced in
  790. // XPG4v2 and are therefore visible for XPG4v2 through XPG6 compilation
  791. // environments, but not for XPG3 or XPG4 compilation environments.
  792. //
  793. // _XPG3 X/Open Portability Guide, Issue 3 (XPG3)
  794. // _XPG4 X/Open CAE Specification, Issue 4 (XPG4)
  795. // _XPG4_2 X/Open CAE Specification, Issue 4, Version 2 (XPG4v2/UNIX 95/SUS)
  796. // _XPG5 X/Open CAE Specification, Issue 5 (XPG5/UNIX 98/SUSv2)
  797. // _XPG6 Open Group Technical Standard, Issue 6 (XPG6/UNIX 03/SUSv3)
  798. // _XPG7 Open Group Technical Standard, Issue 7 (XPG7/UNIX 08/SUSv4)
  799. // X/Open Portability Guide, Issue 3
  800. // _XOPEN_VERSION is defined by the X/Open specifications and is not
  801. // normally defined by the application, except in the case of an XPG4
  802. // application. On the implementation side, _XOPEN_VERSION defined with
  803. // the value of 3 indicates an XPG3 application. _XOPEN_VERSION defined
  804. // with the value of 4 indicates an XPG4 or XPG4v2 (UNIX 95) application.
  805. // _XOPEN_VERSION defined with a value of 500 indicates an XPG5 (UNIX 98)
  806. // application and with a value of 600 indicates an XPG6 (UNIX 03)
  807. // application and with a value of 700 indicates an XPG7 (UNIX 08).
  808. // The appropriate version is determined by the use of the
  809. // feature test macros described earlier. The value of _XOPEN_VERSION
  810. // defaults to 3 otherwise indicating support for XPG3 applications.
  811. // ANSI C and ISO 9899:1990 say the type long long doesn't exist in strictly
  812. // conforming environments. ISO 9899:1999 says it does.
  813. //
  814. // The presence of _LONGLONG_TYPE says "long long exists" which is therefore
  815. // defined in all but strictly conforming environments that disallow it.
  816. // The following macro defines a value for the ISO C99 restrict
  817. // keyword so that _RESTRICT_KYWD resolves to "restrict" if
  818. // an ISO C99 compiler is used, "__restrict" for c++ and "" (null string)
  819. // if any other compiler is used. This allows for the use of single
  820. // prototype declarations regardless of compiler version.
  821. // The following macro defines a value for the ISO C11 _Noreturn
  822. // keyword so that _NORETURN_KYWD resolves to "_Noreturn" if
  823. // an ISO C11 compiler is used and "" (null string) if any other
  824. // compiler is used. This allows for the use of single prototype
  825. // declarations regardless of compiler version.
  826. // ISO/IEC 9899:2011 Annex K
  827. // The following macro indicates header support for the ANSI C++
  828. // standard. The ISO/IEC designation for this is ISO/IEC FDIS 14882.
  829. // The following macro indicates header support for the C99 standard,
  830. // ISO/IEC 9899:1999, Programming Languages - C.
  831. // The following macro indicates header support for the C11 standard,
  832. // ISO/IEC 9899:2011, Programming Languages - C.
  833. // The following macro indicates header support for the C11 standard,
  834. // ISO/IEC 9899:2011 Annex K, Programming Languages - C.
  835. // The following macro indicates header support for DTrace. The value is an
  836. // integer that corresponds to the major version number for DTrace.
  837. // CDDL HEADER START
  838. //
  839. // The contents of this file are subject to the terms of the
  840. // Common Development and Distribution License (the "License").
  841. // You may not use this file except in compliance with the License.
  842. //
  843. // You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  844. // or http://www.opensolaris.org/os/licensing.
  845. // See the License for the specific language governing permissions
  846. // and limitations under the License.
  847. //
  848. //
  849. // When distributing Covered Code, include this CDDL HEADER in each
  850. // file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  851. // If applicable, add the following below this CDDL HEADER, with the
  852. // fields enclosed by brackets "[]" replaced with your own identifying
  853. // information: Portions Copyright [yyyy] [name of copyright owner]
  854. //
  855. // CDDL HEADER END
  856. // Copyright 2008 Sun Microsystems, Inc. All rights reserved.
  857. // Use is subject to license terms.
  858. // Copyright 2016 Joyent, Inc.
  859. // CDDL HEADER START
  860. //
  861. // The contents of this file are subject to the terms of the
  862. // Common Development and Distribution License, Version 1.0 only
  863. // (the "License"). You may not use this file except in compliance
  864. // with the License.
  865. //
  866. // You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  867. // or http://www.opensolaris.org/os/licensing.
  868. // See the License for the specific language governing permissions
  869. // and limitations under the License.
  870. //
  871. // When distributing Covered Code, include this CDDL HEADER in each
  872. // file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  873. // If applicable, add the following below this CDDL HEADER, with the
  874. // fields enclosed by brackets "[]" replaced with your own identifying
  875. // information: Portions Copyright [yyyy] [name of copyright owner]
  876. //
  877. // CDDL HEADER END
  878. // Copyright 2003 Sun Microsystems, Inc. All rights reserved.
  879. // Use is subject to license terms.
  880. // Copyright (c) 1988 AT&T
  881. // All Rights Reserved
  882. // An application should not include this header directly. Instead it
  883. // should be included only through the inclusion of other Sun headers.
  884. //
  885. // The contents of this header is limited to identifiers specified in the
  886. // C Standard. Any new identifiers specified in future amendments to the
  887. // C Standard must be placed in this header. If these new identifiers
  888. // are required to also be in the C++ Standard "std" namespace, then for
  889. // anything other than macro definitions, corresponding "using" directives
  890. // must also be added to <limits.h>.
  891. // Sizes of integral types
  892. // min value of a "long int"
  893. // max value of a "long int"
  894. // max value of "unsigned long int"
  895. // min value of a long long
  896. // max value of a long long
  897. // max value of "unsigned long long
  898. // This file and its contents are supplied under the terms of the
  899. // Common Development and Distribution License ("CDDL"), version 1.0.
  900. // You may only use this file in accordance with the terms of version
  901. // 1.0 of the CDDL.
  902. //
  903. // A full copy of the text of the CDDL should have accompanied this
  904. // source. A copy of the CDDL is also available via the Internet at
  905. // http://www.illumos.org/license/CDDL.
  906. // Copyright 2015 Joyent, Inc. All rights reserved.
  907. // Include fixed width type limits as proposed by the ISO/JTC1/SC22/WG14 C
  908. // committee's working draft for the revision of the current ISO C standard,
  909. // ISO/IEC 9899:1990 Programming language - C. These are not currently
  910. // required by any standard but constitute a useful, general purpose set
  911. // of type definitions and limits which is namespace clean with respect to
  912. // all standards.
  913. // DO NOT EDIT THIS FILE.
  914. //
  915. // It has been auto-edited by fixincludes from:
  916. //
  917. // "/usr/include/sys/int_limits.h"
  918. //
  919. // This had to be done to correct non-standard usages in the
  920. // original, manufacturer supplied header file.
  921. // CDDL HEADER START
  922. //
  923. // The contents of this file are subject to the terms of the
  924. // Common Development and Distribution License, Version 1.0 only
  925. // (the "License"). You may not use this file except in compliance
  926. // with the License.
  927. //
  928. // You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  929. // or http://www.opensolaris.org/os/licensing.
  930. // See the License for the specific language governing permissions
  931. // and limitations under the License.
  932. //
  933. // When distributing Covered Code, include this CDDL HEADER in each
  934. // file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  935. // If applicable, add the following below this CDDL HEADER, with the
  936. // fields enclosed by brackets "[]" replaced with your own identifying
  937. // information: Portions Copyright [yyyy] [name of copyright owner]
  938. //
  939. // CDDL HEADER END
  940. // Copyright 2014 Garrett D'Amore <garrett@damore.org>
  941. //
  942. // Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  943. // Use is subject to license terms.
  944. // This file, <sys/int_limits.h>, is part of the Sun Microsystems implementation
  945. // of <inttypes.h> as defined in the ISO C standard, ISO/IEC 9899:1999
  946. // Programming language - C.
  947. //
  948. // Programs/Modules should not directly include this file. Access to the
  949. // types defined in this file should be through the inclusion of one of the
  950. // following files:
  951. //
  952. // <limits.h> This nested inclusion is disabled for strictly
  953. // ANSI-C conforming compilations. The *_MIN
  954. // definitions are not visible to POSIX or XPG
  955. // conforming applications (due to what may be
  956. // a bug in the specification - this is under
  957. // investigation)
  958. //
  959. // <sys/inttypes.h> Provides the Kernel and Driver appropriate
  960. // components of <inttypes.h>.
  961. //
  962. // <inttypes.h> For use by applications.
  963. //
  964. // See these files for more details.
  965. // DO NOT EDIT THIS FILE.
  966. //
  967. // It has been auto-edited by fixincludes from:
  968. //
  969. // "/usr/include/sys/feature_tests.h"
  970. //
  971. // This had to be done to correct non-standard usages in the
  972. // original, manufacturer supplied header file.
  973. // CDDL HEADER START
  974. //
  975. // The contents of this file are subject to the terms of the
  976. // Common Development and Distribution License (the "License").
  977. // You may not use this file except in compliance with the License.
  978. //
  979. // You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  980. // or http://www.opensolaris.org/os/licensing.
  981. // See the License for the specific language governing permissions
  982. // and limitations under the License.
  983. //
  984. // When distributing Covered Code, include this CDDL HEADER in each
  985. // file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  986. // If applicable, add the following below this CDDL HEADER, with the
  987. // fields enclosed by brackets "[]" replaced with your own identifying
  988. // information: Portions Copyright [yyyy] [name of copyright owner]
  989. //
  990. // CDDL HEADER END
  991. // Copyright 2013 Garrett D'Amore <garrett@damore.org>
  992. // Copyright 2016 Joyent, Inc.
  993. // Copyright 2022 Oxide Computer Company
  994. //
  995. // Copyright 2006 Sun Microsystems, Inc. All rights reserved.
  996. // Use is subject to license terms.
  997. // Limits
  998. //
  999. // The following define the limits for the types defined in <sys/int_types.h>.
  1000. //
  1001. // INTMAX_MIN (minimum value of the largest supported signed integer type),
  1002. // INTMAX_MAX (maximum value of the largest supported signed integer type),
  1003. // and UINTMAX_MAX (maximum value of the largest supported unsigned integer
  1004. // type) can be set to implementation defined limits.
  1005. //
  1006. // NOTE : A programmer can test to see whether an implementation supports
  1007. // a particular size of integer by testing if the macro that gives the
  1008. // maximum for that datatype is defined. For example, if #ifdef UINT64_MAX
  1009. // tests false, the implementation does not support unsigned 64 bit integers.
  1010. //
  1011. // The type of these macros is intentionally unspecified.
  1012. //
  1013. // The types int8_t, int_least8_t, and int_fast8_t are not defined for ISAs
  1014. // where the ABI specifies "char" as unsigned when the translation mode is
  1015. // not ANSI-C.
  1016. // The following 2 macros are provided for testing whether the types
  1017. // intptr_t and uintptr_t (integers large enough to hold a void *) are
  1018. // defined in this header. They are needed in case the architecture can't
  1019. // represent a pointer in any standard integral type.
  1020. // Maximum limits of ptrdiff_t defined in <sys/types.h>
  1021. // Maximum value of a "size_t". SIZE_MAX was previously defined
  1022. // in <limits.h>, however, the standards specify it be defined
  1023. // in <stdint.h>. The <stdint.h> headers includes this header as
  1024. // does <limits.h>. The value of SIZE_MAX should not deviate
  1025. // from the value of ULONG_MAX defined <sys/types.h>.
  1026. // Maximum limit of sig_atomic_t defined in <sys/types.h>
  1027. // Maximum limit of wchar_t. The WCHAR_* macros are also
  1028. // defined in <iso/wchar_iso.h>, but inclusion of that header
  1029. // will break ISO/IEC C namespace.
  1030. // Maximum limit of wint_t
  1031. // It is probably a bug in the POSIX specification (IEEE-1003.1-1990) that
  1032. // when including <limits.h> that the suffix _MAX is reserved but not the
  1033. // suffix _MIN. However, until that issue is resolved....
  1034. // Minimum value of a pointer-holding signed integer type
  1035. // Minimum limits of ptrdiff_t defined in <sys/types.h>
  1036. // Minimum limit of sig_atomic_t defined in <sys/types.h>
  1037. // Minimum limit of wchar_t. The WCHAR_* macros are also
  1038. // defined in <iso/wchar_iso.h>, but inclusion of that header
  1039. // will break ISO/IEC C namespace.
  1040. // Minimum limit of wint_t
  1041. // ARG_MAX is calculated as follows:
  1042. // NCARGS - space for other stuff on initial stack
  1043. // like aux vectors, saved registers, etc..
  1044. // These two symbols have their historical values, the actual buffer is
  1045. // larger.
  1046. // POSIX conformant definitions - An implementation may define
  1047. // other symbols which reflect the actual implementation. Alternate
  1048. // definitions may not be as restrictive as the POSIX definitions.
  1049. // POSIX.1c conformant
  1050. // UNIX 03 conformant
  1051. // POSIX.2 and XPG4-XSH4 conformant definitions
  1052. // UNIX 03 conformant
  1053. // For dual definitions for PASS_MAX and sysconf.c
  1054. // NLS printf() and scanf()
  1055. // Marked as LEGACY in SUSv2 and removed in UNIX 03
  1056. // of a double
  1057. // of a "float"
  1058. // Marked as LEGACY in SUSv1 and removed in SUSv2
  1059. // of a double
  1060. // of a float
  1061. // POSIX 1003.1a, section 2.9.5, table 2-5 contains [NAME_MAX] and the
  1062. // related text states:
  1063. //
  1064. // A definition of one of the values from Table 2-5 shall be omitted from the
  1065. // <limits.h> on specific implementations where the corresponding value is
  1066. // equal to or greater than the stated minimum, but where the value can vary
  1067. // depending on the file to which it is applied. The actual value supported for
  1068. // a specific pathname shall be provided by the pathconf() (5.7.1) function.
  1069. //
  1070. // This is clear that any machine supporting multiple file system types
  1071. // and/or a network should not include this define, regardless of protection
  1072. // by the _POSIX_SOURCE and _POSIX_C_SOURCE flags. We chose to ignore that
  1073. // and provide it anyway for compatibility with other platforms that don't
  1074. // follow the spec as precisely as they should. Its usage is discouraged.
  1075. type Clock_t = int64 /* limits.h:292:14 */ // System Private interface to sysconf()
  1076. // Increased for illumos
  1077. // Copyright (C) 1991-2022 Free Software Foundation, Inc.
  1078. //
  1079. // This file is part of GCC.
  1080. //
  1081. // GCC is free software; you can redistribute it and/or modify it under
  1082. // the terms of the GNU General Public License as published by the Free
  1083. // Software Foundation; either version 3, or (at your option) any later
  1084. // version.
  1085. //
  1086. // GCC is distributed in the hope that it will be useful, but WITHOUT ANY
  1087. // WARRANTY; without even the implied warranty of MERCHANTABILITY or
  1088. // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  1089. // for more details.
  1090. //
  1091. // Under Section 7 of GPL version 3, you are granted additional
  1092. // permissions described in the GCC Runtime Library Exception, version
  1093. // 3.1, as published by the Free Software Foundation.
  1094. //
  1095. // You should have received a copy of the GNU General Public License and
  1096. // a copy of the GCC Runtime Library Exception along with this program;
  1097. // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
  1098. // <http://www.gnu.org/licenses/>.
  1099. // Number of bits in a `char'.
  1100. // Maximum length of a multibyte character.
  1101. // Minimum and maximum values a `signed char' can hold.
  1102. // Maximum value an `unsigned char' can hold. (Minimum is 0).
  1103. // Minimum and maximum values a `char' can hold.
  1104. // Minimum and maximum values a `signed short int' can hold.
  1105. // Maximum value an `unsigned short int' can hold. (Minimum is 0).
  1106. // Minimum and maximum values a `signed int' can hold.
  1107. // Maximum value an `unsigned int' can hold. (Minimum is 0).
  1108. // Minimum and maximum values a `signed long int' can hold.
  1109. // (Same as `int').
  1110. // Maximum value an `unsigned long int' can hold. (Minimum is 0).
  1111. // Minimum and maximum values a `signed long long int' can hold.
  1112. // Maximum value an `unsigned long long int' can hold. (Minimum is 0).
  1113. // Minimum and maximum values a `signed long long int' can hold.
  1114. // Maximum value an `unsigned long long int' can hold. (Minimum is 0).
  1115. // This administrivia gets added to the end of limits.h
  1116. // if the system has its own version of limits.h.
  1117. var _ int8 /* gen.c:2:13: */