Skip to content

Commit 786631c

Browse files
cjihrigFishrock123
authored andcommittedNov 22, 2016
deps: upgrade libuv to 1.10.1
Fixes: #9542 Fixes: #9546 PR-URL: #9647 Reviewed-By: Imran Iqbal <[email protected]> Reviewed-By: Santiago Gimeno <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Myles Borins <[email protected]> Reviewed-By: Johan Bergström <[email protected]>
1 parent 30475be commit 786631c

14 files changed

+37
-76
lines changed
 

‎deps/uv/AUTHORS

+1
Original file line numberDiff line numberDiff line change
@@ -277,3 +277,4 @@ Alex Hultman <alexhultman@gmail.com>
277277
Brad King <brad.king@kitware.com>
278278
Philippe Laferriere <laferriere.phil@gmail.com>
279279
Will Speak <lithiumflame@gmail.com>
280+
Hitesh Kanwathirtha <digitalinfinity@gmail.com>

‎deps/uv/ChangeLog

+22-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,25 @@
1-
2016.10.25, Version 1.10.0 (Stable)
1+
2016.11.17, Version 1.10.1 (Stable), 2e49e332bdede6db7cf17fa784a902e8386d5d86
2+
3+
Changes since version 1.10.0:
4+
5+
* Now working on version 1.10.1 (cjihrig)
6+
7+
* win: fix anonymous union syntax (Brad King)
8+
9+
* unix: use uv__is_closing everywhere (Santiago Gimeno)
10+
11+
* win: add missing break statement (cjihrig)
12+
13+
* doc: fix wrong man page link for uv_fs_lstat() (Michele Caini)
14+
15+
* win, tty: handle empty buffer in uv_tty_write_bufs (Hitesh Kanwathirtha)
16+
17+
* doc: add cjihrig alternative GPG ID (cjihrig)
18+
19+
* Revert "win,tty: add support for ANSI codes in win10 v1511" (Ben Noordhuis)
20+
21+
22+
2016.10.25, Version 1.10.0 (Stable), c8a373c729b4c9392e0e14fc53cd6b67b3051ab9
223

324
Changes since version 1.9.1:
425

‎deps/uv/MAINTAINERS.md

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ libuv is currently managed by the following individuals:
88
* **Bert Belder** ([@piscisaureus](https://github.com/piscisaureus))
99
* **Colin Ihrig** ([@cjihrig](https://github.com/cjihrig))
1010
- GPG key: 94AE 3667 5C46 4D64 BAFA 68DD 7434 390B DBE9 B9C5 (pubkey-cjihrig)
11+
- GPG key: 5735 3E0D BDAA A7E8 39B6 6A1A FF47 D5E4 AD8B 4FDC (pubkey-cjihrig-kb)
1112
* **Fedor Indutny** ([@indutny](https://github.com/indutny))
1213
- GPG key: AF2E EA41 EC34 47BF DD86 FED9 D706 3CCE 19B7 E890 (pubkey-indutny)
1314
* **Imran Iqbal** ([@iWuzHere](https://github.com/iWuzHere))

‎deps/uv/appveyor.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: v1.10.0.build{build}
1+
version: v1.10.1.build{build}
22

33
install:
44
- cinst -y nsis

‎deps/uv/configure.ac

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1414

1515
AC_PREREQ(2.57)
16-
AC_INIT([libuv], [1.10.0], [https://github.com/libuv/libuv/issues])
16+
AC_INIT([libuv], [1.10.1], [https://github.com/libuv/libuv/issues])
1717
AC_CONFIG_MACRO_DIR([m4])
1818
m4_include([m4/libuv-extra-automake-flags.m4])
1919
m4_include([m4/as_case.m4])

‎deps/uv/docs/src/fs.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ API
223223
.. c:function:: int uv_fs_fstat(uv_loop_t* loop, uv_fs_t* req, uv_file file, uv_fs_cb cb)
224224
.. c:function:: int uv_fs_lstat(uv_loop_t* loop, uv_fs_t* req, const char* path, uv_fs_cb cb)
225225
226-
Equivalent to :man:`stat(2)`, :man:`fstat(2)` and :man:`fstat(2)` respectively.
226+
Equivalent to :man:`stat(2)`, :man:`fstat(2)` and :man:`lstat(2)` respectively.
227227
228228
.. c:function:: int uv_fs_rename(uv_loop_t* loop, uv_fs_t* req, const char* path, const char* new_path, uv_fs_cb cb)
229229

‎deps/uv/include/uv-version.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
#define UV_VERSION_MAJOR 1
3434
#define UV_VERSION_MINOR 10
35-
#define UV_VERSION_PATCH 0
35+
#define UV_VERSION_PATCH 1
3636
#define UV_VERSION_IS_RELEASE 1
3737
#define UV_VERSION_SUFFIX ""
3838

‎deps/uv/src/unix/core.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ uint64_t uv_hrtime(void) {
9898

9999

100100
void uv_close(uv_handle_t* handle, uv_close_cb close_cb) {
101-
assert(!(handle->flags & (UV_CLOSING | UV_CLOSED)));
101+
assert(!uv__is_closing(handle));
102102

103103
handle->flags |= UV_CLOSING;
104104
handle->close_cb = close_cb;

‎deps/uv/src/unix/poll.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ static void uv__poll_stop(uv_poll_t* handle) {
9292

9393

9494
int uv_poll_stop(uv_poll_t* handle) {
95-
assert(!(handle->flags & (UV_CLOSING | UV_CLOSED)));
95+
assert(!uv__is_closing(handle));
9696
uv__poll_stop(handle);
9797
return 0;
9898
}
@@ -102,7 +102,7 @@ int uv_poll_start(uv_poll_t* handle, int pevents, uv_poll_cb poll_cb) {
102102
int events;
103103

104104
assert((pevents & ~(UV_READABLE | UV_WRITABLE | UV_DISCONNECT)) == 0);
105-
assert(!(handle->flags & (UV_CLOSING | UV_CLOSED)));
105+
assert(!uv__is_closing(handle));
106106

107107
uv__poll_stop(handle);
108108

‎deps/uv/src/unix/signal.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ int uv_signal_start(uv_signal_t* handle, uv_signal_cb signal_cb, int signum) {
290290
sigset_t saved_sigmask;
291291
int err;
292292

293-
assert(!(handle->flags & (UV_CLOSING | UV_CLOSED)));
293+
assert(!uv__is_closing(handle));
294294

295295
/* If the user supplies signum == 0, then return an error already. If the
296296
* signum is otherwise invalid then uv__signal_register will find out
@@ -434,7 +434,7 @@ static int uv__signal_compare(uv_signal_t* w1, uv_signal_t* w2) {
434434

435435

436436
int uv_signal_stop(uv_signal_t* handle) {
437-
assert(!(handle->flags & (UV_CLOSING | UV_CLOSED)));
437+
assert(!uv__is_closing(handle));
438438
uv__signal_stop(handle);
439439
return 0;
440440
}

‎deps/uv/src/unix/stream.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -1221,8 +1221,7 @@ int uv_shutdown(uv_shutdown_t* req, uv_stream_t* stream, uv_shutdown_cb cb) {
12211221
if (!(stream->flags & UV_STREAM_WRITABLE) ||
12221222
stream->flags & UV_STREAM_SHUT ||
12231223
stream->flags & UV_STREAM_SHUTTING ||
1224-
stream->flags & UV_CLOSED ||
1225-
stream->flags & UV_CLOSING) {
1224+
uv__is_closing(stream)) {
12261225
return -ENOTCONN;
12271226
}
12281227

‎deps/uv/src/win/process-stdio.c

+1
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,7 @@ int uv__stdio_create(uv_loop_t* loop,
372372

373373
case FILE_TYPE_PIPE:
374374
CHILD_STDIO_CRT_FLAGS(buffer, i) = FOPEN | FPIPE;
375+
break;
375376

376377
case FILE_TYPE_CHAR:
377378
case FILE_TYPE_REMOTE:

‎deps/uv/src/win/tty.c

-62
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,6 @@
5757

5858
#define MAX_INPUT_BUFFER_LENGTH 8192
5959

60-
#ifndef ENABLE_VIRTUAL_TERMINAL_PROCESSING
61-
#define ENABLE_VIRTUAL_TERMINAL_PROCESSING 0x0004
62-
#endif
6360

6461
static void uv_tty_capture_initial_style(CONSOLE_SCREEN_BUFFER_INFO* info);
6562
static void uv_tty_update_virtual_window(CONSOLE_SCREEN_BUFFER_INFO* info);
@@ -128,14 +125,6 @@ static char uv_tty_default_fg_bright = 0;
128125
static char uv_tty_default_bg_bright = 0;
129126
static char uv_tty_default_inverse = 0;
130127

131-
typedef enum {
132-
UV_SUPPORTED,
133-
UV_UNCHECKED,
134-
UV_UNSUPPORTED
135-
} uv_vtermstate_t;
136-
/* Determine whether or not ANSI support is enabled. */
137-
static uv_vtermstate_t uv__vterm_state = UV_UNCHECKED;
138-
static void uv__determine_vterm_state(HANDLE handle);
139128

140129
void uv_console_init() {
141130
if (uv_sem_init(&uv_tty_output_lock, 1))
@@ -179,9 +168,6 @@ int uv_tty_init(uv_loop_t* loop, uv_tty_t* tty, uv_file fd, int readable) {
179168
/* shared between all uv_tty_t handles. */
180169
uv_sem_wait(&uv_tty_output_lock);
181170

182-
if (uv__vterm_state == UV_UNCHECKED)
183-
uv__determine_vterm_state(handle);
184-
185171
/* Store the global tty output handle. This handle is used by TTY read */
186172
/* streams to update the virtual window when a CONSOLE_BUFFER_SIZE_EVENT */
187173
/* is received. */
@@ -1650,33 +1636,6 @@ static int uv_tty_write_bufs(uv_tty_t* handle,
16501636
uv_buf_t buf = bufs[i];
16511637
unsigned int j;
16521638

1653-
if (uv__vterm_state == UV_SUPPORTED) {
1654-
utf16_buf_used = MultiByteToWideChar(CP_UTF8,
1655-
0,
1656-
buf.base,
1657-
buf.len,
1658-
NULL,
1659-
0);
1660-
1661-
if (utf16_buf_used == 0) {
1662-
*error = GetLastError();
1663-
break;
1664-
}
1665-
1666-
if (!MultiByteToWideChar(CP_UTF8,
1667-
0,
1668-
buf.base,
1669-
buf.len,
1670-
utf16_buf,
1671-
utf16_buf_used)) {
1672-
*error = GetLastError();
1673-
break;
1674-
}
1675-
1676-
FLUSH_TEXT();
1677-
continue;
1678-
}
1679-
16801639
for (j = 0; j < buf.len; j++) {
16811640
unsigned char c = buf.base[j];
16821641

@@ -2234,24 +2193,3 @@ int uv_tty_reset_mode(void) {
22342193
/* Not necessary to do anything. */
22352194
return 0;
22362195
}
2237-
2238-
/* Determine whether or not this version of windows supports
2239-
* proper ANSI color codes. Should be supported as of windows
2240-
* 10 version 1511, build number 10.0.10586.
2241-
*/
2242-
static void uv__determine_vterm_state(HANDLE handle) {
2243-
DWORD dwMode = 0;
2244-
2245-
if (!GetConsoleMode(handle, &dwMode)) {
2246-
uv__vterm_state = UV_UNSUPPORTED;
2247-
return;
2248-
}
2249-
2250-
dwMode |= ENABLE_VIRTUAL_TERMINAL_PROCESSING;
2251-
if (!SetConsoleMode(handle, dwMode)) {
2252-
uv__vterm_state = UV_UNSUPPORTED;
2253-
return;
2254-
}
2255-
2256-
uv__vterm_state = UV_SUPPORTED;
2257-
}

‎deps/uv/src/win/winapi.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -4145,15 +4145,15 @@ typedef const UNICODE_STRING *PCUNICODE_STRING;
41454145
struct {
41464146
UCHAR DataBuffer[1];
41474147
} GenericReparseBuffer;
4148-
} DUMMYUNIONNAME;
4148+
};
41494149
} REPARSE_DATA_BUFFER, *PREPARSE_DATA_BUFFER;
41504150
#endif
41514151

41524152
typedef struct _IO_STATUS_BLOCK {
41534153
union {
41544154
NTSTATUS Status;
41554155
PVOID Pointer;
4156-
} DUMMYUNIONNAME;
4156+
};
41574157
ULONG_PTR Information;
41584158
} IO_STATUS_BLOCK, *PIO_STATUS_BLOCK;
41594159

0 commit comments

Comments
 (0)
Please sign in to comment.