unix: map ELOOP to UV_ELOOP

This commit is contained in:
Maciej Małecki 2012-01-25 12:10:33 +01:00 committed by Ben Noordhuis
parent 2f182f4451
commit 3ff3626e52
2 changed files with 3 additions and 1 deletions

View File

@ -117,7 +117,8 @@ typedef intptr_t ssize_t;
XX( 47, EEXIST, "file already exists") \
XX( 48, ESRCH, "no such process") \
XX( 49, ENAMETOOLONG, "name too long") \
XX( 50, EPERM, "operation not permitted")
XX( 50, EPERM, "operation not permitted") \
XX( 51, ELOOP, "too many symbolic links encountered")
#define UV_ERRNO_GEN(val, name, s) UV_##name = val,

View File

@ -75,6 +75,7 @@ uv_err_code uv_translate_sys_error(int sys_errno) {
case ENAMETOOLONG: return UV_ENAMETOOLONG;
case EINVAL: return UV_EINVAL;
case ECONNABORTED: return UV_ECONNABORTED;
case ELOOP: return UV_ELOOP;
case ECONNREFUSED: return UV_ECONNREFUSED;
case EADDRINUSE: return UV_EADDRINUSE;
case EADDRNOTAVAIL: return UV_EADDRNOTAVAIL;