1seekdir(3C)              Standard C Library Functions              seekdir(3C)
2
3
4

NAME

6       seekdir - set position of directory stream
7

SYNOPSIS

9       #include <sys/types.h>
10       #include <dirent.h>
11
12       void seekdir(DIR *dirp, long int loc);
13
14

DESCRIPTION

16       The seekdir() function sets the position of the next readdir(3C) opera‐
17       tion on the directory stream specified by dirp to the  position  speci‐
18       fied by loc. The value of loc should have been returned from an earlier
19       call to telldir(3C). The new position reverts  to  the  one  associated
20       with the directory stream when telldir() was performed.
21
22
23       If  the value of loc was not obtained from an earlier call to telldir()
24       or if a call to rewinddir(3C) occurred between the call to  telldir  ()
25       and the call to seekdir(), the results of subsequent calls to readdir()
26       are unspecified.
27

RETURN VALUES

29       The seekdir() function returns no value.
30

ERRORS

32       No errors are defined.
33

ATTRIBUTES

35       See attributes(5) for descriptions of the following attributes:
36
37
38
39
40       ┌─────────────────────────────┬─────────────────────────────┐
41       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
42       ├─────────────────────────────┼─────────────────────────────┤
43       │Interface Stability          │Standard                     │
44       ├─────────────────────────────┼─────────────────────────────┤
45       │MT-Level                     │Safe                         │
46       └─────────────────────────────┴─────────────────────────────┘
47

SEE ALSO

49       opendir(3C), readdir(3C),  rewinddir(3C),  telldir(3C),  attributes(5),
50       standards(5)
51
52
53
54SunOS 5.11                        14 Aug 2002                      seekdir(3C)
Impressum