pthreads.7: Explicitly note that pthreads APIs return an errno-style value on error

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2020-09-07 11:11:30 +02:00
parent 0ca5f06155
commit f9a5e57925
1 changed files with 4 additions and 0 deletions

View File

@ -107,6 +107,10 @@ CPU affinity
.RB ( sched_setaffinity (2))
.SS Pthreads function return values
Most pthreads functions return 0 on success, and an error number on failure.
The error numbers that can be returned have the same meaning as
the error numbers returned in
.I errno
by conventional system calls and C library functions.
Note that the pthreads functions do not set
.IR errno .
For each of the pthreads functions that can return an error,