diff options
author | dds <dds@FreeBSD.org> | 2003-09-02 16:50:17 +0000 |
---|---|---|
committer | dds <dds@FreeBSD.org> | 2003-09-02 16:50:17 +0000 |
commit | d639820bc8a62eefd0bd6061a2526934f91a5567 (patch) | |
tree | 3da5536f2c357890a949bea5a4686fea648acda8 /lib/libc/sys/read.2 | |
parent | c5e451a8b7be96dc213b4ed3325734679de0de13 (diff) | |
download | FreeBSD-src-d639820bc8a62eefd0bd6061a2526934f91a5567.zip FreeBSD-src-d639820bc8a62eefd0bd6061a2526934f91a5567.tar.gz |
Fix/add errno return values to match the NFS client implementation and
better represent failures of special files accessed over NFS.
Approved by: schweikh (mentor)
Reviewed by: bde (as a description)
MFC after: 6 weeks
Diffstat (limited to 'lib/libc/sys/read.2')
-rw-r--r-- | lib/libc/sys/read.2 | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/lib/libc/sys/read.2 b/lib/libc/sys/read.2 index badf49f..3cb0223 100644 --- a/lib/libc/sys/read.2 +++ b/lib/libc/sys/read.2 @@ -163,9 +163,13 @@ was negative. .It Bq Er EAGAIN The file was marked for non-blocking I/O, and no data were ready to be read. -.It Bq Er EPERM -The file descriptor is associated with a non regular file -(e.g. a directory) mounted over NFS. +.It Bq Er EISDIR +The file descriptor is associated with a directory residing +on a filesystem that does not allow regular read operations on +directories (e.g. NFS). +.It Bq Er EOPNOTSUPP +The file descriptor is associated with a filesystem and file type that +do not allow regular read operations on it. .El .Pp In addition, @@ -207,11 +211,14 @@ The file descriptor is associated with a pipe, socket, or FIFO. .Sh SEE ALSO .Xr dup 2 , .Xr fcntl 2 , +.Xr getdirentries 2 , .Xr open 2 , .Xr pipe 2 , .Xr select 2 , .Xr socket 2 , -.Xr socketpair 2 +.Xr socketpair 2 , +.Xr fread 3 , +.Xr readdir 3 .Sh STANDARDS The .Fn read |