* cleanup for WARNS+1
* use .Nm correctly
This commit is contained in:
parent
241ba6ead1
commit
beb3ef1e7e
@ -1,4 +1,4 @@
|
|||||||
.\" $NetBSD: mknod.8,v 1.10 1997/06/30 17:17:56 phil Exp $
|
.\" $NetBSD: mknod.8,v 1.11 1997/09/15 03:46:27 lukem Exp $
|
||||||
.\"
|
.\"
|
||||||
.\" Copyright (c) 1980, 1991, 1993
|
.\" Copyright (c) 1980, 1991, 1993
|
||||||
.\" The Regents of the University of California. All rights reserved.
|
.\" The Regents of the University of California. All rights reserved.
|
||||||
@ -40,18 +40,18 @@
|
|||||||
.Nm mknod
|
.Nm mknod
|
||||||
.Nd build special file
|
.Nd build special file
|
||||||
.Sh SYNOPSIS
|
.Sh SYNOPSIS
|
||||||
.Nm mknod
|
.Nm
|
||||||
.Ar name
|
.Ar name
|
||||||
.Op Cm c | Cm b
|
.Op Cm c | Cm b
|
||||||
.Ar major minor
|
.Ar major minor
|
||||||
.Sh DESCRIPTION
|
.Sh DESCRIPTION
|
||||||
The
|
The
|
||||||
.Nm mknod
|
.Nm
|
||||||
command creates device special files.
|
command creates device special files.
|
||||||
Normally the shell script
|
Normally the shell script
|
||||||
.Pa /dev/MAKEDEV
|
.Pa /dev/MAKEDEV
|
||||||
is used to create special files for commonly known devices; it executes
|
is used to create special files for commonly known devices; it executes
|
||||||
.Nm mknod
|
.Nm
|
||||||
with the appropriate arguments and can make all the files required for the
|
with the appropriate arguments and can make all the files required for the
|
||||||
device.
|
device.
|
||||||
.Pp
|
.Pp
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: mknod.c,v 1.8 1995/08/11 00:08:18 jtc Exp $ */
|
/* $NetBSD: mknod.c,v 1.9 1997/09/15 03:46:31 lukem Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1989, 1993
|
* Copyright (c) 1989, 1993
|
||||||
@ -36,17 +36,17 @@
|
|||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <sys/cdefs.h>
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
static char copyright[] =
|
__COPYRIGHT("@(#) Copyright (c) 1989, 1993\n\
|
||||||
"@(#) Copyright (c) 1989, 1993\n\
|
The Regents of the University of California. All rights reserved.\n");
|
||||||
The Regents of the University of California. All rights reserved.\n";
|
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)mknod.c 8.1 (Berkeley) 6/5/93";
|
static char sccsid[] = "@(#)mknod.c 8.1 (Berkeley) 6/5/93";
|
||||||
#else
|
#else
|
||||||
static char rcsid[] = "$NetBSD: mknod.c,v 1.8 1995/08/11 00:08:18 jtc Exp $";
|
__RCSID("$NetBSD: mknod.c,v 1.9 1997/09/15 03:46:31 lukem Exp $");
|
||||||
#endif
|
#endif
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
@ -57,7 +57,8 @@ static char rcsid[] = "$NetBSD: mknod.c,v 1.8 1995/08/11 00:08:18 jtc Exp $";
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <err.h>
|
#include <err.h>
|
||||||
|
|
||||||
static void usage();
|
int main __P((int, char *[]));
|
||||||
|
static void usage __P((void));
|
||||||
|
|
||||||
int
|
int
|
||||||
main(argc, argv)
|
main(argc, argv)
|
||||||
|
Loading…
Reference in New Issue
Block a user