Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Jan 2007 17:32:16 +0000 (UTC)
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/lib/libc/sys open.2
Message-ID:  <200701071732.l07HWGLL076554@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200701071732.l07HWGLL076554>