Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Feb 2003 15:51:35 +0100
From:      phk@phk.freebsd.dk
To:        Robert Watson <rwatson@FreeBSD.org>
Cc:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/sys libkern.h malloc.h src/sys/libkern strdup.c src/sys/conf files 
Message-ID:  <39831.1046011895@critter.freebsd.dk>
In-Reply-To: Your message of "Sun, 23 Feb 2003 06:30:17 PST." <200302231430.h1NEUHZb068134@repoman.freebsd.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <200302231430.h1NEUHZb068134@repoman.freebsd.org>, Robert Watson wri
tes:
>rwatson     2003/02/23 06:30:17 PST
>
>  Modified files:
>    sys/sys              malloc.h libkern.h 
>    sys/conf             files 
>  Added files:
>    sys/libkern          strdup.c 
>  Log:
>  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.

You should really consider using sbuf's instead.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-src" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?39831.1046011895>