Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Add EXDEV to the errno map.

  • Loading branch information
TooTallNate authored and bnoordhuis committed Feb 6, 2012
1 parent 9fa2cf2 commit dbc046cb7f3705d9f9a386e22f48e7996624909a
Showing with 3 additions and 1 deletion.
  1. +2 −1 include/uv.h
  2. +1 −0 src/unix/error.c
@@ -118,7 +118,8 @@ typedef intptr_t ssize_t;
XX( 48, ESRCH, "no such process") \
XX( 49, ENAMETOOLONG, "name too long") \
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,
@@ -87,6 +87,7 @@ uv_err_code uv_translate_sys_error(int sys_errno) {
case EAI_NONAME: return UV_ENOENT;
case ESRCH: return UV_ESRCH;
case ETIMEDOUT: return UV_ETIMEDOUT;
case EXDEV: return UV_EXDEV;
default: return UV_UNKNOWN;
}

0 comments on commit dbc046c

Please sign in to comment.
You can’t perform that action at this time.