diff options
author | Rich Felker <dalias@aerifal.cx> | 2011-02-13 21:28:43 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2011-02-13 21:28:43 -0500 |
commit | a5dec11306d7988ec136bd86143591257dd3c56f (patch) | |
tree | ca0fe3f828cba11f91ed3980406b0b8813e03d86 /src/linux/umount.c | |
parent | 1a9a2ff7b0daf99100db53440a0b18b2801566ca (diff) | |
download | musl-a5dec11306d7988ec136bd86143591257dd3c56f.tar.gz musl-a5dec11306d7988ec136bd86143591257dd3c56f.tar.xz musl-a5dec11306d7988ec136bd86143591257dd3c56f.zip |
use umount2 syscall for umount (new targets lack old 1-arg umount)
Diffstat (limited to 'src/linux/umount.c')
-rw-r--r-- | src/linux/umount.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/linux/umount.c b/src/linux/umount.c index c35f994d..f709b33a 100644 --- a/src/linux/umount.c +++ b/src/linux/umount.c @@ -1,8 +1,7 @@ #include <sys/mount.h> -#define SYSCALL_STANDALONE #include "syscall.h" int umount(const char *special) { - return syscall1(__NR_umount, (long)special); + return syscall2(__NR_umount2, (long)special, 0); } |