From d639820bc8a62eefd0bd6061a2526934f91a5567 Mon Sep 17 00:00:00 2001 From: dds Date: Tue, 2 Sep 2003 16:50:17 +0000 Subject: 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 --- lib/libc/sys/open.2 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/libc/sys/open.2') diff --git a/lib/libc/sys/open.2 b/lib/libc/sys/open.2 index c3fc4d8..1fb2945 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 -- cgit v1.1