2 * <sys/mount.h> wrapper functions.
5 * Jonathan Pryor (jonpryor@vt.edu)
7 * Copyright (C) 2004 Jonathan Pryor
10 #include <sys/mount.h>
11 #include <glib/gtypes.h>
19 Mono_Posix_Syscall_mount (const char *source, const char *target,
20 const char *filesystemtype, guint64 mountflags, void *data)
22 if (Mono_Posix_FromMountFlags (mountflags, &mountflags) == -1)
26 return mount (filesystemtype, target, mountflags, data);
28 return mount (source, target, filesystemtype, (unsigned long) mountflags, data);
33 Mono_Posix_Syscall_umount (const char *source)
36 return unmount (source, MNT_FORCE);
38 return umount (source);
43 Mono_Posix_Syscall_umount2 (const char *source, gint32 flags)
46 return unmount (source, flags);
48 return umount2 (source, flags);