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

Eric Blake
Wed Mar 31 16:59:00 GMT 2010

On 03/31/2010 10:51 AM, Ralf Corsepius wrote:
> On 03/31/2010 06:45 PM, Eric Blake wrote:
>> On 03/31/2010 10:31 AM, Ralf Corsepius wrote:
>>>> sched.h includes sys/types.h (which defines timespec)
>>> SUSv4 mandates timespec in<time.h>  and sys/sched.h to receive it from
>>> <time.h>.
>> SUSv4 does not mandate<sys/sched.h>.
> Correct, a stupid typo on my part. I was referring to <sched.h>

That said...

SUSv4 mandates that <sched.h> provides struct timespec as in <time.h>,
and permits (but does not require) <sched.h> to include <time.h> as a
means of meeting that mandate.  However, it is also possible for both
<time.h> and <sched.h> to include yet another (implementation-specific)
header (in this cased, <sys/sched.h>) to provide a consistent definition
of struct timespec, without <sched.h> having to pull in anything from

Eric Blake    +1-801-349-2682
Libvirt virtualization library

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 323 bytes
Desc: OpenPGP digital signature
URL: <>

More information about the Newlib mailing list