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");
7676pub usingnamespace @import("./sum.zig");
7777pub 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 {
8080 switch (builtin.os.tag) {
8181 .linux => {
8282 var buf = std.mem.zeroes([64]u8);
8383 var res = std.mem.zeroes([std.fs.MAX_PATH_BYTES:0]u8);
8484 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);
8686 return res;
8787 },
8888 else => @compileError("not implemented!"),