unix: map errno ESPIPE
This commit is contained in:
parent
a7b83e0b98
commit
0ac2fdc554
@ -120,8 +120,9 @@ extern "C" {
|
||||
XX( 53, ENOTEMPTY, "directory not empty") \
|
||||
XX( 54, ENOSPC, "no space left on device") \
|
||||
XX( 55, EIO, "i/o error") \
|
||||
XX( 56, EROFS, "read-only file system" ) \
|
||||
XX( 57, ENODEV, "no such device" )
|
||||
XX( 56, EROFS, "read-only file system") \
|
||||
XX( 57, ENODEV, "no such device") \
|
||||
XX( 58, ESPIPE, "invalid seek") \
|
||||
|
||||
|
||||
#define UV_ERRNO_GEN(val, name, s) UV_##name = val,
|
||||
|
||||
@ -68,6 +68,7 @@ uv_err_code uv_translate_sys_error(int sys_errno) {
|
||||
case EAFNOSUPPORT: return UV_EAFNOSUPPORT;
|
||||
case EBADF: return UV_EBADF;
|
||||
case EPIPE: return UV_EPIPE;
|
||||
case ESPIPE: return UV_ESPIPE;
|
||||
case EAGAIN: return UV_EAGAIN;
|
||||
#if EWOULDBLOCK != EAGAIN
|
||||
case EWOULDBLOCK: return UV_EAGAIN;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user