149551Sbostic /*- 249551Sbostic * Copyright (c) 1991 The Regents of the University of California. 349551Sbostic * All rights reserved. 449551Sbostic * 549551Sbostic * %sccs.include.redist.c% 6*49552Sbostic * 7*49552Sbostic * @(#)rm.c 5.2 (Berkeley) 05/09/91 849551Sbostic */ 949551Sbostic 1049551Sbostic int eval; 1149551Sbostic 1249551Sbostic main(argc, argv) 1349551Sbostic int argc; 1449551Sbostic char **argv; 1549551Sbostic { 1649551Sbostic if (*++argv && **argv == '-') { 1749551Sbostic err("no options available", 0); 1849551Sbostic _exit(1); 1949551Sbostic } 2049551Sbostic for (eval = 0; *argv; ++argv) 2149551Sbostic if (unlink(*argv)) { 2249551Sbostic err(*argv, 1); 2349551Sbostic eval = 1; 2449551Sbostic } 2549551Sbostic _exit(eval); 2649551Sbostic } 2749551Sbostic 2849551Sbostic #define PROGNAME "rm: " 2949551Sbostic #include "errfunction" 30