]> CyberLeo.Net >> Repos - FreeBSD/releng/8.2.git/blob - cddl/compat/opensolaris/include/mnttab.h
Copy stable/8 to releng/8.2 in preparation for FreeBSD-8.2 release.
[FreeBSD/releng/8.2.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 umount2(p, f)   unmount(p, f)
16
17 struct mnttab {
18         char    *mnt_special;
19         char    *mnt_mountp;
20         char    *mnt_fstype;
21         char    *mnt_mntopts;
22 };
23 #define extmnttab       mnttab
24
25 int getmntany(FILE *fd, struct mnttab *mgetp, struct mnttab *mrefp);
26 int getmntent(FILE *fp, struct mnttab *mp);
27 char *hasmntopt(struct mnttab *mnt, char *opt);
28
29 void statfs2mnttab(struct statfs *sfs, struct mnttab *mp);
30
31 #endif  /* !_OPENSOLARIS_MNTTAB_H_ */