summaryrefslogtreecommitdiff
path: root/include/sys/mount.h
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2011-04-16 13:51:08 +0200
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2012-06-15 14:00:39 +0200
commit5046a84d82cd8125c981680d449f4d8c7ea5deb8 (patch)
tree1a1be59475114acc57bf2a121069d8154196d47e /include/sys/mount.h
parentc6dcc660d3133349f566c1170abd538aafd9ad76 (diff)
umount: make umount2 depend on UCLIBC_LINUX_SPECIFIC
Add hidden umount2 to be used in umount eventually. Rework umount to either use directly umount2 syscall or function. docs say, that mount and umount are also Linux specific Signed-off-by: Peter S. Mazinger <ps.m@gmx.net> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'include/sys/mount.h')
-rw-r--r--include/sys/mount.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sys/mount.h b/include/sys/mount.h
index 57d440f27..f3198e6ae 100644
--- a/include/sys/mount.h
+++ b/include/sys/mount.h
@@ -115,8 +115,11 @@ extern int mount (__const char *__special_file, __const char *__dir,
/* Unmount a filesystem. */
extern int umount (__const char *__special_file) __THROW;
+#ifdef __UCLIBC_LINUX_SPECIFIC__
/* Unmount a filesystem. Force unmounting if FLAGS is set to MNT_FORCE. */
extern int umount2 (__const char *__special_file, int __flags) __THROW;
+libc_hidden_proto(umount2)
+#endif
__END_DECLS