summaryrefslogtreecommitdiffstats
path: root/sys/conf
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2002-02-18 00:37:03 +0000
committerrwatson <rwatson@FreeBSD.org>2002-02-18 00:37:03 +0000
commit49c65a6b10085c64f7ff4dfb8ccc792f1e9dbc75 (patch)
treeca54ff259a2aa28bbc146e5a0c0d691cd98ede9f /sys/conf
parent43f97fe4ae07b305a42ebbd3f668b9fdeecbaa5f (diff)
downloadFreeBSD-src-49c65a6b10085c64f7ff4dfb8ccc792f1e9dbc75.zip
FreeBSD-src-49c65a6b10085c64f7ff4dfb8ccc792f1e9dbc75.tar.gz
Add a 'strvalid()' call to libkern. Given a character pointer, and
buffer length, determine if the pointer is to a valid string. Currently, the only check is whether a '\0' appears in the buffer. This is useful when pulling in a structure from userland that may contain one or more strings, and validity testing must be performed on elements of the structure. When copying normal string arguments, copyinstr() is expected to be used.
Diffstat (limited to 'sys/conf')
-rw-r--r--sys/conf/files1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/conf/files b/sys/conf/files
index c662a06..d96f2d6 100644
--- a/sys/conf/files
+++ b/sys/conf/files
@@ -906,6 +906,7 @@ libkern/strtol.c standard
libkern/strtoq.c standard
libkern/strtoul.c standard
libkern/strtouq.c standard
+libkern/strvalid.c standard
net/bpf.c standard
net/bpf_filter.c optional bpf
bpf.h standard \
OpenPOWER on IntegriCloud