summaryrefslogtreecommitdiffstats
path: root/support/include/fstab.h
diff options
context:
space:
mode:
Diffstat (limited to 'support/include/fstab.h')
-rw-r--r--support/include/fstab.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/support/include/fstab.h b/support/include/fstab.h
new file mode 100644
index 0000000..52af743
--- /dev/null
+++ b/support/include/fstab.h
@@ -0,0 +1,24 @@
+#ifndef _NFS_FSTAB_H
+#define _NFS_FSTAB_H
+
+#include "nfs_mntent.h"
+
+int mtab_is_writable(void);
+int mtab_does_not_exist(void);
+
+struct mntentchn {
+ struct mntentchn *nxt, *prev;
+ nfs_mntent_t m;
+};
+
+struct mntentchn *mtab_head (void);
+struct mntentchn *getmntoptfile (const char *file);
+struct mntentchn *getmntdirbackward (const char *dir, struct mntentchn *mc);
+struct mntentchn *getmntdevbackward (const char *dev, struct mntentchn *mc);
+
+void lock_mtab (void);
+void unlock_mtab (void);
+void update_mtab (const char *special, nfs_mntent_t *with);
+
+#endif /* _NFS_FSTAB_H */
+