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
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to