[uClibc-cvs] CVS uClibc/libc/sysdeps/linux/common
CVS User andersen
andersen at codepoet.org
Sun Jan 23 11:27:02 UTC 2005
Update of /var/cvs/uClibc/libc/sysdeps/linux/common
In directory nail:/tmp/cvs-serv5714
Modified Files:
umount.c
Log Message:
When there is no umount syscall, but umount2 is available, then
try to emulate umount() using umount2()
--- /var/cvs/uClibc/libc/sysdeps/linux/common/umount.c 2005/01/16 05:19:55 1.3
+++ /var/cvs/uClibc/libc/sysdeps/linux/common/umount.c 2005/01/23 11:27:02 1.4
@@ -12,6 +12,13 @@
#ifdef __NR_umount /* Some newer archs only have umount2 */
#include <sys/mount.h>
_syscall1(int, umount, const char *, specialfile);
+#elif defined __NR_umount2
+/* No umount syscall, but umount2 is available.... Try to
+ * emulate umount() using umount2() */
+int umount(const char *special_file, int flags)
+{
+ return _syscall2(int, umount2, const char *, special_file, int, flags);
+}
#else
int umount(const char *special_file)
{
More information about the uClibc-cvs
mailing list