Lines Matching defs:mnt
98 struct mnttab *mnt;
122 mnt = (struct mnttab *)xmalloc(sizeof (*mnt));
123 mnt->mnt_fsname = mntstrdup(vfs.vfs_special);
124 mnt->mnt_dir = mntstrdup(vfs.vfs_mountp);
125 mnt->mnt_type = mntstrdup(vfs.vfs_fstype);
126 mnt->mnt_opts = mntstrdup(vfs.vfs_mntopts);
139 pm->pm_mnt = mnt;
166 allocmntent(mnt)
167 struct mntent *mnt;
171 new = (struct mntent *)xmalloc(sizeof (*mnt));
172 new->mnt_fsname = mntstrdup(mnt->mnt_fsname); /* mnt_special */
173 new->mnt_dir = mntstrdup(mnt->mnt_dir); /* mnt_mountp */
174 new->mnt_type = mntstrdup(mnt->mnt_type); /* mnt_fstype */
175 new->mnt_opts = mntstrdup(mnt->mnt_opts); /* mnt_mntopts */
201 struct mntent *mnt;
210 while (mnt = mygetmntent(tp, tablename)) {
211 if (mnt->mnt_type == (char *)0 ||
212 strcmp(mnt->mnt_type, MNTTYPE_42) != 0)
215 mnt = allocmntent(mnt);
227 pm->pm_mnt = mnt;
253 struct mntent *mnt;
261 mnt = pm->pm_mnt;
262 if (strcmp(mnt->mnt_dir, key) == 0)
264 if (strcmp(mnt->mnt_fsname, key) == 0)
266 if ((s = rawname(mnt->mnt_fsname)) != NULL &&
270 gotreal = realpath(mnt->mnt_dir, path);
274 if (*mnt->mnt_fsname == '/' &&
275 strcmp(mnt->mnt_fsname + 1, key) == 0)
277 if (*mnt->mnt_dir == '/' &&
278 strcmp(mnt->mnt_dir + 1, key) == 0)
284 if (s != NULL && s != mnt->mnt_fsname)
289 if (s != NULL && s != mnt->mnt_fsname)
296 if (lf_ismounted(mnt->mnt_fsname, mnt->mnt_dir) > 0)
297 return (mnt);
299 first = mnt;