delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/12/13/11:29:26

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Fri, 13 Dec 2002 17:29:06 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: open_osfhandle() ?
Message-ID: <20021213172906.J19104@cygbert.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <20021213111234 DOT A2995 AT aleri DOT com>
Mime-Version: 1.0
In-Reply-To: <20021213111234.A2995@aleri.com>
User-Agent: Mutt/1.3.22.1i

On Fri, Dec 13, 2002 at 11:12:34AM -0500, Allen Leung wrote:
> Hi,
> 
>    The function open_osfhandle (or _open_osfhandle), 
> which maps a windows HANDLE into a file descriptor, 
> seems to be missing in Cygwin.  Is there a way to achieve the 
> same effect?

#include <io.h>

return get_osfhandle();

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin AT cygwin DOT com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019