DIR *dir = stream;
struct dirent *ent;
seekdir(dir, *pos);
if (telldir(dir) != *pos)
ent = readdir(dir);
if (ent == NULL)
return NULL;