Mail Archives: djgpp/2000/02/28/03:49:06
On Sun, 27 Feb 2000, Ken Yap wrote:
> >> ftprchan = fdopen(fd, "rb");
> >> ftpwchan = fdopen(dup(fd), "wb");
> >
> >I don't understand why the normal dup won't do in this case. You
> >*can* call dup and dup2 on the handle returned by the FSEXT, because
> >it's a valid DOS handle. And since you hooked _open, the new handle
> >gets hooked inside that handler, right? So where is the problem?
>
> The problem is the WATT-32 dup needs to be called to do the right thing
> for a socket dup
What is ``the right thing for a socket dup''?
I'm asking because I think most (if not all) of what needs to be done
is already done by the existing functionality if you simply call dup.
> >I'm sure your patches to add this would be greatly appreciated ;-).
>
> If I can figure out what's going on.
Assuming you took a glance at the FSEXT implementation in the library
sources, feel free to ask questions here if you find something
unclear.
- Raw text -