mirror of https://github.com/mkerrisk/man-pages
scandir.3: RETURN VALUE: mention that 'errno' is set on error
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
a824712b8a
commit
fd88c684f8
|
@ -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 ()
|
||||
|
|
Loading…
Reference in New Issue