File tree 5 files changed +21
-4
lines changed
5 files changed +21
-4
lines changed Original file line number Diff line number Diff line change @@ -120,7 +120,8 @@ typedef intptr_t ssize_t;
120
120
XX( 50, EPERM, "operation not permitted") \
121
121
XX( 51, ELOOP, "too many symbolic links encountered") \
122
122
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")
124
125
125
126
126
127
#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) {
90
90
case EXDEV : return UV_EXDEV ;
91
91
case EBUSY : return UV_EBUSY ;
92
92
case ENOTEMPTY : return UV_ENOTEMPTY ;
93
+ case ENOSPC : return UV_ENOSPC ;
93
94
default : return UV_UNKNOWN ;
94
95
}
95
96
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) {
182
182
} else if (errno == EMFILE ) {
183
183
/* TODO special trick. unlock reserved socket, accept, close. */
184
184
return ;
185
+ } else if (errno == ECONNABORTED ) {
186
+ /* ignore */
187
+ continue ;
185
188
} else {
186
189
uv__set_sys_error (stream -> loop , errno );
187
190
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) {
104
104
case WSAENETUNREACH : return UV_ENETUNREACH ;
105
105
case WSAENOBUFS : return UV_ENOBUFS ;
106
106
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 ;
107
112
case ERROR_NOT_CONNECTED : return UV_ENOTCONN ;
108
113
case WSAENOTCONN : return UV_ENOTCONN ;
109
114
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)
4323
4323
/*
4324
4324
* Kernel32 headers
4325
4325
*/
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
4328
4333
4329
- #define SYMBOLIC_LINK_FLAG_DIRECTORY 0x1
4334
+ #ifndef SYMBOLIC_LINK_FLAG_DIRECTORY
4335
+ # define SYMBOLIC_LINK_FLAG_DIRECTORY 0x1
4336
+ #endif
4330
4337
4331
4338
#ifdef __MINGW32__
4332
4339
typedef struct _OVERLAPPED_ENTRY {
You can’t perform that action at this time.
0 commit comments