error: add EMLINK mapping

fix joyent/node#7307
This commit is contained in:
Fedor Indutny 2014-03-18 14:32:14 +04:00 committed by Fedor Indutny
parent fd77a5d6c6
commit 295882ed32
2 changed files with 2 additions and 0 deletions

View File

@ -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,

View File

@ -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();