Skip to content

Commit 06c28b9

Browse files
cjihrigrvagg
authored andcommitted
deps: upgrade to libuv 1.24.0
PR-URL: #24332 Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Santiago Gimeno <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
1 parent bc5a0d3 commit 06c28b9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+1242
-407
lines changed

deps/uv/AUTHORS

+4
Original file line numberDiff line numberDiff line change
@@ -352,3 +352,7 @@ Andy Zhang <[email protected]>
352352
353353
Ryan Liptak <[email protected]>
354354
Ali Ijaz Sheikh <[email protected]>
355+
356+
Svante Signell <[email protected]>
357+
Samuel Thibault <[email protected]>
358+
Jeremy Studer <[email protected]>

deps/uv/CMakeLists.txt

+3-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ endif()
1313

1414
set(uv_sources
1515
src/fs-poll.c
16+
src/idna.c
1617
src/inet.c
1718
src/threadpool.c
1819
src/timer.c
@@ -64,6 +65,7 @@ set(uv_test_sources
6465
test/test-homedir.c
6566
test/test-hrtime.c
6667
test/test-idle.c
68+
test/test-idna.c
6769
test/test-ip4-addr.c
6870
test/test-ip6-addr.c
6971
test/test-ip6-addr.c
@@ -260,7 +262,7 @@ if(CMAKE_SYSTEM_NAME MATCHES "DragonFly|FreeBSD")
260262
endif()
261263

262264
if(CMAKE_SYSTEM_NAME MATCHES "DragonFly|FreeBSD|NetBSD|OpenBSD")
263-
list(APPEND uv_sources src/unix/posix-hrtime.c)
265+
list(APPEND uv_sources src/unix/posix-hrtime.c src/unix/bsd-proctitle.c)
264266
list(APPEND uv_libraries kvm)
265267
endif()
266268

deps/uv/ChangeLog

+57
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,60 @@
1+
2018.11.14, Version 1.24.0 (Stable), 2d427ee0083d1baf995df4ebf79a3f8890e9a3e1
2+
3+
Changes since version 1.23.2:
4+
5+
* unix: do not require PATH_MAX to be defined (Brad King)
6+
7+
* win,doc: path encoding in uv_fs_XX is UTF-8 (hitesh)
8+
9+
* unix: add missing link dependency on kFreeBSD (Svante Signell)
10+
11+
* unix: add support for GNU/Hurd (Samuel Thibault)
12+
13+
* test: avoid memory leak for test_output (Carlo Marcelo Arenas Belón)
14+
15+
* zos: avoid UB with NULL pointer arithmetic (Carlo Marcelo Arenas Belón)
16+
17+
* doc: add vtjnash to maintainers (Jameson Nash)
18+
19+
* unix: restore skipping of phys_addr copy (cjihrig)
20+
21+
* unix,win: make uv_interface_addresses() consistent (cjihrig)
22+
23+
* unix: remove unnecessary linebreaks (cjihrig)
24+
25+
* unix,win: handle zero-sized allocations uniformly (Ben Noordhuis)
26+
27+
* unix: remove unused uv__dup() function (Ben Noordhuis)
28+
29+
* core,bsd: refactor process_title functions (Santiago Gimeno)
30+
31+
* win: Redefine NSIG to consider SIGWINCH (Jeremy Studer)
32+
33+
* test: make sure that reading a directory fails (Sakthipriyan Vairamani)
34+
35+
* win, tty: remove zero-size read callbacks (Bartosz Sosnowski)
36+
37+
* test: fix test runner getenv async-signal-safety (Ben Noordhuis)
38+
39+
* test: fix test runner execvp async-signal-safety (Ben Noordhuis)
40+
41+
* test,unix: fix race in test runner (Ben Noordhuis)
42+
43+
* unix,win: support IDNA 2008 in uv_getaddrinfo() (Ben Noordhuis)
44+
45+
* win, tcp: avoid starving the loop (Bartosz Sosnowski)
46+
47+
* win, dl: proper error messages on some systems (Bartosz Sosnowski)
48+
49+
* win,fs: retry if uv_fs_rename fails (Bartosz Sosnowski)
50+
51+
* darwin: speed up uv_set_process_title() (Ben Noordhuis)
52+
53+
* aix: fix race in uv_get_process_title() (Gireesh Punathil)
54+
55+
* win: support more fine-grained windows hiding (Bartosz Sosnowski)
56+
57+
158
2018.10.09, Version 1.23.2 (Stable), 34c12788d2e7308f3ac506c0abcbf74c0d6abd20
259

360
Changes since version 1.23.1:

deps/uv/MAINTAINERS.md

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ libuv is currently managed by the following individuals:
1515
- GPG key: AF2E EA41 EC34 47BF DD86 FED9 D706 3CCE 19B7 E890 (pubkey-indutny)
1616
* **Imran Iqbal** ([@imran-iq](https://github.com/imran-iq))
1717
- GPG key: 9DFE AA5F 481B BF77 2D90 03CE D592 4925 2F8E C41A (pubkey-iwuzhere)
18+
* **Jameson Nash** ([@vtjnash](https://github.com/vtjnash))
1819
* **John Barboza** ([@jbarz](https://github.com/jbarz))
1920
* **Santiago Gimeno** ([@santigimeno](https://github.com/santigimeno))
2021
- GPG key: 612F 0EAD 9401 6223 79DF 4402 F28C 3C8D A33C 03BE (pubkey-santigimeno)

deps/uv/Makefile.am

+13
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ libuv_la_CFLAGS = @CFLAGS@
2929
libuv_la_LDFLAGS = -no-undefined -version-info 1:0:0
3030
libuv_la_SOURCES = src/fs-poll.c \
3131
src/heap-inl.h \
32+
src/idna.c \
3233
src/inet.c \
3334
src/queue.h \
3435
src/threadpool.c \
@@ -189,6 +190,7 @@ test_run_tests_SOURCES = test/blackhole-server.c \
189190
test/test-homedir.c \
190191
test/test-hrtime.c \
191192
test/test-idle.c \
193+
test/test-idna.c \
192194
test/test-ip4-addr.c \
193195
test/test-ip6-addr.c \
194196
test/test-ipc-heavy-traffic-deadlock-bug.c \
@@ -374,6 +376,7 @@ endif
374376
if DRAGONFLY
375377
uvinclude_HEADERS += include/uv/bsd.h
376378
libuv_la_SOURCES += src/unix/bsd-ifaddrs.c \
379+
src/unix/bsd-proctitle.c \
377380
src/unix/freebsd.c \
378381
src/unix/kqueue.c \
379382
src/unix/posix-hrtime.c
@@ -383,12 +386,20 @@ endif
383386
if FREEBSD
384387
uvinclude_HEADERS += include/uv/bsd.h
385388
libuv_la_SOURCES += src/unix/bsd-ifaddrs.c \
389+
src/unix/bsd-proctitle.c \
386390
src/unix/freebsd.c \
387391
src/unix/kqueue.c \
388392
src/unix/posix-hrtime.c
389393
test_run_tests_LDFLAGS += -lutil
390394
endif
391395

396+
if HURD
397+
uvinclude_HEADERS += include/uv/posix.h
398+
libuv_la_SOURCES += src/unix/no-fsevents.c \
399+
src/unix/posix-hrtime.c \
400+
src/unix/posix-poll.c
401+
endif
402+
392403
if LINUX
393404
uvinclude_HEADERS += include/uv/linux.h
394405
libuv_la_CFLAGS += -D_GNU_SOURCE
@@ -419,6 +430,7 @@ endif
419430
if NETBSD
420431
uvinclude_HEADERS += include/uv/bsd.h
421432
libuv_la_SOURCES += src/unix/bsd-ifaddrs.c \
433+
src/unix/bsd-proctitle.c \
422434
src/unix/kqueue.c \
423435
src/unix/netbsd.c \
424436
src/unix/posix-hrtime.c
@@ -428,6 +440,7 @@ endif
428440
if OPENBSD
429441
uvinclude_HEADERS += include/uv/bsd.h
430442
libuv_la_SOURCES += src/unix/bsd-ifaddrs.c \
443+
src/unix/bsd-proctitle.c \
431444
src/unix/kqueue.c \
432445
src/unix/openbsd.c \
433446
src/unix/posix-hrtime.c

deps/uv/configure.ac

+5-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.23.2], [https://github.com/libuv/libuv/issues])
16+
AC_INIT([libuv], [1.24.0], [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])
@@ -56,6 +56,7 @@ AM_CONDITIONAL([CYGWIN], [AS_CASE([$host_os],[cygwin*], [true], [false])
5656
AM_CONDITIONAL([DARWIN], [AS_CASE([$host_os],[darwin*], [true], [false])])
5757
AM_CONDITIONAL([DRAGONFLY],[AS_CASE([$host_os],[dragonfly*], [true], [false])])
5858
AM_CONDITIONAL([FREEBSD], [AS_CASE([$host_os],[*freebsd*], [true], [false])])
59+
AM_CONDITIONAL([HURD], [AS_CASE([$host_os],[gnu*], [true], [false])])
5960
AM_CONDITIONAL([LINUX], [AS_CASE([$host_os],[linux*], [true], [false])])
6061
AM_CONDITIONAL([MSYS], [AS_CASE([$host_os],[msys*], [true], [false])])
6162
AM_CONDITIONAL([NETBSD], [AS_CASE([$host_os],[netbsd*], [true], [false])])
@@ -67,6 +68,9 @@ AS_CASE([$host_os],[mingw*], [
6768
LIBS="$LIBS -lws2_32 -lpsapi -liphlpapi -lshell32 -luserenv -luser32"
6869
])
6970
AS_CASE([$host_os], [netbsd*], [AC_CHECK_LIB([kvm], [kvm_open])])
71+
AS_CASE([$host_os], [kfreebsd*], [
72+
LIBS="$LIBS -lfreebsd-glue"
73+
])
7074
AC_CHECK_HEADERS([sys/ahafs_evProds.h])
7175
AC_CONFIG_FILES([Makefile libuv.pc])
7276
AC_OUTPUT

deps/uv/docs/src/fs.rst

+11
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ otherwise it will be performed asynchronously.
1212
All file operations are run on the threadpool. See :ref:`threadpool` for information
1313
on the threadpool size.
1414

15+
.. note::
16+
On Windows `uv_fs_*` functions use utf-8 encoding.
1517

1618
Data types
1719
----------
@@ -231,6 +233,15 @@ API
231233
232234
Equivalent to :man:`rename(2)`.
233235
236+
.. note::
237+
On Windows if this function fails with ``UV_EBUSY``, ``UV_EPERM`` or
238+
``UV_EACCES``, it will retry to rename the file up to four times with
239+
250ms wait between attempts before giving up. If both `path` and
240+
`new_path` are existing directories this function will work only if
241+
target directory is empty.
242+
243+
.. versionchanged:: 1.24.0 Added retrying and directory move support on Windows.
244+
234245
.. c:function:: int uv_fs_fsync(uv_loop_t* loop, uv_fs_t* req, uv_file file, uv_fs_cb cb)
235246
236247
Equivalent to :man:`fsync(2)`.

deps/uv/docs/src/process.rst

+16-2
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,22 @@ Data types
7070
*/
7171
UV_PROCESS_DETACHED = (1 << 3),
7272
/*
73-
* Hide the subprocess console window that would normally be created. This
73+
* Hide the subprocess window that would normally be created. This option is
74+
* only meaningful on Windows systems. On Unix it is silently ignored.
75+
*/
76+
UV_PROCESS_WINDOWS_HIDE = (1 << 4),
77+
/*
78+
* Hide the subprocess console window that would normally be created. This
79+
* option is only meaningful on Windows systems. On Unix it is silently
80+
* ignored.
81+
*/
82+
UV_PROCESS_WINDOWS_HIDE_CONSOLE = (1 << 5),
83+
/*
84+
* Hide the subprocess GUI window that would normally be created. This
7485
* option is only meaningful on Windows systems. On Unix it is silently
7586
* ignored.
7687
*/
77-
UV_PROCESS_WINDOWS_HIDE = (1 << 4)
88+
UV_PROCESS_WINDOWS_HIDE_GUI = (1 << 6)
7889
};
7990

8091
.. c:type:: uv_stdio_container_t
@@ -217,6 +228,9 @@ API
217228
setgid specified, or not having enough memory to allocate for the new
218229
process.
219230
231+
.. versionchanged:: 1.24.0 Added `UV_PROCESS_WINDOWS_HIDE_CONSOLE` and
232+
`UV_PROCESS_WINDOWS_HIDE_GUI` flags.
233+
220234
.. c:function:: int uv_process_kill(uv_process_t* handle, int signum)
221235
222236
Sends the specified signal to the given process handle. Check the documentation

deps/uv/include/uv.h

+13-2
Original file line numberDiff line numberDiff line change
@@ -963,11 +963,22 @@ enum uv_process_flags {
963963
*/
964964
UV_PROCESS_DETACHED = (1 << 3),
965965
/*
966-
* Hide the subprocess console window that would normally be created. This
966+
* Hide the subprocess window that would normally be created. This option is
967+
* only meaningful on Windows systems. On Unix it is silently ignored.
968+
*/
969+
UV_PROCESS_WINDOWS_HIDE = (1 << 4),
970+
/*
971+
* Hide the subprocess console window that would normally be created. This
972+
* option is only meaningful on Windows systems. On Unix it is silently
973+
* ignored.
974+
*/
975+
UV_PROCESS_WINDOWS_HIDE_CONSOLE = (1 << 5),
976+
/*
977+
* Hide the subprocess GUI window that would normally be created. This
967978
* option is only meaningful on Windows systems. On Unix it is silently
968979
* ignored.
969980
*/
970-
UV_PROCESS_WINDOWS_HIDE = (1 << 4)
981+
UV_PROCESS_WINDOWS_HIDE_GUI = (1 << 6)
971982
};
972983

973984
/*

deps/uv/include/uv/unix.h

+2
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@
6464
# include "uv/bsd.h"
6565
#elif defined(__CYGWIN__) || defined(__MSYS__)
6666
# include "uv/posix.h"
67+
#elif defined(__GNU__)
68+
# include "uv/posix.h"
6769
#endif
6870

6971
#ifndef NI_MAXHOST

deps/uv/include/uv/version.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
*/
3232

3333
#define UV_VERSION_MAJOR 1
34-
#define UV_VERSION_MINOR 23
35-
#define UV_VERSION_PATCH 2
34+
#define UV_VERSION_MINOR 24
35+
#define UV_VERSION_PATCH 0
3636
#define UV_VERSION_IS_RELEASE 1
3737
#define UV_VERSION_SUFFIX ""
3838

deps/uv/include/uv/win.h

+8
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,14 @@ typedef struct pollfd {
8686
#define SIGKILL 9
8787
#define SIGWINCH 28
8888

89+
/* Redefine NSIG to take SIGWINCH into consideration */
90+
#if defined(NSIG) && NSIG <= SIGWINCH
91+
# undef NSIG
92+
#endif
93+
#ifndef NSIG
94+
# define NSIG SIGWINCH + 1
95+
#endif
96+
8997
/* The CRT defines SIGABRT_COMPAT as 6, which equals SIGABRT on many unix-like
9098
* platforms. However MinGW doesn't define it, so we do. */
9199
#ifndef SIGABRT_COMPAT

0 commit comments

Comments
 (0)