Subject: Re: CVS commit: basesrc
To: Jaromir Dolecek <>
From: Perry E. Metzger <>
List: tech-userlevel
Date: 08/12/2002 10:23:52
Jaromir Dolecek <> 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
"Ask not what your country can force other people to do for you..."