Searched refs:cpold (Results 1 – 2 of 2) sorted by relevance
/titanic_50/usr/src/lib/libcmd/common/ |
H A D | pathchk.c | 105 register char *cp=path, *cpold; in pathchk() local 135 …if(!(cpold = getcwd((char*)0, 0)) && errno == EINVAL && (cpold = newof(0, char, PATH_MAX, 0)) && !… in pathchk() 137 free(cpold); in pathchk() 138 cpold = 0; in pathchk() 140 if(cpold) in pathchk() 142 cp = cpold + strlen(cpold); in pathchk() 145 if(cp>cpold) in pathchk() 146 while(--cp>cpold && *cp=='/'); in pathchk() 148 if(name_max==0 && (r=mypathconf(cpold, 0)) > _POSIX_NAME_MAX) in pathchk() 150 if(path_max==0 && (r=mypathconf(cpold, 1)) > _POSIX_PATH_MAX) in pathchk() [all …]
|
H A D | revlib.c | 38 register char *cp, *cpold; in rev_line() local 73 cpold = cp; in rev_line() 85 nleft += cpold-cp; in rev_line() 90 if(sfwrite(out,cp,cpold-cp) < 0) in rev_line()
|