This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[rtems] Tweaks to sys/features.h
- From: Ralf Corsepius <ralf dot corsepius at rtems dot org>
- To: Newlib List <newlib at sources dot redhat dot com>
- Date: Thu, 20 Nov 2008 06:07:54 +0100
- Subject: [rtems] Tweaks to sys/features.h
Hi again,
another RTEMS specific newlib patch, we'd like to see merged into
newlib.
This patch address 2 issue with sys/features.h:
* POSIX/SUSv3 mandates _POSIX_MONOTONIC_CLOCK to be set to -1, 0 or
200112L. RTEMS supports _POSIX_MONOTONIC_CLOCK but doesn't support
sysconf(), so it must be set 200112L.
* RTEMS doesn't support _POSIX_SHARED_MEMORY_OBJECTS. The setting having
been used so far was wrong.
Ralf
2008-11-20 Ralf CorsÃpius <ralf.corsepius@rtems.org>
* libc/include/sys/features.h: Set RTEMS's _POSIX_MONOTONIC_CLOCK to
200112L (SUSv3 compliance).
Comment out RTEMS's _POSIX_SHARED_MEMORY_OBJECTS (Unsupported).
Index: libc/include/sys/features.h
===================================================================
RCS file: /cvs/src/src/newlib/libc/include/sys/features.h,v
retrieving revision 1.14
diff -u -r1.14 features.h
--- libc/include/sys/features.h 16 Oct 2008 21:53:58 -0000 1.14
+++ libc/include/sys/features.h 20 Nov 2008 04:51:24 -0000
@@ -38,12 +38,12 @@
#define _POSIX_MEMLOCK_RANGE 1
#define _POSIX_MEMORY_PROTECTION 1
#define _POSIX_MESSAGE_PASSING 1
-#define _POSIX_MONOTONIC_CLOCK 1
+#define _POSIX_MONOTONIC_CLOCK 200112L
#define _POSIX_PRIORITIZED_IO 1
#define _POSIX_PRIORITY_SCHEDULING 1
#define _POSIX_REALTIME_SIGNALS 1
#define _POSIX_SEMAPHORES 1
-#define _POSIX_SHARED_MEMORY_OBJECTS 1
+/* #define _POSIX_SHARED_MEMORY_OBJECTS 1 */
#define _POSIX_SYNCHRONIZED_IO 1
#define _POSIX_TIMERS 1
#define _POSIX_BARRIERS 200112L