| ... | @@ -76,13 +76,13 @@ pub usingnamespace @import("./AnyReader.zig"); | ... | @@ -76,13 +76,13 @@ pub usingnamespace @import("./AnyReader.zig"); |
| 76 | pub usingnamespace @import("./sum.zig"); | 76 | pub usingnamespace @import("./sum.zig"); |
| 77 | pub usingnamespace @import("./RingBuffer.zig"); | 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 | 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!"), |