mnttab.h revision 209962
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 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 17struct mnttab { 18 char *mnt_special; 19 char *mnt_mountp; 20 char *mnt_fstype; 21 char *mnt_mntopts; 22}; 23#define extmnttab mnttab 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); 28 29void statfs2mnttab(struct statfs *sfs, struct mnttab *mp); 30 31#endif /* !_OPENSOLARIS_MNTTAB_H_ */ 32