ubase/linux/umount.c

15 lines
234 B
C
Raw Normal View History

2013-08-07 08:52:10 +00:00
#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 umount2(target, flags);
}