[RFC] importing e* (embolic, estrdup, etc) functions from NetBSD (libc/libutil or libnetbsd)?

Ed Maste emaste at freebsd.org
Mon Oct 19 20:04:19 UTC 2015


On 19 October 2015 at 15:14, NGie Cooper <yaneurabeya at gmail.com> 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 utilities (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 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.


More information about the freebsd-arch mailing list