telldir - Man Page

current location of a named 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>

long telldir(DIR *dirp);

Description

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.

See Also

fdopendir(), readdir(), seekdir()

The Base Definitions volume of POSIX.1-2017, <dirent.h>

Referenced By

dirent.h(0p), seekdir(3p).

2017 IEEE/The Open Group POSIX Programmer's Manual