From owner-freebsd-arch@FreeBSD.ORG Thu Dec 4 18:46:54 2008 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 215F01065672 for ; Thu, 4 Dec 2008 18:46:54 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id D915E8FC0C for ; Thu, 4 Dec 2008 18:46:53 +0000 (UTC) (envelope-from des@des.no) Received: from ds4.des.no (des.no [84.49.246.2]) by smtp.des.no (Postfix) with ESMTP id B67636D43F; Thu, 4 Dec 2008 18:46:52 +0000 (UTC) Received: by ds4.des.no (Postfix, from userid 1001) id 940C98448C; Thu, 4 Dec 2008 19:46:52 +0100 (CET) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Florian Smeets References: <49381DD4.2000506@kasimir.com> Date: Thu, 04 Dec 2008 19:46:52 +0100 In-Reply-To: <49381DD4.2000506@kasimir.com> (Florian Smeets's message of "Thu, 04 Dec 2008 19:13:40 +0100") Message-ID: <86r64nwzfn.fsf@ds4.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-arch@freebsd.org Subject: Re: Adding strndup(3) to libc viable/useful? X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Dec 2008 18:46:54 -0000 Florian Smeets 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 --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no