Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Jun 1997 23:45:29 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        charnier@freebsd.org, peter@spinner.dialix.com.au
Cc:        cvs-all@freebsd.org, cvs-committers@freebsd.org, cvs-sbin@freebsd.org
Subject:   Re: cvs commit: src/sbin/init init.c
Message-ID:  <199706131345.XAA25294@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>>   Modified files:
>>     sbin/init            init.c 
>>   Log:
>>   Use err(3).
>>   
>>   Revision  Changes    Path
>>   1.17      +7 -8      src/sbin/init/init.c
>
>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.

Bruce



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