Subject: Re: On pw_dup(3), and development in general (was: Re: CVS commit: src/lib/libc)
To: Jaromir Dolecek <jdolecek@NetBSD.org>
From: Perry E. Metzger <email@example.com>
Date: 09/14/2003 12:51:08
Jaromir Dolecek <jdolecek@NetBSD.org> writes:
> I have the same impression and fully agree with Klaus. Please, let's
> move pw_dup(3) to libutil NOW. I see no reason to include in libc such
> rarely used utility function. Once the reentrancy/thread-safety
> changes would be in, you'd just use suitable getpwFOO_r() instead.
> Please don't add new stuff to libc, unless it's clearly vital
> functionality which can't be elsewhere.
Libutil is not intended for things like this at all -- it is for
things like login handling, pty hacking, etc. People keep throwing the
wrong sorts of things into libutil and it gets rather annoying.
I don't take a position on whether pw_dup is needed or not, but it
would certainly seem to be a libc sort of thing, not a libutil sort of