mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
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
This commit is contained in:
parent
5a5f2134b8
commit
bd2f86fe4e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=119688
|
@ -245,6 +245,9 @@ operation was interrupted by a signal.
|
|||
or
|
||||
.Dv O_EXLOCK
|
||||
is specified but the underlying file system does not support locking.
|
||||
.It Bq Er EOPNOTSUPP
|
||||
The named file is a special file mounted through a filesystem that
|
||||
does not support access to it (e.g. NFS).
|
||||
.It Bq Er EWOULDBLOCK
|
||||
.Dv O_NONBLOCK
|
||||
and one of
|
||||
|
@ -316,7 +319,8 @@ and
|
|||
.Xr lseek 2 ,
|
||||
.Xr read 2 ,
|
||||
.Xr umask 2 ,
|
||||
.Xr write 2
|
||||
.Xr write 2 ,
|
||||
.Xr fopen 3
|
||||
.Sh HISTORY
|
||||
The
|
||||
.Fn open
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue