Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 04 Dec 2008 19:46:52 +0100
From:      =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@des.no>
To:        Florian Smeets <flo@kasimir.com>
Cc:        freebsd-arch@freebsd.org
Subject:   Re: Adding strndup(3) to libc viable/useful?
Message-ID:  <86r64nwzfn.fsf@ds4.des.no>
In-Reply-To: <49381DD4.2000506@kasimir.com> (Florian Smeets's message of "Thu,  04 Dec 2008 19:13:40 %2B0100")
References:  <49381DD4.2000506@kasimir.com>

next in thread | previous in thread | raw e-mail | index | archive | help

Florian Smeets <flo@kasimir.com> writes:
> There are 13 ports in the ports tree right now that patch in strndup
> via a patch in the files/ dir, well actually 12 bring there own
> version of strndup and one replaces it with a call to malloc/strncpy.
>
> Would it make sense to add this to our libc? A patch which does this
> is available here at http://webmail.solomo.de/~flo/strndup.patch

Not a bad idea, but those ports patches would still be required for
compatibility with existing releases.

DES
-- 
Dag-Erling Smørgrav - des@des.no



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