seekdir man page on SmartOS

Man page or keyword search:  
man Server   16655 pages
apropos Keyword Search (all sections)
Output format
SmartOS logo
[printable version]

SEEKDIR(3C)							   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) opera‐
       tion 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)

				 Aug 14, 2002			   SEEKDIR(3C)
[top]

List of man pages available for SmartOS

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net