Lines Matching defs:mp
238 struct mountlist *mp, **otp, *tp;
246 mp = (struct mountlist *)malloc(sizeof(struct mountlist));
247 if (mp == NULL)
249 mp->ml_left = mp->ml_right = (struct mountlist *)0;
250 strp = mp->ml_host;
253 strp = mp->ml_dirp;
263 *mlp = mp;
266 val = strcmp(mp->ml_host, tp->ml_host);
267 val2 = strcmp(mp->ml_dirp, tp->ml_dirp);
272 free((caddr_t)mp);
280 free((caddr_t)mp);
287 free((caddr_t)mp);
300 *otp = mp;
362 print_dump(struct mountlist *mp)
364 if (mp == NULL)
366 if (mp->ml_left)
367 print_dump(mp->ml_left);
370 printf("%s:%s\n", mp->ml_host, mp->ml_dirp);
373 printf("%s\n", mp->ml_dirp);
376 printf("%s\n", mp->ml_host);
379 if (mp->ml_right)
380 print_dump(mp->ml_right);
387 free_dump(struct mountlist *mp)
389 if (!mp)
391 free_dump(mp->ml_left);
392 free_dump(mp->ml_right);
393 free(mp);