unix: map EROFS to UV_EROFS
This commit is contained in:
parent
76364c26de
commit
58733d18a6
@ -123,7 +123,8 @@ typedef intptr_t ssize_t;
|
|||||||
XX( 52, EXDEV, "cross-device link not permitted") \
|
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") \
|
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,
|
#define UV_ERRNO_GEN(val, name, s) UV_##name = val,
|
||||||
|
|||||||
@ -92,6 +92,7 @@ uv_err_code uv_translate_sys_error(int sys_errno) {
|
|||||||
case EBUSY: return UV_EBUSY;
|
case EBUSY: return UV_EBUSY;
|
||||||
case ENOTEMPTY: return UV_ENOTEMPTY;
|
case ENOTEMPTY: return UV_ENOTEMPTY;
|
||||||
case ENOSPC: return UV_ENOSPC;
|
case ENOSPC: return UV_ENOSPC;
|
||||||
|
case EROFS: return UV_EROFS;
|
||||||
default: return UV_UNKNOWN;
|
default: return UV_UNKNOWN;
|
||||||
}
|
}
|
||||||
UNREACHABLE();
|
UNREACHABLE();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user