diff options
-rw-r--r-- | system/include/mntent.h | 23 |
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 + |