Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Jun 1997 11:10:28 +0930 (CST)
From:      Michael Smith <msmith@atrad.adelaide.edu.au>
To:        bde@zeta.org.au (Bruce Evans)
Cc:        charnier@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-bin@FreeBSD.ORG, cvs-committers@FreeBSD.ORG
Subject:   Re: cvs commit: src/bin/hostname hostname.1 hostname.c
Message-ID:  <199706040140.LAA09829@genesis.atrad.adelaide.edu.au>
In-Reply-To: <199706031643.CAA22461@godzilla.zeta.org.au> from Bruce Evans at "Jun 4, 97 02:43:14 am"

next in thread | previous in thread | raw e-mail | index | archive | help
Bruce Evans stands accused of saying:
> >  Modified files:
> >    bin/hostname         hostname.1 hostname.c 
> >  Log:
> >  /etc/netstart -> /etc/rc.network
> >  Use __progname in usage string. Change usage string to match the man page.
> 
> Please don't use __progname.  It is an undocumented internal library
> variable (for use in messages in the startup code and library).  It is
> currently misused only in ccdconfig, cdcontrol, chio, ftp, ipfw, ldconfig,
> nextboot and w.  Lite2 programs usually use a fixed name.

You should use the functions in <err.h> if you want the program name
emitted along with a custom message.

> Bruce

-- 
]] Mike Smith, Software Engineer        msmith@gsoft.com.au             [[
]] Genesis Software                     genesis@gsoft.com.au            [[
]] High-speed data acquisition and      (GSM mobile)     0411-222-496   [[
]] realtime instrument control.         (ph)          +61-8-8267-3493   [[
]] Unix hardware collector.             "Where are your PEZ?" The Tick  [[



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