readdir_r: return values not clearly mentioned
Hi,
in man 3 readdir_r (man-pages-3.24, page date 2009-07-04) the possible return values are described as:
"The readdir_r() function returns 0 on success. On error, it returns a positive error number."
It is not mentioned which possible error numbers may occur.
Thank You
Felix
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 9 lines · On Thu, Jul 22, 2010 at 9:26 AM, fkater-gM/[email protected]…
Hi,
in man 3
readdir_r(man-pages-3.24, page date 2009-07-04) the possible return values are described as:"The
readdir_r()function returns 0 on success. On error, it returns a positive error number."It is not mentioned which possible error numbers may occur.
Well, it is, but it could be clearer. See the patch below, for man-pages-3.27.
Thanks,
Michael
man3/readdir.3 +2 -2
@@ -31,7 +31,7 @@ .\" Rework discussion of nonstandard structure fields. .\" 2008-09-11, mtk, Document readdir_r(). .\" -.TH READDIR 3 2009-07-04 "" "Linux Programmer's Manual" +.TH READDIR 3 2010-09-10 "" "Linux Programmer's Manual" .SH NAME readdir, readdir_r \- read a directory .SH SYNOPSIS
@@ -131,7 +131,7 @@ is set appropriately. The .BR readdir_r () function returns 0 on success. -On error, it returns a positive error number. +On error, it returns a positive error number (listed under ERRORS). If the end of the directory stream is reached, .BR readdir_r () returns 0, and returns NULL in
Signature · 7 lines
Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Author of "The Linux Programming Interface"; http://man7.org/tlpi/ -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html