]> git.ipfire.org Git - thirdparty/man-pages.git/blob - man3/rewinddir.3
07f7e292f461edb9dbbf6c4207193191d5c89e54
[thirdparty/man-pages.git] / man3 / rewinddir.3
1 .\" Copyright (C) 1993 David Metcalfe (david@prism.demon.co.uk)
2 .\"
3 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
4 .\"
5 .\" References consulted:
6 .\" Linux libc source code
7 .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
8 .\" 386BSD man pages
9 .\" Modified Sat Jul 24 18:29:11 1993 by Rik Faith (faith@cs.unc.edu)
10 .\" Modified 11 June 1995 by Andries Brouwer (aeb@cwi.nl)
11 .TH REWINDDIR 3 2021-03-22 "" "Linux Programmer's Manual"
12 .SH NAME
13 rewinddir \- reset directory stream
14 .SH LIBRARY
15 Standard C library
16 .RI ( libc ", " \-lc )
17 .SH SYNOPSIS
18 .nf
19 .B #include <sys/types.h>
20 .B #include <dirent.h>
21 .PP
22 .BI "void rewinddir(DIR *" dirp );
23 .fi
24 .SH DESCRIPTION
25 The
26 .BR rewinddir ()
27 function resets the position of the directory
28 stream
29 .I dirp
30 to the beginning of the directory.
31 .SH RETURN VALUE
32 The
33 .BR rewinddir ()
34 function returns no value.
35 .SH ATTRIBUTES
36 For an explanation of the terms used in this section, see
37 .BR attributes (7).
38 .ad l
39 .nh
40 .TS
41 allbox;
42 lbx lb lb
43 l l l.
44 Interface Attribute Value
45 T{
46 .BR rewinddir ()
47 T} Thread safety MT-Safe
48 .TE
49 .hy
50 .ad
51 .sp 1
52 .SH CONFORMING TO
53 POSIX.1-2001, POSIX.1-2008, 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)