function returns a pointer to a
.I passwd
structure, or NULL if
-there are no more entries or an error occurs.
+there are no more entries or an error occurred.
If an error occurs,
.I errno
is set appropriately.
.SH ATTRIBUTES
.SS Multithreading (see pthreads(7))
The
-.BR getpwent()
+.BR getpwent ()
function is not thread-safe.
.LP
The
-.BR setpwent()
+.BR setpwent ()
and
-.BR endpwent()
+.BR endpwent ()
functions are thread-safe.
.SH CONFORMING TO
SVr4, 4.3BSD, POSIX.1-2001.
.BR getpwuid (3),
.BR putpwent (3),
.BR passwd (5)
+.SH COLOPHON
+This page is part of release 3.79 of the Linux
+.I man-pages
+project.
+A description of the project,
+information about reporting bugs,
+and the latest version of this page,
+can be found at
+\%http://www.kernel.org/doc/man\-pages/.