Subject: Re: CVS commit: src/sys/sys
To: Thomas Klausner <wiz@netbsd.org>
From: Nathan J. Williams <nathanw@wasabisystems.com>
List: source-changes
Date: 07/18/2003 13:02:43
Thomas Klausner <wiz@netbsd.org> 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