]> git.ipfire.org Git - thirdparty/man-pages.git/blobdiff - man3/getpwent.3
err.3: EXAMPLES: use EXIT_FAILURE rather than 1 as exit status
[thirdparty/man-pages.git] / man3 / getpwent.3
index 4de22ee81bb73e576bc0bfe6aac9c040260f2175..29a8bb40367c56f65a040ad9a54653d169663e8e 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  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
@@ -85,9 +85,9 @@ function is used to close the password database
 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 */
@@ -97,7 +97,7 @@ struct passwd {
     char   *pw_dir;        /* home directory */
     char   *pw_shell;      /* shell program */
 };
-.fi
+.EE
 .in
 .PP
 For more information about the fields of this structure, see
@@ -115,7 +115,7 @@ is set appropriately.
 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 (),
@@ -173,7 +173,7 @@ T{
 .BR endpwent ()
 T}     Thread safety   MT-Unsafe race:pwent locale
 .TE
-
+.sp 1
 In the above table,
 .I pwent
 in