.\" Distributed under GPL
.\" %%%LICENSE_END
.\"
-.TH GETSPNAM 3 2013-01-22 "GNU" "Linux Programmer's Manual"
+.TH GETSPNAM 3 2014-05-28 "GNU" "Linux Programmer's Manual"
.SH NAME
getspnam, getspnam_r, getspent, getspent_r, setspent, endspent,
fgetspent, fgetspent_r, sgetspent, sgetspent_r, putspent,
.sp
.BI "struct spwd *sgetspent(const char *" s );
.sp
-.BI "int putspent(struct spwd *" p ", FILE *" fp );
+.BI "int putspent(const struct spwd *" p ", FILE *" fp );
.sp
.B int lckpwdf(void);
.sp
.BR getpwnam (3)
and
.BR getpwent (3)).
-.\" FIXME I've commented out the following for the
+.\" FIXME . I've commented out the following for the
.\" moment. The relationship between PAM and nsswitch.conf needs
.\" to be clearly documented in one place, which is pointed to by
.\" the pages for the user, group, and shadow password functions.
The functions that return a pointer return NULL if no more entries
are available or if an error occurs during processing.
The functions which have \fIint\fP as the return value return 0 for
-success and \-1 for failure.
+success and \-1 for failure, with
+.I errno
+set to indicate the cause of the error.
.LP
For the nonreentrant functions, the return value may point to static area,
and may be overwritten by subsequent calls to these functions.
.BR getpwnam (3),
.BR getpwnam_r (3),
.BR shadow (5)
+.SH COLOPHON
+This page is part of release 3.75 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/.