Lines Matching refs:tok
2086 char *tok; local
2105 tok = ptr;
2109 } while (ptr && ptr - tok == 0 && *ptr == '/' && ++ptr && ++tok);
2111 if (!ptr && (path_length - (tok - path))) {
2112 switch (path_length - (tok - path)) {
2114 if (*tok == '.') {
2122 if (tok[0] == '.' && tok[1] == '.') {
2134 ptr_length = ptr - tok;
2136 if (IS_DIRECTORY_UP(tok, ptr_length)) {
2148 } else if (!IS_DIRECTORY_CURRENT(tok, ptr_length)) {
2151 memcpy(newpath + newpath_len, tok, ptr_length+1);
2153 memcpy(newpath + newpath_len, tok, ptr_length+1);
2163 tok = ++ptr;
2167 } while (ptr && ptr - tok == 0 && *ptr == '/' && ++ptr && ++tok);
2169 if (!ptr && (path_length - (tok - path))) {
2170 ptr_length = path_length - (tok - path);