diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2020-05-08 09:30:18 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2020-05-08 17:19:13 -0300 |
commit | e1b871e25f3add3b63d465694b6731d95cafb299 (patch) | |
tree | f105d75639a0adb1faa348dbafaae1b944269e0d /sysdeps/unix/sysv/linux/umount.c | |
parent | 9f6bd1f6057e57cce9b07844c28f15859ab15d49 (diff) | |
download | glibc-e1b871e25f3add3b63d465694b6731d95cafb299.tar.gz glibc-e1b871e25f3add3b63d465694b6731d95cafb299.tar.xz glibc-e1b871e25f3add3b63d465694b6731d95cafb299.zip |
linux: Remove assembly umount2 implementation
Only alpha and ia64 do not support __NR_umount2 (defined as __NR_umount), but recent kernel fixes (74cd2184833f for ia64, and 12b57c5c70f39 for alpha) add the required alias. Checked with a build against all affected ABIs. Reviewed-by: Florian Weimer <fweimer@redhat.com>
Diffstat (limited to 'sysdeps/unix/sysv/linux/umount.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/umount.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sysdeps/unix/sysv/linux/umount.c b/sysdeps/unix/sysv/linux/umount.c index ab6a20f596..2a75760dfa 100644 --- a/sysdeps/unix/sysv/linux/umount.c +++ b/sysdeps/unix/sysv/linux/umount.c @@ -16,12 +16,10 @@ License along with the GNU C Library. If not, see <https://www.gnu.org/licenses/>. */ -/* Since the generic Linux syscall ABI doesn't have an oldumount system call, - do what the kernel does down here. */ +#include <sys/mount.h> +#include <sysdep.h> -extern long int __umount2 (const char *name, int flags); - -long int +int __umount (const char *name) { return __umount2 (name, 0); |