WARNSify, fix .Nm usage

This commit is contained in:
lukem 1997-10-19 10:23:25 +00:00
parent a62207fee8
commit 22930ad0de
2 changed files with 18 additions and 16 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: nohup.1,v 1.5 1995/08/31 23:35:24 jtc Exp $
.\" $NetBSD: nohup.1,v 1.6 1997/10/19 10:23:25 lukem Exp $
.\"
.\" Copyright (c) 1989, 1990, 1993
.\" The Regents of the University of California. All rights reserved.
@ -43,12 +43,12 @@
.Nm nohup
.Nd invoke a command immune to hangups
.Sh SYNOPSIS
.Nm nohup
.Nm
.Ar utility
.Op Ar arg ...
.Sh DESCRIPTION
The
.Nm nohup
.Nm
utility invokes
.Ar command
with
@ -64,20 +64,20 @@ If standard error is a terminal, it is directed to the same place
as the standard output.
.Sh ENVIRONMENT
The following variable is utilized by
.Nm nohup .
.Nm "" .
.Bl -tag -width flag
.It Ev HOME
If the output file
.Pa nohup.out
cannot be created in the current directory, the
.Nm nohup
.Nm
utility uses the directory named by
.Ev HOME
to create the file.
.El
.Sh DIAGNOSTICS
The
.Nm nohup
.Nm
utility shall exit with one of the following values:
.Bl -tag -width Ds
.It 126
@ -88,18 +88,18 @@ was found but could not be invoked.
The
.Ar utility
could not be found or an error occurred in
.Nm nohup.
.Nm "" .
.El
.Pp
Otherwise, the exit status of
.Nm nohup
.Nm
shall be that of
.Ar utility .
.Sh SEE ALSO
.Xr signal 3
.Sh STANDARDS
The
.Nm nohup
.Nm
command is expected to be
.St -p1003.2
compatible.

View File

@ -1,4 +1,4 @@
/* $NetBSD: nohup.c,v 1.6 1995/08/31 23:35:25 jtc Exp $ */
/* $NetBSD: nohup.c,v 1.7 1997/10/19 10:23:35 lukem Exp $ */
/*
* Copyright (c) 1989 The Regents of the University of California.
@ -33,17 +33,18 @@
* SUCH DAMAGE.
*/
#include <sys/cdefs.h>
#ifndef lint
char copyright[] =
"@(#) Copyright (c) 1989 The Regents of the University of California.\n\
All rights reserved.\n";
__COPYRIGHT(
"@(#) Copyright (c) 1989 The Regents of the University of California.\n\
All rights reserved.\n");
#endif /* not lint */
#ifndef lint
#if 0
static char sccsid[] = "@(#)nohup.c 5.4 (Berkeley) 6/1/90";
#endif
static char rcsid[] = "$NetBSD: nohup.c,v 1.6 1995/08/31 23:35:25 jtc Exp $";
__RCSID("$NetBSD: nohup.c,v 1.7 1997/10/19 10:23:35 lukem Exp $");
#endif /* not lint */
#include <sys/param.h>
@ -57,8 +58,9 @@ static char rcsid[] = "$NetBSD: nohup.c,v 1.6 1995/08/31 23:35:25 jtc Exp $";
#include <string.h>
#include <errno.h>
static void dofile();
static void usage();
static void dofile __P((void));
static void usage __P((void));
int main __P((int, char **));
/* nohup shall exit with one of the following values:
126 - The utility was found but could not be invoked.