Lines Matching refs:mnt
22 struct mntent *getmntent_r(FILE *f, struct mntent *mnt, char *linebuf, int buflen) in getmntent_r() argument
26 mnt->mnt_freq = 0; in getmntent_r()
27 mnt->mnt_passno = 0; in getmntent_r()
44 &mnt->mnt_freq, &mnt->mnt_passno); in getmntent_r()
52 mnt->mnt_fsname = linebuf+n[0]; in getmntent_r()
53 mnt->mnt_dir = linebuf+n[2]; in getmntent_r()
54 mnt->mnt_type = linebuf+n[4]; in getmntent_r()
55 mnt->mnt_opts = linebuf+n[6]; in getmntent_r()
57 return mnt; in getmntent_r()
62 static struct mntent mnt; in getmntent() local
63 return getmntent_r(f, &mnt, SENTINEL, 0); in getmntent()
66 int addmntent(FILE *f, const struct mntent *mnt) in addmntent() argument
70 mnt->mnt_fsname, mnt->mnt_dir, mnt->mnt_type, mnt->mnt_opts, in addmntent()
71 mnt->mnt_freq, mnt->mnt_passno) < 0; in addmntent()
74 char *hasmntopt(const struct mntent *mnt, const char *opt) in hasmntopt() argument
76 return strstr(mnt->mnt_opts, opt); in hasmntopt()