Lines Matching refs:segp
700 char *segp, *tmp;
707 segp = cur;
708 while ((segp[0] != '/') && (segp[0] != '\0'))
709 ++segp;
714 if (segp[0] == '\0')
720 ++segp;
721 if (((cur[0] == '.') && (cur[1] == '.') && (segp == cur+3))
722 || ((segp[0] != '.') || (segp[1] != '.')
723 || ((segp[2] != '/') && (segp[2] != '\0')))) {
724 cur = segp;
736 if (segp[2] == '\0') {
740 /* Valgrind complained, strcpy(cur, segp + 3); */
743 segp += 3;
744 while ((*tmp++ = *segp++) != 0);
747 segp = cur;
748 while ((segp > path) && ((--segp)[0] == '/'))
750 if (segp == path)
753 /* "segp" is pointing to the end of a previous segment; find it's
760 cur = segp;