Skip to content

Commit e397980

Browse files
nodejs-github-botjuanarbol
authored andcommitted
deps: update libuv to 1.51.0
PR-URL: #58124 Backport-PR-URL: #57316 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Rafael Gonzaga <[email protected]> Reviewed-By: Santiago Gimeno <[email protected]> Reviewed-By: Juan José Arboleda <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
1 parent 7327d14 commit e397980

Some content is hidden

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

83 files changed

+2625
-919
lines changed

deps/uv/.mailmap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ San-Tai Hsu <[email protected]>
5252
5353
Saúl Ibarra Corretgé <[email protected]>
5454
Saúl Ibarra Corretgé <[email protected]> <[email protected]>
55+
Saúl Ibarra Corretgé <[email protected]> <[email protected]>
5556
5657
Shuowang (Wayne) Zhang <[email protected]>
5758

deps/uv/.readthedocs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: 2
22

33
sphinx:
44
builder: html
5-
configuration: null
5+
configuration: docs/src/conf.py
66
fail_on_warning: false
77

88
build:

deps/uv/AUTHORS

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,5 +588,19 @@ Raihaan Shouhell <[email protected]>
588588
589589
590590
Poul T Lomholt <[email protected]>
591-
dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
592591
Thad House <[email protected]>
592+
Julian A Avar C <[email protected]>
593+
amcgoogan <[email protected]>
594+
Rafael Gonzaga <[email protected]>
595+
Morten Engelhardt Olsen <[email protected]>
596+
597+
Julio Jordán <[email protected]>
598+
Jinho Jang <[email protected]>
599+
Velikiy Kirill <[email protected]>
600+
601+
Paolo Insogna <[email protected]>
602+
Robert Nagy <[email protected]>
603+
mugitya03 <[email protected]>
604+
Itay Bookstein <[email protected]>
605+
606+

deps/uv/CMakeLists.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.9)
1+
cmake_minimum_required(VERSION 3.10)
22

33
if(POLICY CMP0091)
44
cmake_policy(SET CMP0091 NEW) # Enable MSVC_RUNTIME_LIBRARY setting
@@ -20,7 +20,7 @@ include(CTest)
2020
set(CMAKE_C_VISIBILITY_PRESET hidden)
2121
set(CMAKE_C_STANDARD_REQUIRED ON)
2222
set(CMAKE_C_EXTENSIONS ON)
23-
set(CMAKE_C_STANDARD 90)
23+
set(CMAKE_C_STANDARD 11)
2424

2525
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
2626

@@ -186,7 +186,7 @@ set(uv_sources
186186
src/version.c)
187187

188188
if(WIN32)
189-
list(APPEND uv_defines WIN32_LEAN_AND_MEAN _WIN32_WINNT=0x0602 _CRT_DECLARE_NONSTDC_NAMES=0)
189+
list(APPEND uv_defines WIN32_LEAN_AND_MEAN _WIN32_WINNT=0x0A00 _CRT_DECLARE_NONSTDC_NAMES=0)
190190
list(APPEND uv_libraries
191191
psapi
192192
user32
@@ -434,6 +434,7 @@ endif()
434434

435435
if(APPLE OR CMAKE_SYSTEM_NAME MATCHES "DragonFly|FreeBSD|Linux|NetBSD|OpenBSD")
436436
list(APPEND uv_test_libraries util)
437+
list(APPEND uv_libraries m)
437438
endif()
438439

439440
if(CYGWIN OR MSYS)
@@ -583,6 +584,7 @@ if(LIBUV_BUILD_TESTS)
583584
test/test-loop-close.c
584585
test/test-loop-configure.c
585586
test/test-loop-handles.c
587+
test/test-loop-oom.c
586588
test/test-loop-stop.c
587589
test/test-loop-time.c
588590
test/test-metrics.c
@@ -667,6 +669,7 @@ if(LIBUV_BUILD_TESTS)
667669
test/test-thread-affinity.c
668670
test/test-thread-equal.c
669671
test/test-thread.c
672+
test/test-thread-name.c
670673
test/test-thread-priority.c
671674
test/test-threadpool-cancel.c
672675
test/test-threadpool.c

deps/uv/ChangeLog

Lines changed: 172 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,175 @@
1-
2024.10.18, Version 1.49.2 (Stable)
1+
2025.04.25, Version 1.51.0 (Stable)
2+
3+
Changes since version 1.50.0:
4+
5+
* win: fix leak in uv_os_tmpdir (Saúl Ibarra Corretgé)
6+
7+
* docs: fix RTD build (Saúl Ibarra Corretgé)
8+
9+
* win: lazy-load [GS]etThreadDescription symbols (Ben Noordhuis)
10+
11+
* linux: try preadv64/pwritev64 before preadv/pwritev (Ben Noordhuis)
12+
13+
* win: check cwd length before spawning a child process (Morten Engelhardt
14+
Olsen)
15+
16+
* macos,bsd: handle missing /dev/null in chroot env (Andrey)
17+
18+
* doc: fix README link text (Julio Jordán)
19+
20+
* win: fix order of FILE_STAT_BASIC_INFORMATION struct fields (Hüseyin Açacak)
21+
22+
* macos: increase child process stdio buffer size (Jinho Jang)
23+
24+
* doc: add C3 bindings to LINKS.md (Velikiy Kirill)
25+
26+
* unix: remove unnecessary errno.h include in poll.c (Juan José Arboleda)
27+
28+
* win: fix the inconsistency in volume serial number (Hüseyin Açacak)
29+
30+
* unix: add thread affinity support on openharmony (rainlow)
31+
32+
* unix: enable getrusage for SunOS (Paolo Insogna)
33+
34+
* unix,win: accept NAN/INFINITY as file timestamps (Ben Noordhuis)
35+
36+
* win: add ENABLE_VIRTUAL_TERMINAL_INPUT raw tty mode (Anna Henningsen)
37+
38+
* test: handle UV_ENOTSUP in platform_output (cjihrig)
39+
40+
* doc: fix rendering of threading.html (Tobias Nießen)
41+
42+
* unix,sunos: enable use of sendmmsg on Solaris and Illumos (Stacey Marshall)
43+
44+
* unix: handle out of memory in iface name copy (Ben Noordhuis)
45+
46+
* openbsd: do not error out if cpuspeed is not available (Robert Nagy)
47+
48+
* test: skip thread_name_threadpool on AIX/IBMi (Abdirahim Musse)
49+
50+
* aix,ibmi: fix undeclared identifiers (Richard Lau)
51+
52+
* unix,sunos: prefer SO_REUSEPORT for load balancing (Stacey Marshall)
53+
54+
* doc: free lib pointer before function return (mugitya03)
55+
56+
* test: link with libm (Juan José Arboleda)
57+
58+
* style: rename parameter to match definition (Mohammed Keyvanzadeh)
59+
60+
* test: support partial output lines in test runner (cjihrig)
61+
62+
* build: switch from c90 to c11 (Ben Noordhuis)
63+
64+
* linux: allow nul bytes in abstract socket address (Itay Bookstein)
65+
66+
* sunos: use pipe2 on solaris and illumos (Andy Pan)
67+
68+
* unix: remove TOCTOU issues from uv_pipe_chmod (Ben Noordhuis)
69+
70+
* unix: use pipe_fname if getsockname returns nothing (crupest)
71+
72+
* haiku: use uint32 instead of uint32_t (AE1020)
73+
74+
* doc: update thread pool stack size comment (Ben Noordhuis)
75+
76+
* unix: improve uv_loop_init OOM handling (Ben Noordhuis)
77+
78+
* test: merge uv_tcp_connect callbacks (Juan José Arboleda)
79+
80+
* test: skip multievent tests on macOS with TSAN enabled (Juan José Arboleda)
81+
82+
* linux: align CPU quota calculation with Rust (Juan José Arboleda)
83+
84+
* kqueue: improve fs event watcher OOM handling (Juan José Arboleda)
85+
86+
* sunos: improve fs event watcher OOM handling (Juan José Arboleda)
87+
88+
* build: shorten instructions for cmake build (Juan José Arboleda)
89+
90+
91+
2025.01.15, Version 1.50.0 (Stable), 8fb9cb919489a48880680a56efecff6a7dfb4504
92+
93+
Changes since version 1.49.2:
94+
95+
* ci: run macOS and iOS tests also on macOS 14 (Saúl Ibarra Corretgé)
96+
97+
* unix,win: map ENOEXEC errno (Saúl Ibarra Corretgé)
98+
99+
* test: skip multicast join test on ENOEXEC (Saúl Ibarra Corretgé)
100+
101+
* ci: make sure the macOS firewall is disabled (Saúl Ibarra Corretgé)
102+
103+
* darwin,test: squelch EBUSY error on multicast join (Saúl Ibarra Corretgé)
104+
105+
* build: update minimum cmake to 3.10 (Ben Noordhuis)
106+
107+
* kqueue: use EVFILT_USER for async if available (Jameson Nash)
108+
109+
* unix,win: fix off-by-one in uv_wtf8_to_utf16() (Ben Noordhuis)
110+
111+
* doc: add scala-native-loop to LINKS.md (Julian A Avar C)
112+
113+
* unix: fix build breakage on haiku, openbsd, etc (Jeffrey H. Johnson)
114+
115+
* kqueue: lower overhead in uv__io_check_fd (Andy Pan)
116+
117+
* doc: move cjihrig back to active maintainers (cjihrig)
118+
119+
* build(deps): bump actions/checkout from 3 to 4 (dependabot[bot])
120+
121+
* unix,pipe: fix handling null buffer in uv_pipe_get{sock,peer}name (Saúl
122+
Ibarra Corretgé)
123+
124+
* unix,win: harmonize buffer checking (Saúl Ibarra Corretgé)
125+
126+
* unix,win: add support for detached threads (Juan José Arboleda)
127+
128+
* src: add uv_thread_set/getname() methods (Santiago Gimeno)
129+
130+
* build: fix qemu builds (Ben Noordhuis)
131+
132+
* win: drop support for windows 8 (Ben Noordhuis)
133+
134+
* linux: fix uv_cpu_info() arm cpu model detection (Ben Noordhuis)
135+
136+
* linux: always use io_uring for epoll batching (Ben Noordhuis)
137+
138+
* doc: clarify repeating timer behavior more (Ben Noordhuis)
139+
140+
* unix,win: handle nbufs=0 in uv_udp_try_send (Ben Noordhuis)
141+
142+
* win: use GetQueuedCompletionStatusEx directly (Saúl Ibarra Corretgé)
143+
144+
* win: enable uv_thread_{get,set}name on MinGW (Saúl Ibarra Corretgé)
145+
146+
* win: drop support for the legacy MinGW (Saúl Ibarra Corretgé)
147+
148+
* win,fs: get (most) fstat when no permission (Jameson Nash)
149+
150+
* win: plug uv_fs_event_start memory leak (amcgoogan)
151+
152+
* test: address FreeBSD kernel bug causing NULL path in fsevents (Juan José
153+
Arboleda)
154+
155+
* unix: refactor udp sendmsg code (Ben Noordhuis)
156+
157+
* unix,win: add uv_udp_try_send2 (Ben Noordhuis)
158+
159+
* test: fix flaky flaky udp_mmsg test (Juan José Arboleda)
160+
161+
* build: enable fdsan in Android (Juan José Arboleda)
162+
163+
* test: fix udp-multicast-join for FreeBSD (Juan José Arboleda)
164+
165+
* win: fix leak processing fs event (Saúl Ibarra Corretgé)
166+
167+
* src: set a default thread name for workers (Rafael Gonzaga)
168+
169+
* misc: implement uv_getrusage_thread (Juan José Arboleda)
170+
171+
172+
2024.10.18, Version 1.49.2 (Stable), e1095c7a4373ce00cd8874d8e820de5afb25776e
2173

3174
Changes since version 1.49.1:
4175

deps/uv/LINKS.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
* [Pixie-io](https://github.com/pixie-io/pixie): Open-source observability tool for Kubernetes applications.
3838
* [potion](https://github.com/perl11/potion)/[p2](https://github.com/perl11/p2): runtime
3939
* [racer](https://libraries.io/rubygems/racer): Ruby web server written as an C extension
40+
* [scala-native-loop](https://github.com/scala-native/scala-native-loop): Extensible event loop and async-oriented IO for Scala Native; powered by libuv
4041
* [Socket Runtime](https://sockets.sh): A runtime for creating native cross-platform software on mobile and desktop using HTML, CSS, and JavaScript
4142
* [spider-gazelle](https://github.com/cotag/spider-gazelle): Ruby web server using libuv bindings
4243
* [Suave](http://suave.io/): A simple web development F# library providing a lightweight web server and a set of combinators to manipulate route flow and task composition
@@ -107,3 +108,5 @@
107108
* [node.pas](https://github.com/vovach777/node.pas) NodeJS-like ecosystem
108109
* Haskell
109110
* [Z.Haskell](https://z.haskell.world)
111+
* C3
112+
* [libuv.c3l](https://github.com/velikoss/libuv.c3l)

deps/uv/MAINTAINERS.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ libuv is currently managed by the following individuals:
44

55
* **Ben Noordhuis** ([@bnoordhuis](https://github.com/bnoordhuis))
66
- GPG key: D77B 1E34 243F BAF0 5F8E 9CC3 4F55 C8C8 46AB 89B9 (pubkey-bnoordhuis)
7+
* **Colin Ihrig** ([@cjihrig](https://github.com/cjihrig))
8+
- GPG key: 94AE 3667 5C46 4D64 BAFA 68DD 7434 390B DBE9 B9C5 (pubkey-cjihrig)
9+
- GPG key: 5735 3E0D BDAA A7E8 39B6 6A1A FF47 D5E4 AD8B 4FDC (pubkey-cjihrig-kb)
710
* **Jameson Nash** ([@vtjnash](https://github.com/vtjnash))
811
- GPG key: AEAD 0A4B 6867 6775 1A0E 4AEF 34A2 5FB1 2824 6514 (pubkey-vtjnash)
912
- GPG key: CFBB 9CA9 A5BE AFD7 0E2B 3C5A 79A6 7C55 A367 9C8B (pubkey2022-vtjnash)
@@ -24,9 +27,6 @@ libuv is currently managed by the following individuals:
2427
* **Anna Henningsen** ([@addaleax](https://github.com/addaleax))
2528
* **Bartosz Sosnowski** ([@bzoz](https://github.com/bzoz))
2629
* **Bert Belder** ([@piscisaureus](https://github.com/piscisaureus))
27-
* **Colin Ihrig** ([@cjihrig](https://github.com/cjihrig))
28-
- GPG key: 94AE 3667 5C46 4D64 BAFA 68DD 7434 390B DBE9 B9C5 (pubkey-cjihrig)
29-
- GPG key: 5735 3E0D BDAA A7E8 39B6 6A1A FF47 D5E4 AD8B 4FDC (pubkey-cjihrig-kb)
3030
* **Fedor Indutny** ([@indutny](https://github.com/indutny))
3131
- GPG key: AF2E EA41 EC34 47BF DD86 FED9 D706 3CCE 19B7 E890 (pubkey-indutny)
3232
* **Imran Iqbal** ([@imran-iq](https://github.com/imran-iq))

deps/uv/Makefile.am

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ if WINNT
5959
uvinclude_HEADERS += include/uv/win.h include/uv/tree.h
6060
AM_CPPFLAGS += -I$(top_srcdir)/src/win \
6161
-DWIN32_LEAN_AND_MEAN \
62-
-D_WIN32_WINNT=0x0602
62+
-D_WIN32_WINNT=0x0A00
6363
libuv_la_SOURCES += src/win/async.c \
6464
src/win/atomicops-inl.h \
6565
src/win/core.c \
@@ -206,12 +206,13 @@ test_run_tests_SOURCES = test/blackhole-server.c \
206206
test/test-ipc-send-recv.c \
207207
test/test-ipc.c \
208208
test/test-list.h \
209-
test/test-loop-handles.c \
210209
test/test-loop-alive.c \
211210
test/test-loop-close.c \
211+
test/test-loop-configure.c \
212+
test/test-loop-handles.c \
213+
test/test-loop-oom.c \
212214
test/test-loop-stop.c \
213215
test/test-loop-time.c \
214-
test/test-loop-configure.c \
215216
test/test-metrics.c \
216217
test/test-multiple-listen.c \
217218
test/test-mutexes.c \
@@ -294,6 +295,7 @@ test_run_tests_SOURCES = test/blackhole-server.c \
294295
test/test-thread-equal.c \
295296
test/test-thread.c \
296297
test/test-thread-affinity.c \
298+
test/test-thread-name.c \
297299
test/test-thread-priority.c \
298300
test/test-threadpool-cancel.c \
299301
test/test-threadpool.c \

deps/uv/README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,7 @@ $ make install
189189
To build with [CMake][]:
190190

191191
```bash
192-
$ mkdir -p build
193-
194-
$ (cd build && cmake .. -DBUILD_TESTING=ON) # generate project with tests
192+
$ cmake -B build -DBUILD_TESTING=ON # generate project with tests
195193
$ cmake --build build # add `-j <n>` with cmake >= 3.12
196194

197195
# Run tests:

deps/uv/SUPPORTED_PLATFORMS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
|---|---|---|---|
55
| GNU/Linux | Tier 1 | Linux >= 3.10 with glibc >= 2.17 | |
66
| macOS | Tier 1 | macOS >= 11 | Currently supported macOS releases |
7-
| Windows | Tier 1 | >= Windows 8 | VS 2015 and later are supported |
7+
| Windows | Tier 1 | >= Windows 10 | VS 2017 and later are supported |
88
| FreeBSD | Tier 2 | >= 12 | |
99
| AIX | Tier 2 | >= 6 | Maintainers: @libuv/aix |
1010
| IBM i | Tier 2 | >= IBM i 7.2 | Maintainers: @libuv/ibmi |
1111
| z/OS | Tier 2 | >= V2R2 | Maintainers: @libuv/zos |
1212
| Linux with musl | Tier 2 | musl >= 1.0 | |
1313
| Android | Tier 3 | NDK >= r15b | Android 7.0, `-DANDROID_PLATFORM=android-24` |
14-
| MinGW | Tier 3 | MinGW32 and MinGW-w64 | |
14+
| MinGW | Tier 3 | MinGW-w64 | |
1515
| SunOS | Tier 3 | Solaris 121 and later | |
1616
| Other | Tier 3 | N/A | |
1717

deps/uv/configure.ac

Lines changed: 2 additions & 2 deletions
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.49.2], [https://github.com/libuv/libuv/issues])
16+
AC_INIT([libuv], [1.51.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])
@@ -33,7 +33,7 @@ CC_ATTRIBUTE_VISIBILITY([default], [
3333
# we exclude -fno-strict-aliasing for xlc
3434
CC_CHECK_FLAG_SUPPORTED_APPEND([-fno-strict-aliasing])
3535
CC_CHECK_CFLAGS_APPEND([-g])
36-
CC_CHECK_CFLAGS_APPEND([-std=gnu89])
36+
CC_CHECK_CFLAGS_APPEND([-std=gnu11])
3737
CC_CHECK_CFLAGS_APPEND([-Wall])
3838
CC_CHECK_CFLAGS_APPEND([-Wextra])
3939
CC_CHECK_CFLAGS_APPEND([-Wno-long-long])

deps/uv/docs/src/fs.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,12 @@ API
430430
431431
Equivalent to :man:`utime(2)`, :man:`futimes(3)` and :man:`lutimes(3)` respectively.
432432
433+
Passing `UV_FS_UTIME_NOW` as the atime or mtime sets the timestamp to the
434+
current time.
435+
436+
Passing `UV_FS_UTIME_OMIT` as the atime or mtime leaves the timestamp
437+
untouched.
438+
433439
.. note::
434440
z/OS: `uv_fs_lutime()` is not implemented for z/OS. It can still be called but will return
435441
``UV_ENOSYS``.

0 commit comments

Comments
 (0)