diff options
Diffstat (limited to 'usr/include/mntent.h')
-rw-r--r-- | usr/include/mntent.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/usr/include/mntent.h b/usr/include/mntent.h new file mode 100644 index 0000000..104f35e --- /dev/null +++ b/usr/include/mntent.h @@ -0,0 +1,21 @@ +#ifndef _MNTENT_H +#define _MNTENT_H 1 + +#define MNTTYPE_SWAP "swap" + +struct mntent { + char *mnt_fsname; /* name of mounted file system */ + char *mnt_dir; /* file system path prefix */ + char *mnt_type; /* mount type (see mntent.h) */ + char *mnt_opts; /* mount options (see mntent.h) */ + int mnt_freq; /* dump frequency in days */ + int mnt_passno; /* pass number on parallel fsck */ +}; + +extern FILE *setmntent(const char *, const char *); + +extern struct mntent *getmntent(FILE *); + +extern int endmntent(FILE *fp); + +#endif /* mntent.h */ |