Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

538 linhas
15KB

  1. /*
  2. * Written by Joel Sherrill <joel@OARcorp.com>.
  3. *
  4. * COPYRIGHT (c) 1989-2014.
  5. *
  6. * On-Line Applications Research Corporation (OAR).
  7. *
  8. * Permission to use, copy, modify, and distribute this software for any
  9. * purpose without fee is hereby granted, provided that this entire notice
  10. * is included in all copies of any software which is or includes a copy
  11. * or modification of this software.
  12. *
  13. * THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED
  14. * WARRANTY. IN PARTICULAR, THE AUTHOR MAKES NO REPRESENTATION
  15. * OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY OF THIS
  16. * SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE.
  17. *
  18. * $Id$
  19. */
  20. #ifndef _SYS_FEATURES_H
  21. #define _SYS_FEATURES_H
  22. #ifdef __cplusplus
  23. extern "C" {
  24. #endif
  25. #include <_newlib_version.h>
  26. /* Macro to test version of GCC. Returns 0 for non-GCC or too old GCC. */
  27. #ifndef __GNUC_PREREQ
  28. # if defined __GNUC__ && defined __GNUC_MINOR__
  29. # define __GNUC_PREREQ(maj, min) \
  30. ((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min))
  31. # else
  32. # define __GNUC_PREREQ(maj, min) 0
  33. # endif
  34. #endif /* __GNUC_PREREQ */
  35. /* Version with trailing underscores for BSD compatibility. */
  36. #define __GNUC_PREREQ__(ma, mi) __GNUC_PREREQ(ma, mi)
  37. /*
  38. * Feature test macros control which symbols are exposed by the system
  39. * headers. Any of these must be defined before including any headers.
  40. *
  41. * __STRICT_ANSI__ (defined by gcc -ansi, -std=c90, -std=c99, or -std=c11)
  42. * ISO C
  43. *
  44. * _POSIX_SOURCE (deprecated by _POSIX_C_SOURCE=1)
  45. * _POSIX_C_SOURCE >= 1
  46. * POSIX.1-1990
  47. *
  48. * _POSIX_C_SOURCE >= 2
  49. * POSIX.2-1992
  50. *
  51. * _POSIX_C_SOURCE >= 199309L
  52. * POSIX.1b-1993 Real-time extensions
  53. *
  54. * _POSIX_C_SOURCE >= 199506L
  55. * POSIX.1c-1995 Threads extensions
  56. *
  57. * _POSIX_C_SOURCE >= 200112L
  58. * POSIX.1-2001 and C99
  59. *
  60. * _POSIX_C_SOURCE >= 200809L
  61. * POSIX.1-2008
  62. *
  63. * _XOPEN_SOURCE
  64. * POSIX.1-1990 and XPG4
  65. *
  66. * _XOPEN_SOURCE_EXTENDED
  67. * SUSv1 (POSIX.2-1992 plus XPG4v2)
  68. *
  69. * _XOPEN_SOURCE >= 500
  70. * SUSv2 (POSIX.1c-1995 plus XSI)
  71. *
  72. * _XOPEN_SOURCE >= 600
  73. * SUSv3 (POSIX.1-2001 plus XSI) and C99
  74. *
  75. * _XOPEN_SOURCE >= 700
  76. * SUSv4 (POSIX.1-2008 plus XSI)
  77. *
  78. * _ISOC99_SOURCE or gcc -std=c99 or g++
  79. * ISO C99
  80. *
  81. * _ISOC11_SOURCE or gcc -std=c11 or g++ -std=c++11
  82. * ISO C11
  83. *
  84. * _ATFILE_SOURCE (implied by _POSIX_C_SOURCE >= 200809L)
  85. * "at" functions
  86. *
  87. * _LARGEFILE_SOURCE (deprecated by _XOPEN_SOURCE >= 500)
  88. * fseeko, ftello
  89. *
  90. * _GNU_SOURCE
  91. * All of the above plus GNU extensions
  92. *
  93. * _BSD_SOURCE (deprecated by _DEFAULT_SOURCE)
  94. * _SVID_SOURCE (deprecated by _DEFAULT_SOURCE)
  95. * _DEFAULT_SOURCE (or none of the above)
  96. * POSIX-1.2008 with BSD and SVr4 extensions
  97. *
  98. * _FORTIFY_SOURCE = 1 or 2
  99. * Object Size Checking function wrappers
  100. */
  101. #ifdef _GNU_SOURCE
  102. #undef _ATFILE_SOURCE
  103. #define _ATFILE_SOURCE 1
  104. #undef _DEFAULT_SOURCE
  105. #define _DEFAULT_SOURCE 1
  106. #undef _ISOC99_SOURCE
  107. #define _ISOC99_SOURCE 1
  108. #undef _ISOC11_SOURCE
  109. #define _ISOC11_SOURCE 1
  110. #undef _POSIX_SOURCE
  111. #define _POSIX_SOURCE 1
  112. #undef _POSIX_C_SOURCE
  113. #define _POSIX_C_SOURCE 200809L
  114. #undef _XOPEN_SOURCE
  115. #define _XOPEN_SOURCE 700
  116. #undef _XOPEN_SOURCE_EXTENDED
  117. #define _XOPEN_SOURCE_EXTENDED 1
  118. #endif /* _GNU_SOURCE */
  119. #if defined(_BSD_SOURCE) || defined(_SVID_SOURCE) || \
  120. (!defined(__STRICT_ANSI__) && !defined(_ANSI_SOURCE) && \
  121. !defined(_ISOC99_SOURCE) && !defined(_POSIX_SOURCE) && \
  122. !defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE))
  123. #undef _DEFAULT_SOURCE
  124. #define _DEFAULT_SOURCE 1
  125. #endif
  126. #if defined(_DEFAULT_SOURCE)
  127. #undef _POSIX_SOURCE
  128. #define _POSIX_SOURCE 1
  129. #undef _POSIX_C_SOURCE
  130. #define _POSIX_C_SOURCE 200809L
  131. #endif
  132. #if !defined(_POSIX_SOURCE) && !defined(_POSIX_C_SOURCE) && \
  133. ((!defined(__STRICT_ANSI__) && !defined(_ANSI_SOURCE)) || \
  134. (_XOPEN_SOURCE - 0) >= 500)
  135. #define _POSIX_SOURCE 1
  136. #if !defined(_XOPEN_SOURCE) || (_XOPEN_SOURCE - 0) >= 700
  137. #define _POSIX_C_SOURCE 200809L
  138. #elif (_XOPEN_SOURCE - 0) >= 600
  139. #define _POSIX_C_SOURCE 200112L
  140. #elif (_XOPEN_SOURCE - 0) >= 500
  141. #define _POSIX_C_SOURCE 199506L
  142. #elif (_XOPEN_SOURCE - 0) < 500
  143. #define _POSIX_C_SOURCE 2
  144. #endif
  145. #endif
  146. #if defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 200809
  147. #undef _ATFILE_SOURCE
  148. #define _ATFILE_SOURCE 1
  149. #endif
  150. /*
  151. * The following private macros are used throughout the headers to control
  152. * which symbols should be exposed. They are for internal use only, as
  153. * indicated by the leading double underscore, and must never be used outside
  154. * of these headers.
  155. *
  156. * __POSIX_VISIBLE
  157. * any version of POSIX.1; enabled by default, or with _POSIX_SOURCE,
  158. * any value of _POSIX_C_SOURCE, or _XOPEN_SOURCE >= 500.
  159. *
  160. * __POSIX_VISIBLE >= 2
  161. * POSIX.2-1992; enabled by default, with _POSIX_C_SOURCE >= 2,
  162. * or _XOPEN_SOURCE >= 500.
  163. *
  164. * __POSIX_VISIBLE >= 199309
  165. * POSIX.1b-1993; enabled by default, with _POSIX_C_SOURCE >= 199309L,
  166. * or _XOPEN_SOURCE >= 500.
  167. *
  168. * __POSIX_VISIBLE >= 199506
  169. * POSIX.1c-1995; enabled by default, with _POSIX_C_SOURCE >= 199506L,
  170. * or _XOPEN_SOURCE >= 500.
  171. *
  172. * __POSIX_VISIBLE >= 200112
  173. * POSIX.1-2001; enabled by default, with _POSIX_C_SOURCE >= 200112L,
  174. * or _XOPEN_SOURCE >= 600.
  175. *
  176. * __POSIX_VISIBLE >= 200809
  177. * POSIX.1-2008; enabled by default, with _POSIX_C_SOURCE >= 200809L,
  178. * or _XOPEN_SOURCE >= 700.
  179. *
  180. * __XSI_VISIBLE
  181. * XPG4 XSI extensions; enabled with any version of _XOPEN_SOURCE.
  182. *
  183. * __XSI_VISIBLE >= 4
  184. * SUSv1 XSI extensions; enabled with both _XOPEN_SOURCE and
  185. * _XOPEN_SOURCE_EXTENDED together.
  186. *
  187. * __XSI_VISIBLE >= 500
  188. * SUSv2 XSI extensions; enabled with _XOPEN_SOURCE >= 500.
  189. *
  190. * __XSI_VISIBLE >= 600
  191. * SUSv3 XSI extensions; enabled with _XOPEN_SOURCE >= 600.
  192. *
  193. * __XSI_VISIBLE >= 700
  194. * SUSv4 XSI extensions; enabled with _XOPEN_SOURCE >= 700.
  195. *
  196. * __ISO_C_VISIBLE >= 1999
  197. * ISO C99; enabled with gcc -std=c99 or newer (on by default since GCC 5),
  198. * any version of C++, or with _ISOC99_SOURCE, _POSIX_C_SOURCE >= 200112L,
  199. * or _XOPEN_SOURCE >= 600.
  200. *
  201. * __ISO_C_VISIBLE >= 2011
  202. * ISO C11; enabled with gcc -std=c11 or newer (on by default since GCC 5),
  203. * g++ -std=c++11 or newer (on by default since GCC 6), or with
  204. * _ISOC11_SOURCE.
  205. *
  206. * __ATFILE_VISIBLE
  207. * "at" functions; enabled by default, with _ATFILE_SOURCE,
  208. * _POSIX_C_SOURCE >= 200809L, or _XOPEN_SOURCE >= 700.
  209. *
  210. * __LARGEFILE_VISIBLE
  211. * fseeko, ftello; enabled with _LARGEFILE_SOURCE or _XOPEN_SOURCE >= 500.
  212. *
  213. * __BSD_VISIBLE
  214. * BSD extensions; enabled by default, or with _BSD_SOURCE.
  215. *
  216. * __SVID_VISIBLE
  217. * SVr4 extensions; enabled by default, or with _SVID_SOURCE.
  218. *
  219. * __MISC_VISIBLE
  220. * Extensions found in both BSD and SVr4 (shorthand for
  221. * (__BSD_VISIBLE || __SVID_VISIBLE)), or newlib-specific
  222. * extensions; enabled by default.
  223. *
  224. * __GNU_VISIBLE
  225. * GNU extensions; enabled with _GNU_SOURCE.
  226. *
  227. * __SSP_FORTIFY_LEVEL
  228. * Object Size Checking; defined to 0 (off), 1, or 2.
  229. *
  230. * In all cases above, "enabled by default" means either by defining
  231. * _DEFAULT_SOURCE, or by not defining any of the public feature test macros.
  232. */
  233. #ifdef _ATFILE_SOURCE
  234. #define __ATFILE_VISIBLE 1
  235. #else
  236. #define __ATFILE_VISIBLE 0
  237. #endif
  238. #ifdef _DEFAULT_SOURCE
  239. #define __BSD_VISIBLE 1
  240. #else
  241. #define __BSD_VISIBLE 0
  242. #endif
  243. #ifdef _GNU_SOURCE
  244. #define __GNU_VISIBLE 1
  245. #else
  246. #define __GNU_VISIBLE 0
  247. #endif
  248. #if defined(_ISOC11_SOURCE) || \
  249. (__STDC_VERSION__ - 0) >= 201112L || (__cplusplus - 0) >= 201103L
  250. #define __ISO_C_VISIBLE 2011
  251. #elif defined(_ISOC99_SOURCE) || (_POSIX_C_SOURCE - 0) >= 200112L || \
  252. (__STDC_VERSION__ - 0) >= 199901L || defined(__cplusplus)
  253. #define __ISO_C_VISIBLE 1999
  254. #else
  255. #define __ISO_C_VISIBLE 1990
  256. #endif
  257. #if defined(_LARGEFILE_SOURCE) || (_XOPEN_SOURCE - 0) >= 500
  258. #define __LARGEFILE_VISIBLE 1
  259. #else
  260. #define __LARGEFILE_VISIBLE 0
  261. #endif
  262. #ifdef _DEFAULT_SOURCE
  263. #define __MISC_VISIBLE 1
  264. #else
  265. #define __MISC_VISIBLE 0
  266. #endif
  267. #if (_POSIX_C_SOURCE - 0) >= 200809L
  268. #define __POSIX_VISIBLE 200809
  269. #elif (_POSIX_C_SOURCE - 0) >= 200112L
  270. #define __POSIX_VISIBLE 200112
  271. #elif (_POSIX_C_SOURCE - 0) >= 199506L
  272. #define __POSIX_VISIBLE 199506
  273. #elif (_POSIX_C_SOURCE - 0) >= 199309L
  274. #define __POSIX_VISIBLE 199309
  275. #elif (_POSIX_C_SOURCE - 0) >= 2 || defined(_XOPEN_SOURCE)
  276. #define __POSIX_VISIBLE 199209
  277. #elif defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE)
  278. #define __POSIX_VISIBLE 199009
  279. #else
  280. #define __POSIX_VISIBLE 0
  281. #endif
  282. #ifdef _DEFAULT_SOURCE
  283. #define __SVID_VISIBLE 1
  284. #else
  285. #define __SVID_VISIBLE 0
  286. #endif
  287. #if (_XOPEN_SOURCE - 0) >= 700
  288. #define __XSI_VISIBLE 700
  289. #elif (_XOPEN_SOURCE - 0) >= 600
  290. #define __XSI_VISIBLE 600
  291. #elif (_XOPEN_SOURCE - 0) >= 500
  292. #define __XSI_VISIBLE 500
  293. #elif defined(_XOPEN_SOURCE) && defined(_XOPEN_SOURCE_EXTENDED)
  294. #define __XSI_VISIBLE 4
  295. #elif defined(_XOPEN_SOURCE)
  296. #define __XSI_VISIBLE 1
  297. #else
  298. #define __XSI_VISIBLE 0
  299. #endif
  300. #if _FORTIFY_SOURCE > 0 && !defined(__cplusplus) && !defined(__lint__) && \
  301. (__OPTIMIZE__ > 0 || defined(__clang__)) && __GNUC_PREREQ__(4, 1)
  302. # if _FORTIFY_SOURCE > 1
  303. # define __SSP_FORTIFY_LEVEL 2
  304. # else
  305. # define __SSP_FORTIFY_LEVEL 1
  306. # endif
  307. #else
  308. # define __SSP_FORTIFY_LEVEL 0
  309. #endif
  310. /* RTEMS adheres to POSIX -- 1003.1b with some features from annexes. */
  311. #ifdef __rtems__
  312. #define _POSIX_JOB_CONTROL 1
  313. #define _POSIX_SAVED_IDS 1
  314. #define _POSIX_VERSION 199309L
  315. #define _POSIX_ASYNCHRONOUS_IO 1
  316. #define _POSIX_FSYNC 1
  317. #define _POSIX_MAPPED_FILES 1
  318. #define _POSIX_MEMLOCK 1
  319. #define _POSIX_MEMLOCK_RANGE 1
  320. #define _POSIX_MEMORY_PROTECTION 1
  321. #define _POSIX_MESSAGE_PASSING 1
  322. #define _POSIX_MONOTONIC_CLOCK 200112L
  323. #define _POSIX_CLOCK_SELECTION 200112L
  324. #define _POSIX_PRIORITIZED_IO 1
  325. #define _POSIX_PRIORITY_SCHEDULING 1
  326. #define _POSIX_REALTIME_SIGNALS 1
  327. #define _POSIX_SEMAPHORES 1
  328. #define _POSIX_SHARED_MEMORY_OBJECTS 1
  329. #define _POSIX_SYNCHRONIZED_IO 1
  330. #define _POSIX_TIMERS 1
  331. #define _POSIX_BARRIERS 200112L
  332. #define _POSIX_READER_WRITER_LOCKS 200112L
  333. #define _POSIX_SPIN_LOCKS 200112L
  334. /* In P1003.1b but defined by drafts at least as early as P1003.1c/D10 */
  335. #define _POSIX_THREADS 1
  336. #define _POSIX_THREAD_ATTR_STACKADDR 1
  337. #define _POSIX_THREAD_ATTR_STACKSIZE 1
  338. #define _POSIX_THREAD_PRIORITY_SCHEDULING 1
  339. #define _POSIX_THREAD_PRIO_INHERIT 1
  340. #define _POSIX_THREAD_PRIO_PROTECT 1
  341. #define _POSIX_THREAD_PROCESS_SHARED 1
  342. #define _POSIX_THREAD_SAFE_FUNCTIONS 1
  343. /* P1003.4b/D8 defines the constants below this comment. */
  344. #define _POSIX_SPAWN 1
  345. #define _POSIX_TIMEOUTS 1
  346. #define _POSIX_CPUTIME 1
  347. #define _POSIX_THREAD_CPUTIME 1
  348. #define _POSIX_SPORADIC_SERVER 1
  349. #define _POSIX_THREAD_SPORADIC_SERVER 1
  350. #define _POSIX_DEVICE_CONTROL 1
  351. #define _POSIX_DEVCTL_DIRECTION 1
  352. #define _POSIX_INTERRUPT_CONTROL 1
  353. #define _POSIX_ADVISORY_INFO 1
  354. /* UNIX98 added some new pthread mutex attributes */
  355. #define _UNIX98_THREAD_MUTEX_ATTRIBUTES 1
  356. /* POSIX 1003.26-2003 defined device control method */
  357. #define _POSIX_26_VERSION 200312L
  358. #endif
  359. /* XMK loosely adheres to POSIX -- 1003.1 */
  360. #ifdef __XMK__
  361. #define _POSIX_THREADS 1
  362. #define _POSIX_THREAD_PRIORITY_SCHEDULING 1
  363. #endif
  364. #ifdef __svr4__
  365. # define _POSIX_JOB_CONTROL 1
  366. # define _POSIX_SAVED_IDS 1
  367. # define _POSIX_VERSION 199009L
  368. #endif
  369. #ifdef __CYGWIN__
  370. #if __POSIX_VISIBLE >= 200809
  371. #define _POSIX_VERSION 200809L
  372. #define _POSIX2_VERSION 200809L
  373. #elif __POSIX_VISIBLE >= 200112
  374. #define _POSIX_VERSION 200112L
  375. #define _POSIX2_VERSION 200112L
  376. #elif __POSIX_VISIBLE >= 199506
  377. #define _POSIX_VERSION 199506L
  378. #define _POSIX2_VERSION 199506L
  379. #elif __POSIX_VISIBLE >= 199309
  380. #define _POSIX_VERSION 199309L
  381. #define _POSIX2_VERSION 199209L
  382. #elif __POSIX_VISIBLE >= 199209
  383. #define _POSIX_VERSION 199009L
  384. #define _POSIX2_VERSION 199209L
  385. #elif __POSIX_VISIBLE
  386. #define _POSIX_VERSION 199009L
  387. #endif
  388. #if __XSI_VISIBLE >= 4
  389. #define _XOPEN_VERSION __XSI_VISIBLE
  390. #endif
  391. #define _POSIX_ADVISORY_INFO 200809L
  392. #define _POSIX_ASYNCHRONOUS_IO 200809L
  393. #define _POSIX_BARRIERS 200809L
  394. #define _POSIX_CHOWN_RESTRICTED 1
  395. #define _POSIX_CLOCK_SELECTION 200809L
  396. #define _POSIX_CPUTIME 200809L
  397. #define _POSIX_FSYNC 200809L
  398. #define _POSIX_IPV6 200809L
  399. #define _POSIX_JOB_CONTROL 1
  400. #define _POSIX_MAPPED_FILES 200809L
  401. /* #define _POSIX_MEMLOCK -1 */
  402. #define _POSIX_MEMLOCK_RANGE 200809L
  403. #define _POSIX_MEMORY_PROTECTION 200809L
  404. #define _POSIX_MESSAGE_PASSING 200809L
  405. #define _POSIX_MONOTONIC_CLOCK 200809L
  406. #define _POSIX_NO_TRUNC 1
  407. /* #define _POSIX_PRIORITIZED_IO -1 */
  408. #define _POSIX_PRIORITY_SCHEDULING 200809L
  409. #define _POSIX_RAW_SOCKETS 200809L
  410. #define _POSIX_READER_WRITER_LOCKS 200809L
  411. #define _POSIX_REALTIME_SIGNALS 200809L
  412. #define _POSIX_REGEXP 1
  413. #define _POSIX_SAVED_IDS 1
  414. #define _POSIX_SEMAPHORES 200809L
  415. #define _POSIX_SHARED_MEMORY_OBJECTS 200809L
  416. #define _POSIX_SHELL 1
  417. #define _POSIX_SPAWN 200809L
  418. #define _POSIX_SPIN_LOCKS 200809L
  419. /* #define _POSIX_SPORADIC_SERVER -1 */
  420. #define _POSIX_SYNCHRONIZED_IO 200809L
  421. #define _POSIX_THREAD_ATTR_STACKADDR 200809L
  422. #define _POSIX_THREAD_ATTR_STACKSIZE 200809L
  423. #define _POSIX_THREAD_CPUTIME 200809L
  424. /* #define _POSIX_THREAD_PRIO_INHERIT -1 */
  425. /* #define _POSIX_THREAD_PRIO_PROTECT -1 */
  426. #define _POSIX_THREAD_PRIORITY_SCHEDULING 200809L
  427. #define _POSIX_THREAD_PROCESS_SHARED 200809L
  428. #define _POSIX_THREAD_SAFE_FUNCTIONS 200809L
  429. /* #define _POSIX_THREAD_SPORADIC_SERVER -1 */
  430. #define _POSIX_THREADS 200809L
  431. #define _POSIX_TIMEOUTS 200809L
  432. #define _POSIX_TIMERS 200809L
  433. /* #define _POSIX_TRACE -1 */
  434. /* #define _POSIX_TRACE_EVENT_FILTER -1 */
  435. /* #define _POSIX_TRACE_INHERIT -1 */
  436. /* #define _POSIX_TRACE_LOG -1 */
  437. /* #define _POSIX_TYPED_MEMORY_OBJECTS -1 */
  438. #define _POSIX_VDISABLE '\0'
  439. #if __POSIX_VISIBLE >= 2
  440. #define _POSIX2_C_VERSION _POSIX2_VERSION
  441. #define _POSIX2_C_BIND _POSIX2_VERSION
  442. #define _POSIX2_C_DEV _POSIX2_VERSION
  443. #define _POSIX2_CHAR_TERM _POSIX2_VERSION
  444. /* #define _POSIX2_FORT_DEV -1 */
  445. /* #define _POSIX2_FORT_RUN -1 */
  446. /* #define _POSIX2_LOCALEDEF -1 */
  447. /* #define _POSIX2_PBS -1 */
  448. /* #define _POSIX2_PBS_ACCOUNTING -1 */
  449. /* #define _POSIX2_PBS_CHECKPOINT -1 */
  450. /* #define _POSIX2_PBS_LOCATE -1 */
  451. /* #define _POSIX2_PBS_MESSAGE -1 */
  452. /* #define _POSIX2_PBS_TRACK -1 */
  453. #define _POSIX2_SW_DEV _POSIX2_VERSION
  454. #define _POSIX2_UPE _POSIX2_VERSION
  455. #endif /* __POSIX_VISIBLE >= 2 */
  456. #define _POSIX_V6_ILP32_OFF32 -1
  457. #ifdef __LP64__
  458. #define _POSIX_V6_ILP32_OFFBIG -1
  459. #define _POSIX_V6_LP64_OFF64 1
  460. #define _POSIX_V6_LPBIG_OFFBIG 1
  461. #else
  462. #define _POSIX_V6_ILP32_OFFBIG 1
  463. #define _POSIX_V6_LP64_OFF64 -1
  464. #define _POSIX_V6_LPBIG_OFFBIG -1
  465. #endif
  466. #define _POSIX_V7_ILP32_OFF32 _POSIX_V6_ILP32_OFF32
  467. #define _POSIX_V7_ILP32_OFFBIG _POSIX_V6_ILP32_OFFBIG
  468. #define _POSIX_V7_LP64_OFF64 _POSIX_V6_LP64_OFF64
  469. #define _POSIX_V7_LPBIG_OFFBIG _POSIX_V6_LPBIG_OFFBIG
  470. #define _XBS5_ILP32_OFF32 _POSIX_V6_ILP32_OFF32
  471. #define _XBS5_ILP32_OFFBIG _POSIX_V6_ILP32_OFFBIG
  472. #define _XBS5_LP64_OFF64 _POSIX_V6_LP64_OFF64
  473. #define _XBS5_LPBIG_OFFBIG _POSIX_V6_LPBIG_OFFBIG
  474. #if __XSI_VISIBLE
  475. #define _XOPEN_CRYPT 1
  476. #define _XOPEN_ENH_I18N 1
  477. /* #define _XOPEN_LEGACY -1 */
  478. /* #define _XOPEN_REALTIME -1 */
  479. /* #define _XOPEN_REALTIME_THREADS -1 */
  480. #define _XOPEN_SHM 1
  481. /* #define _XOPEN_STREAMS -1 */
  482. /* #define _XOPEN_UNIX -1 */
  483. #endif /* __XSI_VISIBLE */
  484. /*
  485. * newlib's wide char conversion functions were updated on
  486. * 2019-01-12
  487. * to UNICODE version:
  488. * 11.0.0 released 2018-06-05
  489. */
  490. #define __STDC_ISO_10646__ 201806L
  491. #endif /* __CYGWIN__ */
  492. #ifdef __cplusplus
  493. }
  494. #endif
  495. #endif /* _SYS_FEATURES_H */