1/* $FreeBSD: head/cddl/compat/opensolaris/include/mnttab.h 185029 2008-11-17 20:49:29Z pjd $ */
| 1/* $FreeBSD: head/cddl/compat/opensolaris/include/mnttab.h 209962 2010-07-12 23:49:04Z mm $ */
|
2 3#ifndef _OPENSOLARIS_MNTTAB_H_ 4#define _OPENSOLARIS_MNTTAB_H_ 5
| 2 3#ifndef _OPENSOLARIS_MNTTAB_H_ 4#define _OPENSOLARIS_MNTTAB_H_ 5
|
| 6#include <sys/param.h> 7#include <sys/mount.h> 8
|
6#include <stdio.h> 7#include <paths.h> 8
| 9#include <stdio.h> 10#include <paths.h> 11
|
9#define MNTTAB _PATH_DEVNULL
| 12#define MNTTAB _PATH_DEVZERO
|
10#define MNT_LINE_MAX 1024 11 12#define umount2(p, f) unmount(p, f) 13 14struct mnttab { 15 char *mnt_special; 16 char *mnt_mountp; 17 char *mnt_fstype; 18 char *mnt_mntopts; 19};
| 13#define MNT_LINE_MAX 1024 14 15#define umount2(p, f) unmount(p, f) 16 17struct mnttab { 18 char *mnt_special; 19 char *mnt_mountp; 20 char *mnt_fstype; 21 char *mnt_mntopts; 22};
|
| 23#define extmnttab mnttab
|
20 21int getmntany(FILE *fd, struct mnttab *mgetp, struct mnttab *mrefp);
| 24 25int getmntany(FILE *fd, struct mnttab *mgetp, struct mnttab *mrefp);
|
| 26int getmntent(FILE *fp, struct mnttab *mp); 27char *hasmntopt(struct mnttab *mnt, char *opt);
|
22
| 28
|
| 29void statfs2mnttab(struct statfs *sfs, struct mnttab *mp); 30
|
23#endif /* !_OPENSOLARIS_MNTTAB_H_ */
| 31#endif /* !_OPENSOLARIS_MNTTAB_H_ */
|