diff options
Diffstat (limited to 'mount/mntent.h')
-rw-r--r-- | mount/mntent.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/mount/mntent.h b/mount/mntent.h new file mode 100644 index 00000000..9b46ba08 --- /dev/null +++ b/mount/mntent.h @@ -0,0 +1,16 @@ +#include <mntent.h> /* for struct mntent */ + +#define ERR_MAX 5 + +typedef struct mntFILEstruct { + FILE *mntent_fp; + char *mntent_file; + int mntent_lineno; + int mntent_errs; + int mntent_softerrs; +} mntFILE; + +mntFILE *my_setmntent (const char *file, char *mode); +void my_endmntent (mntFILE *mfp); +int my_addmntent (mntFILE *mfp, struct mntent *mnt); +struct mntent *my_getmntent (mntFILE *mfp); |