next_dirent
for (sd = next_dirent(parent_sd, NULL); sd; sd = next) {
next = next_dirent(parent_sd, sd);