xref: /trueos/cddl/compat/opensolaris/include/mnttab.h (revision 8fe640108653f13042f1b15213769e338aa524f6)
1 /* $FreeBSD$ */
2 
3 #ifndef	_OPENSOLARIS_MNTTAB_H_
4 #define	_OPENSOLARIS_MNTTAB_H_
5 
6 #include <sys/param.h>
7 #include <sys/mount.h>
8 
9 #include <stdio.h>
10 #include <paths.h>
11 
12 #define	MNTTAB		_PATH_DEVZERO
13 #define	MNT_LINE_MAX	1024
14 
15 #define	MS_OVERLAY	0x0
16 #define	MS_NOMNTTAB	0x0
17 #define	MS_RDONLY	0x1
18 
19 #define	umount2(p, f)	unmount(p, f)
20 
21 struct mnttab {
22 	char	*mnt_special;
23 	char	*mnt_mountp;
24 	char	*mnt_fstype;
25 	char	*mnt_mntopts;
26 };
27 #define	extmnttab	mnttab
28 
29 int getmntany(FILE *fd, struct mnttab *mgetp, struct mnttab *mrefp);
30 int getmntent(FILE *fp, struct mnttab *mp);
31 char *hasmntopt(struct mnttab *mnt, char *opt);
32 
33 void statfs2mnttab(struct statfs *sfs, struct mnttab *mp);
34 
35 #endif	/* !_OPENSOLARIS_MNTTAB_H_ */
36