]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - cddl/compat/opensolaris/include/mnttab.h
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
[FreeBSD/stable/10.git] / cddl / compat / opensolaris / include / mnttab.h
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_ */