Open System Services Library Calls Reference Manual (G06.28+, H06.05+)

OSS Library Calls (n - r) opendir(3)
[EPERM] One of the following conditions occurred:
The function attempted to open a Guardian process (the specied 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 dene. The following
features are affected in the HP implementation:
If les are removed from a directory after the most recent call to the opendir() or
rewinddir( ) function but prior to the rst call to the readdir() function, the readdir()
function does not return entries for these les. If les are added to a directory after the
most recent call to the opendir() or rewinddir() function but prior to the rst call to the
readdir() function, the readdir() function returns entries for these les.
After a call to one of the set of exec functions, all open directory streams are closed
automatically.
The ramications of having both the parent and child processes access the same OSS
directory after a call to the fork() or tdm_fork() function are undened.
The following are HP extensions to the XPG4 Version 2 specication:
The error values [EFSBAD], [ENOCRE], [ENOMEM], [ENOROOT], [ENXIO],
[EOSSNOTRUNNING], and [EPERM] can be returned.
527187-007 Hewlett-Packard Company 523