Proposed Pthread affinity APIs

Joel Sherrill joel.sherrill at OARcorp.com
Tue Nov 12 19:27:58 UTC 2013


On 11/12/2013 1:23 PM, Sebastian Huber wrote:
> On 11/12/2013 08:13 PM, Joel Sherrill wrote:
> 
>>
>> _GNU_SOURCE is transformed into multiple other
>> defines in features.h in glibc.
>>
>> #ifdef  _GNU_SOURCE
>> # define __USE_GNU      1
>> #endif
>>
>> Our sys/features.h does not have the comparable
>> ifdef. We are likely missing others as it turns
>> on about ten other feature flags in the glibc
>> features.h.
>>
>> I guess we need to follow this pattern and add
>> _GNU_SOURCE to our sys/features.h. The others
>> need another round of thought.
> 
> Another option would be to add this to the Newlib <sys/cdefs.h> since 
> here we already have defines related to _POSIX_SOURCE etc.   Here we 
> should use __GNU_VISIBLE to be in line with the BSD names.
> 

Where's the best place to add this in <sys/cdefs.h> to not
screw up merging future versions from BSD land.


-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel.sherrill at 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 devel mailing list