Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Jun 1997 09:09:46 +1100 (EDT)
From:      David Nugent <davidn@unique.usn.blaze.net.au>
To:        Bruce Evans <bde@zeta.org.au>
Cc:        charnier@FreeBSD.ORG, peter@spinner.dialix.com.au, cvs-all@FreeBSD.ORG, cvs-committers@FreeBSD.ORG, cvs-sbin@FreeBSD.ORG
Subject:   Re: cvs commit: src/sbin/init init.c
Message-ID:  <Pine.OS2.3.95.970614090438.89A-100000@sdev.usn.blaze.net.au>
In-Reply-To: <199706131345.XAA25294@godzilla.zeta.org.au>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 13 Jun 1997, Bruce Evans wrote:

> >Just as a BTW, it looks like the reason it wasn't using err(3) was that it 
> >was attempting to avoid stdio.  Calling err etc will zap this, assuming 
> >that stdio hasn't been pulled in by something else already...
> 
> Erm, it calls fprintf() in the first (compound) statement in main().
> 
> The 1.1.5 init.c really attempts to avoid stdio.  It succeeded in 1.1.5,
> but fails when linked to -current libraries.  The executable is a measly
> 112K bytes of text. It is bloated mainly by calling logwtmp(), which
> drags in gethostbyname(), which costs 88K bytes of text.  The bloat in
> logwtmp.c dates from 1996/06/17.  It is just to convert long hostnames
> to numeric addresses so that they don't get truncated when stored into
> wtmp.

Not to mention the bloat caused by including the db library due to
handling secure console in single user mode. This could be better
handled by having /sbin/sulogin as in other unices, but unfortunately
wouldn't gain anything because getcap(3) also uses it (included
because login_cap uses it).

David




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.OS2.3.95.970614090438.89A-100000>