This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Misc patches for glibc


> 
> > 	* 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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]