Skip to content
This repository was archived by the owner on Nov 21, 2018. It is now read-only.

Commit 107be2b

Browse files
committed
unix, windows: map EFBIG errno
1 parent c8e4db6 commit 107be2b

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

include/uv-errno.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,4 +370,10 @@
370370
# define UV__EXDEV (-4037)
371371
#endif
372372

373+
#if defined(EFBIG) && !defined(_WIN32)
374+
# define UV__EFBIG (-EFBIG)
375+
#else
376+
# define UV__EFBIG (-4036)
377+
#endif
378+
373379
#endif /* UV_ERRNO_H_ */

include/uv.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ extern "C" {
9494
XX(EDESTADDRREQ, "destination address required") \
9595
XX(EEXIST, "file already exists") \
9696
XX(EFAULT, "bad address in system call argument") \
97+
XX(EFBIG, "file too large") \
9798
XX(EHOSTUNREACH, "host is unreachable") \
9899
XX(EINTR, "interrupted system call") \
99100
XX(EINVAL, "invalid argument") \

0 commit comments

Comments
 (0)