WARNSify, fix .Nm usage
This commit is contained in:
parent
e3e553a90c
commit
80baf83f8c
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: banner.1,v 1.1.1.1 1995/04/09 05:53:04 cgd Exp $
|
||||
.\" $NetBSD: banner.1,v 1.2 1997/10/18 12:12:38 lukem Exp $
|
||||
.\"
|
||||
.\" @(#)Copyright (c) 1995, Simon J. Gerraty.
|
||||
.\"
|
||||
|
@ -22,10 +22,10 @@
|
|||
.Nm banner
|
||||
.Nd print strings in large letters
|
||||
.Sh SYNOPSIS
|
||||
.Nm banner
|
||||
.Nm
|
||||
.Ar string ...
|
||||
.Sh DESCRIPTION
|
||||
.Nm Banner
|
||||
.Nm
|
||||
prints up to 10 chars of each
|
||||
.Ar string
|
||||
in large letters on the standard output.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: banner.c,v 1.2 1995/04/09 06:00:15 cgd Exp $ */
|
||||
/* $NetBSD: banner.c,v 1.3 1997/10/18 12:12:47 lukem Exp $ */
|
||||
|
||||
/*
|
||||
* Changes for banner(1)
|
||||
|
@ -51,35 +51,43 @@
|
|||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
static char copyright[] =
|
||||
"@(#) Copyright (c) 1983, 1993\n\
|
||||
The Regents of the University of California. All rights reserved.\n";
|
||||
__COPYRIGHT("@(#) Copyright (c) 1983, 1993\n\
|
||||
The Regents of the University of California. All rights reserved.\n");
|
||||
#endif /* not lint */
|
||||
|
||||
#ifndef lint
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)printjob.c 8.2 (Berkeley) 4/16/94";
|
||||
#else
|
||||
static char rcsid[] = "$NetBSD: banner.c,v 1.2 1995/04/09 06:00:15 cgd Exp $";
|
||||
__RCSID("$NetBSD: banner.c,v 1.3 1997/10/18 12:12:47 lukem Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "banner.h"
|
||||
|
||||
static long PW = LINELEN;
|
||||
|
||||
static int dropit __P((int));
|
||||
int main __P((int, char **));
|
||||
static void scan_out __P((int, char *, int));
|
||||
static char *scnline __P((int, char *, int));
|
||||
|
||||
/* the char gen code below is lifted from lpd */
|
||||
|
||||
static char *
|
||||
scnline(key, p, c)
|
||||
register int key;
|
||||
register char *p;
|
||||
int key;
|
||||
char *p;
|
||||
int c;
|
||||
{
|
||||
register scnwidth;
|
||||
int scnwidth;
|
||||
|
||||
/*
|
||||
* <sjg> lpd makes chars out of the letter in question.
|
||||
|
@ -123,11 +131,12 @@ dropit(c)
|
|||
|
||||
static void
|
||||
scan_out(scfd, scsp, dlm)
|
||||
int scfd, dlm;
|
||||
int scfd;
|
||||
char *scsp;
|
||||
int dlm;
|
||||
{
|
||||
register char *strp;
|
||||
register nchrs, j;
|
||||
char *strp;
|
||||
int nchrs, j;
|
||||
char outbuf[LINELEN+1], *sp, c, cc;
|
||||
int d, scnhgt;
|
||||
extern char scnkey[][HEIGHT]; /* in lpdchar.c */
|
||||
|
@ -141,7 +150,8 @@ scan_out(scfd, scsp, dlm)
|
|||
for (j = WIDTH; --j;)
|
||||
*strp++ = BACKGND;
|
||||
else
|
||||
strp = scnline(scnkey[c][scnhgt-1-d], strp, cc);
|
||||
strp = scnline(
|
||||
scnkey[(int)c][scnhgt-1-d], strp, cc);
|
||||
if (*sp == dlm || *sp == '\0' || nchrs++ >= PW/(WIDTH+1)-1)
|
||||
break;
|
||||
*strp++ = BACKGND;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: chset.c,v 1.2 1995/04/09 06:00:26 cgd Exp $ */
|
||||
/* $NetBSD: chset.c,v 1.3 1997/10/18 12:12:51 lukem Exp $ */
|
||||
|
||||
/*
|
||||
* Changes for banner(1)
|
||||
|
@ -51,11 +51,12 @@
|
|||
* SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)lpdchar.c 8.1 (Berkeley) 6/6/93";
|
||||
#else
|
||||
static char rcsid[] = "$NetBSD: chset.c,v 1.2 1995/04/09 06:00:26 cgd Exp $";
|
||||
__RCSID("$NetBSD: chset.c,v 1.3 1997/10/18 12:12:51 lukem Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: basename.1,v 1.9 1995/03/25 18:17:45 glass Exp $
|
||||
.\" $NetBSD: basename.1,v 1.10 1997/10/18 12:18:14 lukem Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1990, 1993, 1994
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -40,16 +40,17 @@
|
|||
.Dt BASENAME 1
|
||||
.Os
|
||||
.Sh NAME
|
||||
.Nm basename , dirname
|
||||
.Nm basename ,
|
||||
.Nm dirname
|
||||
.Nd return filename or directory portion of pathname
|
||||
.Sh SYNOPSIS
|
||||
.Nm basename
|
||||
.Nm
|
||||
.Ar string
|
||||
.Op Ar suffix
|
||||
.Nm dirname
|
||||
.Ar string
|
||||
.Sh DESCRIPTION
|
||||
.Nm Basename
|
||||
.Nm
|
||||
deletes any prefix ending with the last slash
|
||||
.Ql \&/
|
||||
character present in
|
||||
|
@ -60,7 +61,7 @@ if given.
|
|||
The resulting filename is written to the standard output.
|
||||
A non-existent suffix is ignored.
|
||||
.Pp
|
||||
.Nm Dirname
|
||||
.Nm dirname
|
||||
deletes the filename portion, beginning
|
||||
with the last slash
|
||||
.Ql \&/
|
||||
|
@ -76,7 +77,7 @@ to
|
|||
.Dl FOO=`dirname /usr/bin/trail`
|
||||
.Pp
|
||||
Both the
|
||||
.Nm basename
|
||||
.Nm
|
||||
and
|
||||
.Nm dirname
|
||||
utilities
|
||||
|
@ -86,7 +87,7 @@ exit 0 on success, and >0 if an error occurs.
|
|||
.Xr sh 1
|
||||
.Sh STANDARDS
|
||||
The
|
||||
.Nm basename
|
||||
.Nm
|
||||
and
|
||||
.Nm dirname
|
||||
utilities conform to
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: basename.c,v 1.9 1995/09/02 05:29:46 jtc Exp $ */
|
||||
/* $NetBSD: basename.c,v 1.10 1997/10/18 12:18:20 lukem Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1991, 1993, 1994
|
||||
|
@ -33,17 +33,17 @@
|
|||
* SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
static char copyright[] =
|
||||
"@(#) Copyright (c) 1991, 1993, 1994\n\
|
||||
The Regents of the University of California. All rights reserved.\n";
|
||||
__COPYRIGHT("@(#) Copyright (c) 1991, 1993, 1994\n\
|
||||
The Regents of the University of California. All rights reserved.\n");
|
||||
#endif /* not lint */
|
||||
|
||||
#ifndef lint
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)basename.c 8.4 (Berkeley) 5/4/95";
|
||||
#endif
|
||||
static char rcsid[] = "$NetBSD: basename.c,v 1.9 1995/09/02 05:29:46 jtc Exp $";
|
||||
__RCSID("$NetBSD: basename.c,v 1.10 1997/10/18 12:18:20 lukem Exp $");
|
||||
#endif /* not lint */
|
||||
|
||||
#include <stdio.h>
|
||||
|
@ -52,6 +52,7 @@ static char rcsid[] = "$NetBSD: basename.c,v 1.9 1995/09/02 05:29:46 jtc Exp $";
|
|||
#include <locale.h>
|
||||
#include <unistd.h>
|
||||
|
||||
int main __P((int, char **));
|
||||
void usage __P((void));
|
||||
|
||||
int
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: biff.1,v 1.3 1995/03/26 02:34:21 glass Exp $
|
||||
.\" $NetBSD: biff.1,v 1.4 1997/10/18 12:20:27 lukem Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1980, 1990, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -40,15 +40,15 @@
|
|||
.Nm biff
|
||||
.Nd "be notified if mail arrives and who it is from"
|
||||
.Sh SYNOPSIS
|
||||
.Nm biff
|
||||
.Nm
|
||||
.Op Cm ny
|
||||
.Sh DESCRIPTION
|
||||
.Nm Biff
|
||||
.Nm
|
||||
informs the system whether you want to be notified when mail arrives
|
||||
during the current terminal session.
|
||||
.Pp
|
||||
Options supported by
|
||||
.Nm biff :
|
||||
.Nm "' :
|
||||
.Bl -tag -width 4n
|
||||
.It Cm n
|
||||
Disables notification.
|
||||
|
@ -66,7 +66,7 @@ or
|
|||
.Pa \&.profile
|
||||
to be executed at each login.
|
||||
.Pp
|
||||
.Nm Biff
|
||||
.Nm
|
||||
operates asynchronously.
|
||||
For synchronous notification use the
|
||||
.Ar MAIL
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: biff.c,v 1.3 1995/03/26 02:34:22 glass Exp $ */
|
||||
/* $NetBSD: biff.c,v 1.4 1997/10/18 12:20:34 lukem Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1980, 1993
|
||||
|
@ -33,17 +33,17 @@
|
|||
* SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
static char copyright[] =
|
||||
"@(#) Copyright (c) 1980, 1993\n\
|
||||
The Regents of the University of California. All rights reserved.\n";
|
||||
__COPYRIGHT("@(#) Copyright (c) 1980, 1993\n\
|
||||
The Regents of the University of California. All rights reserved.\n");
|
||||
#endif /* not lint */
|
||||
|
||||
#ifndef lint
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)biff.c 8.1 (Berkeley) 6/6/93";
|
||||
#else
|
||||
static char rcsid[] = "$NetBSD: biff.c,v 1.3 1995/03/26 02:34:22 glass Exp $";
|
||||
__RCSID("$NetBSD: biff.c,v 1.4 1997/10/18 12:20:34 lukem Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -58,7 +58,9 @@ static char rcsid[] = "$NetBSD: biff.c,v 1.3 1995/03/26 02:34:22 glass Exp $";
|
|||
#include <unistd.h>
|
||||
|
||||
static void usage __P((void));
|
||||
int main __P((int, char **));
|
||||
|
||||
int
|
||||
main(argc, argv)
|
||||
int argc;
|
||||
char *argv[];
|
||||
|
|
Loading…
Reference in New Issue