This is the mail archive of the
libc-hacker@sourceware.cygnus.com
mailing list for the glibc project.
Re: Misc patches for glibc
- To: hjl@lucon.org (H.J. Lu)
- Subject: Re: Misc patches for glibc
- From: Ulrich Drepper <drepper@cygnus.com>
- Date: 07 Nov 1998 22:02:34 -0800
- Cc: libc-hacker@cygnus.com
- References: <m0zboH9-0000V3C@sea.lucon.org>
- Reply-To: drepper@cygnus.com (Ulrich Drepper)
hjl@lucon.org (H.J. Lu) writes:
> Please take a look at
>
> http://www.opengroup.org/onlinepubs/7908799/xsh/sigtimedwait.html
>
> To me, it implies I can do
>
> #include <signal.h>
> [...]
Not really. You only need a forward declaration in some cases.
Anyhow, since it is well known the timespec is in time.h and since
some other platforms also follow the POSIX and Unix98 standard closely
it is best to keep the forward declaration. This ensures portability.
--
---------------. drepper at gnu.org ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com `------------------------