summaryrefslogtreecommitdiffstats
path: root/sys/conf
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2003-02-23 14:30:17 +0000
committerrwatson <rwatson@FreeBSD.org>2003-02-23 14:30:17 +0000
commit3bf9482fa0a7d20205f89c243007961dbb93f701 (patch)
tree14f24f33e303790942de3e78c5d4f1474733ded6 /sys/conf
parent2e05ab323f01ad756a8c17b4ffb09cc0793b2028 (diff)
downloadFreeBSD-src-3bf9482fa0a7d20205f89c243007961dbb93f701.zip
FreeBSD-src-3bf9482fa0a7d20205f89c243007961dbb93f701.tar.gz
Add an implementation of strdup() to libkern. Allocated memory is of
type M_STRING, now defined in malloc.h. Useful when string parsing must occur using the kernel strsep() and we want to avoid toasting the source string. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
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 9f739db..c56d3e5 100644
--- a/sys/conf/files
+++ b/sys/conf/files
@@ -1130,6 +1130,7 @@ libkern/skpc.c standard
libkern/strcat.c standard
libkern/strcmp.c standard
libkern/strcpy.c standard
+libkern/strdup.c standard
libkern/strlcat.c standard
libkern/strlcpy.c standard
libkern/strlen.c standard
OpenPOWER on IntegriCloud