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

unix: map EISDIR

  • Loading branch information...
bnoordhuis committed Nov 7, 2011
1 parent 16d48be commit 51df5e3b00942a0b31a999e04b1b647544e7d2b6
Showing with 3 additions and 0 deletions.
  1. +1 −0 include/uv.h
  2. +2 −0 src/unix/error.c
@@ -97,6 +97,7 @@ typedef enum {
UV_ENOBUFS,
UV_ENOMEM,
UV_ENOTDIR,
UV_EISDIR,
UV_ENONET,
UV_ENOPROTOOPT,
UV_ENOTCONN,
@@ -75,6 +75,7 @@ static int uv__translate_lib_error(int code) {
case UV_EADDRINUSE: return EADDRINUSE;
case UV_EADDRNOTAVAIL: return EADDRNOTAVAIL;
case UV_ENOTDIR: return ENOTDIR;
case UV_EISDIR: return EISDIR;
case UV_ENOTCONN: return ENOTCONN;
case UV_EEXIST: return EEXIST;
case UV_EHOSTUNREACH: return EHOSTUNREACH;
@@ -106,6 +107,7 @@ uv_err_code uv_translate_sys_error(int sys_errno) {
case EADDRINUSE: return UV_EADDRINUSE;
case EADDRNOTAVAIL: return UV_EADDRNOTAVAIL;
case ENOTDIR: return UV_ENOTDIR;
case EISDIR: return UV_EISDIR;
case ENOTCONN: return UV_ENOTCONN;
case EEXIST: return UV_EEXIST;
case EHOSTUNREACH: return UV_EHOSTUNREACH;

0 comments on commit 51df5e3

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