date and time created 91/05/09 19:00:17 by bostic
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Fri, 10 May 1991 10:00:17 +0000 (02:00 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Fri, 10 May 1991 10:00:17 +0000 (02:00 -0800)
SCCS-vsn: sys/i386/floppy/rm/rm.c 5.1

usr/src/sys/i386/floppy/rm/rm.c [new file with mode: 0644]

diff --git a/usr/src/sys/i386/floppy/rm/rm.c b/usr/src/sys/i386/floppy/rm/rm.c
new file mode 100644 (file)
index 0000000..bcfa088
--- /dev/null
@@ -0,0 +1,27 @@
+/*-
+ * Copyright (c) 1991 The Regents of the University of California.
+ * All rights reserved.
+ *
+ * %sccs.include.redist.c%
+ */
+
+int eval;
+
+main(argc, argv)
+       int argc;
+       char **argv;
+{
+       if (*++argv && **argv == '-') {
+               err("no options available", 0);
+               _exit(1);
+       }
+       for (eval = 0; *argv; ++argv)
+               if (unlink(*argv)) {
+                       err(*argv, 1);
+                       eval = 1;
+               }
+       _exit(eval);
+}
+
+#define        PROGNAME        "rm: "
+#include "errfunction"