Re: CVS commit: basesrc

"Perry E. Metzger" <[email protected]>
Newsgroups gmane.os.netbsd.devel.general
Message-ID <[email protected]>
Jaromir Dolecek <[email protected]> writes:
> I wonder what is the rule to decide whether stuff belongs to libc
> or libutil?

libutil is for stuff that is used commonly in a wide variety of system
daemons in abstracting system related functions. "spawn a login
shell", "get a pty and modify the utmp entry", and such are very very
much libutil sorts of things.

libc is for stuff of *general* use to a programmer, even if they're
not dealing with system related goo. "humanize_number" is very much
not a libutil thing -- same for fparseln. Both could be used in almost
any sort of program.

libutil is for system utilities -- util does not refer to the contents
of the library but to the clients of the library.

-- 
Perry E. Metzger		[email protected]
--
"Ask not what your country can force other people to do for you..."
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.