summaryrefslogtreecommitdiffstats
path: root/mount-deprecated/mount_mntent.h
blob: 3b74215356396686ad8bb828b9afdb44935c434c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#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 */