Lines Matching refs:next
422 struct os_dirent_node *next; in os_dirent_free() local
425 next = node->next; in os_dirent_free()
427 node = next; in os_dirent_free()
434 struct os_dirent_node *head, *node, *next; in os_dirent_ls() local
457 for (node = head = NULL;; node = next) { in os_dirent_ls()
464 next = malloc(sizeof(*node) + strlen(entry->d_name) + 1); in os_dirent_ls()
465 if (!next) { in os_dirent_ls()
476 free(next); in os_dirent_ls()
482 next->next = NULL; in os_dirent_ls()
483 strcpy(next->name, entry->d_name); in os_dirent_ls()
486 next->type = OS_FILET_REG; in os_dirent_ls()
489 next->type = OS_FILET_DIR; in os_dirent_ls()
492 next->type = OS_FILET_LNK; in os_dirent_ls()
495 next->type = OS_FILET_UNKNOWN; in os_dirent_ls()
497 next->size = 0; in os_dirent_ls()
498 snprintf(fname, len, "%s/%s", dirname, next->name); in os_dirent_ls()
500 next->size = buf.st_size; in os_dirent_ls()
502 node->next = next; in os_dirent_ls()
504 head = next; in os_dirent_ls()