[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#314435: libc6-dev: struct timespec and nanosleep() not available with -std=c99



Hello Lars,

On Thu, Jun 16, 2005 at 12:47:13PM +0300, Lars Wirzenius wrote:
> The -std=c99 option means that you want strict compliance to the 1999
> version of the C standard. That standard does not define struct timespec
> or nanosleep in <time.h> or anywhere else. Thus, there is no bug.

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.

With kind regards,
Baurzhan.



Reply to: