summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authortom <tom@openbsd.org>2017-09-10 11:30:43 +0000
committertom <tom@openbsd.org>2017-09-10 11:30:43 +0000
commit44bd97b4c763b5f1527e73484015d61d64f86a30 (patch)
treeddc5150958cdb0af302adcc34cabf4e500911616 /lib/libc
parentApply timeout to CAN and RS which also wait for ST. (diff)
downloadwireguard-openbsd-44bd97b4c763b5f1527e73484015d61d64f86a30.tar.xz
wireguard-openbsd-44bd97b4c763b5f1527e73484015d61d64f86a30.zip
sysctl strings include the termingating NUL character in both in and out lengths
Prompted by Nan Xiao noticing the redundancy of bzero+termination - thanks. ok deraadt@
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/gen/sysctl.36
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libc/gen/sysctl.3 b/lib/libc/gen/sysctl.3
index 4bcb03b71a2..08095c62466 100644
--- a/lib/libc/gen/sysctl.3
+++ b/lib/libc/gen/sysctl.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: sysctl.3,v 1.281 2017/08/08 18:15:58 florian Exp $
+.\" $OpenBSD: sysctl.3,v 1.282 2017/09/10 11:30:43 tom Exp $
.\"
.\" Copyright (c) 1993
.\" The Regents of the University of California. All rights reserved.
@@ -27,7 +27,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: August 8 2017 $
+.Dd $Mdocdate: September 10 2017 $
.Dt SYSCTL 3
.Os
.Sh NAME
@@ -99,6 +99,8 @@ For these operations,
the system attempts to round up so that the returned size is
large enough for a call to return the data shortly thereafter.
.Pp
+The terminating NUL character is included in the lengths of string values.
+.Pp
To set a new value,
.Fa newp
is set to point to a buffer of length