summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2007-01-07 17:32:16 +0000
committerpjd <pjd@FreeBSD.org>2007-01-07 17:32:16 +0000
commit39a9779535fa3d6e03f70d09cd9a766cfbbd5b42 (patch)
tree76cfc46aed1644d004436898f5598d494b7d6402 /lib
parentbbdd96d01adb92a00991f7a0367747c774d36e52 (diff)
downloadFreeBSD-src-39a9779535fa3d6e03f70d09cd9a766cfbbd5b42.zip
FreeBSD-src-39a9779535fa3d6e03f70d09cd9a766cfbbd5b42.tar.gz
Prefer "to be modified" over "to be opened for writing".
This is quite tricky situation, because we allow to open a file with O_RDONLY|O_TRUNC. O_TRUNC modifies a file, but we actually don't open it for writing. EISDIR is also returned when we try to open a directory O_RDONLY|O_TRUNC, which is correct. POSIX says that "The result of using O_TRUNC with O_RDONLY is undefined.", we choose to accept it (Solaris did the same), that's why "to be modified" seems more accurate to me.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/sys/open.22
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/sys/open.2 b/lib/libc/sys/open.2
index 0496ce0..e56ddc0 100644
--- a/lib/libc/sys/open.2
+++ b/lib/libc/sys/open.2
@@ -238,7 +238,7 @@ does not permit writing.
Too many symbolic links were encountered in translating the pathname.
.It Bq Er EISDIR
The named file is a directory, and the arguments specify
-it is to be opened for writing.
+it is to be modified.
.It Bq Er EROFS
The named file resides on a read-only file system,
and the file is to be modified.
OpenPOWER on IntegriCloud