From 36d6a17c9aa91cd4f842ae01053d6201d94a6fb6 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Mon, 25 Aug 2025 16:21:37 +0200 Subject: [PATCH 1/3] unix: fix build on the bsds (#4870) Fix build breakage introduced a couple of days ago in commit 3813460d ("unix: replace uv__io_t callback pointer with enum"). Mea culpa. Fixes: https://github.com/libuv/libuv/issues/4864 --- src/unix/internal.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/unix/internal.h b/src/unix/internal.h index ac37fbdfe..c9704a8bd 100644 --- a/src/unix/internal.h +++ b/src/unix/internal.h @@ -297,7 +297,11 @@ void uv__udp_io(uv_loop_t* loop, uv__io_t* w, unsigned int events); #define uv__ahafs_event(loop, w, events) UNREACHABLE() #endif -#ifndef __APPLE__ +#if !defined(__APPLE__) && \ + !defined(__DragonFly__) && \ + !defined(__FreeBSD__) && \ + !defined(__NetBSD__) && \ + !defined(__OpenBSD__) #define uv__fs_event(loop, w, events) UNREACHABLE() #endif From 9ba8078272b36cc40708975f60eaeb6de6b77360 Mon Sep 17 00:00:00 2001 From: Santiago Gimeno Date: Mon, 25 Aug 2025 16:22:15 +0200 Subject: [PATCH 2/3] netbsd: fix thread affinity compilation error (#4787) Fixes: https://github.com/libuv/libuv/issues/4785 --- src/unix/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/unix/core.c b/src/unix/core.c index 97db50345..a5c9dd6e3 100644 --- a/src/unix/core.c +++ b/src/unix/core.c @@ -2048,8 +2048,8 @@ unsigned int uv_available_parallelism(void) { #elif defined(__NetBSD__) cpuset_t* set = cpuset_create(); if (set != NULL) { - if (0 == sched_getaffinity_np(getpid(), sizeof(set), &set)) - rc = uv__cpu_count(&set); + if (0 == sched_getaffinity_np(getpid(), cpuset_size(set), set)) + rc = uv__cpu_count(set); cpuset_destroy(set); } #elif defined(__APPLE__) From 64dd229a5b7ee997ffed83bb65e2eebf82160db6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Jos=C3=A9?= Date: Mon, 25 Aug 2025 15:39:46 -0500 Subject: [PATCH 3/3] unix: remove UV__SIGNAL_EVENT dispatch from uv__io_cb (#4871) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit uv__signal_event() is invoked directly from uv__io_poll(), so the UV__SIGNAL_EVENT case in uv__io_cb() is never reached. Refs: https://github.com/libuv/libuv/pull/4854#discussion_r2246110177 Signed-off-by: Juan José Arboleda --- src/unix/core.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/unix/core.c b/src/unix/core.c index a5c9dd6e3..118bc5759 100644 --- a/src/unix/core.c +++ b/src/unix/core.c @@ -923,9 +923,6 @@ void uv__io_cb(uv_loop_t* loop, uv__io_t* w, unsigned int events) { case UV__POLL_IO: uv__poll_io(loop, w, events); break; - case UV__SIGNAL_EVENT: - uv__signal_event(loop, w, events); - break; case UV__SERVER_IO: uv__server_io(loop, w, events); break;