Open with O_APPEND fails

Mitar mmitar at
Sun Dec 28 04:46:40 UTC 2008


On Sun, Dec 28, 2008 at 5:10 AM, Mel
<fbsd.questions at> wrote:
> open(2) will succeed but write(2) will fail with EBADF as documented (and I
> verified this behavior). Still no EACCES as you and the bugreporter are
> seeing.

Where is documented that write would fail if file is opened only with
O_APPEND? Just O_APPEND should also open file for writing as appending
is also writing. It cannot be used without "write" semantics so file
has to be open also for writing.


More information about the freebsd-questions mailing list