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

common: add UV_ENOTDIR error code

  • Loading branch information...
bnoordhuis committed Oct 12, 2011
1 parent 721ad8c commit 197f591ebc82bc5f9b917f38bdaec410459ca298
Showing with 4 additions and 0 deletions.
  1. +1 −0 include/uv.h
  2. +2 −0 src/unix/error.c
  3. +1 −0 src/uv-common.c
@@ -76,6 +76,7 @@ typedef enum {
UV_ENFILE,
UV_ENOBUFS,
UV_ENOMEM,
UV_ENOTDIR,
UV_ENONET,
UV_ENOPROTOOPT,
UV_ENOTCONN,
@@ -72,6 +72,7 @@ static int uv__translate_lib_error(int code) {
case UV_ECONNREFUSED: return ECONNREFUSED;
case UV_EADDRINUSE: return EADDRINUSE;
case UV_EADDRNOTAVAIL: return EADDRNOTAVAIL;
case UV_ENOTDIR: return ENOTDIR;
case UV_ENOTCONN: return ENOTCONN;
case UV_EEXIST: return EEXIST;
default: return -1;
@@ -99,6 +100,7 @@ uv_err_code uv_translate_sys_error(int sys_errno) {
case ECONNREFUSED: return UV_ECONNREFUSED;
case EADDRINUSE: return UV_EADDRINUSE;
case EADDRNOTAVAIL: return UV_EADDRNOTAVAIL;
case ENOTDIR: return UV_ENOTDIR;
case ENOTCONN: return UV_ENOTCONN;
case EEXIST: return UV_EEXIST;
default: return UV_UNKNOWN;
@@ -76,6 +76,7 @@ const char* uv_err_name(uv_err_t err) {
case UV_ENFILE: return "ENFILE";
case UV_ENOBUFS: return "ENOBUFS";
case UV_ENOMEM: return "ENOMEM";
case UV_ENOTDIR: return "ENOTDIR";
case UV_ENONET: return "ENONET";
case UV_ENOPROTOOPT: return "ENOPROTOOPT";
case UV_ENOTCONN: return "ENOTCONN";

0 comments on commit 197f591

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