Skip to content

Commit e3df569

Browse files
cjihrigMylesBorins
authored andcommitted
deps: upgrade libuv to 1.18.0
PR-URL: #17282 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
1 parent 6c65e04 commit e3df569

35 files changed

+817
-315
lines changed

deps/uv/AUTHORS

+3
Original file line numberDiff line numberDiff line change
@@ -318,3 +318,6 @@ Scott Parker <scott.parker087@gmail.com>
318318
Wade Brainerd <Wade.Brainerd@activision.com>
319319
rayrase <rmartinez2175@eagle.fgcu.edu>
320320
Pekka Nikander <pekka.nikander@iki.fi>
321+
Ed Schouten <ed@nuxi.nl>
322+
Xu Meng <mengxumx@cn.ibm.com>
323+
Matt Harrison <hi@matt-harrison.com>

deps/uv/CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,6 @@ not send out notifications when you add commits.
164164

165165
[issue tracker]: https://github.com/libuv/libuv/issues
166166
[libuv mailing list]: http://groups.google.com/group/libuv
167-
[IRC]: http://webchat.freelibuv.net/?channels=libuv
167+
[IRC]: http://webchat.freenode.net/?channels=libuv
168168
[Google C/C++ style guide]: https://google.github.io/styleguide/cppguide.html
169169
[project maintainers]: https://github.com/libuv/libuv/blob/master/MAINTAINERS.md

deps/uv/ChangeLog

+52
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,55 @@
1+
2017.12.02, Version 1.18.0 (Stable), 1489c98b7fc17f1702821a269eb0c5e730c5c813
2+
3+
Changes since version 1.17.0:
4+
5+
* aix: fix -Wmaybe-uninitialized warning (cjihrig)
6+
7+
* doc: remove note about SIGWINCH on Windows (Bartosz Sosnowski)
8+
9+
* Revert "unix,win: wait for threads to start" (Ben Noordhuis)
10+
11+
* unix,win: add uv_os_getpid() (Bartosz Sosnowski)
12+
13+
* unix: remove incorrect assertion in uv_shutdown() (Jameson Nash)
14+
15+
* doc: fix IRC URL in CONTRIBUTING.md (Matt Harrison)
16+
17+
18+
2017.11.25, Version 1.17.0 (Stable), 1344d2bb82e195d0eafc0b40ba103f18dfd04cc5
19+
20+
Changes since version 1.16.1:
21+
22+
* unix: avoid malloc() call in uv_spawn() (Ben Noordhuis)
23+
24+
* doc: clarify the description of uv_loop_alive() (Ed Schouten)
25+
26+
* win: map UV_FS_O_EXLOCK to a share mode of 0 (Joran Dirk Greef)
27+
28+
* win: fix build on case-sensitive file systems (Ben Noordhuis)
29+
30+
* win: fix test runner build with mingw64 (Ben Noordhuis)
31+
32+
* win: remove unused variable in test/test-fs.c (Ben Noordhuis)
33+
34+
* zos: add strnlen() implementation (jBarz)
35+
36+
* unix: keep track of bound sockets sent via spawn (jBarz)
37+
38+
* unix,win: wait for threads to start (Ben Noordhuis)
39+
40+
* test: add threadpool init/teardown test (Bartosz Sosnowski)
41+
42+
* test: avoid malloc() in threadpool test (Ben Noordhuis)
43+
44+
* test: lower number of tasks in threadpool test (Ben Noordhuis)
45+
46+
* win: issue memory barrier in uv_thread_join() (Ben Noordhuis)
47+
48+
* ibmi: add support for new platform (Xu Meng)
49+
50+
* test: fix test-spawn compilation (Bartosz Sosnowski)
51+
52+
153
2017.11.11, Version 1.16.1 (Stable), 4056fbe46493ef87237e307e0025e551db875e13
254

355
Changes since version 1.16.0:

deps/uv/Makefile.am

+1-1
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ libuv_la_CFLAGS += -D_ALL_SOURCE \
329329
-D_THREAD_SAFE \
330330
-DHAVE_SYS_AHAFS_EVPRODS_H
331331
include_HEADERS += include/uv-aix.h
332-
libuv_la_SOURCES += src/unix/aix.c
332+
libuv_la_SOURCES += src/unix/aix.c src/unix/aix-common.c
333333
endif
334334

335335
if ANDROID

deps/uv/appveyor.yml

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

33
init:
44
- git config --global core.autocrlf true

deps/uv/checksparse.sh

+10
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,18 @@ case `uname -s` in
177177
AIX)
178178
SPARSE_FLAGS="$SPARSE_FLAGS -D_AIX=1"
179179
SOURCES="$SOURCES
180+
src/unix/aix-common.c
180181
src/unix/aix.c"
181182
;;
183+
OS400)
184+
SPARSE_FLAGS="$SPARSE_FLAGS -D_PASE=1"
185+
SOURCES="$SOURCES
186+
src/unix/aix-common.c
187+
src/unix/ibmi.c
188+
src/unix/posix-poll.c
189+
src/unix/no-fsevents.c
190+
src/unix/no-proctitle.c"
191+
;;
182192
Darwin)
183193
SPARSE_FLAGS="$SPARSE_FLAGS -D__APPLE__=1"
184194
SOURCES="$SOURCES

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.16.1], [https://github.com/libuv/libuv/issues])
16+
AC_INIT([libuv], [1.18.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])

deps/uv/docs/src/fs.rst

+3-1
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,9 @@ File open constants
409409
Atomically obtain an exclusive lock.
410410
411411
.. note::
412-
`UV_FS_O_EXLOCK` is only supported on macOS.
412+
`UV_FS_O_EXLOCK` is only supported on macOS and Windows.
413+
414+
.. versionchanged:: 1.17.0 support is added for Windows.
413415
414416
.. c:macro:: UV_FS_O_NOATIME
415417

deps/uv/docs/src/loop.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ API
109109
110110
.. c:function:: int uv_loop_alive(const uv_loop_t* loop)
111111
112-
Returns non-zero if there are active handles or request in the loop.
112+
Returns non-zero if there are referenced active handles, active
113+
requests or closing handles in the loop.
113114
114115
.. c:function:: void uv_stop(uv_loop_t* loop)
115116

deps/uv/docs/src/misc.rst

+6
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,12 @@ API
227227
On Windows not all fields are set, the unsupported fields are filled with zeroes.
228228
See :c:type:`uv_rusage_t` for more details.
229229
230+
.. c:function:: uv_pid_t uv_os_getpid(void)
231+
232+
Returns the current process ID.
233+
234+
.. versionadded:: 1.18.0
235+
230236
.. c:function:: uv_pid_t uv_os_getppid(void)
231237
232238
Returns the parent process ID.

deps/uv/docs/src/signal.rst

+1-7
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,6 @@ Reception of some signals is emulated on Windows:
1717
program is given approximately 10 seconds to perform cleanup. After that
1818
Windows will unconditionally terminate it.
1919

20-
* SIGWINCH is raised whenever libuv detects that the console has been
21-
resized. SIGWINCH is emulated by libuv when the program uses a :c:type:`uv_tty_t`
22-
handle to write to the console. SIGWINCH may not always be delivered in a
23-
timely manner; libuv will only detect size changes when the cursor is
24-
being moved. When a readable :c:type:`uv_tty_t` handle is used in raw mode,
25-
resizing the console buffer will also trigger a SIGWINCH signal.
26-
2720
Watchers for other signals can be successfully created, but these signals
2821
are never received. These signals are: `SIGILL`, `SIGABRT`, `SIGFPE`, `SIGSEGV`,
2922
`SIGTERM` and `SIGKILL.`
@@ -36,6 +29,7 @@ not detected by libuv; these will not trigger a signal watcher.
3629
manage threads. Installing watchers for those signals will lead to unpredictable behavior
3730
and is strongly discouraged. Future versions of libuv may simply reject them.
3831

32+
.. versionchanged:: 1.15.0 SIGWINCH support on Windows was improved.
3933

4034
Data types
4135
----------

deps/uv/include/uv-unix.h

+2
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@
4848
# include "uv-linux.h"
4949
#elif defined (__MVS__)
5050
# include "uv-os390.h"
51+
#elif defined(_PASE)
52+
# include "uv-posix.h"
5153
#elif defined(_AIX)
5254
# include "uv-aix.h"
5355
#elif defined(__sun)

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 16
35-
#define UV_VERSION_PATCH 1
34+
#define UV_VERSION_MINOR 18
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

+4-4
Original file line numberDiff line numberDiff line change
@@ -664,13 +664,13 @@ RB_HEAD(uv_timer_tree_s, uv_timer_s);
664664
#define UV_FS_O_WRONLY _O_WRONLY
665665

666666
/* fs open() flags supported on other platforms (or mapped on this platform): */
667-
#define UV_FS_O_DIRECT 0x2000000 /* FILE_FLAG_NO_BUFFERING */
667+
#define UV_FS_O_DIRECT 0x02000000 /* FILE_FLAG_NO_BUFFERING */
668668
#define UV_FS_O_DIRECTORY 0
669-
#define UV_FS_O_DSYNC 0x4000000 /* FILE_FLAG_WRITE_THROUGH */
670-
#define UV_FS_O_EXLOCK 0
669+
#define UV_FS_O_DSYNC 0x04000000 /* FILE_FLAG_WRITE_THROUGH */
670+
#define UV_FS_O_EXLOCK 0x10000000 /* EXCLUSIVE SHARING MODE */
671671
#define UV_FS_O_NOATIME 0
672672
#define UV_FS_O_NOCTTY 0
673673
#define UV_FS_O_NOFOLLOW 0
674674
#define UV_FS_O_NONBLOCK 0
675675
#define UV_FS_O_SYMLINK 0
676-
#define UV_FS_O_SYNC 0x8000000 /* FILE_FLAG_WRITE_THROUGH */
676+
#define UV_FS_O_SYNC 0x08000000 /* FILE_FLAG_WRITE_THROUGH */

deps/uv/include/uv.h

+1
Original file line numberDiff line numberDiff line change
@@ -1070,6 +1070,7 @@ UV_EXTERN int uv_os_homedir(char* buffer, size_t* size);
10701070
UV_EXTERN int uv_os_tmpdir(char* buffer, size_t* size);
10711071
UV_EXTERN int uv_os_get_passwd(uv_passwd_t* pwd);
10721072
UV_EXTERN void uv_os_free_passwd(uv_passwd_t* pwd);
1073+
UV_EXTERN uv_pid_t uv_os_getpid(void);
10731074
UV_EXTERN uv_pid_t uv_os_getppid(void);
10741075

10751076
UV_EXTERN int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count);

0 commit comments

Comments
 (0)