Lines Matching refs:mnt

89 static struct mnttab	*mntdup(struct mnttab *mnt);
153 struct mnttab mnt;
267 while (getmntent(mtabp, &mnt) == 0) {
268 if (strcmp(typestr, mnt.mnt_fstype) != 0) {
271 dfreemnt(mnt.mnt_mountp, &mnt);
558 dfreemnt(char *file, struct mnttab *mnt)
573 (void) printf("%s", mnt->mnt_special);
575 if (strlen(mnt->mnt_special) > (size_t)20) {
576 (void) printf("%s\n", mnt->mnt_special);
579 (void) printf("%-20.20s", mnt->mnt_special);
629 (void) printf(" %s\n", mnt->mnt_mountp);
687 struct mnttab mnt;
697 while ((getmntent(mnttab, &mnt)) == 0) {
698 if (strcmp(mnt.mnt_fstype, MNTTYPE_UFS) != 0) {
701 if (strcmp(file, mnt.mnt_special) == 0) {
702 if (stat64(mnt.mnt_mountp, &mount_stat) != 0)
704 if (stat64(mnt.mnt_special, &device_stat) != 0)
708 mname = mnt.mnt_mountp;
726 struct mnttab mnt;
734 while (getmntent(mntp, &mnt) == 0) {
735 if (strcmp(spec, mnt.mnt_special) == 0) {
737 *mntbp = mntdup(&mnt);
812 struct mnttab *mnt = mlp->mntl_mnt;
817 if (strcmp(mnt->mnt_fstype, typestr) != 0)
828 if (stat64(mnt->mnt_mountp, &fs_sb) < 0 &&
829 chroot_stat(mnt->mnt_mountp, stat64, (char *)&fs_sb,
977 mntdup(struct mnttab *mnt)
984 (char *)xmalloc((unsigned)(strlen(mnt->mnt_special) + 1));
985 (void) strcpy(new->mnt_special, mnt->mnt_special);
988 (char *)xmalloc((unsigned)(strlen(mnt->mnt_mountp) + 1));
989 (void) strcpy(new->mnt_mountp, mnt->mnt_mountp);
992 (char *)xmalloc((unsigned)(strlen(mnt->mnt_fstype) + 1));
993 (void) strcpy(new->mnt_fstype, mnt->mnt_fstype);
995 if (mnt->mnt_mntopts != NULL) {
997 (char *)xmalloc((unsigned)(strlen(mnt->mnt_mntopts) + 1));
998 (void) strcpy(new->mnt_mntopts, mnt->mnt_mntopts);
1004 new->mnt_freq = mnt->mnt_freq;
1005 new->mnt_passno = mnt->mnt_passno;
1026 struct extmnttab mnt;
1034 while (getextmntent(mounted, &mnt, sizeof (struct extmnttab)) == NULL) {
1036 mntl->mntl_mnt = mntdup((struct mnttab *)(&mnt));
1039 mntl->mntl_dev = makedev(mnt.mnt_major, mnt.mnt_minor);