From 8525608d268dc0de9a4035f3e5a8c0aa63878b2a Mon Sep 17 00:00:00 2001 From: Tim Culverhouse Date: Mon, 16 Jun 2025 09:21:38 -0500 Subject: [PATCH] deps: update ourio --- build.zig.zon | 4 ++-- src/main.zig | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/build.zig.zon b/build.zig.zon index 89cfde1..c0ff346 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -7,8 +7,8 @@ .dependencies = .{ .ourio = .{ - .url = "git+https://github.com/rockorager/ourio#17280493cff33a4713d7df39933557792789f002", - .hash = "ourio-0.0.0-_s-z0fsOAgBBgWaFDe0-yxAFdOJYN0ySemeXbEghPUh9", + .url = "git+https://github.com/rockorager/ourio#ed8a67650e5dbb0a6dca811c9d769187e306ad94", + .hash = "ourio-0.0.0-_s-z0dAWAgD3XNod2pTh0H8X-a3CjtpAwduh7jcgBz0G", }, .zeit = .{ .url = "git+https://github.com/rockorager/zeit#4496d1c40b2223c22a1341e175fc2ecd94cc0de9", diff --git a/src/main.zig b/src/main.zig index 4ca255b..38c634c 100644 --- a/src/main.zig +++ b/src/main.zig @@ -898,7 +898,7 @@ fn onCompletion(io: *ourio.Ring, task: ourio.Task) anyerror!void { // Largest TZ file on my system is Asia/Hebron at 4791 bytes. We allocate an amount // sufficiently more than that to make sure we do this in a single pass const buffer = try cmd.arena.alloc(u8, 8192); - _ = try io.read(fd, buffer, .{ + _ = try io.read(fd, buffer, .file, .{ .cb = onCompletion, .ptr = cmd, .msg = @intFromEnum(Msg.read_localtime), @@ -920,7 +920,7 @@ fn onCompletion(io: *ourio.Ring, task: ourio.Task) anyerror!void { // TODO: stat this or do multiple reads. We'll never know a good bound unless we go // really big const buffer = try cmd.arena.alloc(u8, 8192 * 2); - _ = try io.read(fd, buffer, .{ + _ = try io.read(fd, buffer, .file, .{ .cb = onCompletion, .ptr = cmd, .msg = @intFromEnum(Msg.read_passwd), @@ -968,7 +968,7 @@ fn onCompletion(io: *ourio.Ring, task: ourio.Task) anyerror!void { const fd = try result.open; const buffer = try cmd.arena.alloc(u8, 8192); - _ = try io.read(fd, buffer, .{ + _ = try io.read(fd, buffer, .file, .{ .cb = onCompletion, .ptr = cmd, .msg = @intFromEnum(Msg.read_group), -- 2.51.2