aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2020-11-14 08:04:34 +0100
committerMichael Kerrisk <mtk.manpages@gmail.com>2020-11-14 08:04:34 +0100
commit659e4f17ccf0a09b2f6803b4d53a6ff41bb24e19 (patch)
tree9d3b9f29dbcf250dabc219920d949e6f09759f5d
parent57ffe9ddc4fb23a643275cb01dac917d6fb950a1 (diff)
downloadman-pages-659e4f17ccf0a09b2f6803b4d53a6ff41bb24e19.tar.gz
signal-safety.7: Note async-signal-safety details for errno
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
-rw-r--r--man7/signal-safety.710
1 files changed, 9 insertions, 1 deletions
diff --git a/man7/signal-safety.7 b/man7/signal-safety.7
index a70251f1b0..f70eb814fd 100644
--- a/man7/signal-safety.7
+++ b/man7/signal-safety.7
@@ -285,7 +285,7 @@ Function Notes
\fBwmemset\fP(3) Added in POSIX.1-2008 TC2
\fBwrite\fP(2)
.TE
-.sp 1
+.PP
Notes:
.IP * 3
POSIX.1-2001 and POSIX.1-2001 TC2 required the functions
@@ -320,6 +320,14 @@ Asynchronous signal handlers that call functions which are cancellation
points and nest over regions of deferred cancellation may trigger
cancellation whose behavior is as if asynchronous cancellation had
occurred and may cause application state to become inconsistent.
+.\"
+.SS errno
+Fetching and setting the value of
+.I errno
+is async-signal-safe provided that the signal handler saves
+.I errno
+on entry and restores its value before returning.
+.\"
.SS Deviations in the GNU C library
The following known deviations from the standard occur in
the GNU C library: