diff options
author | Diomidis Spinellis <dds@FreeBSD.org> | 2003-09-02 16:50:17 +0000 |
---|---|---|
committer | Diomidis Spinellis <dds@FreeBSD.org> | 2003-09-02 16:50:17 +0000 |
commit | bd2f86fe4e29a3428e9bcc3d9d998aa11f7ae1d7 (patch) | |
tree | 3da5536f2c357890a949bea5a4686fea648acda8 /lib/libc/sys/open.2 | |
parent | 5a5f2134b883339a4a1038f17a4b45bdfa81d665 (diff) | |
download | src-bd2f86fe4e29a3428e9bcc3d9d998aa11f7ae1d7.tar.gz src-bd2f86fe4e29a3428e9bcc3d9d998aa11f7ae1d7.zip |
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
Notes
Notes:
svn path=/head/; revision=119688
Diffstat (limited to 'lib/libc/sys/open.2')
-rw-r--r-- | lib/libc/sys/open.2 | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libc/sys/open.2 b/lib/libc/sys/open.2 index c3fc4d831a78..1fb294543e99 100644 --- a/lib/libc/sys/open.2 +++ b/lib/libc/sys/open.2 @@ -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 |