This is the mail archive of the
libc-hacker@sourceware.cygnus.com
mailing list for the glibc project.
Re: Misc patches for glibc
- To: drepper@cygnus.com
- Subject: Re: Misc patches for glibc
- From: hjl@lucon.org (H.J. Lu)
- Date: Fri, 6 Nov 1998 07:58:15 -0800 (PST)
- Cc: libc-hacker@cygnus.com
>
> > * 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)