Requirements Catalog of LSB Core 3.1
Requirements for the function 'closedir'
| Standard | ID | Description |
| SUSv3 | closedir.01 | The closedir() function shall close the directory stream referred to by the argument dirp. Upon return, the value of dirp may no longer point to an accessible object of the type DIR. |
| SUSv3 | closedir.03 | If a file descriptor is used to implement type DIR, that file descriptor shall be closed. |
| SUSv3 | closedir.04 | Upon successful completion, closedir() shall return 0; |
| SUSv3 | closedir.05 | otherwise, -1 shall be returned and errno set to indicate the error. |
| SUSv3 | closedir.90 | The closedir() function may fail if: |
| SUSv3 | closedir.90.01 | [EBADF] The dirp argument does not refer to an open directory stream. |
| SUSv3 | closedir.90.02 | [EINTR] The closedir() function was interrupted by a signal. |