1/* 2 * Copyright (c) 1980, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 28 unchanged lines hidden (view full) --- 37 The Regents of the University of California. All rights reserved.\n"; 38#endif /* not lint */ 39 40#ifndef lint 41#if 0 42static char sccsid[] = "@(#)swapon.c 8.1 (Berkeley) 6/5/93"; 43#endif 44static const char rcsid[] = |
45 "$FreeBSD: head/sbin/swapon/swapon.c 92806 2002-03-20 17:55:10Z obrien $"; |
46#endif /* not lint */ 47 48#include <err.h> 49#include <errno.h> 50#include <fstab.h> 51#include <stdio.h> 52#include <stdlib.h> 53#include <string.h> 54#include <unistd.h> 55 56static void usage __P((void)); 57int add __P((char *name, int ignoreebusy)); 58 59int 60main(int argc, char **argv) 61{ |
62 struct fstab *fsp; 63 int stat; |
64 int ch, doall; 65 66 doall = 0; 67 while ((ch = getopt(argc, argv, "a")) != -1) 68 switch((char)ch) { 69 case 'a': 70 doall = 1; 71 break; --- 50 unchanged lines hidden --- |