getspnam.3: RETURN VALUE: mention that 'errno' is set on error

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2013-04-19 09:05:01 +02:00
parent c0ebcc7abd
commit c433dca4a7
1 changed files with 4 additions and 2 deletions

View File

@ -5,7 +5,7 @@
.\" Distributed under GPL
.\" %%%LICENSE_END
.\"
.TH GETSPNAM 3 2013-01-22 "GNU" "Linux Programmer's Manual"
.TH GETSPNAM 3 2013-04-19 "GNU" "Linux Programmer's Manual"
.SH NAME
getspnam, getspnam_r, getspent, getspent_r, setspent, endspent,
fgetspent, fgetspent_r, sgetspent, sgetspent_r, putspent,
@ -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.