telldir(3C) Standard C Library Functions telldir(3C)NAME
telldir - current location of a named directory stream
SYNOPSIS
#include <dirent.h>
long int telldir(DIR *dirp);
DESCRIPTION
The telldir() function obtains the current location associated with the directory stream specified by dirp.
If the most recent operation on the directory stream was a seekdir(3C), the directory position returned from the telldir() is the same as
that supplied as a loc argument for seekdir().
RETURN VALUES
Upon successful completion, telldir() returns the current location of the specified directory stream.
ERRORS
The telldir() function will fail if:
EOVERFLOW The current location of the directory cannot be stored in an object of type long.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Standard |
+-----------------------------+-----------------------------+
|MT-Level |Safe |
+-----------------------------+-----------------------------+
SEE ALSO opendir(3C), readdir(3C), seekdir(3C), attributes(5), standards(5)SunOS 5.10 14 Aug 2002 telldir(3C)
Check Out this Related Man Page
TELLDIR(3) Linux Programmer's Manual TELLDIR(3)NAME
telldir - return current location in directory stream
SYNOPSIS
#include <dirent.h>
long telldir(DIR *dirp);
Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
telldir(): _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE
DESCRIPTION
The telldir() function returns the current location associated with the directory stream dirp.
RETURN VALUE
On success, the telldir() function returns the current location in the directory stream. On error, -1 is returned, and errno is set appro-
priately.
ERRORS
EBADF Invalid directory stream descriptor dirp.
CONFORMING TO
4.3BSD, POSIX.1-2001.
NOTES
In glibc up to version 2.1.1, the return type of telldir() was off_t. POSIX.1-2001 specifies long, and this is the type used since glibc
2.1.2.
SEE ALSO closedir(3), opendir(3), readdir(3), rewinddir(3), scandir(3), seekdir(3)COLOPHON
This page is part of release 3.25 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/.
2009-03-11 TELLDIR(3)
Hii
I need to find the location of a file . i know the beginning of the name
but i dont know the directory its saved in
how can i find the location ???
Please help
:confused: (4 Replies)
Hi
This is my third past and very impressed with previous post replies
Hoping the same for below query
How to find a existing file location and directory location in solaris box (1 Reply)
hi all,
i am new to UNIX environment.
i have a file and directory with same name, i don't know the location
I want to find location of that file and directory.
please suggest a solution. (5 Replies)