OSDN Git Service

LDP: Update original to LDP v3.79
[linuxjm/LDP_man-pages.git] / original / man3 / getpwent.3
index bccc064..d4b385e 100644 (file)
@@ -30,7 +30,7 @@
 .\" Modified Sat Jul 24 19:22:14 1993 by Rik Faith (faith@cs.unc.edu)
 .\" Modified Mon May 27 21:37:47 1996 by Martin Schulze (joey@linux.de)
 .\"
-.TH GETPWENT 3  2010-10-21 "GNU" "Linux Programmer's Manual"
+.TH GETPWENT 3  2013-06-21 "GNU" "Linux Programmer's Manual"
 .SH NAME
 getpwent, setpwent, endpwent \- get password file entry
 .SH SYNOPSIS
@@ -106,7 +106,7 @@ The
 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.
@@ -151,6 +151,17 @@ Insufficient buffer space supplied.
 .TP
 .I /etc/passwd
 local password database file
+.SH ATTRIBUTES
+.SS Multithreading (see pthreads(7))
+The
+.BR getpwent ()
+function is not thread-safe.
+.LP
+The
+.BR setpwent ()
+and
+.BR endpwent ()
+functions are thread-safe.
 .SH CONFORMING TO
 SVr4, 4.3BSD, POSIX.1-2001.
 The
@@ -164,3 +175,12 @@ field is not specified in POSIX, but is present on most implementations.
 .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/.