Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

telldir(3c) [opensolaris man page]

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.11 14 Aug 2002 telldir(3C)

Check Out this Related Man Page

seekdir(3C)						   Standard C Library Functions 					       seekdir(3C)

NAME
seekdir - set position of directory stream SYNOPSIS
#include <sys/types.h> #include <dirent.h> void seekdir(DIR *dirp, long int loc); DESCRIPTION
The seekdir() function sets the position of the next readdir(3C) operation on the directory stream specified by dirp to the position speci- fied by loc. The value of loc should have been returned from an earlier call to telldir(3C). The new position reverts to the one associated with the directory stream when telldir() was performed. If the value of loc was not obtained from an earlier call to telldir() or if a call to rewinddir(3C) occurred between the call to telldir () and the call to seekdir(), the results of subsequent calls to readdir() are unspecified. RETURN VALUES
The seekdir() function returns no value. ERRORS
No errors are defined. 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), rewinddir(3C), telldir(3C), attributes(5), standards(5) SunOS 5.11 14 Aug 2002 seekdir(3C)
Man Page

4 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Location of File

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)
Discussion started by: shikhakaul
4 Replies

2. UNIX for Dummies Questions & Answers

seekdir()? what does it do?

What does seekdir() do exactly? Does it go through the directory files? I tried looking it up, but all I got was man pages. Thanks. (7 Replies)
Discussion started by: l flipboi l
7 Replies

3. Shell Programming and Scripting

How to find a existing file location and directory location in Solaris box?

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)
Discussion started by: buzzme
1 Replies

4. UNIX for Dummies Questions & Answers

Find the location of particular file and directory

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)
Discussion started by: mahesh1987
5 Replies