diff --git a/docs/src/errors.rst b/docs/src/errors.rst index c2daa858..25d0efaf 100644 --- a/docs/src/errors.rst +++ b/docs/src/errors.rst @@ -251,6 +251,10 @@ Error constants operation not supported on socket +.. c:macro:: UV_EOVERFLOW + + value too large for defined data type + .. c:macro:: UV_EPERM operation not permitted diff --git a/include/uv.h b/include/uv.h index deda6ca7..d2bdcc9c 100644 --- a/include/uv.h +++ b/include/uv.h @@ -126,6 +126,7 @@ extern "C" { XX(ENOTEMPTY, "directory not empty") \ XX(ENOTSOCK, "socket operation on non-socket") \ XX(ENOTSUP, "operation not supported on socket") \ + XX(EOVERFLOW, "value too large for defined data type") \ XX(EPERM, "operation not permitted") \ XX(EPIPE, "broken pipe") \ XX(EPROTO, "protocol error") \ diff --git a/include/uv/errno.h b/include/uv/errno.h index aadce9c1..a0ca571b 100644 --- a/include/uv/errno.h +++ b/include/uv/errno.h @@ -445,4 +445,10 @@ # define UV__EILSEQ (-4027) #endif +#if defined(EOVERFLOW) && !defined(_WIN32) +# define UV__EOVERFLOW UV__ERR(EOVERFLOW) +#else +# define UV__EOVERFLOW (-4026) +#endif + #endif /* UV_ERRNO_H_ */