Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-developers-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin-developers AT sourceware DOT cygnus DOT com Message-ID: <3921C458.5394AF7B@vinschen.de> Date: Tue, 16 May 2000 23:57:44 +0200 From: Corinna Vinschen Reply-To: cygdev Organization: Cygnus Solutions, a Red Hat Company X-Mailer: Mozilla 4.7 [en] (X11; I; Linux 2.2.14 i686) X-Accept-Language: de, en MIME-Version: 1.0 To: cygwin-developers AT sourceware DOT cygnus DOT com Subject: Re: [RFD]: fcntl call substituting `setmode' References: <3921AC64 DOT C20AB40B AT vinschen DOT de> <20000516163240 DOT C14778 AT cygnus DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Chris Faylor wrote: > On Tue, May 16, 2000 at 10:15:32PM +0200, Corinna Vinschen wrote: > >[...] > >I would like that more than the Windowish calls > >and we could get rid of the io.h file for cygwin. > >Not instantly of course. > > Except that get_osfhandle and setmode are both standard methods > for doing things in Windows. They weren't invented for cygwin. Of course not. But as you say, they are part of windows standard methods. So they should not necessarily be part of cygwin whereas they are obviously needed for mingw. > setmode, in particular, is actually implemented on some other systems, I > believe. It's probably a no-op but... We don't have to drop that calls. Personally I like that fcntl call more and if we had one, I would prefer it's usage. > It's possible that your fcntl method actually is implemented that way > in Microsoft-land. Have you checked msdn? If so, we should definitely > implement it. They aren't implemented in M$-land. They don't have a fcntl or _fcntl call. Corinna