function closes the directory stream associated with
A successful call to
also closes the underlying file descriptor associated with
The directory stream descriptor dirp is not available
after this call.
function returns 0 on success.
On error, -1 is returned, and
is set appropriately.