[PATCH] umount: added common implementation for architectures without __NR_umount
Enrico Scholz <[email protected]> Sun, 20 Feb 2011 16:16:39 +0100
| Newsgroups | gmane.linux.lib.dietlibc |
|---|---|
| Message-ID | <1298215004-28546-3-git-send-email-enrico.scholz@informatik.tu-chemnitz.de> |
Signed-off-by: Enrico Scholz <[email protected]> --- lib/__umount.c | 9 +++++++++ syscalls.s/umount.S | 2 ++ 2 files changed, 11 insertions(+), 0 deletions(-) create mode 100644 lib/__umount.c diff --git a/lib/__umount.c b/lib/__umount.c new file mode 100644 index 0000000..24bb220 --- /dev/null +++ b/lib/__umount.c @@ -0,0 +1,9 @@ +#include <sys/mount.h> +#include "syscalls.h" + +#ifndef __NR_umount +int umount(const char *target) +{ + return umount2(target, 0); +} +#endif diff --git a/syscalls.s/umount.S b/syscalls.s/umount.S index 4a423d9..00278be 100644 --- a/syscalls.s/umount.S +++ b/syscalls.s/umount.S @@ -1,3 +1,5 @@ #include "syscalls.h" +#ifdef __NR_umount syscall(umount,umount) +#endif -- 1.7.4