.\" 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 2016-03-15 "GNU" "Linux Programmer's Manual"
+.TH GETPWENT 3 2017-09-15 "GNU" "Linux Programmer's Manual"
.SH NAME
getpwent, setpwent, endpwent \- get password file entry
.SH SYNOPSIS
after all processing has been performed.
.PP
The \fIpasswd\fP structure is defined in \fI<pwd.h>\fP as follows:
-.sp
+.PP
.in +4n
-.nf
+.EX
struct passwd {
char *pw_name; /* username */
char *pw_passwd; /* user password */
char *pw_dir; /* home directory */
char *pw_shell; /* shell program */
};
-.fi
+.EE
.in
.PP
For more information about the fields of this structure, see
If one wants to check
.I errno
after the call, it should be set to zero before the call.
-
+.PP
The return value may point to a static area, and may be overwritten
by subsequent calls to
.BR getpwent (),
.BR endpwent ()
T} Thread safety MT-Unsafe race:pwent locale
.TE
-
+.sp 1
In the above table,
.I pwent
in