cvs commit: src/lib/libc/sys open.2
Pawel Jakub Dawidek
pjd at FreeBSD.org
Sun Jan 7 09:32:17 PST 2007
pjd 2007-01-07 17:32:16 UTC
FreeBSD src repository
Modified files:
lib/libc/sys open.2
Log:
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.
Revision Changes Path
1.34 +1 -1 src/lib/libc/sys/open.2
More information about the cvs-src
mailing list