Useful tools missing from /rescue
Tim Kientzle
kientzle at freebsd.org
Mon Sep 3 12:41:49 PDT 2007
Giorgos Keramidas wrote:
>
> ... [chown] is still almost 4x the size of chmod:
>
> $ ls -ld chown
> -rwxrwxr-x 1 keramida users - 550624 Sep 3 03:06 chown
> $ ls -ld chmod
> -rwxrwxr-x 1 keramida users - 165884 Sep 3 03:08 chmod
getpwuid() pulls in DNS, NIS, and a bunch of other network
routines, which are quite large. chmod doesn't need to
look up user or group names.
Tim Kientzle
P.S. Interesting experiment: for every function in libc,
create a statically linked and stripped binary that references
that one function and look at the sizes.
More information about the freebsd-hackers
mailing list