Your Browser is not longer supported
Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...
{{viewport.spaceProperty.prod}}
seekdir - set position of directory stream
&pagelevel(4)&pagelevel
Syntax | #include <dirent.h> Optional #include <sys/types.h> void seekdir(DIR *dirp, long int loc); |
Description | seekdir() sets the position of the next readdir() operation on the directory stream pointed to by dirp to the position specified by loc. The value of loc should have been returned from an earlier call to telldir() . The new position reverts to the one associated with the directory stream at the time the telldir() operation was performed.
Extension Values returned by telldir() are valid only if the directory has not changed because of compaction or expansion. This situation is not a problem with System V, but it may present a problem with some file system types. |
Errors | seekdir() will fail if:
Extension |
EBADF
| The stream associated with the directory is no longer valid. This error occurs if the directory has been closed. |
Notes See also | seekdir() is executed only for POSIX files
opendir() , readdir() , telldir() , dirent.h , sys/types.h .
|