I just realised this is not going to cut it. See what we do for getaddrinfo, the error code needs to be translated.