1*1113Sbill static char *sccsid = "@(#)swapon.c 4.1 (Berkeley) 10/01/80"; 2*1113Sbill #include <stdio.h> 3*1113Sbill 4*1113Sbill #define VSWAPON 85 5*1113Sbill 6*1113Sbill main(argc, argv) 7*1113Sbill int argc; 8*1113Sbill char *argv[]; 9*1113Sbill { 10*1113Sbill int stat = 0; 11*1113Sbill 12*1113Sbill --argc, argv++; 13*1113Sbill if (argc == 0) { 14*1113Sbill fprintf(stderr, "usage: swapon name...\n"); 15*1113Sbill exit(1); 16*1113Sbill } 17*1113Sbill do { 18*1113Sbill if (syscall(VSWAPON, *argv++) == -1) { 19*1113Sbill stat = 1; 20*1113Sbill perror(argv[-1]); 21*1113Sbill } 22*1113Sbill argc--; 23*1113Sbill } while (argc > 0); 24*1113Sbill exit(stat); 25*1113Sbill } 26