Open System Services Library Calls Reference Manual (G06.27+, H06.04+)

OSS Library Calls (s) seekdir(3)
ERRORS
If any of the following conditions occurs, the seekdir() function sets errno to the corresponding
value:
[EBADF] The dir_pointer parameter does not refer to an open directory stream. This error
is returned instead of [EFAULT] if the process has copied and altered the struc-
ture pointed to by the dir_pointer parameter after the system has freed the buffer
that contains the structure.
[EFAULT] The dir_pointer 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.
RELATED INFORMATION
Functions: closedir(3), mkdir(2), opendir(3), readdir(3), rewinddir(3), rmdir(2), telldir(3).
STANDARDS CONFORMANCE
The POSIX standards leave some features to the implementing vendor to dene. The following
features are affected in the HP implementation:
The ramications of buffering more than one directory entry per read operation are
dened.
After a call to one of the exec set of 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 consequences of calling directory functions with a dir_pointer parameter that does
not refer to a currently opened directory stream are dened. (The error value [EBADF]
or [EFAULT] is returned or a SIGSEGV or SIGILL signal is returned.)
The error value [EBADF], [EFAULT], or [EINVAL] can be returned by the seekdir()
function.
The following are HP extensions to the XPG4 Version 2 specication:
The error values [EBADF], [EFAULT], and [EINVAL] can be returned.
527187-004 Hewlett-Packard Company 613