aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/sys
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2020-06-04 18:09:55 +0000
committerKyle Evans <kevans@FreeBSD.org>2020-06-04 18:09:55 +0000
commitdcef4f65ae3978c50eab745f67364db4660a9f43 (patch)
treef2ede67f22f30cf7185c6f34727573f0deae3867 /lib/libc/sys
parentc847212986e7e013fc8801e592a628e3d46ed02d (diff)
Notes
Diffstat (limited to 'lib/libc/sys')
-rw-r--r--lib/libc/sys/read.213
1 files changed, 9 insertions, 4 deletions
diff --git a/lib/libc/sys/read.2 b/lib/libc/sys/read.2
index cc11f3cd440ae..ad08c5a448e8c 100644
--- a/lib/libc/sys/read.2
+++ b/lib/libc/sys/read.2
@@ -28,7 +28,7 @@
.\" @(#)read.2 8.4 (Berkeley) 2/26/94
.\" $FreeBSD$
.\"
-.Dd March 30, 2020
+.Dd June 4, 2020
.Dt READ 2
.Os
.Sh NAME
@@ -199,9 +199,14 @@ was negative.
The file was marked for non-blocking I/O,
and no data were ready to be read.
.It Bq Er EISDIR
-The file descriptor is associated with a directory residing
-on a file system that does not allow regular read operations on
-directories (e.g.\& NFS).
+The file descriptor is associated with a directory.
+Directories may only be read directly if the filesystem supports it and
+the
+.Dv security.bsd.allow_read_dir
+sysctl MIB is set to a non-zero value.
+For most scenarios, the
+.Xr readdir 3
+function should be used instead.
.It Bq Er EOPNOTSUPP
The file descriptor is associated with a file system and file type that
do not allow regular read operations on it.