Mail Archives: djgpp-workers/1998/01/09/18:35:23
OK, I see where you're going on this. It does seem that dup2()ing the
low-level descriptors first, then calling fsext, makes sense. Beware
what happens during error conditions though.
I think it can be kept simple. Take the non-fsext dup2() and just add
a standard hook at the *end* of the function to give fsext a chance to
do its thing as well.
> I meant something else: the call to DOS needs to be done so that even
> __FSEXT_alloc_fd() does not accidently reuse the descriptor.
> __FSEXT_alloc_fd() won't work cause we can't tell it not to use the newfd
> descriptor (because __FSEXT_alloc_fd() asks DOS for a unique descriptor and
> it does not know that the application is already using certain
> descriptors....)
- Raw text -