OSDN Git Service

LDP: Update original to LDP v3.75
[linuxjm/LDP_man-pages.git] / original / man3 / getspnam.3
index 3799711..ac12ba8 100644 (file)
@@ -5,7 +5,7 @@
 .\" 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,
@@ -28,7 +28,7 @@ lckpwdf, ulckpwdf \- get shadow password file entry
 .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
@@ -88,7 +88,7 @@ the traditional password database
 .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.
@@ -217,7 +217,9 @@ struct spwd {
 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.
@@ -253,3 +255,12 @@ However, many other systems provide a similar API.
 .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/.