.\" Copyright (C) 1993 David Metcalfe (david@prism.demon.co.uk)
.\"
+.\" %%%LICENSE_START(VERBATIM)
.\" Permission is granted to make and distribute verbatim copies of this
.\" manual provided the copyright notice and this permission notice are
.\" preserved on all copies.
.\"
.\" Formatted or processed versions of this manual, if unaccompanied by
.\" the source, must acknowledge the copyright and authors of this work.
+.\" %%%LICENSE_END
.\"
.\" References consulted:
.\" Linux libc source code
.\" 386BSD man pages
.\" Modified Sat Jul 24 18:29:11 1993 by Rik Faith (faith@cs.unc.edu)
.\" Modified 11 June 1995 by Andries Brouwer (aeb@cwi.nl)
-.TH REWINDDIR 3 1995-06-11 "" "Linux Programmer's Manual"
+.TH REWINDDIR 3 2015-08-08 "" "Linux Programmer's Manual"
.SH NAME
rewinddir \- reset directory stream
.SH SYNOPSIS
.nf
.B #include <sys/types.h>
-.sp
+.PP
.B #include <dirent.h>
-.sp
-.BI "void rewinddir(DIR *" dir );
+.PP
+.BI "void rewinddir(DIR *" dirp );
.fi
.SH DESCRIPTION
The
.BR rewinddir ()
function resets the position of the directory
-stream \fIdir\fP to the beginning of the directory.
-.SH "RETURN VALUE"
+stream
+.I dirp
+to the beginning of the directory.
+.SH RETURN VALUE
The
.BR rewinddir ()
function returns no value.
-.SH "CONFORMING TO"
-SVr4, 4.3BSD, POSIX.1-2001.
-.SH "SEE ALSO"
+.SH ATTRIBUTES
+For an explanation of the terms used in this section, see
+.BR attributes (7).
+.TS
+allbox;
+lb lb lb
+l l l.
+Interface Attribute Value
+T{
+.BR rewinddir ()
+T} Thread safety MT-Safe
+.TE
+.SH CONFORMING TO
+POSIX.1-2001, POSIX.1-2008, SVr4, 4.3BSD.
+.SH SEE ALSO
.BR closedir (3),
.BR opendir (3),
.BR readdir (3),