Subject: Re: why /bin and /sbin static
To: None <email@example.com>
From: Charles M. Hannum <firstname.lastname@example.org>
Date: 03/18/2001 23:33:11
On Mon, Mar 19, 2001 at 08:24:39AM +0100, email@example.com wrote:
> i still cant understand why such simple program like df for example needs
> OVER 100kB of library code. good written accounting software fits in few
> hundreds kB!
Bad example. B-)
-r-xr-sr-x 1 root operator 70884 Jan 22 19:35 /bin/df
The problem with things like ls(1) is more complex. Once you start
dealing with user names, you have to pull in all of DB, which is huge,
plus the rest of nsswitch stuff, which BTW includes YP and RPC, and the
message catalog system, and...
This stuff should be in separate, dynamically loaded, libraries. You
use getpwman(3), it loads libnsswitch_db.so, which loads libdb.so, and
goes from there. Or loads libnsswitch_yp.so, and that pulls in
librpc.so. None of this crap should be in libc in the first place.