blob: 3b74215356396686ad8bb828b9afdb44935c434c [file] [log] [blame]
#ifndef MOUNT_MNTENT_H
#define MOUNT_MNTENT_H
struct my_mntent {
const char *mnt_fsname;
const char *mnt_dir;
const char *mnt_type;
const char *mnt_opts;
int mnt_freq;
int mnt_passno;
};
#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 my_mntent *mnt);
struct my_mntent *my_getmntent (mntFILE *mfp);
#endif /* MOUNT_MNTENT_H */