9b2c9b6c | 20-Sep-2019 |
Saúl Ibarra Corretgé |
win: simplify mkdtemp Use our builtin getrandom helper instead of the more verbose CryptoAPI functions, which also happen to be deprecated. PR-URL: https://github.com/libuv/libu
win: simplify mkdtemp Use our builtin getrandom helper instead of the more verbose CryptoAPI functions, which also happen to be deprecated. PR-URL: https://github.com/libuv/libuv/pull/2485 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com>
show more ...
|
4ed2a78f | 22-Jun-2019 |
Ben Noordhuis |
unix,win: add uv_random() Add an API for obtaining cryptographically strong random data from the system PRNG. Co-authored-by: Saúl Ibarra Corretgé <s@saghul.net> Refs: https
unix,win: add uv_random() Add an API for obtaining cryptographically strong random data from the system PRNG. Co-authored-by: Saúl Ibarra Corretgé <s@saghul.net> Refs: https://github.com/libuv/libuv/pull/1055 PR-URL: https://github.com/libuv/libuv/pull/2347 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
show more ...
|
fd1502f5 | 13-Sep-2019 |
Anna Henningsen |
win: fix reading hidden env vars There are some special environment variables on Windows that start with a '=' sign, e.g. per-drive working directories. In those cases, an initial '=
win: fix reading hidden env vars There are some special environment variables on Windows that start with a '=' sign, e.g. per-drive working directories. In those cases, an initial '=' in the name of the environment variable needs to be skipped when looking for the '=' that separates it from its value. PR-URL: https://github.com/libuv/libuv/pull/2473 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Jameson Nash <vtjnash+github@gmail.com> Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com> Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
show more ...
|
e2c0f60c | 16-Sep-2019 |
Yang Yu |
build: fix build error with __ANDROID_API__ < 21 Fix the following undefined symbols error with __ANDROID_API__ < 21: - epoll_create1 - epoll_pwait - futimens |
3bff0d38 | 16-Sep-2019 |
Yang Yu |
Revert "linux: drop code path for epoll_pwait-less kernels" This reverts commit f43c66343316878da09949daf49b515249f71bdf. |
549f52c4 | 09-Sep-2019 |
cjihrig |
Now working on version 1.32.1 Fixes: https://github.com/libuv/libuv/issues/2457 |
cd8f9315 | 09-Sep-2019 |
cjihrig |
Add SHA to ChangeLog |
697bea87 | 09-Sep-2019 |
cjihrig |
2019.09.10, Version 1.32.0 (Stable) Changes since version 1.31.0: * misc: enable stalebot (Saúl Ibarra Corretgé) * win: map ERROR_ENVVAR_NOT_FOUND to UV_ENOENT (cjihrig)
2019.09.10, Version 1.32.0 (Stable) Changes since version 1.31.0: * misc: enable stalebot (Saúl Ibarra Corretgé) * win: map ERROR_ENVVAR_NOT_FOUND to UV_ENOENT (cjihrig) * win: use L'\0' as UTF-16 null terminator (cjihrig) * win: support retrieving empty env variables (cjihrig) * unix,stream: fix returned error codes (Santiago Gimeno) * test: fix typo in DYLD_LIBRARY_PATH (Ben Noordhuis) * unix,signal: keep handle active if pending signal (Santiago Gimeno) * openbsd: fix uv_cpu_info (Santiago Gimeno) * src: move uv_free_cpu_info to uv-common.c (Santiago Gimeno) * tcp: add uv_tcp_close_reset method (Santiago Gimeno) * test: fix udp-multicast-join tests (Santiago Gimeno) * test: remove assertion in fs_statfs test (cjihrig) * doc: clarify uv_buf_t usage in uv_alloc_cb (Tomas Krizek) * win: fix typo in preprocessor expression (Konstantin Podsvirov) * timer: fix uv_timer_start on closing timer (seny) * udp: add source-specific multicast support (Vladimir Karnushin) * udp: fix error return values (Santiago Gimeno) * udp: drop IPV6_SSM_SUPPORT macro (Santiago Gimeno) * udp: fix uv__udp_set_source_membership6 (Santiago Gimeno) * udp: use sockaddr_storage instead of union (Santiago Gimeno) * build,zos: add _OPEN_SYS_SOCK_EXT3 flag (Santiago Gimeno) * test: add specific source multicast tests (Santiago Gimeno) * include: map EILSEQ error code (cjihrig) * win, tty: improve SIGWINCH performance (Bartosz Sosnowski) * build: fix ios build error (MaYuming) * aix: replace ECONNRESET with EOF if already closed (Milad Farazmand) * build: add cmake library VERSION, SOVERSION (Eneas U de Queiroz) * build: make include/ public in CMakeLists.txt (Ben Noordhuis) * build: export USING_UV_SHARED=1 to cmake deps (Ben Noordhuis) * build: cmake_minimum_required(VERSION 2.8.12) (Daniel Hahler) * aix: Fix broken cmpxchgi() XL C++ specialization. (Andrew Paprocki) * test: fix -Wsign-compare warning (Ben Noordhuis) * unix: simplify open(O_CLOEXEC) feature detection (Ben Noordhuis) * unix: fix UV_FS_O_DIRECT definition on Linux (Joran Dirk Greef) * doc: uv_handle_t documentation suggestion (Daniel Bevenius)
show more ...
|
25682faf | 02-Sep-2019 |
Daniel Bevenius |
doc: uv_handle_t documentation suggestion This commit contains a suggestion to hopefully improve the documentation of uv_handle_t's member uv_loop_t. PR-URL: https://github.com/
doc: uv_handle_t documentation suggestion This commit contains a suggestion to hopefully improve the documentation of uv_handle_t's member uv_loop_t. PR-URL: https://github.com/libuv/libuv/pull/2446 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
show more ...
|
9b12e023 | 06-Sep-2019 |
Joran Dirk Greef |
unix: fix UV_FS_O_DIRECT definition on Linux According to http://man7.org/linux/man-pages/man2/open.2.html, the O_DIRECT flag is Linux-specific. One must define _GNU_SOURCE to obtain
unix: fix UV_FS_O_DIRECT definition on Linux According to http://man7.org/linux/man-pages/man2/open.2.html, the O_DIRECT flag is Linux-specific. One must define _GNU_SOURCE to obtain the correct definition. However, defining _GNU_SOURCE in the headers is unhygienic and affects the libuv consumer. On Linux, we now define UV_FS_O_DIRECT explicitly according to architecture, only falling back to O_DIRECT if defined, or 0 if not. Fixes: https://github.com/libuv/libuv/issues/2420 PR-URL: https://github.com/libuv/libuv/pull/2441 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
show more ...
|
1f63e287 | 06-Sep-2019 |
Ben Noordhuis |
unix: simplify open(O_CLOEXEC) feature detection Platforms that support O_CLOEXEC have supported it for a long time and don't need feature detection. Libuv can just assume it works as
unix: simplify open(O_CLOEXEC) feature detection Platforms that support O_CLOEXEC have supported it for a long time and don't need feature detection. Libuv can just assume it works as advertised. The feature detection was broken for old Linux kernels because they don't report EINVAL for unknown open() flags, they simply open the file without setting the FD_CLOEXEC flag. Libuv could fix that by checking afterwards with fcntl() if the flag was actually set but it doesn't support kernels that old in the first place so let's simplify the logic. Fixes: https://github.com/libuv/libuv/issues/2450 PR-URL: https://github.com/libuv/libuv/pull/2454 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
show more ...
|
c898f2e8 | 06-Sep-2019 |
Ben Noordhuis |
test: fix -Wsign-compare warning PR-URL: https://github.com/libuv/libuv/pull/2451 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com
test: fix -Wsign-compare warning PR-URL: https://github.com/libuv/libuv/pull/2451 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
show more ...
|
4a972bf0 | 06-Sep-2019 |
Andrew Paprocki |
aix: Fix broken cmpxchgi() XL C++ specialization. The preprocessor was used to select a special implementation when building on AIX using XL C++ (strangely, not XL C). This code imp
aix: Fix broken cmpxchgi() XL C++ specialization. The preprocessor was used to select a special implementation when building on AIX using XL C++ (strangely, not XL C). This code implemented `cmpxchgi()` by directly reading the old value and then calling `__compare_and_swap()`, an intrinsic that does not provide any sort of memory barrier guarantees. The return value was not used, and the value read prior to the `__compare_and_swap()` call was returned. There is no way that this code could provide the required semantics of the function and it causes observable data races and strange library failures in production under load. XL C/C++ for AIX has provided support for the GCC intrinsic used in the GCC/Clang cases since version 12.1 of the compiler. This version of the compiler is old enough that it doesn't warrant a version check. (The compiler was released 8-Jun-2012, maintenance ended 9-Jul-2019, and service ends 30-Apr-2020.) This change fixes all observed atomic issues and unifies XL C/C++ with GCC/Clang. Relevant XL C/C++ for AIX V12.1 documentation links: - [__compare_and_swap](https://www.ibm.com/support/knowledgecenter/en/SSGH3R_12.1.0/com.ibm.xlcpp121.aix.doc/compiler_ref/bif_compare_and_swap_compare_and_swaplp.html) - [__sync_val_compare_and_swap](https://www.ibm.com/support/knowledgecenter/en/SSGH3R_12.1.0/com.ibm.xlcpp121.aix.doc/compiler_ref/bif_gcc_atomic_val_comp_swap.html) PR-URL: https://github.com/libuv/libuv/pull/2455 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
show more ...
|
1f1f1126 | 06-Sep-2019 |
Daniel Hahler |
build: cmake_minimum_required(VERSION 2.8.12) The lower minimum version makes it possible to build neovim but it should be understood that libuv tests nor supports cmake versions tha
build: cmake_minimum_required(VERSION 2.8.12) The lower minimum version makes it possible to build neovim but it should be understood that libuv tests nor supports cmake versions that old. PR-URL: https://github.com/libuv/libuv/pull/2373 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
show more ...
|
6325a7c8 | 06-Sep-2019 |
Ben Noordhuis |
build: export USING_UV_SHARED=1 to cmake deps Build the shared library with `BUILDING_UV_SHARED=1` and export `USING_UV_SHARED=1` to dependents so they get the right declspec. F
build: export USING_UV_SHARED=1 to cmake deps Build the shared library with `BUILDING_UV_SHARED=1` and export `USING_UV_SHARED=1` to dependents so they get the right declspec. Fixes: https://github.com/libuv/libuv/issues/1938 PR-URL: https://github.com/libuv/libuv/pull/2431 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
show more ...
|
be449a19 | 06-Sep-2019 |
Ben Noordhuis |
build: make include/ public in CMakeLists.txt Fixes: https://github.com/libuv/libuv/issues/1938 PR-URL: https://github.com/libuv/libuv/pull/2431 Reviewed-By: Colin Ihrig <cjihrig@gma
build: make include/ public in CMakeLists.txt Fixes: https://github.com/libuv/libuv/issues/1938 PR-URL: https://github.com/libuv/libuv/pull/2431 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
show more ...
|
ba1a770b | 06-Sep-2019 |
Eneas U de Queiroz |
build: add cmake library VERSION, SOVERSION This mimics the behavior of the automake build, using libuv.so.${UV_VERSION_MAJOR}.0.0 as the output file, and setting the soname property
build: add cmake library VERSION, SOVERSION This mimics the behavior of the automake build, using libuv.so.${UV_VERSION_MAJOR}.0.0 as the output file, and setting the soname property to be libuv.so.${UV_VERSION_MAJOR}, currently ending up like this: libuv.so.1.0.0 libuv.so.1 -> libuv.so.1.0.0 libuv.so -> libuv.so.1 The version information is extracted from the PACKAGE_VERSION string. PR-URL: https://github.com/libuv/libuv/pull/2445 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com> Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
show more ...
|
ca08b482 | 06-Sep-2019 |
Milad Farazmand |
aix: replace ECONNRESET with EOF if already closed PR-URL: https://github.com/libuv/libuv/pull/2447 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@
aix: replace ECONNRESET with EOF if already closed PR-URL: https://github.com/libuv/libuv/pull/2447 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
show more ...
|
5ba93ede | 04-Sep-2019 |
MaYuming |
build: fix ios build error `_NSGetEnviron()` is not available on that platform. PR-URL: https://github.com/libuv/libuv/pull/2449 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
build: fix ios build error `_NSGetEnviron()` is not available on that platform. PR-URL: https://github.com/libuv/libuv/pull/2449 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Signed-off-by: MaYuming <maym@appexnetworks.com>
show more ...
|
7d950c0d | 05-Sep-2019 |
Bartosz Sosnowski |
win, tty: improve SIGWINCH performance Continuing improvement of SIGWINCH from PR #2308. Running SetWinEventHook without filtering for the specific PIDs has significant impact o
win, tty: improve SIGWINCH performance Continuing improvement of SIGWINCH from PR #2308. Running SetWinEventHook without filtering for the specific PIDs has significant impact on the performance of the entire system. This PR changes the way SIGWINCH is handled. The SetWinEventHook callback now signals a separate thread, uv__tty_console_resize_watcher_thread. This thread calls uv__tty_console_signal_resize() which checks if the console was actually resized. The uv__tty_console_resize_watcher_thread makes sure to not to call the uv__tty_console_signal_resize function more than 30 times per second. The SetWinEventHook will not be installed, if the PID of the conhost.exe process that owns the console window cannot be determinated. This can happen when a 32bit libuv app is running on a 64bit Windows. For such cases PR #1408 is partially reverted - when tty reads WINDOW_BUFFER_SIZE_EVENT, it will also trigger a call to uv__tty_console_signal_resize(). This will also help when the app is running under console emulators. Documentation was also updated to reflect that. Refs: https://github.com/microsoft/terminal/issues/1811 Refs: https://github.com/microsoft/terminal/issues/410 Refs: https://github.com/libuv/libuv/pull/2308 PR-URL: https://github.com/libuv/libuv/pull/2381 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
show more ...
|
43c74a6e | 23-Aug-2019 |
cjihrig |
include: map EILSEQ error code PR-URL: https://github.com/libuv/libuv/pull/2440 Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Saúl Ibarra Corretgé <saghul@gma
include: map EILSEQ error code PR-URL: https://github.com/libuv/libuv/pull/2440 Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
show more ...
|
24e65f77 | 21-Feb-2019 |
Santiago Gimeno |
test: add specific source multicast tests PR-URL: https://github.com/libuv/libuv/pull/2202 Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com> |
80e931b3 | 21-Feb-2019 |
Santiago Gimeno |
build,zos: add _OPEN_SYS_SOCK_EXT3 flag To support source specific multicast operations. PR-URL: https://github.com/libuv/libuv/pull/2202 Reviewed-By: Saúl Ibarra Corretgé <sagh
build,zos: add _OPEN_SYS_SOCK_EXT3 flag To support source specific multicast operations. PR-URL: https://github.com/libuv/libuv/pull/2202 Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
show more ...
|
7452507f | 12-Mar-2019 |
Santiago Gimeno |
udp: use sockaddr_storage instead of union PR-URL: https://github.com/libuv/libuv/pull/2202 Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com> |
f91702a4 | 21-Feb-2019 |
Santiago Gimeno |
udp: fix uv__udp_set_source_membership6 Use the correct socket options: `MCAST_JOIN_SOURCE_GROUP` and `MCAST_LEAVE_SOURCE_GROUP`. Set mreq.gsr_interface = 0 if iface_addr = NULL.
udp: fix uv__udp_set_source_membership6 Use the correct socket options: `MCAST_JOIN_SOURCE_GROUP` and `MCAST_LEAVE_SOURCE_GROUP`. Set mreq.gsr_interface = 0 if iface_addr = NULL. PR-URL: https://github.com/libuv/libuv/pull/2202 Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
show more ...
|