about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/umount2.S
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-08-20 19:16:48 +0000
committerUlrich Drepper <drepper@redhat.com>1998-08-20 19:16:48 +0000
commit7934cc16733720b3eb61ca83e22c62a8ffd9c644 (patch)
tree00c4a04ee24035ceda6daf51a522e707feb5f6df /sysdeps/unix/sysv/linux/umount2.S
parentdf777c40c1d8bc15dcc71a7da183f2a2c99bda62 (diff)
downloadglibc-7934cc16733720b3eb61ca83e22c62a8ffd9c644.tar.gz
glibc-7934cc16733720b3eb61ca83e22c62a8ffd9c644.tar.xz
glibc-7934cc16733720b3eb61ca83e22c62a8ffd9c644.zip
Update.
1998-08-20 19:14  Ulrich Drepper  <drepper@cygnus.com>

	* sysdeps/unix/sysv/linux/Makefile [subdirs=misc] (sysdeps_routines):
	Add umount and umount2.
	* sysdeps/unix/sysv/linux/syscalls.list: Remove umount.
	* sysdeps/unix/sysv/linux/umount.S: New file.
	* sysdeps/unix/sysv/linux/umount2.S: New file.
	* sysdeps/unix/sysv/linux/sys/mount.h: Declare umount2.
	Define MNT_FORCE.
Diffstat (limited to 'sysdeps/unix/sysv/linux/umount2.S')
-rw-r--r--sysdeps/unix/sysv/linux/umount2.S13
1 files changed, 13 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/umount2.S b/sysdeps/unix/sysv/linux/umount2.S
new file mode 100644
index 0000000000..92241bbf97
--- /dev/null
+++ b/sysdeps/unix/sysv/linux/umount2.S
@@ -0,0 +1,13 @@
+/* umount system call with two parameters.  */
+
+#include <sysdep.h>
+#if defined __NR_oldumount || defined __NR_umount2
+#ifdef __NR_oldumount
+PSEUDO (__umount2, umount, 2)
+#else
+PSEUDO (__umount2, umount2, 2)
+#endif
+	ret
+PSEUDO_END(__umount2)
+weak_alias (__umount2, umount2)
+#endif