mirror of https://github.com/mkerrisk/man-pages
RETURN VALUE: note that errno is set on error.
Add EINVAL error. ffix
This commit is contained in:
parent
50963b3676
commit
a7e4a8f2dc
13
man3/getpw.3
13
man3/getpw.3
|
@ -67,16 +67,23 @@ struct passwd {
|
||||||
.SH "RETURN VALUE"
|
.SH "RETURN VALUE"
|
||||||
The
|
The
|
||||||
.BR getpw ()
|
.BR getpw ()
|
||||||
function returns 0 on success, or \-1 if an error
|
function returns 0 on success; on error, it returns \-1, and
|
||||||
occurs.
|
.I errno
|
||||||
|
is set to indicate the error.
|
||||||
.SH ERRORS
|
.SH ERRORS
|
||||||
.TP
|
.TP
|
||||||
|
.B EINVAL
|
||||||
|
.I buf
|
||||||
|
is NULL.
|
||||||
|
.TP
|
||||||
.B ENOENT
|
.B ENOENT
|
||||||
No user corresponding to
|
No user corresponding to
|
||||||
.IR uid .
|
.IR uid .
|
||||||
.TP
|
.TP
|
||||||
.B ENOMEM
|
.B ENOMEM
|
||||||
Insufficient memory to allocate passwd structure.
|
Insufficient memory to allocate
|
||||||
|
.I passwd
|
||||||
|
structure.
|
||||||
.SH FILES
|
.SH FILES
|
||||||
.TP
|
.TP
|
||||||
.I /etc/passwd
|
.I /etc/passwd
|
||||||
|
|
Loading…
Reference in New Issue