[newlib-cygwin] newlib/libc/include/sys/features.h: Update RTEMS section
Joel Sherrill
joel@sourceware.org
Tue Nov 4 22:36:29 GMT 2025
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=1e463a9d7017dba499c606b6a72cce45415681fa
commit 1e463a9d7017dba499c606b6a72cce45415681fa
Author: Joel Sherrill <joel@rtems.org>
Date: Fri Oct 3 11:49:28 2025 -0500
newlib/libc/include/sys/features.h: Update RTEMS section
The RTEMS section defined macros for features RTEMS does not have.
Diff:
---
newlib/libc/include/sys/features.h | 15 +++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)
diff --git a/newlib/libc/include/sys/features.h b/newlib/libc/include/sys/features.h
index 325acdf5f..2a5da45ab 100644
--- a/newlib/libc/include/sys/features.h
+++ b/newlib/libc/include/sys/features.h
@@ -366,18 +366,21 @@ extern "C" {
# define __SSP_FORTIFY_LEVEL 0
#endif
-/* RTEMS adheres to POSIX -- 1003.1b with some features from annexes. */
+/*
+ * RTEMS adheres to POSIX -- 1003.1b with some features from annexes.
+ * Unsupported features are commented out.
+ */
#ifdef __rtems__
-#define _POSIX_JOB_CONTROL 1
-#define _POSIX_SAVED_IDS 1
+/* #define _POSIX_JOB_CONTROL 1 */
+/* #define _POSIX_SAVED_IDS 1 */
#define _POSIX_VERSION 199309L
#define _POSIX_ASYNCHRONOUS_IO 1
#define _POSIX_FSYNC 1
#define _POSIX_MAPPED_FILES 1
-#define _POSIX_MEMLOCK 1
-#define _POSIX_MEMLOCK_RANGE 1
-#define _POSIX_MEMORY_PROTECTION 1
+/* #define _POSIX_MEMLOCK 1 */
+/* #define _POSIX_MEMLOCK_RANGE 1 */
+/* #define _POSIX_MEMORY_PROTECTION 1 */
#define _POSIX_MESSAGE_PASSING 1
#define _POSIX_MONOTONIC_CLOCK 200112L
#define _POSIX_CLOCK_SELECTION 200112L
More information about the Newlib-cvs
mailing list