149551Sbostic /*- 2*63350Sbostic * Copyright (c) 1991, 1993 3*63350Sbostic * The Regents of the University of California. All rights reserved. 449551Sbostic * 549551Sbostic * %sccs.include.redist.c% 649552Sbostic * 7*63350Sbostic * @(#)rm.c 8.1 (Berkeley) 06/11/93 849551Sbostic */ 949551Sbostic 1049551Sbostic int eval; 1149551Sbostic main(argc,argv)1249551Sbosticmain(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