Lines Matching refs:pathname
472 relocate (const char *pathname) in relocate() argument
513 && strncmp (pathname, orig_prefix, orig_prefix_len) == 0) in relocate()
515 if (pathname[orig_prefix_len] == '\0') in relocate()
528 else if (ISSLASH (pathname[orig_prefix_len])) in relocate()
531 const char *pathname_tail = &pathname[orig_prefix_len]; in relocate()
550 if (strncmp (pathname, "/@unixroot", 10) == 0 in relocate()
551 && (pathname[10] == '\0' || ISSLASH (pathname[10]))) in relocate()
554 return pathname; in relocate()
558 if (ISSLASH (pathname[0])) in relocate()
564 char *result = (char *) xmalloc (2 + strlen (pathname) + 1); in relocate()
570 strcpy (result + 2, pathname); in relocate()
578 return pathname; in relocate()
587 relocate2 (const char *pathname, char **allocatedp) in relocate2() argument
589 const char *result = relocate (pathname); in relocate2()
590 *allocatedp = (result != pathname ? (char *) result : NULL); in relocate2()