From 107be2bed38afa6279aa53b13b946eb60c204969 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Fri, 14 Feb 2014 16:32:09 +0100 Subject: [PATCH] unix, windows: map EFBIG errno --- include/uv-errno.h | 6 ++++++ include/uv.h | 1 + 2 files changed, 7 insertions(+) diff --git a/include/uv-errno.h b/include/uv-errno.h index 797bcab93..f5ef8470e 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 d760dfa87..25e272e34 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") \