aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2020-09-07 11:19:53 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2020-09-07 11:21:06 +0200
commit7497e9d8c898ed6cf60d500d08738868667f643b (patch)
treed679bd5278483b5665e401032a7bb2d6c18253c8
parentf9a5e579250739a29553969227133bcb61fdbfbc (diff)
downloadman-pages-7497e9d8c898ed6cf60d500d08738868667f643b.tar.gz
errno.3: Note that the pthreads APIs do not set errno
Reported-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
-rw-r--r--man3/errno.310
1 files changed, 10 insertions, 0 deletions
diff --git a/man3/errno.3 b/man3/errno.3
index 307e486cf4..90edb8e665 100644
--- a/man3/errno.3
+++ b/man3/errno.3
@@ -631,6 +631,16 @@ if (somecall() == \-1) {
.EE
.in
.PP
+Note that the POSIX threads APIs do
+.I not
+set
+.I errno
+on error.
+Instead, on failure they return an error number as the function result.
+These error numbers have the same meanings as the error numbers returned in
+.I errno
+by other APIs.
+.PP
On some ancient systems,
.I <errno.h>
was not present or did not declare