Re: cvs commit: src/sys/sys libkern.h malloc.h src/sys/libkern strdup.c src/sys/conf files

[ Available lists | Index of cvs-all | Month of Feb 2003 | Week of 23 Feb 2003 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Robert Watson <rwatson@FreeBSD.org>
Date
23 Feb 2003 07:01:03
Subject
Re: cvs commit: src/sys/sys libkern.h malloc.h src/sys/libkern strdup.c src/sys/conf files
Message-ID
Pine.NEB.3.96L.1030223100004.64781F-100000@fledge.watson.org


[ Hide this part ]
Per phk's request, I'm going to pass a malloc type into the kernel
strdup(), and drop M_STRING. However, I won't have time to make and test
this change for a few hours.

Robert N M Watson FreeBSD Core Team, TrustedBSD Projects
robert@fledge.watson.org Network Associates Laboratories

On Sun, 23 Feb 2003 phk@phk.freebsd.dk wrote:

> 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-all" in the body of the message



Elapsed time: 0.141 seconds