scandir(3): Add ENOENT/ENOTDIR errors

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Mike Frysinger 2011-09-01 11:07:07 -04:00 committed by Michael Kerrisk
parent d3bd4b52af
commit cb06e4a50f
1 changed files with 7 additions and 1 deletions

View File

@ -33,7 +33,7 @@
.\"
.\" FIXME glibc 2.15 adds scandirat()
.\"
.TH SCANDIR 3 2009-02-10 "GNU" "Linux Programmer's Manual"
.TH SCANDIR 3 2011-09-08 "GNU" "Linux Programmer's Manual"
.SH NAME
scandir, alphasort, versionsort \- scan a directory for matching entries
.SH SYNOPSIS
@ -104,8 +104,14 @@ or greater than zero if the first argument is considered to be
respectively less than, equal to, or greater than the second.
.SH ERRORS
.TP
.B ENOENT
The path in \fIdirp\fR does not exist.
.TP
.B ENOMEM
Insufficient memory to complete the operation.
.TP
.B ENOTDIR
The path in \fIdirp\fR is not a directory.
.SH VERSIONS
.BR versionsort ()
was added to glibc in version 2.1.