1178414Sjb/* $FreeBSD: releng/11.0/cddl/compat/opensolaris/include/mnttab.h 219089 2011-02-27 19:41:40Z pjd $ */
2178414Sjb
3168404Spjd#ifndef	_OPENSOLARIS_MNTTAB_H_
4168404Spjd#define	_OPENSOLARIS_MNTTAB_H_
5168404Spjd
6209962Smm#include <sys/param.h>
7209962Smm#include <sys/mount.h>
8209962Smm
9168404Spjd#include <stdio.h>
10168404Spjd#include <paths.h>
11168404Spjd
12209962Smm#define	MNTTAB		_PATH_DEVZERO
13168404Spjd#define	MNT_LINE_MAX	1024
14168404Spjd
15219089Spjd#define	MS_OVERLAY	0x0
16219089Spjd#define	MS_NOMNTTAB	0x0
17219089Spjd#define	MS_RDONLY	0x1
18219089Spjd
19185029Spjd#define	umount2(p, f)	unmount(p, f)
20185029Spjd
21168404Spjdstruct mnttab {
22168404Spjd	char	*mnt_special;
23168404Spjd	char	*mnt_mountp;
24168404Spjd	char	*mnt_fstype;
25168404Spjd	char	*mnt_mntopts;
26168404Spjd};
27209962Smm#define	extmnttab	mnttab
28168404Spjd
29168404Spjdint getmntany(FILE *fd, struct mnttab *mgetp, struct mnttab *mrefp);
30209962Smmint getmntent(FILE *fp, struct mnttab *mp);
31209962Smmchar *hasmntopt(struct mnttab *mnt, char *opt);
32168404Spjd
33209962Smmvoid statfs2mnttab(struct statfs *sfs, struct mnttab *mp);
34209962Smm
35168404Spjd#endif	/* !_OPENSOLARIS_MNTTAB_H_ */
36