seekdir
(3)set the position of the next readdir() call in the directory stream.
#include <dirent.h> void seekdir(DIR *dirp, long loc); Feature Test Macro Requirements for glibc (see feature_test_macros(7)): seekdir(): _XOPEN_SOURCE || /* glibc >= 2.19: */ _DEFAULT_SOURCE || /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE