File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -120,7 +120,8 @@ typedef intptr_t ssize_t;
120120 XX( 50, EPERM, "operation not permitted") \
121121 XX( 51, ELOOP, "too many symbolic links encountered") \
122122 XX( 52, EXDEV, "cross-device link not permitted") \
123- XX( 53, ENOTEMPTY, "directory not empty")
123+ XX( 53, ENOTEMPTY, "directory not empty") \
124+ XX( 54, ENOSPC, "no space left on device")
124125
125126
126127#define UV_ERRNO_GEN (val , name , s ) UV_##name = val,
Original file line number Diff line number Diff line change @@ -90,6 +90,7 @@ uv_err_code uv_translate_sys_error(int sys_errno) {
9090 case EXDEV : return UV_EXDEV ;
9191 case EBUSY : return UV_EBUSY ;
9292 case ENOTEMPTY : return UV_ENOTEMPTY ;
93+ case ENOSPC : return UV_ENOSPC ;
9394 default : return UV_UNKNOWN ;
9495 }
9596
Original file line number Diff line number Diff line change @@ -182,6 +182,9 @@ void uv__server_io(EV_P_ ev_io* watcher, int revents) {
182182 } else if (errno == EMFILE ) {
183183 /* TODO special trick. unlock reserved socket, accept, close. */
184184 return ;
185+ } else if (errno == ECONNABORTED ) {
186+ /* ignore */
187+ continue ;
185188 } else {
186189 uv__set_sys_error (stream -> loop , errno );
187190 stream -> connection_cb ((uv_stream_t * )stream , -1 );
Original file line number Diff line number Diff line change @@ -104,6 +104,11 @@ uv_err_code uv_translate_sys_error(int sys_errno) {
104104 case WSAENETUNREACH : return UV_ENETUNREACH ;
105105 case WSAENOBUFS : return UV_ENOBUFS ;
106106 case ERROR_OUTOFMEMORY : return UV_ENOMEM ;
107+ case ERROR_CANNOT_MAKE : return UV_ENOSPC ;
108+ case ERROR_DISK_FULL : return UV_ENOSPC ;
109+ case ERROR_EA_TABLE_FULL : return UV_ENOSPC ;
110+ case ERROR_END_OF_MEDIA : return UV_ENOSPC ;
111+ case ERROR_HANDLE_DISK_FULL : return UV_ENOSPC ;
107112 case ERROR_NOT_CONNECTED : return UV_ENOTCONN ;
108113 case WSAENOTCONN : return UV_ENOTCONN ;
109114 case ERROR_DIR_NOT_EMPTY : return UV_ENOTEMPTY ;
Original file line number Diff line number Diff line change @@ -4323,10 +4323,17 @@ typedef NTSTATUS (NTAPI *sNtSetInformationFile)
43234323/*
43244324 * Kernel32 headers
43254325 */
4326- #define FILE_SKIP_COMPLETION_PORT_ON_SUCCESS 0x1
4327- #define FILE_SKIP_SET_EVENT_ON_HANDLE 0x2
4326+ #ifndef FILE_SKIP_COMPLETION_PORT_ON_SUCCESS
4327+ # define FILE_SKIP_COMPLETION_PORT_ON_SUCCESS 0x1
4328+ #endif
4329+
4330+ #ifndef FILE_SKIP_SET_EVENT_ON_HANDLE
4331+ # define FILE_SKIP_SET_EVENT_ON_HANDLE 0x2
4332+ #endif
43284333
4329- #define SYMBOLIC_LINK_FLAG_DIRECTORY 0x1
4334+ #ifndef SYMBOLIC_LINK_FLAG_DIRECTORY
4335+ # define SYMBOLIC_LINK_FLAG_DIRECTORY 0x1
4336+ #endif
43304337
43314338#ifdef __MINGW32__
43324339 typedef struct _OVERLAPPED_ENTRY {
You can’t perform that action at this time.
0 commit comments