Skip to content

Commit 38dc2a7

Browse files
RaisinTenopenvela-robot
authored andcommitted
include: add EOVERFLOW status code mapping
Refs: nodejs/node#38159 (comment) PR-URL: libuv/libuv#3145 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Jameson Nash <vtjnash@gmail.com>
1 parent fe13c2b commit 38dc2a7

3 files changed

Lines changed: 11 additions & 0 deletions

File tree

docs/src/errors.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,10 @@ Error constants
251251
252252
operation not supported on socket
253253

254+
.. c:macro:: UV_EOVERFLOW
255+
256+
value too large for defined data type
257+
254258
.. c:macro:: UV_EPERM
255259
256260
operation not permitted

include/uv.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ extern "C" {
126126
XX(ENOTEMPTY, "directory not empty") \
127127
XX(ENOTSOCK, "socket operation on non-socket") \
128128
XX(ENOTSUP, "operation not supported on socket") \
129+
XX(EOVERFLOW, "value too large for defined data type") \
129130
XX(EPERM, "operation not permitted") \
130131
XX(EPIPE, "broken pipe") \
131132
XX(EPROTO, "protocol error") \

include/uv/errno.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,4 +445,10 @@
445445
# define UV__EILSEQ (-4027)
446446
#endif
447447

448+
#if defined(EOVERFLOW) && !defined(_WIN32)
449+
# define UV__EOVERFLOW UV__ERR(EOVERFLOW)
450+
#else
451+
# define UV__EOVERFLOW (-4026)
452+
#endif
453+
448454
#endif /* UV_ERRNO_H_ */

0 commit comments

Comments
 (0)