Re: [RFT/RFH] porting the poll module to win32

2008-08-18 Thread Paolo Bonzini
What do you think about writing a gnulib self-test that tests whether poll works correctly? It would help to test the replacement function on various platforms quicker, and also helps catch regression. I suspect writing a self test may be somewhat complicated though, you'll need to setup at le

Re: [RFT/RFH] porting the poll module to win32

2008-08-18 Thread Simon Josefsson
Hi Paolo. I'm trying to use your poll replacement. I have rewritten gnutls-cli to use poll, and it works fine under debian. However, building under mingw32 fails. With your original patch I get compile errors. What do you think about writing a gnulib self-test that tests whether poll works cor

Re: [RFT/RFH] porting the poll module to win32

2008-08-18 Thread Paolo Bonzini
If you believe I should be able to modify the code to use poll instead of select, That's for sure. I attach an example of a bidirectional I/O loop using poll. and to use your module successfully for mingw32, I could give it a try. Yes, stdin from the console is a console handle. The atta

Re: [RFT/RFH] porting the poll module to win32

2008-08-18 Thread Simon Josefsson
Paolo Bonzini <[EMAIL PROTECTED]> writes: > Hi, > > a while ago a user of GNU Smalltalk contributed code to run the > emulation of poll in gnulib under Win32. The code was a little > hackish, as it worked by emulating other POSIX system calls "as well > as it was needed" to emulate poll; so I nev

[RFT/RFH] porting the poll module to win32

2008-08-18 Thread Paolo Bonzini
Hi, a while ago a user of GNU Smalltalk contributed code to run the emulation of poll in gnulib under Win32. The code was a little hackish, as it worked by emulating other POSIX system calls "as well as it was needed" to emulate poll; so I never contributed it to gnulib. Now, however, I mer