Mail Archives: djgpp/1998/02/03/08:57:05
I'm having trouble understanding how djgpp handles FSEXT'ensions when
duplicate handles exists.
Lets say I create an handle X with socket() and install an extension
using __FSEXT_set_function (handle, func_parser). Note, socket() don't
use __FSEXT_add_open_handler().
At the same time I have an open DOS file with handle Y=X. How does e.g.
_read() differentiate between them ?
AFAIK see it can't. One solution might be to have 100 <= X <= 255.
That way the handle can also work with FD_SET and select().
Anyone know a better solution ?
Gisle V.
Gisle V.
- Raw text -