This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFA: Various Windows (mingw32) additions, mostly relating to select or serial ports


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]