From a7e4a8f2dc3a5d2f20f6250a27095e2c7886460c Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Thu, 10 Jul 2008 14:54:14 +0000 Subject: [PATCH] RETURN VALUE: note that errno is set on error. Add EINVAL error. ffix --- man3/getpw.3 | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/man3/getpw.3 b/man3/getpw.3 index 2b2680348..4892112ac 100644 --- a/man3/getpw.3 +++ b/man3/getpw.3 @@ -67,16 +67,23 @@ struct passwd { .SH "RETURN VALUE" The .BR getpw () -function returns 0 on success, or \-1 if an error -occurs. +function returns 0 on success; on error, it returns \-1, and +.I errno +is set to indicate the error. .SH ERRORS .TP +.B EINVAL +.I buf +is NULL. +.TP .B ENOENT No user corresponding to .IR uid . .TP .B ENOMEM -Insufficient memory to allocate passwd structure. +Insufficient memory to allocate +.I passwd +structure. .SH FILES .TP .I /etc/passwd