Mail Archives: cygwin-developers/1998/05/27/12:27:44
> From: newsham AT lava DOT net (Tim Newsham)
> Date: Wed, 27 May 1998 08:41:01 -1000 (HST)
>
> Is there any way to get a hold of a handle given the unix-type
> file descriptor in cygwin?
>
>It's called get_osfhandle. It's in syscalls.cc.
Oops. Forget what I said. I just looked at the function the other day,
too...
The only problem with get_osfhandle is that it only returns one handle
that is associated with the fd. ttys and serial devices have both an
input and an output handle. As long as you keep that in mind.
cgf
- Raw text -