previously, it was pretty much random which one of these trees a given function appeared in. they have now been organized into: src/linux: non-POSIX linux syscalls (possibly shard with other nixen) src/legacy: various obsolete/legacy functions, mostly wrappers src/misc: still mostly uncategorized; some misc POSIX, some nonstd src/crypt: crypt hash functions further cleanup will be done later.
17 lines
393 B
C
17 lines
393 B
C
#include <sys/mount.h>
|
|
#include "syscall.h"
|
|
|
|
int mount(const char *special, const char *dir, const char *fstype, unsigned long flags, const void *data)
|
|
{
|
|
return syscall(SYS_mount, special, dir, fstype, flags, data);
|
|
}
|
|
|
|
int umount(const char *special)
|
|
{
|
|
return syscall(SYS_umount2, special, 0);
|
|
}
|
|
|
|
int umount2(const char *special, int flags)
|
|
{
|
|
return syscall(SYS_umount2, special, flags);
|
|
}
|