From owner-freebsd-arch@freebsd.org Mon Oct 19 21:27:57 2015 Return-Path: Delivered-To: freebsd-arch@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C98DEA19A36 for ; Mon, 19 Oct 2015 21:27:57 +0000 (UTC) (envelope-from brooks@spindle.one-eyed-alien.net) Received: from spindle.one-eyed-alien.net (spindle.one-eyed-alien.net [199.48.129.229]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A431E1835; Mon, 19 Oct 2015 21:27:57 +0000 (UTC) (envelope-from brooks@spindle.one-eyed-alien.net) Received: by spindle.one-eyed-alien.net (Postfix, from userid 3001) id 617E65A9F13; Mon, 19 Oct 2015 21:27:50 +0000 (UTC) Date: Mon, 19 Oct 2015 21:27:50 +0000 From: Brooks Davis To: Ed Maste Cc: NGie Cooper , freebsd-arch Subject: Re: [RFC] importing e* (embolic, estrdup, etc) functions from NetBSD (libc/libutil or libnetbsd)? Message-ID: <20151019212750.GB64504@spindle.one-eyed-alien.net> References: <74F6DD3C-42F6-490B-A08E-245A1338A3E7@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="2oS5YaxWCcQjTEyO" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Oct 2015 21:27:57 -0000 --2oS5YaxWCcQjTEyO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Oct 19, 2015 at 04:03:58PM -0400, Ed Maste wrote: > On 19 October 2015 at 15:14, NGie Cooper wrote: > > Hi all, > > While looking quickly through makefs upstream for fixing a PR, = I realized that some years ago NetBSD has refactored a number of userland u= tilities (including makefs) to use their new e* function implementations of= malloc, strndup, etc: http://man.netbsd.org/HEAD/usr/share/man/html3/efun.= html (they have some other functions that we don???t have in libc/libutil i= n their libutil that might need to be ported as well). >=20 > Yes, I spotted this while looking at makefs as well and I think it's > reasonable to bring them over. I would put them in libnetbsd though > until there's an actual plan to start migrating our own tools to use > them. Moving them from libnetbsd to libutil is easy to do later on. This feels like the right approach to me as well. Let's get them in and get some them some more exposure and then, if people like them, we can put a copy in libutil. -- Brooks --2oS5YaxWCcQjTEyO Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJWJWBVAAoJEKzQXbSebgfArI4H/AsLm6RQQWbYTTx/fcg8/4p6 +kO0q1kX48mcy8F3IoGQ9MxuDOQDXzpyu0PHidYzOAHwPmBYjlGV7zjjjqV2Ubpr iO3722HQXUmLpS+QARW29/zReNhQLumFXSoxlZdAZ0OPLp5BSLcJf51K3ckYh+nB L7kFttRHRH04GfshByptWMfp8taQFy7cmEhhr5hY+bk8FWYZDtjs5bSGLPM83qoT Fxergn6EpLt03mXFWw3ArBfqvhv1K1m9p+M/J9HkER2WTTmLod4aXmzEJMhF1txT HZo2mrTCEljccP1fRP532VzEx676SyPCTPs19w9ljElmcUU3jy4qlpExhNIJqjc= =ET2K -----END PGP SIGNATURE----- --2oS5YaxWCcQjTEyO--