Lines Matching refs:dp
197 char *dp; in getblkcomplete() local
204 if ((dp = strstr(cp, "/rfd")) != NULL) { in getblkcomplete()
208 c = *++dp; /* save the 'r' */ in getblkcomplete()
209 *dp = '\0'; /* replace it with a null */ in getblkcomplete()
211 *dp++ = c; /* give the 'r' back */ in getblkcomplete()
212 (void) strcat(new_path, dp); /* copy, skipping the 'r' */ in getblkcomplete()
222 if ((dp = strstr(cp, "/rdiskette")) != NULL) { in getblkcomplete()
226 c = *++dp; /* save the 'r' */ in getblkcomplete()
227 *dp = '\0'; /* replace it with a null */ in getblkcomplete()
229 *dp++ = c; /* give the 'r' back */ in getblkcomplete()
230 (void) strcat(new_path, dp); /* copy, skipping the 'r' */ in getblkcomplete()
250 char *dp; in getrawcomplete() local
257 if ((dp = strstr(cp, "/fd")) != NULL) { in getrawcomplete()
262 c = *++dp; /* save the 'f' */ in getrawcomplete()
263 *dp = '\0'; /* replace it with a null */ in getrawcomplete()
265 *dp = c; /* put the 'f' back */ in getrawcomplete()
267 (void) strcat(new_path, dp); /* copy the rest */ in getrawcomplete()
276 if ((dp = strstr(cp, "/diskette")) != NULL) { in getrawcomplete()
281 c = *++dp; /* save at 'd' */ in getrawcomplete()
282 *dp = '\0'; /* replace it with a null */ in getrawcomplete()
284 *dp = c; /* put the 'd' back */ in getrawcomplete()
286 (void) strcat(new_path, dp); /* copy the rest */ in getrawcomplete()
339 char *dp; in getfullblkname() local
368 if ((dp = getvfsspecial(cp, GET_BLK)) != NULL) { in getfullblkname()
370 return (strdup(dp)); in getfullblkname()
378 if ((dp = strstr(cp, "/rdsk/")) == NULL && in getfullblkname()
379 (dp = strstr(cp, "/" LOFI_CHAR_NAME "/")) == NULL && in getfullblkname()
380 (dp = strstr(cp, "/" RD_CHAR_NAME "/")) == NULL && in getfullblkname()
381 (dp = strstr(cp, "/" SNAP_CHAR_NAME "/")) == NULL && in getfullblkname()
382 (dp = strrchr(cp, '/')) == NULL) { in getfullblkname()
387 dp++; in getfullblkname()
388 if (*dp != 'r') { in getfullblkname()
389 dp = getblkcomplete(cp, &buf); in getfullblkname()
391 return (dp); in getfullblkname()
397 (void) strncpy(new_path, cp, dp - cp); in getfullblkname()
400 (void) strcpy(new_path + (dp - cp), dp + 1); in getfullblkname()
409 dp = getblkcomplete(cp, &buf); in getfullblkname()
411 return (dp); in getfullblkname()
421 char *dp; in getfullrawname() local
452 if ((dp = getvfsspecial(cp, GET_RAW)) != NULL) { in getfullrawname()
454 return (strdup(dp)); in getfullrawname()
460 if ((dp = strstr(cp, "/dsk/")) == NULL && in getfullrawname()
461 (dp = strstr(cp, "/" LOFI_BLOCK_NAME "/")) == NULL && in getfullrawname()
462 (dp = strstr(cp, "/" RD_BLOCK_NAME "/")) == NULL && in getfullrawname()
463 (dp = strstr(cp, "/" SNAP_BLOCK_NAME "/")) == NULL && in getfullrawname()
464 (dp = strrchr(cp, '/')) == NULL) { in getfullrawname()
469 dp++; in getfullrawname()
475 (void) strncpy(new_path, cp, dp - cp); in getfullrawname()
477 new_path[dp - cp] = 'r'; in getfullrawname()
478 (void) strcpy(new_path + (dp - cp) + 1, dp); in getfullrawname()
486 dp = getrawcomplete(cp, &buf); in getfullrawname()
488 return (dp); in getfullrawname()