unix, windows: map ERANGE errno
This commit is contained in:
parent
8c9d5dce57
commit
2f58bb6018
@ -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_ */
|
||||
|
||||
@ -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") \
|
||||
|
||||
Loading…
Reference in New Issue
Block a user