[rtems] Tweaks to sys/features.h
Thu Nov 20 20:22:00 GMT 2008
Howland Craig D (Craig) wrote:
> _SC_SHARED_MEMORY_OBJECTS is the sysconf() identifier that goes
> _POSIX_SHARED_MEMORY_OBJECTS. They are in libc/sys/linux/sysconf.c.
Thanks. I have a patch waiting for our sysconf() once
Ralf's patch with this -1 is committed. :)
> -----Original Message-----
> From: Joel Sherrill [mailto:firstname.lastname@example.org]
> 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
>> -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
>> 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 Sherrill, Ph.D. Director of Research & Development
joel.sherrill@OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985
More information about the Newlib