Home
last modified time | relevance | path

Searched refs:rnext (Results 1 – 1 of 1) sorted by relevance

/external/toybox/lib/
Dlib.c261 struct string_list *rnext; in find_in_path() local
264 rnext = xmalloc(sizeof(void *) + strlen(filename) in find_in_path()
266 if (!len) sprintf(rnext->str, "%s/%s", cwd, filename); in find_in_path()
268 memcpy(res = rnext->str, path, len); in find_in_path()
275 if (!stat(rnext->str, &st) && S_ISREG(st.st_mode)) { in find_in_path()
276 *prlist = rnext; in find_in_path()
277 rnext->next = NULL; in find_in_path()
278 prlist = &(rnext->next); in find_in_path()
279 } else free(rnext); in find_in_path()