Subject: Re: kernel stack traceback
To: Christoph Badura <bad@ora.de>
From: Bill Studenmund <wrstuden@nas.nasa.gov>
List: tech-kern
Date: 03/19/1999 11:52:45
On Fri, 19 Mar 1999, Christoph Badura wrote:

> wrstuden@nas.nasa.gov (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?
> 
> No.

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. ??

Take care,

Bill