Debian Codegraph @

upstream/debian-unstable/man3/rewinddir.3

raw
1 '\" t
2 .\" Copyright 1993, David Metcalfe <[email protected]>
3 .\" Copyright, the authors of the Linux man-pages project
4 .\"
5 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
6 .\"
7 .TH rewinddir 3 2026-02-08 "Linux man-pages 6.18"
8 .SH NAME
9 rewinddir \- reset directory stream
10 .SH LIBRARY
11 Standard C library
12 .RI ( libc ,\~ \-lc )
13 .SH SYNOPSIS
14 .nf
15 .B #include <sys/types.h>
16 .B #include <dirent.h>
17 .P
18 .BI "void rewinddir(DIR *" dirp );
19 .fi
20 .SH DESCRIPTION
21 The
22 .BR rewinddir ()
23 function resets the position of the directory
24 stream
25 .I dirp
26 to the beginning of the directory.
27 .SH RETURN VALUE
28 The
29 .BR rewinddir ()
30 function returns no value.
31 .SH ATTRIBUTES
32 For an explanation of the terms used in this section, see
33 .BR attributes (7).
34 .TS
35 allbox;
36 lbx lb lb
37 l l l.
38 Interface Attribute Value
39 T{
40 .na
41 .nh
42 .BR rewinddir ()
43 T} Thread safety MT-Safe
44 .TE
45 .SH STANDARDS
46 POSIX.1-2008.
47 .SH HISTORY
48 POSIX.1-2001, SVr4, 4.3BSD.
49 .SH SEE ALSO
50 .BR closedir (3),
51 .BR opendir (3),
52 .BR readdir (3),
53 .BR scandir (3),
54 .BR seekdir (3),
55 .BR telldir (3)