aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-09-20 18:15:16 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-09-20 18:15:16 -0700
commit55f85c0abaa05e88f2450311488fa88236d16146 (patch)
tree9e144933145dc034e69ce3659de887c46ee87c2e
parentc5c6b16eaec9ba60d2b5b576875304ee33db50d8 (diff)
mntent.h header
-rw-r--r--system/include/mntent.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/system/include/mntent.h b/system/include/mntent.h
new file mode 100644
index 00000000..462c6065
--- /dev/null
+++ b/system/include/mntent.h
@@ -0,0 +1,23 @@
+
+#ifndef _MNTENT_H
+#define _MNTENT_H
+
+#include <stdio.h>
+
+struct mntent {
+ char *mnt_fsname;
+ char *mnt_dir;
+ char *mnt_type;
+ char *mnt_opts;
+ int mnt_freq;
+ int mnt_passno;
+};
+
+struct mntent *getmntent(FILE *f);
+FILE *setmntent(const char *filename, const char *type);
+int addmntent(FILE *f, const struct mntent *m);
+int endmntent(FILE *f);
+char *hasmntopt(const struct mntent *m, const char *opt);
+
+#endif
+