Great, I will remove the relevant code from my sys_socket module and make it dependent on errno.
I will also modify it to do errno = (err < 10025 ? err - 10000 : err == WSAENAMETOOLONG ? ENAMETOOLONG : err == WSAENOTEMPTY ? ENOTEMPTY : err); Thanks, Paolo