Mail Archives: djgpp/2000/07/03/02:11:07
On Sun, 2 Jul 2000, April wrote:
> > Please post a short test program that could be compiled and used to
>
> For the second call to ftruncate(), redefine MY_MAX. My HD has 320MB
> free, so it should fail at 400
Looks like a bug in `ftruncate': its algorithm is not suitable for
extending files, because DOS doesn't return an error indication when
zero bytes are written to a file. In addition, `ftruncate' should
extend the file with zeroes, which it doesn't currently do.
Thanks for reporting this. I think these problems are easy to fix, so
if you feel like working on this, please do so, and please consider
submitting the patches for inclusion in a future DJGPP version.
- Raw text -