Page MenuHomeFreeBSD

Improve errno documentation in pthread_create(3) and thr_new(2)
ClosedPublic

Authored by vangyzen on May 31 2016, 7:02 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Sep 11, 6:29 AM
Unknown Object (File)
Thu, Sep 10, 8:05 AM
Unknown Object (File)
Thu, Sep 10, 7:52 AM
Unknown Object (File)
Thu, Sep 10, 7:52 AM
Unknown Object (File)
Tue, Sep 8, 6:01 AM
Unknown Object (File)
Tue, Aug 25, 6:32 PM
Unknown Object (File)
Aug 12 2026, 12:20 AM
Unknown Object (File)
Aug 11 2026, 9:12 PM
Subscribers

Details

Summary

Add some missing errno values to thr_new(2) and pthread_create(3). In particular,
EDEADLK was not documented in the latter. While I'm here, improve some English and cross-references.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 4088
Build 4131: arc lint + arc unit

Event Timeline

vangyzen retitled this revision from to Improve errno documentation in pthread_create(3) and thr_new(2).
vangyzen updated this object.
vangyzen edited the test plan for this revision. (Show Details)
vangyzen added reviewers: kib, jilles.
share/man/man3/pthread_create.3
108

I do not like a reference to thr_new(2) in the pthrread_create(3), for the basic information about the function behaviour. I.e., I would be fine with .Xr thr_new as a note about implementation. But I think that it is wrong to refer to the implementation man page when describing behavior of the standard-mandated function. This removes the layer of implementation from the reader perception.

Please, list the missed errno values there explicitely.

vangyzen edited edge metadata.

List errno values directly in pthread_create(3) instead of referring
to the implementation's man pages.

vangyzen added inline comments.
share/man/man3/pthread_create.3
108

This makes sense.

vangyzen edited edge metadata.
kib edited edge metadata.
This revision is now accepted and ready to land.Jun 3 2016, 12:00 AM
This revision was automatically updated to reflect the committed changes.
vangyzen marked an inline comment as done.