/etc/netstart -> /etc/rc.network
Use __progname in usage string. Change usage string to match the man page.
This commit is contained in:
parent
e2b60e721d
commit
ec2427b335
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=26403
@ -30,7 +30,7 @@
|
|||||||
.\" SUCH DAMAGE.
|
.\" SUCH DAMAGE.
|
||||||
.\"
|
.\"
|
||||||
.\" @(#)hostname.1 8.2 (Berkeley) 4/28/95
|
.\" @(#)hostname.1 8.2 (Berkeley) 4/28/95
|
||||||
.\" $Id$
|
.\" $Id: hostname.1,v 1.6 1997/02/22 14:03:41 peter Exp $
|
||||||
.\"
|
.\"
|
||||||
.Dd April 28, 1995
|
.Dd April 28, 1995
|
||||||
.Dt HOSTNAME 1
|
.Dt HOSTNAME 1
|
||||||
@ -47,7 +47,7 @@
|
|||||||
prints the name of the current host. The super-user can
|
prints the name of the current host. The super-user can
|
||||||
set the hostname by supplying an argument; this is usually done in the
|
set the hostname by supplying an argument; this is usually done in the
|
||||||
network initialization script
|
network initialization script
|
||||||
.Pa /etc/netstart ,
|
.Pa /etc/rc.network ,
|
||||||
normally run at boot
|
normally run at boot
|
||||||
time.
|
time.
|
||||||
.Pp
|
.Pp
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $Id: hostname.c,v 1.5 1997/02/22 14:03:42 peter Exp $
|
* $Id: hostname.c,v 1.6 1997/03/28 15:24:20 imp Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
@ -51,6 +51,8 @@ static char const sccsid[] = "@(#)hostname.c 8.1 (Berkeley) 5/31/93";
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
|
extern char *__progname;
|
||||||
|
|
||||||
void usage __P((void));
|
void usage __P((void));
|
||||||
|
|
||||||
int
|
int
|
||||||
@ -94,6 +96,6 @@ void
|
|||||||
usage()
|
usage()
|
||||||
{
|
{
|
||||||
|
|
||||||
(void)fprintf(stderr, "usage: hostname [-s] [hostname]\n");
|
(void)fprintf(stderr, "usage: %s [-s] [name-of-host]\n", __progname);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user