Skip to content

Commit 84f1ab6

Browse files
saghulJulien Gilli
authored and
Julien Gilli
committed
deps: update libuv to 1.5.0
PR: #25141 PR-URL: nodejs/node-v0.x-archive#25141 Reviewed-By: Trevor Norris <[email protected]> Reviewed-By: Julien Gilli <[email protected]>
1 parent fcbf226 commit 84f1ab6

Some content is hidden

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

73 files changed

+1680
-837
lines changed

deps/uv/AUTHORS

+16
Original file line numberDiff line numberDiff line change
@@ -181,3 +181,19 @@ Johan Bergström <[email protected]>
181181
182182
Luis Martinez de Bartolome <[email protected]>
183183
Michael Penick <[email protected]>
184+
185+
Massimiliano Torromeo <[email protected]>
186+
TomCrypto <[email protected]>
187+
Brett Vickers <[email protected]>
188+
Ole André Vadla Ravnås <[email protected]>
189+
Kazuho Oku <[email protected]>
190+
Ryan Phillips <[email protected]>
191+
Brian Green <[email protected]>
192+
Devchandra Meetei Leishangthem <[email protected]>
193+
Corey Farrell <[email protected]>
194+
Per Nilsson <[email protected]>
195+
Alan Rogers <[email protected]>
196+
Daryl Haresign <[email protected]>
197+
Rui Abreu Ferreira <[email protected]>
198+
João Reis <[email protected]>
199+
farblue68 <[email protected]>

deps/uv/ChangeLog

+105-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,108 @@
1-
2015.02.27, Version 1.4.2 (Stable)
1+
2015.05.07, Version 1.5.0 (Stable), 4e77f74c7b95b639b3397095db1bc5bcc016c203
2+
3+
Changes since version 1.4.2:
4+
5+
* doc: clarify that the thread pool primites are not thread safe (Andrius
6+
Bentkus)
7+
8+
* aix: always deregister closing fds from epoll (Michael)
9+
10+
* unix: fix glibc-2.20+ macro incompatibility (Massimiliano Torromeo)
11+
12+
* doc: add Sphinx plugin for generating links to man pages (Saúl Ibarra
13+
Corretgé)
14+
15+
* doc: link system and library calls to man pages (Saúl Ibarra Corretgé)
16+
17+
* doc: document uv_getnameinfo_t.{host|service} (Saúl Ibarra Corretgé)
18+
19+
* build: update the location of gyp (Stephen von Takach)
20+
21+
* win: name all anonymous structs and unions (TomCrypto)
22+
23+
* linux: work around epoll bug in kernels 3.10-3.19 (Ben Noordhuis)
24+
25+
* darwin: fix size calculation in select() fallback (Ole André Vadla Ravnås)
26+
27+
* solaris: fix setsockopt for multicast options (Julien Gilli)
28+
29+
* test: fix race condition in multithreaded test (Ben Noordhuis)
30+
31+
* doc: fix long lines in tty.rst (Ben Noordhuis)
32+
33+
* test: use UV_TTY_MODE_* values in tty test (Ben Noordhuis)
34+
35+
* unix: don't clobber errno in uv_tty_reset_mode() (Ben Noordhuis)
36+
37+
* unix: reject non-tty fds in uv_tty_init() (Ben Noordhuis)
38+
39+
* win: fix pipe blocking writes (Alexis Campailla)
40+
41+
* build: fix cross-compiling for iOS (Steven Kabbes)
42+
43+
* win: remove unnecessary malloc.h
44+
45+
* include: use `extern "c++"` for defining C++ code (Kazuho Oku)
46+
47+
* unix: reap child on execvp() failure (Ryan Phillips)
48+
49+
* windows: fix handle leak on EMFILE (Brian Green)
50+
51+
* test: fix tty_file, close handle if initialized (Saúl Ibarra Corretgé)
52+
53+
* doc: clarify what uv_*_open accepts (Saúl Ibarra Corretgé)
54+
55+
* doc: clarify that we don't maintain external doc resources (Saúl Ibarra
56+
Corretgé)
57+
58+
* build: add documentation for ninja support (Devchandra Meetei Leishangthem)
59+
60+
* doc: document uv_buf_t members (Corey Farrell)
61+
62+
* linux: fix epoll_pwait() fallback on arm64 (Ben Noordhuis)
63+
64+
* android: fix compilation warning (Saúl Ibarra Corretgé)
65+
66+
* unix: don't close the fds we just setup (Sam Roberts)
67+
68+
* test: spawn child replacing std{out,err} to stderr (Saúl Ibarra Corretgé)
69+
70+
* unix: fix swapping fds order in uv_spawn (Saúl Ibarra Corretgé)
71+
72+
* unix: fix potential bug if dup2 fails in uv_spawn (Saúl Ibarra Corretgé)
73+
74+
* test: remove LOG and LOGF variadic macros (Saúl Ibarra Corretgé)
75+
76+
* win: fix uv_fs_access on directories (Saúl Ibarra Corretgé)
77+
78+
* win: fix of double free in uv_uptime (Per Nilsson)
79+
80+
* unix: open "/dev/null" instead of "/" for emfile_fd (Alan Rogers)
81+
82+
* docs: add some missing words (Daryl Haresign)
83+
84+
* unix: clean up uv_fs_open() O_CLOEXEC logic (Ben Noordhuis)
85+
86+
* build: set SONAME for shared library in uv.gyp (Rui Abreu Ferreira)
87+
88+
* windows: define snprintf replacement as inline instead of static (Rui Abreu
89+
Ferreira)
90+
91+
* win: fix unlink of readonly files (João Reis)
92+
93+
* doc: fix uv_run(UV_RUN_DEFAULT) description (Ben Noordhuis)
94+
95+
* linux: intercept syscall when running under memory sanitizer (Keno Fischer)
96+
97+
* aix: fix uv_interface_addresses return value (farblue68)
98+
99+
* windows: defer reporting TCP write failure until next tick (Saúl Ibarra
100+
Corretgé)
101+
102+
* test: add test for deferred TCP write failure (Saúl Ibarra Corretgé)
103+
104+
105+
2015.02.27, Version 1.4.2 (Stable), 1a7391348a11d5450c0f69c828d5302e2cb842eb
2106

3107
Changes since version 1.4.1:
4108

deps/uv/Makefile.am

+1
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ test_run_tests_SOURCES = test/blackhole-server.c \
226226
test/test-tcp-write-to-half-open-connection.c \
227227
test/test-tcp-write-after-connect.c \
228228
test/test-tcp-writealot.c \
229+
test/test-tcp-write-fail.c \
229230
test/test-tcp-try-write.c \
230231
test/test-tcp-write-queue-order.c \
231232
test/test-thread-equal.c \

deps/uv/README.md

+15-4
Original file line numberDiff line numberDiff line change
@@ -72,19 +72,23 @@ NOTE: Windows users need to use make.bat instead of plain 'make'.
7272

7373
Documentation can be browsed online [here](http://docs.libuv.org).
7474

75+
The [tests and benchmarks](https://github.com/libuv/libuv/tree/master/test)
76+
also serve as API specification and usage examples.
77+
7578
### Other resources
7679

7780
* [An Introduction to libuv](http://nikhilm.github.com/uvbook/)
7881
&mdash; An overview of libuv with tutorials.
7982
* [LXJS 2012 talk](http://www.youtube.com/watch?v=nGn60vDSxQ4)
8083
&mdash; High-level introductory talk about libuv.
81-
* [Tests and benchmarks](https://github.com/libuv/libuv/tree/master/test)
82-
&mdash; API specification and usage examples.
8384
* [libuv-dox](https://github.com/thlorenz/libuv-dox)
8485
&mdash; Documenting types and methods of libuv, mostly by reading uv.h.
8586
* [learnuv](https://github.com/thlorenz/learnuv)
8687
&mdash; Learn uv for fun and profit, a self guided workshop to libuv.
8788

89+
These resources are not handled by libuv maintainers and might be out of
90+
date. Please verify it before opening new issues.
91+
8892
## Build Instructions
8993

9094
For GCC there are two build methods: via autotools or via [GYP][].
@@ -113,8 +117,6 @@ To have GYP generate build script for another system, checkout GYP into the
113117
project tree manually:
114118

115119
$ git clone https://chromium.googlesource.com/external/gyp.git build/gyp
116-
OR
117-
$ svn co http://gyp.googlecode.com/svn/trunk build/gyp
118120

119121
### Unix
120122

@@ -153,6 +155,15 @@ Run:
153155
Note for UNIX users: compile your project with `-D_LARGEFILE_SOURCE` and
154156
`-D_FILE_OFFSET_BITS=64`. GYP builds take care of that automatically.
155157

158+
### Using Ninja
159+
160+
To use ninja for build on ninja supported platforms, run:
161+
162+
$ ./gyp_uv.py -f ninja
163+
$ ninja -C out/Debug #for debug build OR
164+
$ ninja -C out/Release
165+
166+
156167
### Running tests
157168

158169
Run:

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def get_libuv_version():
3838
# If extensions (or modules to document with autodoc) are in another directory,
3939
# add these directories to sys.path here. If the directory is relative to the
4040
# documentation root, use os.path.abspath to make it absolute, like shown here.
41-
#sys.path.insert(0, os.path.abspath('.'))
41+
sys.path.insert(0, os.path.abspath('sphinx-plugins'))
4242

4343
# -- General configuration ------------------------------------------------
4444

@@ -48,7 +48,7 @@ def get_libuv_version():
4848
# Add any Sphinx extension module names here, as strings. They can be
4949
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
5050
# ones.
51-
extensions = []
51+
extensions = ['manpage']
5252

5353
# Add any paths that contain templates here, relative to this directory.
5454
templates_path = ['templates']

deps/uv/docs/src/design.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ The I/O loop
4040
The I/O (or event) loop is the central part of libuv. It establishes the content for all I/O
4141
operations, and it's meant to be tied to a single thread. One can run multiple event loops
4242
as long as each runs in a different thread. The libuv event loop (or any other API involving
43-
the loop or handles, for that matter) **is not thread-safe** except stated otherwise.
43+
the loop or handles, for that matter) **is not thread-safe** except where stated otherwise.
4444

4545
The event loop follows the rather usual single threaded asynchronous I/O approach: all (network)
4646
I/O is performed on non-blocking sockets which are polled using the best mechanism available
@@ -113,7 +113,7 @@ stages of a loop iteration:
113113

114114
.. note::
115115
While the polling mechanism is different, libuv makes the execution model consistent
116-
Unix systems and Windows.
116+
across Unix systems and Windows.
117117

118118

119119
File I/O

deps/uv/docs/src/dns.rst

+14-2
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,18 @@ Public members
5151
Loop that started this getnameinfo request and where completion will be
5252
reported. Readonly.
5353

54+
.. c:member:: char[NI_MAXHOST] uv_getnameinfo_t.host
55+
56+
Char array containing the resulting host. It's null terminated.
57+
58+
.. versionchanged:: 1.3.0 the field is declared as public.
59+
60+
.. c:member:: char[NI_MAXSERV] uv_getnameinfo_t.service
61+
62+
Char array containing the resulting service. It's null terminated.
63+
64+
.. versionchanged:: 1.3.0 the field is declared as public.
65+
5466
.. seealso:: The :c:type:`uv_req_t` members also apply.
5567

5668

@@ -59,7 +71,7 @@ API
5971

6072
.. c:function:: int uv_getaddrinfo(uv_loop_t* loop, uv_getaddrinfo_t* req, uv_getaddrinfo_cb getaddrinfo_cb, const char* node, const char* service, const struct addrinfo* hints)
6173
62-
Asynchronous ``getaddrinfo(3)``.
74+
Asynchronous :man:`getaddrinfo(3)`.
6375
6476
Either node or service may be NULL but not both.
6577
@@ -84,7 +96,7 @@ API
8496
8597
.. c:function:: int uv_getnameinfo(uv_loop_t* loop, uv_getnameinfo_t* req, uv_getnameinfo_cb getnameinfo_cb, const struct sockaddr* addr, int flags)
8698
87-
Asynchronous ``getnameinfo(3)``.
99+
Asynchronous :man:`getnameinfo(3)`.
88100
89101
Returns 0 on success or an error code < 0 on failure. If successful, the
90102
callback will get called sometime in the future with the lookup result.

0 commit comments

Comments
 (0)