提交 a5dec113 编写于 作者: R Rich Felker

use umount2 syscall for umount (new targets lack old 1-arg umount)

上级 1a9a2ff7
#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);
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册