Lines Matching defs:mnt
68 static void freemnttab(struct mnttab *mnt);
115 struct mnttab mnt;
397 mnt.mnt_special = fsname;
398 mnt.mnt_mountp = dir;
399 mnt.mnt_fstype = MNTTYPE_NFS;
400 mnt.mnt_mntopts = opts;
402 mnt.mnt_time = tbuf;
485 dupmnttab(struct mnttab *mnt)
494 new->mnt_special = strdup(mnt->mnt_special);
497 new->mnt_mountp = strdup(mnt->mnt_mountp);
500 new->mnt_fstype = strdup(mnt->mnt_fstype);
503 if (mnt->mnt_mntopts != NULL)
504 if ((new->mnt_mntopts = strdup(mnt->mnt_mntopts)) == NULL)
506 if (mnt->mnt_time != NULL)
507 if ((new->mnt_time = strdup(mnt->mnt_time)) == NULL)
525 freemnttab(struct mnttab *mnt)
527 if (mnt) {
528 if (mnt->mnt_special)
529 free(mnt->mnt_special);
530 if (mnt->mnt_mountp)
531 free(mnt->mnt_mountp);
532 if (mnt->mnt_fstype)
533 free(mnt->mnt_fstype);
534 if (mnt->mnt_mntopts)
535 free(mnt->mnt_mntopts);
536 if (mnt->mnt_time)
537 free(mnt->mnt_time);
538 free(mnt);