Lines Matching defs:new
381 * stat the new mount and get its dev
389 printf("stat of new mount (%d)\n", errno);
487 struct mnttab *new;
490 new = (struct mnttab *)malloc(sizeof (*new));
491 if (new == NULL)
493 memset((char *)new, 0, sizeof (*new));
494 new->mnt_special = strdup(mnt->mnt_special);
495 if (new->mnt_special == NULL)
497 new->mnt_mountp = strdup(mnt->mnt_mountp);
498 if (new->mnt_mountp == NULL)
500 new->mnt_fstype = strdup(mnt->mnt_fstype);
501 if (new->mnt_fstype == NULL)
504 if ((new->mnt_mntopts = strdup(mnt->mnt_mntopts)) == NULL)
507 if ((new->mnt_time = strdup(mnt->mnt_time)) == NULL)
510 return (new);
515 freemnttab(new);