telldir3p
Current location of a named directory stream
Usage
#include <dirent.h>
long telldir(DIR *dirp);
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.
Overview
The telldir() function shall obtain the current location associated with the directory stream specified by dirp.
If the most recent operation on the directory stream was a seekdir(), the directory position returned from the telldir() shall be the same as that supplied as a loc argument for seekdir().
Return value
Upon successful completion, telldir() shall return the current location of the specified directory stream.
Errors
No errors are defined.
The following sections are informative.
Examples
None.
Application usage
None.
Rationale
None.
Future directions
None.