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
F157608253: D6663.diff
Sat, May 23, 9:07 AM
Unknown Object (File)
Wed, May 20, 4:46 PM
Unknown Object (File)
Mon, May 18, 5:16 PM
Unknown Object (File)
Thu, Apr 30, 8:50 PM
Unknown Object (File)
Sun, Apr 26, 8:42 AM
Unknown Object (File)
Thu, Apr 23, 7:46 PM
Unknown Object (File)
Apr 18 2026, 7:49 PM
Unknown Object (File)
Apr 18 2026, 6:18 AM
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.