if (mntent = getmntent(fptr)) { me.me_path = mntent->mnt_dir; me.me_type = mntent->mnt_type; if (mntent->mnt_opts && hasmntopt(mntent, MNTOPT_RO)) me.me_flags |= MEFLAG_READONLY;
if (fs_data.fd_flags & M_RONLY) me.me_flags |= MEFLAG_READONLY;
mntent_t *getmountent(fptr)	FILE *fptr;{	static mntent_t me;	struct mntent *mntent;	bzero((char *)&me, sizeof(mntent_t));	if (mntent = getmntent(fptr)) {		me.me_path = mntent->mnt_dir;		me.me_type = mntent->mnt_type;		if (mntent->mnt_opts && hasmntopt(mntent, MNTOPT_RO))			me.me_flags |= MEFLAG_READONLY;#if	defined(MNTTYPE_IGNORE)		if (strcmp(mntent->mnt_type, MNTTYPE_IGNORE) == 0)			me.me_flags |= MEFLAG_IGNORE;#endif	/* MNTTYPE_IGNORE */#if	defined(MNTTYPE_SWAP)		if (strcmp(mntent->mnt_type, MNTTYPE_SWAP) == 0)			me.me_flags |= MEFLAG_IGNORE;#endif	/* MNTTYPE_SWAP */		return(&me);	} else		return(NULL);}