diff options
Diffstat (limited to 'include/fstab.h')
-rw-r--r-- | include/fstab.h | 37 |
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 + |