Whamcloud - gitweb
iscan: fix the test program iscan so it builds again
[tools/e2fsprogs.git] / misc / fsck.h
index 9fdbce4..8a55fbd 100644 (file)
@@ -2,6 +2,8 @@
  * fsck.h
  */
 
+#include <time.h>
+
 #ifdef __STDC__
 #define NOARGS void
 #else
@@ -9,6 +11,13 @@
 #define const
 #endif
 
+#ifdef __GNUC__
+#define FSCK_ATTR(x) __attribute__(x)
+#else
+#define FSCK_ATTR(x)
+#endif
+
+
 #ifndef DEFAULT_FSTYPE
 #define DEFAULT_FSTYPE "ext2"
 #endif
@@ -25,7 +34,7 @@
 #define EXIT_LIBRARY     128
 
 /*
- * Internal structure for mount tabel entries.
+ * Internal structure for mount table entries.
  */
 
 struct fs_info {
@@ -57,5 +66,8 @@ struct fsck_instance {
        struct fsck_instance *next;
 };
 
-extern char *base_device(char *device);
+extern char *base_device(const char *device);
+extern const char *identify_fs(const char *fs_name, const char *fs_types);
 
+/* ismounted.h */
+extern int is_mounted(const char *file);