Lines Matching refs:p1
1691 char *p1, *p2; in findentry() local
1699 for (p1 = sh->sh_path, p2 = path; *p1 == *p2; p1++, p2++) in findentry()
1700 if (*p1 == '\0') in findentry()
1715 if ((*p1 == '\0' && *p2 == '/') || in findentry()
1716 (*p1 == '\0' && *(p1-1) == '/') || in findentry()
1717 (*p2 == '\0' && *p1 == '/' && *(p1+1) == '\0')) { in findentry()
1738 char *p1 = *mntp, *p2 = *path; in is_substring() local
1740 if (*p1 == '\0' && *p2 == '\0') /* exact match */ in is_substring()
1742 else if (*p1 == '\0' && *p2 == '/') in is_substring()
1744 else if (*p1 == '\0' && *(p1-1) == '/') { in is_substring()
1748 while (*p1 == '/') in is_substring()
1749 p1++; in is_substring()
1750 if (*p1 == '\0') /* exact match */ in is_substring()
1781 char *p1, *p2; in find_lofsentry() local
1800 for (p1 = ml->mntl_mnt->mnt_mountp, p2 = rpath; in find_lofsentry()
1801 *p1 == *p2 && *p1; p1++, p2++) in find_lofsentry()
1803 if (is_substring(&p1, &p2) && in find_lofsentry()
1871 for (p1 = ml->mntl_mnt->mnt_mountp, p2 = rpath; in find_lofsentry()
1872 *p1 == *p2 && *p1; p1++, p2++) in find_lofsentry()
1875 if (is_substring(&p1, &p2) && in find_lofsentry()