.\" 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 2009-02-10 "GNU" "Linux Programmer's Manual"
+.\" FIXME glibc 2.15 adds scandirat()
+.\"
+.TH SCANDIR 3 2011-09-08 "GNU" "Linux Programmer's Manual"
.SH NAME
scandir, alphasort, versionsort \- scan a directory for matching entries
.SH SYNOPSIS
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.