summaryrefslogtreecommitdiff
path: root/deps/uv/src/unix
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2012-05-04 11:00:39 -0700
committerisaacs <i@izs.me>2012-05-04 11:00:39 -0700
commit719cd461d39d01ab0d2a4a396813c59daf2ad7f1 (patch)
tree05310061250560594a4d4f5c03d4737666d4d6af /deps/uv/src/unix
parentab60efb535463757707fda6b712d5f68692b26dd (diff)
downloadnode-719cd461d39d01ab0d2a4a396813c59daf2ad7f1.tar.gz
Upgrade uv to 936795a2c
Diffstat (limited to 'deps/uv/src/unix')
-rw-r--r--deps/uv/src/unix/error.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/deps/uv/src/unix/error.c b/deps/uv/src/unix/error.c
index e01d06ac6..62f1f1430 100644
--- a/deps/uv/src/unix/error.c
+++ b/deps/uv/src/unix/error.c
@@ -59,6 +59,7 @@ void uv_fatal_error(const int errorno, const char* syscall) {
uv_err_code uv_translate_sys_error(int sys_errno) {
switch (sys_errno) {
case 0: return UV_OK;
+ case EIO: return UV_EIO;
case EPERM: return UV_EPERM;
case ENOSYS: return UV_ENOSYS;
case ENOTSOCK: return UV_ENOTSOCK;
@@ -94,6 +95,7 @@ uv_err_code uv_translate_sys_error(int sys_errno) {
case EBUSY: return UV_EBUSY;
case ENOTEMPTY: return UV_ENOTEMPTY;
case ENOSPC: return UV_ENOSPC;
+ case EROFS: return UV_EROFS;
case ENOMEM: return UV_ENOMEM;
default: return UV_UNKNOWN;
}