Bug#314435: libc6-dev: struct timespec and nanosleep() not available with -std=c99
On Thu, Jun 16, 2005 at 12:10:44PM +0200, Baurzhan Ismagulov wrote:
> struct timespec and nanosleep are POSIX, and should be defined in time.h
> according to SUSv3 (see, e.g.,
> http://www.opengroup.org/onlinepubs/007908799/xsh/nanosleep.html). I
> don't see why strict C99 compliance should affect that header. I think
> it is a bug.
In addition to what Lars wrote, strict compliance affects time.h
because <time.h> is specified in the ISO C99 standard: it provides
time_t, struct tm, clock(), mktime(), et cetera.
--
Daniel Jacobowitz
CodeSourcery, LLC
Reply to: