Skip to content

Commit 1331a2a

Browse files
cjihriggibfahn
authored andcommitted
deps: upgrade libuv to 1.19.1
PR-URL: #18260 Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent cae4896 commit 1331a2a

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

+1086
-175
lines changed

deps/uv/AUTHORS

+4
Original file line numberDiff line numberDiff line change
@@ -321,3 +321,7 @@ Pekka Nikander <pekka.nikander@iki.fi>
321321
Ed Schouten <ed@nuxi.nl>
322322
Xu Meng <mengxumx@cn.ibm.com>
323323
Matt Harrison <hi@matt-harrison.com>
324+
Anna Henningsen <anna@addaleax.net>
325+
Jérémy Lal <kapouer@melix.org>
326+
Ben Wijen <ben@wijen.net>
327+
elephantp <elephantp@elephantp.blog>

deps/uv/ChangeLog

+63
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,66 @@
1+
2018.01.20, Version 1.19.1 (Stable), 8202d1751196c2374ad370f7f3779daef89befae
2+
3+
Changes since version 1.19.0:
4+
5+
* Revert "unix,tcp: avoid marking server sockets connected" (Ben Noordhuis)
6+
7+
* Revert "unix,fs: fix for potential partial reads/writes" (Ben Noordhuis)
8+
9+
* Revert "win: use RemoveDirectoryW() instead of _wmrmdir()" (Ben Noordhuis)
10+
11+
* cygwin: fix compilation of ifaddrs impl (Brad King)
12+
13+
14+
2018.01.18, Version 1.19.0 (Stable), effbb7c9d29090b2e085a40867f8cdfa916a66df
15+
16+
Changes since version 1.18.0:
17+
18+
* core: add getter/setter functions for easier ABI compat (Anna Henningsen)
19+
20+
* unix: make get(set)_process_title MT-safe (Matt Harrison)
21+
22+
* unix,win: wait for threads to start (Ben Noordhuis)
23+
24+
* test: add threadpool init/teardown test (Bartosz Sosnowski)
25+
26+
* win, process: uv_kill improvements (Bartosz Sosnowski)
27+
28+
* win: set _WIN32_WINNT to 0x0600 (cjihrig)
29+
30+
* zos: implement uv_fs_event* functions (jBarz)
31+
32+
* unix,tcp: avoid marking server sockets connected (Jameson Nash)
33+
34+
* doc: mark Windows 7 as Tier 1 support (Bartosz Sosnowski)
35+
36+
* win: map 0.0.0.0 and :: addresses to localhost (Bartosz Sosnowski)
37+
38+
* build: install libuv.pc unconditionally (Ben Noordhuis)
39+
40+
* test: remove custom timeout for thread test on ppc (Ben Noordhuis)
41+
42+
* test: allow multicast not permitted status (Jérémy Lal)
43+
44+
* test: allow net unreachable status in udp test (Ben Noordhuis)
45+
46+
* unix: use SA_RESTART when setting our sighandler (Brad King)
47+
48+
* unix,fs: fix for potential partial reads/writes (Ben Wijen)
49+
50+
* win,build: do not build executable installer for dll (Bert Belder)
51+
52+
* win: allow directory symlinks to be created in a non-elevated context (Bert
53+
Belder)
54+
55+
* zos,test: accept SIGKILL for flaky test (jBarz)
56+
57+
* win: use RemoveDirectoryW() instead of _wmrmdir() (Ben Noordhuis)
58+
59+
* unix: fix uv_cpu_info() error on FreeBSD (elephantp)
60+
61+
* zos,test: decrease pings to avoid timeout (jBarz)
62+
63+
164
2017.12.02, Version 1.18.0 (Stable), 1489c98b7fc17f1702821a269eb0c5e730c5c813
265

366
Changes since version 1.17.0:

deps/uv/Makefile.am

+4-3
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ libuv_la_SOURCES = src/fs-poll.c \
2929
src/inet.c \
3030
src/queue.h \
3131
src/threadpool.c \
32+
src/uv-data-getter-setters.c \
3233
src/uv-common.c \
3334
src/uv-common.h \
3435
src/version.c
@@ -158,6 +159,7 @@ test_run_tests_SOURCES = test/blackhole-server.c \
158159
test/test-close-fd.c \
159160
test/test-close-order.c \
160161
test/test-condvar.c \
162+
test/test-connect-unspecified.c \
161163
test/test-connection-fail.c \
162164
test/test-cwd-and-chdir.c \
163165
test/test-default-loop-close.c \
@@ -174,6 +176,7 @@ test_run_tests_SOURCES = test/blackhole-server.c \
174176
test/test-fs-poll.c \
175177
test/test-fs.c \
176178
test/test-fork.c \
179+
test/test-getters-setters.c \
177180
test/test-get-currentexe.c \
178181
test/test-get-loadavg.c \
179182
test/test-get-memory.c \
@@ -220,6 +223,7 @@ test_run_tests_SOURCES = test/blackhole-server.c \
220223
test/test-poll-closesocket.c \
221224
test/test-poll-oob.c \
222225
test/test-process-title.c \
226+
test/test-process-title-threadsafe.c \
223227
test/test-queue-foreach-delete.c \
224228
test/test-ref.c \
225229
test/test-run-nowait.c \
@@ -455,13 +459,10 @@ libuv_la_CFLAGS += -D_UNIX03_THREADS \
455459
-qFLOAT=IEEE
456460
libuv_la_LDFLAGS += -qXPLINK
457461
libuv_la_SOURCES += src/unix/pthread-fixes.c \
458-
src/unix/no-fsevents.c \
459462
src/unix/os390.c \
460463
src/unix/os390-syscalls.c \
461464
src/unix/proctitle.c
462465
endif
463466

464-
if HAVE_PKG_CONFIG
465467
pkgconfigdir = $(libdir)/pkgconfig
466468
pkgconfig_DATA = @PACKAGE_NAME@.pc
467-
endif

deps/uv/SUPPORTED_PLATFORMS.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
|---|---|---|---|
55
| GNU/Linux | Tier 1 | Linux >= 2.6.32 with glibc >= 2.12 | |
66
| macOS | Tier 1 | macOS >= 10.7 | |
7-
| Windows | Tier 1 | Windows >= 8.1 | MSVC 2008 and later are supported |
7+
| Windows | Tier 1 | >= Windows 7 | MSVC 2008 and later are supported |
88
| FreeBSD | Tier 1 | >= 9 (see note) | |
99
| AIX | Tier 2 | >= 6 | Maintainers: @libuv/aix |
1010
| z/OS | Tier 2 | >= V2R2 | Maintainers: @libuv/zos |

deps/uv/appveyor.yml

-7
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,5 @@ build_script:
2828
- cmd: set ARCH=%platform%
2929
- cmd: vcbuild.bat release %ARCH% shared
3030

31-
after_build:
32-
- '"%PROGRAMFILES(x86)%\NSIS\makensis" /DVERSION=%APPVEYOR_BUILD_VERSION% /DARCH=%ARCH% libuv.nsi'
33-
34-
artifacts:
35-
- name: Installer
36-
path: 'libuv-*.exe'
37-
3831
cache:
3932
- C:\projects\libuv\build\gyp

deps/uv/checksparse.sh

+3
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ src/unix/tty.c
5353
src/unix/udp.c
5454
src/uv-common.c
5555
src/uv-common.h
56+
src/uv-data-getter-setters.c
5657
"
5758

5859
TESTS="
@@ -100,6 +101,7 @@ test/test-fs-copyfile.c
100101
test/test-fs-event.c
101102
test/test-fs-poll.c
102103
test/test-fs.c
104+
test/test-getters-setters.c
103105
test/test-get-currentexe.c
104106
test/test-get-loadavg.c
105107
test/test-get-memory.c
@@ -126,6 +128,7 @@ test/test-platform-output.c
126128
test/test-poll-close.c
127129
test/test-poll.c
128130
test/test-process-title.c
131+
test/test-process-title-threadsafe.c
129132
test/test-ref.c
130133
test/test-run-nowait.c
131134
test/test-run-once.c

deps/uv/configure.ac

+2-7
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.18.0], [https://github.com/libuv/libuv/issues])
16+
AC_INIT([libuv], [1.19.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])
@@ -68,10 +68,5 @@ AS_CASE([$host_os],[mingw*], [
6868
])
6969
AS_CASE([$host_os], [netbsd*], [AC_CHECK_LIB([kvm], [kvm_open])])
7070
AC_CHECK_HEADERS([sys/ahafs_evProds.h])
71-
AC_CHECK_PROG(PKG_CONFIG, pkg-config, yes)
72-
AM_CONDITIONAL([HAVE_PKG_CONFIG], [test "x$PKG_CONFIG" != "x"])
73-
AS_IF([test "x$PKG_CONFIG" != "x"], [
74-
AC_CONFIG_FILES([libuv.pc])
75-
])
76-
AC_CONFIG_FILES([Makefile])
71+
AC_CONFIG_FILES([Makefile libuv.pc])
7772
AC_OUTPUT

deps/uv/docs/src/fs.rst

+30
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,36 @@ API
340340
.. note::
341341
These functions are not implemented on Windows.
342342
343+
.. c:function:: uv_fs_type uv_fs_get_type(const uv_fs_t* req)
344+
345+
Returns `req->fs_type`.
346+
347+
.. versionadded:: 1.19.0
348+
349+
.. c:function:: ssize_t uv_fs_get_result(const uv_fs_t* req)
350+
351+
Returns `req->result`.
352+
353+
.. versionadded:: 1.19.0
354+
355+
.. c:function:: void* uv_fs_get_ptr(const uv_fs_t* req)
356+
357+
Returns `req->ptr`.
358+
359+
.. versionadded:: 1.19.0
360+
361+
.. c:function:: const char* uv_fs_get_path(const uv_fs_t* req)
362+
363+
Returns `req->path`.
364+
365+
.. versionadded:: 1.19.0
366+
367+
.. c:function:: uv_stat_t* uv_fs_get_statbuf(uv_fs_t* req)
368+
369+
Returns `&req->statbuf`.
370+
371+
.. versionadded:: 1.19.0
372+
343373
.. seealso:: The :c:type:`uv_req_t` API functions also apply.
344374
345375
Helper functions

deps/uv/docs/src/fs_event.rst

+6
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,13 @@ the best backend for the job on each platform.
1919

2020
See documentation_ for more details.
2121

22+
The z/OS file system events monitoring infrastructure does not notify of file
23+
creation/deletion within a directory that is being monitored.
24+
See the `IBM Knowledge centre`_ for more details.
25+
2226
.. _documentation: http://www.ibm.com/developerworks/aix/library/au-aix_event_infrastructure/
27+
.. _`IBM Knowledge centre`: https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.2.0/com.ibm.zos.v2r1.bpxb100/ioc.htm
28+
2329

2430

2531

deps/uv/docs/src/handle.rst

+32
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,38 @@ just for some handle types.
211211
Be very careful when using this function. libuv assumes it's in control of the file
212212
descriptor so any change to it may lead to malfunction.
213213
214+
.. c:function:: uv_loop_t* uv_handle_get_loop(const uv_handle_t* handle)
215+
216+
Returns `handle->loop`.
217+
218+
.. versionadded:: 1.19.0
219+
220+
.. c:function:: void* uv_handle_get_data(const uv_handle_t* handle)
221+
222+
Returns `handle->data`.
223+
224+
.. versionadded:: 1.19.0
225+
226+
.. c:function:: void* uv_handle_set_data(uv_handle_t* handle, void* data)
227+
228+
Sets `handle->data` to `data`.
229+
230+
.. versionadded:: 1.19.0
231+
232+
.. c:function:: uv_handle_type uv_handle_get_type(const uv_handle_t* handle)
233+
234+
Returns `handle->type`.
235+
236+
.. versionadded:: 1.19.0
237+
238+
.. c:function:: const char* uv_handle_type_name(uv_handle_type type)
239+
240+
Returns the name for the equivalent struct for a given handle type,
241+
e.g. `"pipe"` (as in :c:type:`uv_pipe_t`) for `UV_NAMED_PIPE`.
242+
243+
If no such handle type exists, this returns `NULL`.
244+
245+
.. versionadded:: 1.19.0
214246
215247
.. _refcount:
216248

deps/uv/docs/src/loop.rst

+12
Original file line numberDiff line numberDiff line change
@@ -222,3 +222,15 @@ API
222222
Any previous value returned from :c:func`uv_backend_fd` is now
223223
invalid. That function must be called again to determine the
224224
correct backend file descriptor.
225+
226+
.. c:function:: void* uv_loop_get_data(const uv_loop_t* loop)
227+
228+
Returns `loop->data`.
229+
230+
.. versionadded:: 1.19.0
231+
232+
.. c:function:: void* uv_loop_set_data(uv_loop_t* loop, void* data)
233+
234+
Sets `loop->data` to `data`.
235+
236+
.. versionadded:: 1.19.0

deps/uv/docs/src/misc.rst

+2-4
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,7 @@ API
197197
`UV_EINVAL` is returned. If `size` cannot accommodate the process title and
198198
terminating `NULL` character, the function returns `UV_ENOBUFS`.
199199
200-
.. warning::
201-
`uv_get_process_title` is not thread safe on any platform except Windows.
200+
.. versionchanged:: 1.18.1 now thread-safe on all supported platforms.
202201
203202
.. c:function:: int uv_set_process_title(const char* title)
204203
@@ -208,8 +207,7 @@ API
208207
larger than the available space. Other platforms will return `UV_ENOMEM` if
209208
they cannot allocate enough space to duplicate the contents of `title`.
210209
211-
.. warning::
212-
`uv_set_process_title` is not thread safe on any platform except Windows.
210+
.. versionchanged:: 1.18.1 now thread-safe on all supported platforms.
213211
214212
.. c:function:: int uv_resident_set_memory(size_t* rss)
215213

deps/uv/docs/src/process.rst

+6
Original file line numberDiff line numberDiff line change
@@ -222,4 +222,10 @@ API
222222
Sends the specified signal to the given PID. Check the documentation
223223
on :c:ref:`signal` for signal support, specially on Windows.
224224
225+
.. c:function:: uv_pid_t uv_process_get_pid(const uv_process_t* handle)
226+
227+
Returns `handle->pid`.
228+
229+
.. versionadded:: 1.19.0
230+
225231
.. seealso:: The :c:type:`uv_handle_t` API functions also apply.

deps/uv/docs/src/request.rst

+27
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,30 @@ API
8080
8181
Returns the size of the given request type. Useful for FFI binding writers
8282
who don't want to know the structure layout.
83+
84+
.. c:function:: void* uv_req_get_data(const uv_req_t* req)
85+
86+
Returns `req->data`.
87+
88+
.. versionadded:: 1.19.0
89+
90+
.. c:function:: void* uv_req_set_data(uv_req_t* req, void* data)
91+
92+
Sets `req->data` to `data`.
93+
94+
.. versionadded:: 1.19.0
95+
96+
.. c:function:: uv_req_type uv_req_get_type(const uv_req_t* req)
97+
98+
Returns `req->type`.
99+
100+
.. versionadded:: 1.19.0
101+
102+
.. c:function:: const char* uv_req_type_name(uv_req_type type)
103+
104+
Returns the name for the equivalent struct for a given request type,
105+
e.g. `"connect"` (as in :c:type:`uv_connect_t`) for `UV_CONNECT`.
106+
107+
If no such request type exists, this returns `NULL`.
108+
109+
.. versionadded:: 1.19.0

deps/uv/docs/src/stream.rst

+6
Original file line numberDiff line numberDiff line change
@@ -228,4 +228,10 @@ API
228228
229229
.. versionchanged:: 1.4.0 UNIX implementation added.
230230
231+
.. c:function:: size_t uv_stream_get_write_queue_size(const uv_stream_t* stream)
232+
233+
Returns `stream->write_queue_size`.
234+
235+
.. versionadded:: 1.19.0
236+
231237
.. seealso:: The :c:type:`uv_handle_t` API functions also apply.

deps/uv/docs/src/tcp.rst

+7
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,14 @@ API
102102
and an uninitialized :c:type:`uv_connect_t`. `addr` should point to an
103103
initialized ``struct sockaddr_in`` or ``struct sockaddr_in6``.
104104
105+
On Windows if the `addr` is initialized to point to an unspecified address
106+
(``0.0.0.0`` or ``::``) it will be changed to point to ``localhost``.
107+
This is done to match the behavior of Linux systems.
108+
105109
The callback is made when the connection has been established or when a
106110
connection error happened.
107111
112+
.. versionchanged:: 1.19.0 added ``0.0.0.0`` and ``::`` to ``localhost``
113+
mapping
114+
108115
.. seealso:: The :c:type:`uv_stream_t` API functions also apply.

0 commit comments

Comments
 (0)