Open System Services Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)

OSS Library Calls (n - r) opendir(3)
[ENOMEM] The system has insufcient resources to allow another open directory.
[ENOROOT] One of the following conditions exists:
The root fileset of the local node (fileset 0) is not in the STARTED state.
The current root fileset for the specified file is unavailable. The OSS
name server for the fileset might have failed.
The specified file is on a remote HP NonStop server node and communi-
cation with the remote name server has been lost.
[ENOTDIR] A component of the name given by dir_name is not a directory.
[ENXIO] One of the following events occurred:
A device was specified that does not exist, or a request was made beyond
the limits of the device.
The fileset containing the requestor’s current working directory or root
directory is not mounted. This error can occur after failure and restart of
an OSS name server until the fileset has been repaired and remounted.
[EOSSNOTRUNNING]
A required system process is not running.
[EPERM] One of the following conditions occurred:
The function attempted to open a Guardian process (the specified path-
name maps to /G/process) or a Guardian subvolume with a name begin-
ning with ZYQ.
The function attempted to open the /E directory on a remote system or a
directory within the /E directory on a remote system.
RELATED INFORMATION
Functions: closedir(3), mkdir(2), readdir(3), rewinddir(3), rmdir(2), seekdir(3), telldir(3).
STANDARDS CONFORMANCE
The opendir( ) function does not return the error value [ENFILE].
The POSIX standards leave some features to the implementing vendor to define. The following
features are affected in the HP implementation:
If files are removed from a directory after the most recent call to the opendir( ) or
rewinddir( ) function but prior to the first call to the readdir( ) function, the readdir()
function does not return entries for these files. If files are added to a directory after the
most recent call to the opendir( ) or rewinddir( ) function but prior to the first call to the
readdir( ) function, the readdir( ) function returns entries for these files.
After a call to one of the set of exec functions, all open directory streams are closed
automatically.
The ramifications of having both the parent and child processes access the same OSS
directory after a call to the fork( ) or tdm_fork( ) function are undefined.
527187-017 Hewlett-Packard Company 539