chiark / gitweb /
basic: include only what we use
[elogind.git] / src / basic / mount-util.h
index 9b36bc1453e214f09c336a37179c22230b6d9b19..7dbc2460168b248c6bf0f55443f2f79d5e903fd7 100644 (file)
 #include <fcntl.h>
 #include <mntent.h>
 #include <stdbool.h>
+#include <stdio.h>
 #include <sys/stat.h>
 #include <sys/types.h>
 
 #include "missing.h"
+#include "macro.h"
 
 int fd_is_mount_point(int fd, const char *filename, int flags);
 int path_is_mount_point(const char *path, int flags);
 
-// UNNEEDED int repeat_unmount(const char *path, int flags);
+#if 0 /// UNNEEDED by elogind
+int repeat_unmount(const char *path, int flags);
 
-// UNNEEDED int umount_recursive(const char *target, int flags);
-// UNNEEDED int bind_remount_recursive(const char *prefix, bool ro);
+int umount_recursive(const char *target, int flags);
+int bind_remount_recursive(const char *prefix, bool ro);
 
-// UNNEEDED int mount_move_root(const char *path);
+int mount_move_root(const char *path);
+#endif // 0
 
 DEFINE_TRIVIAL_CLEANUP_FUNC(FILE*, endmntent);
 #define _cleanup_endmntent_ _cleanup_(endmntentp)
 
-// UNNEEDED bool fstype_is_network(const char *fstype);
+#if 0 /// UNNEEDED by elogind
+bool fstype_is_network(const char *fstype);
+#endif // 0
 
 union file_handle_union {
         struct file_handle handle;