From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11239 invoked by alias); 21 Apr 2005 20:30:34 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 11209 invoked from network); 21 Apr 2005 20:30:30 -0000 Received: from unknown (HELO legolas.inter.net.il) (192.114.186.24) by sourceware.org with SMTP; 21 Apr 2005 20:30:30 -0000 Received: from zaretski (IGLD-80-230-73-48.inter.net.il [80.230.73.48]) by legolas.inter.net.il (MOS 3.5.6-GR) with ESMTP id EFG89090 (AUTH halo1); Thu, 21 Apr 2005 23:29:10 +0300 (IDT) Date: Thu, 21 Apr 2005 20:30:00 -0000 From: "Eli Zaretskii" To: Mark Mitchell Message-ID: <01c546b0$Blat.v2.4$c193bb40@zahav.net.il> Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=ISO-8859-1 CC: gdb-patches@sources.redhat.com In-reply-to: <4267F742.2090108@codesourcery.com> (message from Mark Mitchell on Thu, 21 Apr 2005 11:56:02 -0700) Subject: Re: PATCH: Support Windows in event-loop.c Reply-to: Eli Zaretskii References: <200504210549.j3L5n2nP027728@sirius.codesourcery.com> <01c546a1$Blat.v2.4$e03250c0@zahav.net.il> <4267F742.2090108@codesourcery.com> X-SW-Source: 2005-04/txt/msg00259.txt.bz2 > Date: Thu, 21 Apr 2005 11:56:02 -0700 > From: Mark Mitchell > CC: gdb-patches@sources.redhat.com > > Eli Zaretskii wrote: > > > Is it perhaps possible to write an emulation of `select' that would > > handle file handles as well > > Well, Cygwin has select, so it is *possible*. But, it's not easy, and > it doesn't really map terribly well onto what Windows provides. Perhaps you could look at w32proc.c:sys_select in the Emacs distribution, and copy its code with minimal changes. > As Daniel says, this is very much analogous to poll/select; different > systems provide different low-level mechanisms for waiting for input. It isn't analogous: HAVE_POLL tests for a system-independent functionality, not unlike HAVE_UNISTD_H, while USE_WIN32API tests for an OS-specific misfeature and names an OS-specific macro.