Correct use of .Nm, add rcsid, remove unused #include.

This commit is contained in:
Philippe Charnier 1998-07-28 06:38:57 +00:00
parent 90100551e6
commit f9b52c93a5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=37909
2 changed files with 15 additions and 12 deletions

View File

@ -30,7 +30,7 @@
.\" SUCH DAMAGE. .\" SUCH DAMAGE.
.\" .\"
.\" From: @(#)savecore.8 8.1 (Berkeley) 6/5/93 .\" From: @(#)savecore.8 8.1 (Berkeley) 6/5/93
.\" $Id$ .\" $Id: savecore.8,v 1.6 1997/02/22 14:33:14 peter Exp $
.\" .\"
.Dd September 23, 1994 .Dd September 23, 1994
.Dt SAVECORE 8 .Dt SAVECORE 8
@ -53,13 +53,13 @@ and enters a reboot message and information about the core dump into
the system log. the system log.
.Pp .Pp
The options are as follows: The options are as follows:
.Bl -tag -width directory .Bl -tag -width indent
.It Fl c .It Fl c
Clears the dump, so that future invocations of Clear the dump, so that future invocations of
.Nm savecore .Nm
will ignore it. will ignore it.
.It Fl f .It Fl f
Forces a dump to be taken even if the dump doesn't appear correct or there Force a dump to be taken even if the dump doesn't appear correct or there
is insufficient disk space. is insufficient disk space.
.It Fl N .It Fl N
Use Use
@ -67,9 +67,9 @@ Use
as the kernel instead of the running kernel (as determined from as the kernel instead of the running kernel (as determined from
.Xr getbootfile 3 ). .Xr getbootfile 3 ).
.It Fl v .It Fl v
Prints out some additional debugging information. Print out some additional debugging information.
.It Fl z .It Fl z
Compresses the core dump and kernel (see Compress the core dump and kernel (see
.Xr compress 1 ). .Xr compress 1 ).
.El .El
.Pp .Pp
@ -83,7 +83,7 @@ and the system in
The ``#'' is the number from the first line of the file The ``#'' is the number from the first line of the file
.Ar directory Ns Pa /bounds , .Ar directory Ns Pa /bounds ,
and it is incremented and stored back into the file each time and it is incremented and stored back into the file each time
.Nm savecore .Nm
successfully runs. successfully runs.
.Pp .Pp
.Nm Savecore .Nm Savecore
@ -97,10 +97,10 @@ filesystem after the copies were made would be less than the number
in the first line of this file, the copies are not attempted. in the first line of this file, the copies are not attempted.
.Pp .Pp
If If
.Nm savecore .Nm
successfully copies the kernel and the core dump, the core dump is cleared successfully copies the kernel and the core dump, the core dump is cleared
so that future invocations of so that future invocations of
.Nm savecore .Nm
will ignore it. will ignore it.
.Pp .Pp
.Nm Savecore .Nm Savecore

View File

@ -32,20 +32,23 @@
*/ */
#ifndef lint #ifndef lint
static char copyright[] = static const char copyright[] =
"@(#) Copyright (c) 1986, 1992, 1993\n\ "@(#) Copyright (c) 1986, 1992, 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
static char sccsid[] = "@(#)savecore.c 8.3 (Berkeley) 1/2/94"; static char sccsid[] = "@(#)savecore.c 8.3 (Berkeley) 1/2/94";
#endif
static const char rcsid[] =
"$Id$";
#endif /* not lint */ #endif /* not lint */
#include <sys/param.h> #include <sys/param.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/mount.h> #include <sys/mount.h>
#include <sys/syslog.h> #include <sys/syslog.h>
#include <sys/time.h>
#include <vm/vm.h> #include <vm/vm.h>
#include <vm/vm_param.h> #include <vm/vm_param.h>