Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
unix, windows: map ERANGE errno
Browse files Browse the repository at this point in the history
  • Loading branch information
saghul committed Feb 25, 2014
1 parent 8c9d5dc commit 2f58bb6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/uv-errno.h
Expand Up @@ -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_ */
1 change: 1 addition & 0 deletions include/uv.h
Expand Up @@ -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") \
Expand Down

0 comments on commit 2f58bb6

Please sign in to comment.