authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2024-09-04 12:32:18 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2024-09-04 12:32:18 -07:00
logafd6e5e39651b8079d8d72bb59d6b6f9115ef94e
tree90df68992d3c14946c1f2df0d4030565efa81de7
parent9441f0a543b22301e90bba8cd993e34b0a05783c

add missing 0.12.0 upgrade


1 files changed, 2 insertions(+), 2 deletions(-)

src/lib.zig+2-2
...@@ -76,13 +76,13 @@ pub usingnamespace @import("./AnyReader.zig");...@@ -76,13 +76,13 @@ pub usingnamespace @import("./AnyReader.zig");
76pub usingnamespace @import("./sum.zig");76pub usingnamespace @import("./sum.zig");
77pub usingnamespace @import("./RingBuffer.zig");77pub usingnamespace @import("./RingBuffer.zig");
7878
79pub fn fd_realpath(fd: std.os.fd_t) ![std.fs.MAX_PATH_BYTES:0]u8 {79pub fn fd_realpath(fd: std.posix.fd_t) ![std.fs.MAX_PATH_BYTES:0]u8 {
80 switch (builtin.os.tag) {80 switch (builtin.os.tag) {
81 .linux => {81 .linux => {
82 var buf = std.mem.zeroes([64]u8);82 var buf = std.mem.zeroes([64]u8);
83 var res = std.mem.zeroes([std.fs.MAX_PATH_BYTES:0]u8);83 var res = std.mem.zeroes([std.fs.MAX_PATH_BYTES:0]u8);
84 const str = try std.fmt.bufPrint(&buf, "/proc/self/fd/{d}", .{fd});84 const str = try std.fmt.bufPrint(&buf, "/proc/self/fd/{d}", .{fd});
85 _ = try std.os.readlink(str, &res);85 _ = try std.posix.readlink(str, &res);
86 return res;86 return res;
87 },87 },
88 else => @compileError("not implemented!"),88 else => @compileError("not implemented!"),