www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1998/04/23/23:52:52

From: sos AT prospect DOT com DOT ru (Sergey Okhapkin)
Subject: RE: cygwin32_attach_handle_to_fd
23 Apr 1998 23:52:52 -0700 :
Message-ID: <01BD6F6D.A198B560.cygnus.cygwin32.developers@drs>
To: "'Christopher Faylor'" <cgf AT cygnus DOT com>
Cc: "'cygwin32-developers AT cygnus DOT com'" <cygwin32-developers AT cygnus DOT com>

Christopher Faylor wrote:
> >What this function supposed to do?
>
> It's like fdopen for Windows HANDLEs.
>

Why not implement MSVC-compatible call

int open_osfhandle (HANDLE osfhandle, int flags)? This call + dup2() does 
the same as cygwin32_attach...! I think the closer cygwin's win32-specific 
api will be to ms libs, the better.

BTW, Xemacs/NT developers already asked me to support this call in cygwin 
:-)

--
Sergey Okhapkin, http://www.lexa.ru/sos
Moscow, Russia.

- Raw text -


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