Searched refs:lastp (Results 1 – 2 of 2) sorted by relevance
58 const char *lastp; in __weak_alias() local69 lastp = path + strlen(path) - 1; in __weak_alias()70 while (lastp != path && isDirSep(*lastp)) in __weak_alias()71 lastp--; in __weak_alias()75 if (isDirSep(*lastp)) { in __weak_alias()77 while (lastp != path && isDirSep(*lastp)) in __weak_alias()78 lastp--; in __weak_alias()84 len = (lastp - path) + 1 /* last char */; in __weak_alias()89 if(*lastp == ':') { /* Have we stripped off all except the Volume name? */ in __weak_alias()90 if(isDirSep(lastp[1])) { /* Was ...":/"... so we want the root of the volume. */ in __weak_alias()[all …]
153 char *p, *lastp; in basename() local164 lastp = path + strlen(path) - 1; in basename()165 while (lastp != path && ISPATHSEPARATOR(*lastp)) in basename()166 lastp--; in basename()169 p = lastp; in basename()174 len = (lastp - p) + 1 /* last char */; in basename()