candidate sched.h and sys/sched.h for review

Ralf Corsepius
Wed Mar 31 18:54:00 GMT 2010

On 03/31/2010 06:39 PM, Joel Sherrill wrote:
> On 03/31/2010 11:31 AM, Ralf Corsepius wrote:
>> On 03/31/2010 06:22 PM, Joel Sherrill wrote:

>>> I think sys/sched.h exists to allow ports to override
>>> the constants and structure definitions.
>> I am inclined to agree. Whether this is useful is a different question.

I just tried to investigate and came up with a different conclusion.

sys/types.h contains pthread_attr_t,
which applies "struct sched_params",
which currently is in sys/sched.h.

Without sys/sched.h merged into <sched.h>, newlib would have a circular 
header dependency.


More information about the Newlib mailing list