seekdir - Man Page
set the position of a directory stream
Prolog
This manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (consult the corresponding Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux.
Synopsis
#include <dirent.h> void seekdir(DIR *dirp, long loc);
Description
The seekdir() function shall set the position of the next readdir() operation on the directory stream specified by dirp to the position specified by loc. The value of loc should have been returned from an earlier call to telldir() using the same directory stream..
Return Value
The seekdir() function shall not return a value.
Errors
No errors are defined.
The following sections are informative.
Examples
None.
Application Usage
None.
Rationale option..
Future Directions
None.
See Also
fdopendir(), readdir(), telldir()
dirent.h(0p), telldir(3p).