Re: Useful tools missing from /rescue
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.
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
討論串 (同標題文章)
完整討論串 (本文為第 14 之 21 篇):