ubase/openbsd/umount.c
sin d4c1710911 Add umount(8)
No manpage yet.
2013-08-07 10:13:21 +01:00

16 lines
257 B
C

#include <sys/param.h>
#include <sys/mount.h>
#include <stdio.h>
#include "../ubase.h"
#include "../util.h"
int
do_umount(const char *target, int opts)
{
int flags = 0;
if (opts & UBASE_MNT_FORCE)
flags |= MNT_FORCE;
return unmount(target, flags);
}