unix: map EROFS to UV_EROFS

Conflicts:

	src/unix/error.c
This commit is contained in:
Maciej Małecki 2012-04-14 17:40:01 +02:00 committed by Bert Belder
parent 0efa3cf4d3
commit edb40b16ce
2 changed files with 3 additions and 1 deletions

View File

@ -122,7 +122,8 @@ typedef intptr_t ssize_t;
XX( 52, EXDEV, "cross-device link not permitted") \
XX( 53, ENOTEMPTY, "directory not empty") \
XX( 54, ENOSPC, "no space left on device") \
XX( 55, EIO, "i/o error")
XX( 55, EIO, "i/o error") \
XX( 56, EROFS, "read-only file system" )
#define UV_ERRNO_GEN(val, name, s) UV_##name = val,

View File

@ -95,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;
}