summaryrefslogtreecommitdiff
path: root/lib/libc/gen
diff options
context:
space:
mode:
authorTom Cosgrove <tom@cvs.openbsd.org>2017-09-10 11:30:44 +0000
committerTom Cosgrove <tom@cvs.openbsd.org>2017-09-10 11:30:44 +0000
commitd311408696ddcfddf16067696e00dce0651a7a79 (patch)
tree3c39bf49cf0de05bcd59f33ba89c1c654812a05e /lib/libc/gen
parent391028b65e6e8ff961a08ac1eec000de5fb2c639 (diff)
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/gen')
-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