about summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2020-08-25 20:04:42 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2020-08-25 20:04:42 +0000
commitc43a9ae78220daadd71e00fc0596ceb839621e28 (patch)
treef263485ed0a09b31afe38be42e151cf9fc1dad9c /include
downloadlibfstab-c43a9ae78220daadd71e00fc0596ceb839621e28.tar.gz
libfstab-c43a9ae78220daadd71e00fc0596ceb839621e28.tar.xz
libfstab-c43a9ae78220daadd71e00fc0596ceb839621e28.zip
Initial commit. HEAD master
Diffstat (limited to 'include')
-rw-r--r--include/fstab.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/include/fstab.h b/include/fstab.h
new file mode 100644
index 0000000..526329e
--- /dev/null
+++ b/include/fstab.h
@@ -0,0 +1,37 @@
+#ifndef _FSTAB_H
+#define _FSTAB_H        1
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define _PATH_FSTAB "/etc/fstab"
+
+#define FSTAB_RW "rw"
+#define FSTAB_RQ "rq"
+#define FSTAB_RO "ro"
+#define FSTAB_SW "sw"
+#define FSTAB_XX "xx"
+
+struct fstab {
+	char *fs_spec;
+	char *fs_file;
+	char *fs_vfstype;
+	char *fs_mntops;
+	char const *fs_type;
+	int fs_freq;
+	int fs_passno;
+};
+
+struct fstab *getfsent (void);
+struct fstab *getfsspec (char const *);
+struct fstab *getfsfile (char const *);
+int setfsent (void);
+void endfsent (void);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+