Lines Matching defs:mnt
90 mnttabscan(FILE *mnttabp, struct mntent *mnt)
103 mnt->mnt_fsname = mntstr(&cp);
106 mnt->mnt_dir = mntstr(&cp);
109 mnt->mnt_type = mntstr(&cp);
112 mnt->mnt_opts = mntstr(&cp);
115 mnt->mnt_freq = mntdigit(&cp);
118 mnt->mnt_passno = mntdigit(&cp);
168 addmntent(FILE *mnttabp, struct mntent *mnt)
172 if (mnt == (struct mntent *)0)
174 if (mnt->mnt_fsname == NULL || mnt->mnt_dir == NULL ||
175 mnt->mnt_type == NULL || mnt->mnt_opts == NULL)
178 mntprtent(mnttabp, mnt);
202 hasmntopt(struct mntent *mnt, char *opt)
212 strcpy(tmpopts, mnt->mnt_opts);
217 return (f - tmpopts + mnt->mnt_opts);
223 mntprtent(FILE *mnttabp, struct mntent *mnt)
226 mnt->mnt_fsname,
227 mnt->mnt_dir,
228 mnt->mnt_type,
229 mnt->mnt_opts,
230 mnt->mnt_freq,
231 mnt->mnt_passno);