Lines Matching refs:cpold
105 register char *cp=path, *cpold;
135 if(!(cpold = getcwd((char*)0, 0)) && errno == EINVAL && (cpold = newof(0, char, PATH_MAX, 0)) && !getcwd(cpold, PATH_MAX))
137 free(cpold);
138 cpold = 0;
140 if(cpold)
142 cp = cpold + strlen(cpold);
145 if(cp>cpold)
146 while(--cp>cpold && *cp=='/');
148 if(name_max==0 && (r=mypathconf(cpold, 0)) > _POSIX_NAME_MAX)
150 if(path_max==0 && (r=mypathconf(cpold, 1)) > _POSIX_PATH_MAX)
152 if(--cp==cpold)
154 free(cpold);
170 while(*(cpold=cp))
173 if((cp-cpold) > name_max)
197 while(*(cpold=cp))
212 if((cp-cpold) > name_max)
226 error(2, "%s: component name %.*s too long", path, cp-cpold-1, cpold);