SEEKDIR(3) Linux Programmer's Manual SEEKDIR(3)

seekdir - set the position of the next readdir() call in the directory stream.

#include <dirent.h>

void seekdir(DIR *dir, off_t offset);


Feature Test Macro Requirements for glibc (see feature_test_macros(7)):

seekdir(): _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE

The seekdir() function sets the location in the directory stream from which the next readdir(2) call will start. seekdir() should be used with an offset returned by telldir(3).

The seekdir() function returns no value.

4.3BSD, POSIX.1-2001.

lseek(2), closedir(3), opendir(3), readdir(3), rewinddir(3), scandir(3), telldir(3)

This page is part of release 3.06 of the Linux man-pages project. A description of the project, and information about reporting bugs, can be found at http://www.kernel.org/doc/man-pages/.

2007-07-26

Different Versions of this Page: