summaryrefslogtreecommitdiff
path: root/src/Handover.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-04 23:51:07 -0300
committerGabriel Schneider <[email protected]>2026-11-05 09:54:56 -0300
commit2ffc4abedcef7f077ebc7290b653415243da0975 (patch)
tree8858b8ee8bd61234a305df359e9ef193f6085e29 /src/Handover.zig
parent617cdcc8999cefdfd785b80026805cef51d96b08 (diff)
downloadpardes-2ffc4abedcef7f077ebc7290b653415243da0975.tar.gz
pardes-2ffc4abedcef7f077ebc7290b653415243da0975.zip
processes: small ones (main's version text from upgrade.version_line and waitForDel's unused io; daemon's find returns null with its words, drop takes the slot alone, send, recv, Got and setName are private; replica's Joining is the daemon's and PARDES_REPLICA_LAG_KB, which nothing sets, goes; host_io's dead line variable; Handover's own readdir is std.c's)
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src/Handover.zig')
-rw-r--r--src/Handover.zig4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/Handover.zig b/src/Handover.zig
index 549e4d58..d245a6af 100644
--- a/src/Handover.zig
+++ b/src/Handover.zig
@@ -385,8 +385,6 @@ fn carry(io: std.Io, job: *Job) void {
job.post(job.post_ctx, job.seq, false, "the new window did not come up in 15 s");
}
-extern "c" fn readdir(dir: *libc.DIR) ?*libc.dirent;
-
/// The registry entry of the window the pointer was let go over, asked of
/// every window by its `status` (`pointer in`): Wayland tells no client
/// where any window is, only whether the pointer is over its own, and the
@@ -404,7 +402,7 @@ fn windowUnderPointer(io: std.Io, job: *Job, out: *[512]u8) std.Io.Cancelable!?[
const dir = libc.opendir(reg) orelse return null;
defer _ = libc.closedir(dir);
var windows: usize = 0;
- while (readdir(dir)) |ent| {
+ while (libc.readdir(dir)) |ent| {
const name = std.mem.sliceTo(&ent.name, 0);
if (name.len == 0 or name[0] == '.') continue;
const entry = std.fmt.bufPrintSentinel(out, "{s}/{s}", .{ reg, name }, 0) catch continue;