Hi Paolo, Thanks for this big step ahead!
In set_winsock_errno, I think we also need to convert the three possible error values below 100. See http://lists.gnu.org/archive/html/bug-gnulib/2008-09/msg00136.html http://msdn.microsoft.com/en-us/library/ms740668(VS.85).aspx The rpl_close wrapper in winsock.c will collide with the one in fchdir.c. We can work on it after you commit your patch. Also, I would like to have select() implemented right, as I need it in the 'msgfilter' program. But that's also for afterwards. Bruno