Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

errno: ENOSPC

  • Loading branch information...
commit dbcc95afea7607668742da7e8763c0ea987c5532 1 parent 1c8cf61
@tj authored
Showing with 3 additions and 1 deletion.
  1. +2 −1  include/uv.h
  2. +1 −0  src/unix/error.c
View
3  include/uv.h
@@ -121,7 +121,8 @@ typedef intptr_t ssize_t;
XX( 50, EPERM, "operation not permitted") \
XX( 51, ELOOP, "too many symbolic links encountered") \
XX( 52, EXDEV, "cross-device link not permitted") \
- XX( 53, ENOTEMPTY, "directory not empty")
+ XX( 53, ENOTEMPTY, "directory not empty") \
+ XX( 54, ENOSPC, "no space left on device")
#define UV_ERRNO_GEN(val, name, s) UV_##name = val,
View
1  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 ENOSPC: return UV_ENOSPC;
case EPERM: return UV_EPERM;
case ENOSYS: return UV_ENOSYS;
case ENOTSOCK: return UV_ENOTSOCK;
Please sign in to comment.
Something went wrong with that request. Please try again.