.Nm swapon -> .Nm.

Sort #includes. Add rcsid.
This commit is contained in:
Philippe Charnier 1998-08-03 06:35:01 +00:00
parent 0ae352daa7
commit e798a806ce
2 changed files with 13 additions and 14 deletions

View File

@ -30,7 +30,7 @@
.\" SUCH DAMAGE. .\" SUCH DAMAGE.
.\" .\"
.\" @(#)swapon.8 8.1 (Berkeley) 6/5/93 .\" @(#)swapon.8 8.1 (Berkeley) 6/5/93
.\" $Id: swapon.8,v 1.8 1998/01/25 17:28:52 steve Exp $ .\" $Id: swapon.8,v 1.9 1998/02/01 06:46:37 steve Exp $
.\" .\"
.Dd June 5, 1993 .Dd June 5, 1993
.Dt SWAPON 8 .Dt SWAPON 8
@ -50,14 +50,14 @@ are to take place.
The system begins by swapping and paging on only a single device The system begins by swapping and paging on only a single device
so that only one disk is required at bootstrap time. so that only one disk is required at bootstrap time.
Calls to Calls to
.Nm swapon .Nm
normally occur in the system multi-user initialization file normally occur in the system multi-user initialization file
.Pa /etc/rc .Pa /etc/rc
making all swap devices available, so that the paging and swapping making all swap devices available, so that the paging and swapping
activity is interleaved across several devices. activity is interleaved across several devices.
.Pp .Pp
Normally, the first form is used: Normally, the first form is used:
.Bl -tag -width Ds .Bl -tag -width indent
.It Fl a .It Fl a
All devices marked as ``sw'' All devices marked as ``sw''
swap devices in swap devices in

View File

@ -29,27 +29,28 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE. * SUCH DAMAGE.
*
* $Id$
*/ */
#ifndef lint #ifndef lint
static char copyright[] = static const char copyright[] =
"@(#) Copyright (c) 1980, 1993\n\ "@(#) Copyright (c) 1980, 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[] = "@(#)swapon.c 8.1 (Berkeley) 6/5/93"; static char sccsid[] = "@(#)swapon.c 8.1 (Berkeley) 6/5/93";
#endif
static const char rcsid[] =
"$Id$";
#endif /* not lint */ #endif /* not lint */
#include <fstab.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <err.h> #include <err.h>
#include <errno.h>
#include <fstab.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
static void usage __P((void)); static void usage __P((void));
int add __P((char *name, int ignoreebusy)); int add __P((char *name, int ignoreebusy));
@ -57,8 +58,6 @@ int add __P((char *name, int ignoreebusy));
int int
main(int argc, char **argv) main(int argc, char **argv)
{ {
extern char *optarg;
extern int optind;
register struct fstab *fsp; register struct fstab *fsp;
register int stat; register int stat;
int ch, doall; int ch, doall;