This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: fd --> handle?
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Mon, 11 Aug 2003 13:55:48 +0200
- Subject: Re: fd --> handle?
- References: <u3cgneq8v.fsf@gnu.org>
- Reply-to: cygwin at cygwin dot com
On Wed, Jul 30, 2003 at 04:03:44PM -0400, Sam Steingold wrote:
> how do I convert a cygwin file descriptor (int) to an underlying win32
> HANDLE?
> (i.e., reverse cygwin_attach_handle_to_fd()).
#include <io.h>
HANDLE hdl = get_osfhandle (fd);
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:cygwin@cygwin.com
Red Hat, Inc.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/