Closes a directory opened by opendir.
Opens a directory on the handle specified.
Returns the next entry (or an array of entries) from the directory.
Positions the directory to the beginning.
Sets position for readdir on the directory.
Returns the position in the directory.