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