From 295882ed3238d6bfda61f5a91e1b43eb210fc485 Mon Sep 17 00:00:00 2001 From: Fedor Indutny Date: Tue, 18 Mar 2014 14:32:14 +0400 Subject: [PATCH] error: add EMLINK mapping fix joyent/node#7307 --- include/uv.h | 1 + src/unix/error.c | 1 + 2 files changed, 2 insertions(+) diff --git a/include/uv.h b/include/uv.h index dbd045df..7022bc66 100644 --- a/include/uv.h +++ b/include/uv.h @@ -135,6 +135,7 @@ extern "C" { XX( 62, ETXTBSY, "text file is busy") \ XX( 63, ERANGE, "result too large") \ XX( 64, ENXIO, "no such device or address") \ + XX( 65, EMLINK, "too many links") \ #define UV_ERRNO_GEN(val, name, s) UV_##name = val, diff --git a/src/unix/error.c b/src/unix/error.c index dead2c2e..f54ffdbc 100644 --- a/src/unix/error.c +++ b/src/unix/error.c @@ -109,6 +109,7 @@ uv_err_code uv_translate_sys_error(int sys_errno) { case ETXTBSY: return UV_ETXTBSY; case ERANGE: return UV_ERANGE; case ENXIO: return UV_ENXIO; + case EMLINK: return UV_EMLINK; default: return UV_UNKNOWN; } UNREACHABLE();