Lines Matching refs:next
810 const char *q, *first, *end_first, *next; in path_find_first_component() local
872 next = skip_slash_or_dot(end_first); in path_find_first_component()
874 *p = next + streq(next, "."); in path_find_first_component()
894 int path_find_last_component(const char *path, bool accept_dot_dot, const char **next, const char *… in path_find_last_component() argument
927 if (next) in path_find_last_component()
928 *next = path; in path_find_last_component()
934 if (next && *next) { in path_find_last_component()
935 if (*next < path || *next > path + strlen(path)) in path_find_last_component()
937 if (*next == path) { in path_find_last_component()
942 if (!IN_SET(**next, '\0', '/')) in path_find_last_component()
944 q = *next - 1; in path_find_last_component()
951 if (next) in path_find_last_component()
952 *next = path; in path_find_last_component()
971 if (next) { in path_find_last_component()
973 *next = q ? q + 1 : path; in path_find_last_component()
1026 const char *c, *next = NULL; in path_extract_filename() local
1047 r = path_find_last_component(path, false, &next, &c); in path_extract_filename()
1063 const char *c, *next = NULL; in path_extract_directory() local
1077 r = path_find_last_component(path, false, &next, &c); in path_extract_directory()
1082 if (next == path) { in path_extract_directory()
1093 a = strndup(path, next - path); in path_extract_directory()