This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: [rtems] Tweaks to sys/features.h


     _SC_SHARED_MEMORY_OBJECTS is the sysconf() identifier that goes
with
_POSIX_SHARED_MEMORY_OBJECTS.  They are in libc/sys/linux/sysconf.c.
					Craig

-----Original Message-----
From: Joel Sherrill [mailto:joel.sherrill@oarcorp.com] 
Sent: Thursday, November 20, 2008 1:33 PM

Howland Craig D (Craig) wrote:
> 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.
>   
If that's what people are expecting to test for then yes.

And FWIW RTEMS supports sysconf() but doesn't have
a lot of cases in its implementation.  What sysconf value
covers this one?

--joel


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]