Lines Matching refs:mnt

32 #include <mnt.h>
37 NoN(mnt)
55 Mnt_t mnt;
72 hp->mnt.flags = 0;
77 hp->mnt.flags |= MNT_REMOTE;
87 hp->mnt.flags |= MNT_REMOTE;
92 hp->mnt.flags |= MNT_REMOTE;
95 hp->mnt.fs = (char*)fs;
96 hp->mnt.dir = (char*)dir;
97 hp->mnt.type = (char*)type;
98 hp->mnt.options = (char*)options;
115 hp->mnt.type = hp->typ;
119 s = strcopy(hp->mnt.options = hp->opt, type);
287 return &mp->hdr.mnt;
417 return &mp->hdr.mnt;
534 register struct mntent* mnt;
536 if (mnt = getmntent(mp->fp))
538 set(&mp->hdr, mnt->mnt_fsname, mnt->mnt_dir, mnt->mnt_type, OPTIONS(mnt));
539 return &mp->hdr.mnt;
621 struct mntent* mnt;
638 mp->mnt = (struct mntent*)(((struct w_mnth*)mp->buf) + 1);
641 mp->mnt = (struct mntent*)mp->buf;
663 mp->mnt = (struct mntent*)(((struct w_mnth*)mp->buf) + 1);
665 set(&mp->hdr, mp->mnt->mnt_fsname, mp->mnt->mnt_dir, mp->mnt->mnt_type, OPTIONS(mp->mnt));
666 mp->mnt++;
667 return &mp->hdr.mnt;
674 if (*mp->mnt->mnt_fsname && *mp->mnt->mnt_dir)
681 set(&mp->hdr, mp->mnt->mnt_fsname, mp->mnt->mnt_dir, stat(mp->mnt->mnt_dir, &st) ? FS_default : strncpy(typ, fmtfs(&st), sizeof(typ) - 1), OPTIONS(mp->mnt));
683 set(&mp->hdr, mp->mnt->mnt_fsname, mp->mnt->mnt_dir, mp->mnt->mnt_type, OPTIONS(mp->mnt));
685 return &mp->hdr.mnt;
701 b = s = mp->mnt->mnt_fsname;
702 m = s + sizeof(mp->mnt->mnt_fsname) - 1;
724 b = s = mp->mnt->mnt_dir;
725 m = s + sizeof(mp->mnt->mnt_dir) - 1;
729 b = s = mp->mnt->mnt_type;
730 m = s + sizeof(mp->mnt->mnt_type) - 1;
734 b = s = mp->mnt->mnt_opts;
735 m = s + sizeof(mp->mnt->mnt_opts) - 1;
746 set(&mp->hdr, mp->mnt->mnt_fsname, mp->mnt->mnt_dir, mp->mnt->mnt_type, OPTIONS(mp->mnt));
747 return &mp->hdr.mnt;
785 mntwrite(void* handle, const Mnt_t* mnt)
788 NoP(mnt);