summaryrefslogtreecommitdiff
path: root/lib/libc/sys/getdirentries.2
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/sys/getdirentries.2')
-rw-r--r--lib/libc/sys/getdirentries.27
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/libc/sys/getdirentries.2 b/lib/libc/sys/getdirentries.2
index d7ecb5de859..d56d8c9541f 100644
--- a/lib/libc/sys/getdirentries.2
+++ b/lib/libc/sys/getdirentries.2
@@ -140,6 +140,13 @@ Either
or
.Fa basep
point outside the allocated address space.
+.It Bq Er EINVAL
+The file referenced by
+.Fa fd
+is not a directory, or
+.Fa nbytes
+is too small for returning a directory entry or block of entries,
+or the current position pointer is invalid.
.It Bq Er EIO
An
.Tn I/O