From owner-cvs-src Sun Feb 23 6:51:39 2003 Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 47C8C37B401; Sun, 23 Feb 2003 06:51:38 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2885A43FB1; Sun, 23 Feb 2003 06:51:37 -0800 (PST) (envelope-from phk@phk.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.6/8.12.6) with ESMTP id h1NEpZlI039832; Sun, 23 Feb 2003 15:51:35 +0100 (CET) (envelope-from phk@phk.freebsd.dk) To: Robert Watson 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 From: phk@phk.freebsd.dk In-Reply-To: Your message of "Sun, 23 Feb 2003 06:30:17 PST." <200302231430.h1NEUHZb068134@repoman.freebsd.org> Date: Sun, 23 Feb 2003 15:51:35 +0100 Message-ID: <39831.1046011895@critter.freebsd.dk> Sender: owner-cvs-src@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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