This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
RE: [rtems] Tweaks to sys/features.h
- From: "Howland Craig D (Craig)" <howland at LGSInnovations dot com>
- To: "Ralf Corsepius" <ralf dot corsepius at rtems dot org>, "Newlib List" <newlib at sources dot redhat dot com>
- Date: Thu, 20 Nov 2008 11:33:57 -0500
- Subject: RE: [rtems] Tweaks to sys/features.h
- References: <1227157674.3752.817.camel@beck.corsepiu.local>
Wouldn't it be better to define _POSIX_SHARED_MEMORY_OBJECTS with value
-1 than to have it not defined? That way it is known at compile time
that there is no support, rather than needing to wait for runtime for a
sysconf() call.
Craig
-----Original Message-----
From: newlib-owner@sourceware.org [mailto:newlib-owner@sourceware.org]
On Behalf Of Ralf Corsepius
Sent: Thursday, November 20, 2008 12:08 AM
To: Newlib List
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