summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2003-12-02 23:41:15 +0000
committerderaadt <deraadt@openbsd.org>2003-12-02 23:41:15 +0000
commit9dd6f43e1b800c4124ed987c7d71c5acecf77e91 (patch)
tree2b83d4cd3e6fd66ae3c28f341212baf1fecb1147 /lib/libc
parentKNF, ok deraadt/henning (diff)
downloadwireguard-openbsd-9dd6f43e1b800c4124ed987c7d71c5acecf77e91.tar.xz
wireguard-openbsd-9dd6f43e1b800c4124ed987c7d71c5acecf77e91.zip
actually snprintf/vsnprintf are now signal race safe
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/gen/signal.36
-rw-r--r--lib/libc/sys/sigaction.26
2 files changed, 8 insertions, 4 deletions
diff --git a/lib/libc/gen/signal.3 b/lib/libc/gen/signal.3
index 3128f55e0c6..43de79cb0f5 100644
--- a/lib/libc/gen/signal.3
+++ b/lib/libc/gen/signal.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: signal.3,v 1.26 2003/07/14 21:23:57 dhartmei Exp $
+.\" $OpenBSD: signal.3,v 1.27 2003/12/02 23:41:15 deraadt Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -351,7 +351,9 @@ but probably not on other systems:
.Pp
.Bl -tag -offset indent -compact -width foofoofoofoo
.It Fn snprintf
-Safe as long as $n positional arguments are not used.
+Safe.
+.It Fn vsnprintf
+Safe.
.It Fn syslog_r
Safe if the
.Va syslog_data
diff --git a/lib/libc/sys/sigaction.2 b/lib/libc/sys/sigaction.2
index a7a38a39ca5..be2a5eda702 100644
--- a/lib/libc/sys/sigaction.2
+++ b/lib/libc/sys/sigaction.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: sigaction.2,v 1.39 2003/06/02 20:18:39 millert Exp $
+.\" $OpenBSD: sigaction.2,v 1.40 2003/12/02 23:41:15 deraadt Exp $
.\" $NetBSD: sigaction.2,v 1.7 1995/10/12 15:41:16 jtc Exp $
.\"
.\" Copyright (c) 1980, 1990, 1993
@@ -720,7 +720,9 @@ but probably not on other systems:
.Pp
.Bl -tag -offset indent -compact -width foofoofoofoo
.It Fn snprintf
-Safe as long as $n positional arguments are not used.
+Safe.
+.It Fn vsnprintf
+Safe.
.It Fn syslog_r
Safe if the
.Va syslog_data