dir_pointer A pointer to the dir structure of an open directory. entry A pointer to a dirent structure that will be initialized with the directory entry at the current position of the specified stream. result Upon successful completion, the location where a pointer to entry is stored.