Subject: Re: kernel stack traceback
To: Christoph Badura <firstname.lastname@example.org>
From: Bill Studenmund <email@example.com>
Date: 03/19/1999 11:52:45
On Fri, 19 Mar 1999, Christoph Badura wrote:
> firstname.lastname@example.org (Bill Studenmund) writes:
> >So the fmode is O_RDWR | O_NONBLOCK | O_APPEND | O_CREAT | O_TRUNC.
> >Why do you have O_APPEND & O_TRUNC set? If you have O_TRUNC set, wouldn't
> >all writes naturally append?
Why not? Obviously if you use pwrite, or throw a seek in there, they won't
append. But if you open with O_TRUNC, isn't the current file position set
to the front of the file? Thus writes w/o a seek start from the current
possition, and update that possition. ??