Subject: Re: why /bin and /sbin static
To: None <>
From: Charles M. Hannum <>
List: netbsd-users
Date: 03/18/2001 23:33:11
On Mon, Mar 19, 2001 at 08:24:39AM +0100, 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, which loads, and
goes from there.  Or loads, and that pulls in  None of this crap should be in libc in the first place.

It's insane.