Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: src/sys/sys
Thomas Klausner <wiz%netbsd.org@localhost> writes:
> Shouldn't this match what's in signal.h:
> #if defined(_POSIX_C_SOURCE) || defined(_XOPEN_SOURCE) || \
> defined(_NETBSD_SOURCE)
> int kill __P((pid_t, int));
>
> int pthread_sigmask __P((int, const sigset_t *, sigset_t *));
> int pthread_kill __P((pthread_t, int));
>
> Otherwise for _POSIX_SOURCE < 200111L and _XOPEN_SOURCE < 600,
> pthread_t will not be defined and signal.h unusable...
Yeah, and this is tripping up gnu/dist/toolchain/libf2c. Really,
they're both wrong; the former because pthread_{sigmask,kill} didn't
exist in old versions of POSIX (9945-1:1996 is the first version where
it was in the main standard), and the latter (I think) because
pthread types arrived in sys/types.h before 1003.1-2001. Let me do
some more digging to find the right standard version to use in both of
them.
- Nathan
Home |
Main Index |
Thread Index |
Old Index