Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Dec 2008 05:46:39 +0100
From:      Mitar <mmitar@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Open with O_APPEND fails
Message-ID:  <f63c4b2d0812272046x3977f7d6q7fb1305164db973b@mail.gmail.com>
In-Reply-To: <200812271910.43793.fbsd.questions@rachie.is-a-geek.net>
References:  <f63c4b2d0812271246u18a881e6j87e0054c24f4661a@mail.gmail.com> <200812271517.46409.fbsd.questions@rachie.is-a-geek.net> <f63c4b2d0812271916l180c6c9bt9678cebc8f808587@mail.gmail.com> <200812271910.43793.fbsd.questions@rachie.is-a-geek.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi!

On Sun, Dec 28, 2008 at 5:10 AM, Mel
<fbsd.questions@rachie.is-a-geek.net> 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.


Mitar



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