From owner-freebsd-arch@freebsd.org Mon Oct 19 20:04:19 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 61608A1954D for ; Mon, 19 Oct 2015 20:04:19 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: from mail-yk0-x235.google.com (mail-yk0-x235.google.com [IPv6:2607:f8b0:4002:c07::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 21AAEDE4; Mon, 19 Oct 2015 20:04:19 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: by ykfy204 with SMTP id y204so154134498ykf.1; Mon, 19 Oct 2015 13:04:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type:content-transfer-encoding; bh=ZAhLOJv46f+gJTgZKC2jIEXqW82jNJfFyO5dr+SilIg=; b=VOXLqLZ7MJA6QwSRXHyfpkykGhOecmsYFcZSIDmiU7Bo0nczAemuxYq5uB5xNgRXaI CBE+OsVfdQZoWzTBKyLCuiuDU5E3P/bFnlQ25OMcVCoJQcmoAPxJg79Zs0BJyZiaaknS 6VdUlS8oDUl50fyWBQogkxyw36+YDTSeodb+8XMf3vFYh9/VP9OitmeoHO7C6QE3WIWs 3RgQdLYbThsKa8IIIfYkShaevw+7jgZuRK/K8M19Gp8jfliMpWdlvQMkq/MA3tjBUVR/ EFqgrQxzqgMmfz2zX1ocikv4ERF3dUmKu/+msNNTWZlscpfmaCF3U97upKKcikLe8VNn t9xQ== X-Received: by 10.13.214.75 with SMTP id y72mr3596649ywd.108.1445285058224; Mon, 19 Oct 2015 13:04:18 -0700 (PDT) MIME-Version: 1.0 Sender: carpeddiem@gmail.com Received: by 10.37.84.134 with HTTP; Mon, 19 Oct 2015 13:03:58 -0700 (PDT) In-Reply-To: <74F6DD3C-42F6-490B-A08E-245A1338A3E7@gmail.com> References: <74F6DD3C-42F6-490B-A08E-245A1338A3E7@gmail.com> From: Ed Maste Date: Mon, 19 Oct 2015 16:03:58 -0400 X-Google-Sender-Auth: WwpECCJPskU_yqhGc818_PBM9pw Message-ID: Subject: Re: [RFC] importing e* (embolic, estrdup, etc) functions from NetBSD (libc/libutil or libnetbsd)? To: NGie Cooper Cc: freebsd-arch , Brooks Davis Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 20:04:19 -0000 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 uti= lities (including makefs) to use their new e* function implementations of m= alloc, strndup, etc: http://man.netbsd.org/HEAD/usr/share/man/html3/efun.ht= ml (they have some other functions that we don=E2=80=99t have in libc/libut= il in their libutil that might need to be ported as well). 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.