unix, windows: map EREMOTEIO errno

PR-URL: https://github.com/libuv/libuv/pull/1424
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
This commit is contained in:
Ben Noordhuis 2017-07-17 10:36:25 +02:00
parent 810377f489
commit 8e76306ec2
2 changed files with 7 additions and 0 deletions

View File

@ -416,4 +416,10 @@
# define UV__EHOSTDOWN (-4031)
#endif
#if defined(EREMOTEIO) && !defined(_WIN32)
# define UV__EREMOTEIO (-EREMOTEIO)
#else
# define UV__EREMOTEIO (-4030)
#endif
#endif /* UV_ERRNO_H_ */

View File

@ -140,6 +140,7 @@ extern "C" {
XX(ENXIO, "no such device or address") \
XX(EMLINK, "too many links") \
XX(EHOSTDOWN, "host is down") \
XX(EREMOTEIO, "remote I/O error") \
#define UV_HANDLE_TYPE_MAP(XX) \
XX(ASYNC, async) \