| ... | ... | @@ -76,13 +76,13 @@ pub usingnamespace @import("./AnyReader.zig"); |
| 76 | 76 | pub usingnamespace @import("./sum.zig"); |
| 77 | 77 | pub usingnamespace @import("./RingBuffer.zig"); |
| 78 | 78 | |
| 79 | | pub fn fd_realpath(fd: std.os.fd_t) ![std.fs.MAX_PATH_BYTES:0]u8 { |
| 79 | pub fn fd_realpath(fd: std.posix.fd_t) ![std.fs.MAX_PATH_BYTES:0]u8 { |
| 80 | 80 | switch (builtin.os.tag) { |
| 81 | 81 | .linux => { |
| 82 | 82 | var buf = std.mem.zeroes([64]u8); |
| 83 | 83 | var res = std.mem.zeroes([std.fs.MAX_PATH_BYTES:0]u8); |
| 84 | 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 | 86 | return res; |
| 87 | 87 | }, |
| 88 | 88 | else => @compileError("not implemented!"), |