Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 03 Sep 2007 12:41:30 -0700
From:      Tim Kientzle <kientzle@freebsd.org>
To:        Giorgos Keramidas <keramida@freebsd.org>
Cc:        Yar Tikhiy <yar@comp.chem.msu.su>, hackers@freebsd.org
Subject:   Re: Useful tools missing from /rescue
Message-ID:  <46DC636A.1060109@freebsd.org>
In-Reply-To: <20070903001803.GA8098@kobe.laptop>
References:  <20070901073440.GL85633@comp.chem.msu.su> <46DAFE5C.6070806@freebsd.org> <20070903001803.GA8098@kobe.laptop>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?46DC636A.1060109>