Lines Matching defs:mnt
84 fsdupmnttab(struct extmnttab *mnt)
97 new->mnt_mountp = (char *)malloc(strlen(mnt->mnt_mountp) + 2);
100 (void) strcpy(new->mnt_mountp, mnt->mnt_mountp);
102 if ((new->mnt_special = strdup(mnt->mnt_special)) == NULL)
105 if ((new->mnt_fstype = strdup(mnt->mnt_fstype)) == NULL)
108 if (mnt->mnt_mntopts != NULL)
109 if ((new->mnt_mntopts = strdup(mnt->mnt_mntopts)) == NULL)
112 if (mnt->mnt_time != NULL)
113 if ((new->mnt_time = strdup(mnt->mnt_time)) == NULL)
116 new->mnt_major = mnt->mnt_major;
117 new->mnt_minor = mnt->mnt_minor;
130 fsfreemnttab(struct extmnttab *mnt)
133 if (mnt) {
134 if (mnt->mnt_special)
135 free(mnt->mnt_special);
136 if (mnt->mnt_mountp)
137 free(mnt->mnt_mountp);
138 if (mnt->mnt_fstype)
139 free(mnt->mnt_fstype);
140 if (mnt->mnt_mntopts)
141 free(mnt->mnt_mntopts);
142 if (mnt->mnt_time)
143 free(mnt->mnt_time);
144 free(mnt);
168 struct extmnttab mnt;
175 while ((ret = getextmntent(mfp, &mnt, sizeof (struct extmnttab)))
192 if ((mp->mntl_mnt = fsdupmnttab(&mnt)) == NULL)