Mail Archives: djgpp-workers/1999/07/20/04:56:45
On Mon, 19 Jul 1999, Alain Magloire wrote:
> > Our implementation does. I am not sure whether this is a bug in the
> > GNU application or in our implementation. One Unix box says in
>
> That's a bug in the implementation.
Thanks, I corrected this.
> An lseek()/write() will not do it, sometimes you want to create
> a "hole" in the file by lseek()ing pass the size not ftruncate()ed
> i.e. readjust its size.
I think on DOS lseek followed by write does produce a hole like that.
On DOS, a write of zero bytes has the effect of adjusting the file's
size to the current byte position.
- Raw text -