Mail Archives: djgpp-workers/1999/01/13/05:30:34
On Wed, 13 Jan 1999, Laszlo Molnar wrote:
> Yes, I use tell() before reading and lseek() after it.
You will have to simulate the file pointer yourself now.
In general, relying on the normal file-oriented DOS functions to do
something for a handle that you hooked with an fsext is a bad idea. If
you hook the handle, you should emulate everything.
Fsext only reserves a file handle to make sure no real file handle has
the same value. But you shouldn't rely on any hidden knowledge about the
internal workings of fsext for other purposes.
> However I liked the 2.01 version better, because
> in that version the fsext handle worked just like a real file handle,
> it took care about the file position.
v2.01 implementation would fail after allocating a few handles. Typical
systems have something like FILES=40. Somebody complained that it is
unreasonable to limit filesystem extensions that don't really use any
files.
- Raw text -