On Sat, Feb 23, 2013 at 12:07, Sachidananda wrote:
> Hi,
> 
> When a file is open(2)ed with O_APPEND flag, write(2) seeks to the end
> of file before writing. We are missing this in the man page.
> 
> If this is a valid point to note, I will send a patch to the man page.

That's documented in the open man page.  The flag is passed to
open and not write, so that's the correct place.

Also, for the record, it's open that seeks to the end.  You can open a
file with O_APPEND and seek back to the beginning, and write will not
seek to the end again.

Reply via email to