diff options
author | pjd <pjd@FreeBSD.org> | 2007-01-07 17:32:16 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2007-01-07 17:32:16 +0000 |
commit | 39a9779535fa3d6e03f70d09cd9a766cfbbd5b42 (patch) | |
tree | 76cfc46aed1644d004436898f5598d494b7d6402 /lib/libc/string/wcscmp.c | |
parent | bbdd96d01adb92a00991f7a0367747c774d36e52 (diff) | |
download | FreeBSD-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/libc/string/wcscmp.c')
0 files changed, 0 insertions, 0 deletions