Lines Matching refs:dp

196 	char 		*dp;  in getblkcomplete()  local
203 if ((dp = strstr(cp, "/rfd")) != NULL) { in getblkcomplete()
207 c = *++dp; /* save the 'r' */ in getblkcomplete()
208 *dp = '\0'; /* replace it with a null */ in getblkcomplete()
210 *dp++ = c; /* give the 'r' back */ in getblkcomplete()
211 (void) strcat(new_path, dp); /* copy, skipping the 'r' */ in getblkcomplete()
221 if ((dp = strstr(cp, "/rdiskette")) != NULL) { in getblkcomplete()
225 c = *++dp; /* save the 'r' */ in getblkcomplete()
226 *dp = '\0'; /* replace it with a null */ in getblkcomplete()
228 *dp++ = c; /* give the 'r' back */ in getblkcomplete()
229 (void) strcat(new_path, dp); /* copy, skipping the 'r' */ in getblkcomplete()
249 char *dp; in getrawcomplete() local
256 if ((dp = strstr(cp, "/fd")) != NULL) { in getrawcomplete()
261 c = *++dp; /* save the 'f' */ in getrawcomplete()
262 *dp = '\0'; /* replace it with a null */ in getrawcomplete()
264 *dp = c; /* put the 'f' back */ in getrawcomplete()
266 (void) strcat(new_path, dp); /* copy the rest */ in getrawcomplete()
275 if ((dp = strstr(cp, "/diskette")) != NULL) { in getrawcomplete()
280 c = *++dp; /* save at 'd' */ in getrawcomplete()
281 *dp = '\0'; /* replace it with a null */ in getrawcomplete()
283 *dp = c; /* put the 'd' back */ in getrawcomplete()
285 (void) strcat(new_path, dp); /* copy the rest */ in getrawcomplete()
338 char *dp; in getfullblkname() local
367 if ((dp = getvfsspecial(cp, GET_BLK)) != NULL) { in getfullblkname()
369 return (strdup(dp)); in getfullblkname()
377 if ((dp = strstr(cp, "/rdsk/")) == NULL && in getfullblkname()
378 (dp = strstr(cp, "/" LOFI_CHAR_NAME "/")) == NULL && in getfullblkname()
379 (dp = strstr(cp, "/" RD_CHAR_NAME "/")) == NULL && in getfullblkname()
380 (dp = strstr(cp, "/" SNAP_CHAR_NAME "/")) == NULL && in getfullblkname()
381 (dp = strrchr(cp, '/')) == NULL) { in getfullblkname()
386 dp++; in getfullblkname()
387 if (*dp != 'r') { in getfullblkname()
388 dp = getblkcomplete(cp, &buf); in getfullblkname()
390 return (dp); in getfullblkname()
396 (void) strncpy(new_path, cp, dp - cp); in getfullblkname()
399 (void) strcpy(new_path + (dp - cp), dp + 1); in getfullblkname()
408 dp = getblkcomplete(cp, &buf); in getfullblkname()
410 return (dp); in getfullblkname()
420 char *dp; in getfullrawname() local
451 if ((dp = getvfsspecial(cp, GET_RAW)) != NULL) { in getfullrawname()
453 return (strdup(dp)); in getfullrawname()
459 if ((dp = strstr(cp, "/dsk/")) == NULL && in getfullrawname()
460 (dp = strstr(cp, "/" LOFI_BLOCK_NAME "/")) == NULL && in getfullrawname()
461 (dp = strstr(cp, "/" RD_BLOCK_NAME "/")) == NULL && in getfullrawname()
462 (dp = strstr(cp, "/" SNAP_BLOCK_NAME "/")) == NULL && in getfullrawname()
463 (dp = strrchr(cp, '/')) == NULL) { in getfullrawname()
468 dp++; in getfullrawname()
474 (void) strncpy(new_path, cp, dp - cp); in getfullrawname()
476 new_path[dp - cp] = 'r'; in getfullrawname()
477 (void) strcpy(new_path + (dp - cp) + 1, dp); in getfullrawname()
485 dp = getrawcomplete(cp, &buf); in getfullrawname()
487 return (dp); in getfullrawname()