[11] in Release_Engineering
reduced executables
daemon@ATHENA.MIT.EDU (probe@ATHENA.MIT.EDU)
Tue Jun 28 01:56:56 1988
From: <probe@ATHENA.MIT.EDU>
Date: Tue, 28 Jun 88 01:56:23 EDT
To: geer@ATHENA.MIT.EDU, shanzer@ATHENA.MIT.EDU, don@ATHENA.MIT.EDU,
Reply-To: Richard Basch <probe@ATHENA.MIT.EDU>
I have just made a set of:
/bin/mkdir
/bin/rmdir
/etc/mknod
that are all reduced from 34k to 10k. The previous versions used printf()
and fprintf() which are extremly wasteful. My hacked versions use
write().
Also, one complaint I have about the old versions is that they are
inconsistent in their usage messages. Half of the time they use argv[0]
and the other half, they use the hardcoded name, ie. "mkdir". My
versions just have hard-coded names, though it is just as easy to
implement the other method as well.
-Richard