Open System Services System Calls Reference Manual (G06.28+)

readdir_r(2) OSS System Calls Reference Manual
RETURN VALUES
Upon successful completion, the readdir_r() function returns the value 0 (zero). Otherwise, a
nonzero error number is returned, and errno is set to indicate the error. See the ERRORS sub-
section of this reference page for the possible values that can be returned.
ERRORS
If any of the following conditions occurs, the readdir_r() function sets errno to the correspond-
ing value:
[EBADF] The dirp parameter does not point to a valid directory structure open for reading.
[EFAULT] The dirp parameter does not point to a valid directory structure open for reading.
[EINVAL] Table overow occurred after the last valid telldir() function call for a Guardian
disk volume or subvolume. Only the last 128 values returned by the telldir()
function can be saved in the table.
[EIO] An I/O error occurred during a read from the directory.
[ENETDOWN]
The dirp parameter species a directory on a remote HP NonStop server node
but communication with the remote node has been lost.
[ENOENT] An invalid position value was used in the previous call to the seekdir() function.
[ENOMEM] The system has insufcient resources to complete the request.
[ENOROOT] The root leset (leset 0) is not in the STARTED state.
[ENXIO] One of the following events occurred:
A device was specied that does not exist, or a request was made beyond
the limits of the device.
The leset containing the requestors current working directory or root
directory is not mounted. This error can occur after failure and restart of
an OSS name server until the leset has been repaired and remounted.
[EWRONGID] The call cannot be completed because an input/output process has failed or is in
the down state.
RELATED INFORMATION
Functions: closedir(3), mkdir(2), opendir(3), readdir(3), rewinddir(3), rmdir(2), seekdir(3),
telldir(3).
STANDARDS CONFORMANCE
This function is an extension to the UNIX98 specication. Interfaces documented on this refer-
ence page conform to the following industry standards:
IEEE Std 1003.1c-1995, POSIX System Application Program Interface
The use of the header le spthread.h is an HP exception to the POSIX standard.
68 Hewlett-Packard Company 527186-005