diff --git a/include/uv-errno.h b/include/uv-errno.h index 797bcab9..f5ef8470 100644 --- a/include/uv-errno.h +++ b/include/uv-errno.h @@ -370,4 +370,10 @@ # define UV__EXDEV (-4037) #endif +#if defined(EFBIG) && !defined(_WIN32) +# define UV__EFBIG (-EFBIG) +#else +# define UV__EFBIG (-4036) +#endif + #endif /* UV_ERRNO_H_ */ diff --git a/include/uv.h b/include/uv.h index d760dfa8..25e272e3 100644 --- a/include/uv.h +++ b/include/uv.h @@ -94,6 +94,7 @@ extern "C" { XX(EDESTADDRREQ, "destination address required") \ XX(EEXIST, "file already exists") \ XX(EFAULT, "bad address in system call argument") \ + XX(EFBIG, "file too large") \ XX(EHOSTUNREACH, "host is unreachable") \ XX(EINTR, "interrupted system call") \ XX(EINVAL, "invalid argument") \