Lines Matching refs:mtabp
77 struct mtablist **mtabpp, *mtabp;
121 if ((mtabp = malloc(sizeof (struct mtablist))) == NULL) {
126 mtabp->mtab_time = actiontime;
127 memmove(mtabp->mtab_host, hostp, MNTNAMLEN);
128 mtabp->mtab_host[MNTNAMLEN - 1] = '\0';
129 memmove(mtabp->mtab_dirp, dirp, MNTPATHLEN);
130 mtabp->mtab_dirp[MNTPATHLEN - 1] = '\0';
131 mtabp->mtab_next = (struct mtablist *)NULL;
132 *mtabpp = mtabp;
133 mtabpp = &mtabp->mtab_next;
146 struct mtablist *mtabp, *mp;
155 for (mtabp = mtabhead; mtabp != NULL; mtabp = mtabp->mtab_next) {
156 if (mtabp->mtab_host[0] == '\0')
159 for (mp = mtabp->mtab_next; mp != NULL; mp = mp->mtab_next)
160 if (strcmp(mtabp->mtab_host, mp->mtab_host) == 0 &&
161 strcmp(mtabp->mtab_dirp, mp->mtab_dirp) == 0)
167 (long)mtabp->mtab_time, mtabp->mtab_host,
168 mtabp->mtab_dirp);
171 mtabp->mtab_host, mtabp->mtab_dirp);
190 struct mtablist *mtabp;
195 for (mtabp = mtabhead; mtabp != NULL; mtabp = mtabp->mtab_next) {
196 if (strcmp(mtabp->mtab_host, host) != 0)
198 if (dirp != NULL && strcmp(mtabp->mtab_dirp, dirp) != 0)
204 mtabp->mtab_host, mtabp->mtab_dirp);
205 bzero(mtabp->mtab_host, MNTNAMLEN);
216 struct mtablist *mtabp;
218 while ((mtabp = mtabhead) != NULL) {
220 free(mtabp);