From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22465 invoked by alias); 4 Feb 2006 15:30:29 -0000 Received: (qmail 22457 invoked by uid 22791); 4 Feb 2006 15:30:29 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Sat, 04 Feb 2006 15:30:28 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1F5PMo-0004hQ-P0 for gdb-patches@sourceware.org; Sat, 04 Feb 2006 10:30:26 -0500 Date: Sat, 04 Feb 2006 15:30:00 -0000 From: Daniel Jacobowitz To: gdb-patches@sourceware.org Subject: Re: RFA: Various Windows (mingw32) additions, mostly relating to select or serial ports Message-ID: <20060204153026.GA18040@nevyn.them.org> Mail-Followup-To: gdb-patches@sourceware.org References: <20060203220529.GA3578@nevyn.them.org> <20060204151124.GD17011@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.8i X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-02/txt/msg00083.txt.bz2 On Sat, Feb 04, 2006 at 05:23:38PM +0200, Eli Zaretskii wrote: > Out of curiosity: does Cygwin's `select' use a similar object-specific > code to handle different types of handles? Yes, it does. Since the POSIX emulation is considerably more thorough than the job I've done here, they have many more methods, but ever file descriptor in Cygwin is mapped to a Windows handle and an object providing various methods (including a thread to run during select and a peek method, as it happens). If anyone's wondering, I didn't borrow the code from Cygwin, and upon a little more reflection I don't think it would have been practical to do so without linking with all of Cygwin anyway. -- Daniel Jacobowitz CodeSourcery