On Fri, Jul 06, 2018 at 03:07:12PM +0200, Mark Kettenis wrote:
> > Date: Fri, 6 Jul 2018 15:36:07 +0300
> > From: Paul Irofti <p...@irofti.net>
> > 
> > > POSIX currently says:
> > > 
> > >   The behavior is undefined if the value specified by the attr
> > >   argument to pthread_create() does not refer to an initialized thread
> > >   attributes object.
> > 
> > I don't see that bit:
> > 
> > http://pubs.opengroup.org/onlinepubs/009695399/functions/pthread_create.html
> > 
> > On the contrary, I see what our manual states:
> > 
> >   [EINVAL]
> >       The attributes specified by attr are invalid.
> 
> http://pubs.opengroup.org/onlinepubs/9699919799/functions/pthread_create.html

If we're gonna adhere to the latest behavior we ought to update the cited
standard from ISO/IEC 9945-1:1996 ("POSIX.1") to... something more recent.

ISO/IEC 9945-1:2009 contains the behavior you're describing, but most
of our manpages cite revisions of IEEE 1003.1.  Most of *those* cite
2008, but judging from your link the 2017 revision is the new hotness.

The distinction between ISO/IEC 9945-1 and IEEE 1003.1 is pretty
fuzzy to me.

So, which standard/revision is the preferred citation target, if any?

And should we update all of the pthread manpages in one sweep?

cc jmc

PS and by "we" I totally mean "I".  How hard could it be? :)

Reply via email to