Add EXDEV to the errno map.
This commit is contained in:
parent
9fa2cf2eac
commit
dbc046cb7f
@ -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,
|
||||||
|
|||||||
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user