Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

windows: map ERROR_WRITE_PROTECT to UV_EROFS

  • Loading branch information...
bnoordhuis committed Apr 16, 2012
1 parent 58733d1 commit d5e7786885b1ae5967ea183af2e725a954400a2c
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/win/error.c
@@ -109,6 +109,7 @@ uv_err_code uv_translate_sys_error(int sys_errno) {
case ERROR_EA_TABLE_FULL: return UV_ENOSPC;
case ERROR_END_OF_MEDIA: return UV_ENOSPC;
case ERROR_HANDLE_DISK_FULL: return UV_ENOSPC;
case ERROR_WRITE_PROTECT: return UV_EROFS;
case ERROR_NOT_CONNECTED: return UV_ENOTCONN;
case WSAENOTCONN: return UV_ENOTCONN;
case ERROR_DIR_NOT_EMPTY: return UV_ENOTEMPTY;

3 comments on commit d5e7786

@ghesketh

This comment has been minimized.

Copy link

replied Apr 17, 2012

where is the definition of UV_EROFS ?

@ghesketh

This comment has been minimized.

Copy link

replied Apr 17, 2012

ok, I found UV_EROFS in a patch but not locally in include/uv.h ...

@bnoordhuis

This comment has been minimized.

Copy link
Contributor Author

replied Apr 17, 2012

It's generated with an x-macro, search for EROFS.

Please sign in to comment.
You can’t perform that action at this time.