www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1998/05/27/12:27:44

From: cgf AT cygnus DOT com (Christopher Faylor)
Subject: Re: close-on-exec doesnt work for spawn*()
27 May 1998 12:27:44 -0700 :
Message-ID: <199805271905.PAA29917.cygnus.cygwin32.developers@kramden.cygnus.com>
To: ian AT cygnus DOT com, newsham AT lava DOT net
Cc: cgf AT cygnus DOT com, cygwin32-developers AT cygnus DOT com

>   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 -


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