xref: /original-bsd/sys/i386/floppy/umount/umount.c (revision 3705696b)
1 /*-
2  * Copyright (c) 1991, 1993
3  *	The Regents of the University of California.  All rights reserved.
4  *
5  * %sccs.include.redist.c%
6  *
7  *	@(#)umount.c	8.1 (Berkeley) 06/11/93
8  */
9 
10 #include <sys/param.h>
11 #include <sys/mount.h>
12 
13 int eval;
14 
15 main(argc, argv)
16 	int argc;
17 	char **argv;
18 {
19 	if (*++argv && **argv == '-') {
20 		err("no options available", 0);
21 		_exit(1);
22 	}
23 	for (eval = 0; *argv; ++argv)
24 		if (unmount(*argv, MNT_NOFORCE)) {
25 			err(*argv, 1);
26 			eval = 1;
27 		}
28 	_exit(eval);
29 }
30 
31 #define	PROGNAME	"umount: "
32 #include "errfunction"
33