History log of /freebsd-10-stable/sys/libkern/strdup.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 116189 11-Jun-2003 obrien

Use __FBSDID().


# 111518 25-Feb-2003 rwatson

Further GC of M_STRING, missed previously.


# 111517 25-Feb-2003 rwatson

Replace license with two-clause BSD; an old license template with three
clauses was used by mistake.


# 111506 25-Feb-2003 rwatson

Pass a malloc type into the libkern strdup() implementation explicitly,
so that callers can specify what malloc pool the resulting memory
should come from.

Requested by: phk


# 111317 23-Feb-2003 rwatson

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