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
2 changed files with 15 additions and 12 deletions

View File

@ -30,7 +30,7 @@
.\" SUCH DAMAGE.
.\"
.\" 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
.Dt SAVECORE 8
@ -53,13 +53,13 @@ and enters a reboot message and information about the core dump into
the system log.
.Pp
The options are as follows:
.Bl -tag -width directory
.Bl -tag -width indent
.It Fl c
Clears the dump, so that future invocations of
.Nm savecore
Clear the dump, so that future invocations of
.Nm
will ignore it.
.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.
.It Fl N
Use
@ -67,9 +67,9 @@ Use
as the kernel instead of the running kernel (as determined from
.Xr getbootfile 3 ).
.It Fl v
Prints out some additional debugging information.
Print out some additional debugging information.
.It Fl z
Compresses the core dump and kernel (see
Compress the core dump and kernel (see
.Xr compress 1 ).
.El
.Pp
@ -83,7 +83,7 @@ and the system in
The ``#'' is the number from the first line of the file
.Ar directory Ns Pa /bounds ,
and it is incremented and stored back into the file each time
.Nm savecore
.Nm
successfully runs.
.Pp
.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.
.Pp
If
.Nm savecore
.Nm
successfully copies the kernel and the core dump, the core dump is cleared
so that future invocations of
.Nm savecore
.Nm
will ignore it.
.Pp
.Nm Savecore

View File

@ -32,20 +32,23 @@
*/
#ifndef lint
static char copyright[] =
static const char copyright[] =
"@(#) Copyright (c) 1986, 1992, 1993\n\
The Regents of the University of California. All rights reserved.\n";
#endif /* not lint */
#ifndef lint
#if 0
static char sccsid[] = "@(#)savecore.c 8.3 (Berkeley) 1/2/94";
#endif
static const char rcsid[] =
"$Id$";
#endif /* not lint */
#include <sys/param.h>
#include <sys/stat.h>
#include <sys/mount.h>
#include <sys/syslog.h>
#include <sys/time.h>
#include <vm/vm.h>
#include <vm/vm_param.h>