From 63c22325ed632bba755490aa4a0f45e671399ec3 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Fri, 17 Oct 2008 21:27:28 +0200 Subject: [PATCH] pthreads.7: Describe return value from pthreads functions Describe the usual success (0) and failure (non-zero) returns, and note that POSIX.1-2001 specifies that pthreads functions can never fail with the error EINTR. Signed-off-by: Michael Kerrisk --- man7/pthreads.7 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/man7/pthreads.7 b/man7/pthreads.7 index 213e23af5..d13c17ddd 100644 --- a/man7/pthreads.7 +++ b/man7/pthreads.7 @@ -106,6 +106,13 @@ capabilities (see .IP \- 3 CPU affinity .RB ( sched_setaffinity (2)) +.SS "Pthreads function return values" +Most pthreads functions return 0 on sucess, and an error number of failure. +Note that the pthreads functions do not set +.IR errno . +For each of the pthreads functions that can return an error, +POSIX.1-2001 specifies that the function can never fail with the error +.BR EINTR . .SS "Thread-safe functions" A thread-safe function is one that can be safely (i.e., it will deliver the same results regardless of whether it is)