Bug 43811

Summary: 'sleep' is too big
Product: Base System Reporter: kientzle
Component: binAssignee: njl
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description kientzle 2002-10-08 05:20:00 UTC
Sleep uses getopt() and printf(), which
add over 35k.  Neither is needed.
The following patch reduces /bin/sleep
from 45k to just over 9k.

Fix: Following patch reduces /bin/sleep to just
over 9k.  Only functional difference:  error
message is worded differently if an invalid
option is specified.
How-To-Repeat: ls -l /bin/sleep
<gasp in amazement>
Comment 1 njl freebsd_committer freebsd_triage 2002-11-24 00:10:13 UTC
State Changed
From-To: open->closed

Committed patch to do essentially this.  sleep is now 19248 bytes.  More to 
come with atexit() fixes. 


Comment 2 njl freebsd_committer freebsd_triage 2002-11-24 00:10:13 UTC
Responsible Changed
From-To: freebsd-bugs->njl

I'm working with tim on this