diff options
| author | Michael Kerrisk <mtk.manpages@gmail.com> | 2013-04-19 10:06:06 +0200 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2013-04-19 14:19:01 +0200 |
| commit | fd88c684f84fcf66962f6e4ce23870af8081fd7b (patch) | |
| tree | ef76845a63a9e4e705912baf45bbb8c99f6bd9b1 | |
| parent | a824712b8a38c15429cf56e5e54cd3b41e7ce59a (diff) | |
| download | man-pages-fd88c684f84fcf66962f6e4ce23870af8081fd7b.tar.gz | |
scandir.3: RETURN VALUE: mention that 'errno' is set on error
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
| -rw-r--r-- | man3/scandir.3 | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/man3/scandir.3 b/man3/scandir.3 index 745653d189..5e3d1674d7 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 () |
