summaryrefslogtreecommitdiff
path: root/sys/libkern/strdup.c
Commit message (Collapse)AuthorAgeFilesLines
* Use __FBSDID().David E. O'Brien2003-06-111-2/+3
| | | | Notes: svn path=/head/; revision=116189
* Further GC of M_STRING, missed previously.Robert Watson2003-02-261-2/+0
| | | | Notes: svn path=/head/; revision=111518
* Replace license with two-clause BSD; an old license template with threeRobert Watson2003-02-261-7/+4
| | | | | | | clauses was used by mistake. Notes: svn path=/head/; revision=111517
* Pass a malloc type into the libkern strdup() implementation explicitly,Robert Watson2003-02-251-2/+2
| | | | | | | | | | so that callers can specify what malloc pool the resulting memory should come from. Requested by: phk Notes: svn path=/head/; revision=111506
* Add an implementation of strdup() to libkern. Allocated memory is ofRobert Watson2003-02-231-0/+54
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 Notes: svn path=/head/; revision=111317