Add EXDEV to the errno map.

This commit is contained in:
Nathan Rajlich 2012-02-06 00:21:33 -08:00 committed by Ben Noordhuis
parent 9fa2cf2eac
commit dbc046cb7f
2 changed files with 3 additions and 1 deletions

View File

@ -118,7 +118,8 @@ typedef intptr_t ssize_t;
XX( 48, ESRCH, "no such process") \ XX( 48, ESRCH, "no such process") \
XX( 49, ENAMETOOLONG, "name too long") \ 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") XX( 51, ELOOP, "too many symbolic links encountered") \
XX( 52, EXDEV, "cross-device link not permitted")
#define UV_ERRNO_GEN(val, name, s) UV_##name = val, #define UV_ERRNO_GEN(val, name, s) UV_##name = val,

View File

@ -87,6 +87,7 @@ uv_err_code uv_translate_sys_error(int sys_errno) {
case EAI_NONAME: return UV_ENOENT; case EAI_NONAME: return UV_ENOENT;
case ESRCH: return UV_ESRCH; case ESRCH: return UV_ESRCH;
case ETIMEDOUT: return UV_ETIMEDOUT; case ETIMEDOUT: return UV_ETIMEDOUT;
case EXDEV: return UV_EXDEV;
default: return UV_UNKNOWN; default: return UV_UNKNOWN;
} }