Debian Codegraph @

upstream/debian-trixie/man3/rewinddir.3

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