Permalink
Browse files

errno: ENOSPC

  • Loading branch information...
1 parent 1c8cf61 commit dbcc95afea7607668742da7e8763c0ea987c5532 @tj committed Mar 8, 2012
Showing with 3 additions and 1 deletion.
  1. +2 −1 include/uv.h
  2. +1 −0 src/unix/error.c
View
@@ -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
@@ -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;

0 comments on commit dbcc95a

Please sign in to comment.