Skip to content

Commit

Permalink
include: add EOVERFLOW status code mapping
Browse files Browse the repository at this point in the history
Refs: nodejs/node#38159 (comment)
PR-URL: libuv#3145
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Jameson Nash <vtjnash@gmail.com>
  • Loading branch information
RaisinTen authored and JeffroMF committed May 16, 2022
1 parent 5f82e90 commit 74a85a5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/src/errors.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions include/uv.h
Original file line number Diff line number Diff line change
Expand Up @@ -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") \
Expand Down
6 changes: 6 additions & 0 deletions include/uv/errno.h
Original file line number Diff line number Diff line change
Expand Up @@ -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_ */

0 comments on commit 74a85a5

Please sign in to comment.