Lines Matching refs:mntp
234 struct mnttab *mntp; in check_and_unmount_vold() local
291 mntp = (struct mnttab *)malloc(sizeof (struct mnttab)); in check_and_unmount_vold()
292 if (mntp == NULL) { in check_and_unmount_vold()
298 while (getmntent(fp, mntp) == 0) { in check_and_unmount_vold()
305 DPRINTF1(" %s \n", mntp->mnt_special); in check_and_unmount_vold()
306 if (strstr(mntp->mnt_special, tmp_path_name) != in check_and_unmount_vold()
307 mntp->mnt_special) { in check_and_unmount_vold()
311 DPRINTF1("Found!! %s\n", mntp->mnt_special); in check_and_unmount_vold()
327 free(mntp); in check_and_unmount_vold()
346 struct mnttab *mntp; in check_and_unmount_scsi() local
377 mntp = (struct mnttab *)malloc(sizeof (struct mnttab)); in check_and_unmount_scsi()
378 if (mntp == NULL) { in check_and_unmount_scsi()
393 while (getmntent(fp, mntp) == 0) { in check_and_unmount_scsi()
400 if (strncmp(mntp->mnt_special, tmp_name, strlen(tmp_name))) { in check_and_unmount_scsi()
409 if (strcmp(mntp->mnt_special, block_dev_name) == 0) { in check_and_unmount_scsi()
411 if (my_umount(mntp->mnt_mountp) < 0) { in check_and_unmount_scsi()
430 if (strcmp(mntp->mnt_special, in check_and_unmount_scsi()
433 if (my_umount(mntp->mnt_mountp) in check_and_unmount_scsi()
449 if (strcmp(mntp->mnt_special, in check_and_unmount_scsi()
452 if (my_umount(mntp->mnt_mountp) in check_and_unmount_scsi()