unix, windows: map ERANGE errno

This commit is contained in:
Saúl Ibarra Corretgé 2014-02-25 09:51:44 +01:00
parent 8c9d5dce57
commit 2f58bb6018
2 changed files with 7 additions and 0 deletions

View File

@ -388,4 +388,10 @@
# define UV__ENOPROTOOPT (-4035)
#endif
#if defined(ERANGE) && !defined(_WIN32)
# define UV__ERANGE (-ERANGE)
#else
# define UV__ERANGE (-4034)
#endif
#endif /* UV_ERRNO_H_ */

View File

@ -127,6 +127,7 @@ extern "C" {
XX(EPROTO, "protocol error") \
XX(EPROTONOSUPPORT, "protocol not supported") \
XX(EPROTOTYPE, "protocol wrong type for socket") \
XX(ERANGE, "result too large") \
XX(EROFS, "read-only file system") \
XX(ESHUTDOWN, "cannot send after transport endpoint shutdown") \
XX(ESPIPE, "invalid seek") \