Misc patches for glibc
H.J. Lu
hjl@lucon.org
Fri Nov 6 07:58:00 GMT 1998
>
> > * signal/signal.h: Include <time.h> for timespec.
>
> I don't think we should do this. The Unix98 standard does not mention
> timespec in signal.h. Nor does POSIX. The forward declaration works
> just fine.
>
Please take a look at
http://www.opengroup.org/onlinepubs/7908799/xsh/sigtimedwait.html
To me, it implies I can do
#include <signal.h>
void
foo ()
{
struct timespec x;
...
if (sigtimedwait (..., ..., &x))
...
}
That means timespec should be defined in signal.h.
--
H.J. Lu (hjl@gnu.org)
More information about the Libc-hacker
mailing list