diff --git a/man3/scandir.3 b/man3/scandir.3 index 745653d18..5e3d1674d 100644 --- a/man3/scandir.3 +++ b/man3/scandir.3 @@ -33,7 +33,7 @@ .\" Modified Sun Sep 24 20:15:46 2000 by aeb, following Petter Reinholdtsen. .\" Modified 2001-12-26 by aeb, following Joey. Added versionsort. .\" -.TH SCANDIR 3 2012-04-26 "GNU" "Linux Programmer's Manual" +.TH SCANDIR 3 2013-04-19 "GNU" "Linux Programmer's Manual" .SH NAME scandir, alphasort, versionsort \- scan a directory for matching entries .SH SYNOPSIS @@ -93,7 +93,10 @@ on the strings \fI(*a)\->d_name\fP and \fI(*b)\->d_name\fP. The .BR scandir () function returns the number of directory entries -selected or \-1 if an error occurs. +selected. +On error, \-1 is returned, with +.I errno +set to indicate the cause of the error. .PP The .BR alphasort ()