mirror of
https://git.musl-libc.org/git/musl
synced 2025-01-23 06:32:05 +03:00
use umount2 syscall for umount (new targets lack old 1-arg umount)
This commit is contained in:
parent
1a9a2ff7b0
commit
a5dec11306
@ -1,8 +1,7 @@
|
|||||||
#include <sys/mount.h>
|
#include <sys/mount.h>
|
||||||
#define SYSCALL_STANDALONE
|
|
||||||
#include "syscall.h"
|
#include "syscall.h"
|
||||||
|
|
||||||
int umount(const char *special)
|
int umount(const char *special)
|
||||||
{
|
{
|
||||||
return syscall1(__NR_umount, (long)special);
|
return syscall2(__NR_umount2, (long)special, 0);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user