Lines Matching refs:prefixt

668 	char *prefixt = NULL;  in report_map()  local
677 if ((prefixt = calloc(1, strlen(argdev) + 1)) == NULL) { in report_map()
683 (void) strlcpy(prefixt, argdev, strlen(argdev) + 1); in report_map()
693 if ((stripdev = calloc(1, strlen(prefixt) + 1)) == NULL) { in report_map()
696 free(prefixt); in report_map()
700 if ((strstr(prefixt, "/scsi_vhci") == NULL) && in report_map()
701 (strstr(prefixt, "/pci") == NULL) && in report_map()
702 (strstr(prefixt, "/sbus") == NULL)) { in report_map()
703 prefixp = strrchr(prefixt, '/'); in report_map()
705 (prefixp == NULL) ? prefixt : prefixp + 1, in report_map()
707 strlen(prefixt) + 1: strlen(prefixp) + 1); in report_map()
709 prefixt[strlen(argdev) - strlen(prefixp) + 1] = '\0'; in report_map()
716 free(prefixt); in report_map()
725 (prefixt == NULL) ? "null" : prefixt, in report_map()
742 free(prefixt); in report_map()
754 free(prefixt); in report_map()
763 free(prefixt); in report_map()
809 (prefixt[0] == '/') ? prefixt : "", in report_map()
814 free(prefixt); in report_map()
1443 char *prefixt = NULL; in update_vfstab() local
1480 prefixt = NULL; in update_vfstab()
1500 prefixt = strrchr(bdev, 'c'); in update_vfstab()
1501 prefixt[strlen(bdev) - 9 - strlen(slice)] = '\0'; in update_vfstab()
1503 rval = nvlist_lookup_string(mapnvl, prefixt, in update_vfstab()
1508 "error looking up device %s\n", prefixt); in update_vfstab()
1527 if ((prefixt != NULL) && (curdev != NULL) && in update_vfstab()
1528 (rv = (strncmp(prefixt, curdev, strlen(prefixt)) != 0))) { in update_vfstab()