xref: /csrg-svn/sys/i386/floppy/rm/rm.c (revision 49551)
1*49551Sbostic /*-
2*49551Sbostic  * Copyright (c) 1991 The Regents of the University of California.
3*49551Sbostic  * All rights reserved.
4*49551Sbostic  *
5*49551Sbostic  * %sccs.include.redist.c%
6*49551Sbostic  */
7*49551Sbostic 
8*49551Sbostic int eval;
9*49551Sbostic 
10*49551Sbostic main(argc, argv)
11*49551Sbostic 	int argc;
12*49551Sbostic 	char **argv;
13*49551Sbostic {
14*49551Sbostic 	if (*++argv && **argv == '-') {
15*49551Sbostic 		err("no options available", 0);
16*49551Sbostic 		_exit(1);
17*49551Sbostic 	}
18*49551Sbostic 	for (eval = 0; *argv; ++argv)
19*49551Sbostic 		if (unlink(*argv)) {
20*49551Sbostic 			err(*argv, 1);
21*49551Sbostic 			eval = 1;
22*49551Sbostic 		}
23*49551Sbostic 	_exit(eval);
24*49551Sbostic }
25*49551Sbostic 
26*49551Sbostic #define	PROGNAME	"rm: "
27*49551Sbostic #include "errfunction"
28