From b3457b31a1d1ea2c19c5d0b007c903d3e80add40 Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Sat, 30 May 2026 01:51:12 -0700 Subject: [PATCH] remove fd_realpath --- src/lib.zig | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/lib.zig b/src/lib.zig index 933baefd5538dd2c103d9dc958a0433e152ec9ee..2fccf4ebe0c39beb646d90b9b100230b8e25a482 100644 --- a/src/lib.zig +++ b/src/lib.zig @@ -71,24 +71,6 @@ pub const containsAggregate = @import("./containsAggregate.zig").containsAggrega pub const AnyReader = @import("./AnyReader.zig").AnyReader; pub const sum = @import("./sum.zig").sum; pub const RingBuffer = @import("./RingBuffer.zig").RingBuffer; - -pub fn fd_realpath(fd: std.posix.fd_t) ![std.fs.max_path_bytes:0]u8 { - switch (builtin.os.tag) { - .linux => { - var buf = std.mem.zeroes([64]u8); - var res = std.mem.zeroes([std.fs.max_path_bytes:0]u8); - const str = try std.fmt.bufPrint(&buf, "/proc/self/fd/{d}", .{fd}); - _ = try std.posix.readlink(str, &res); - return res; - }, - else => @compileError("not implemented!"), - } -} -test { - if (builtin.os.tag != .linux) return; - _ = &fd_realpath; -} - pub const rawInt = @import("./rawInt.zig").rawInt; pub const expectSimilarType = @import("./expectSimilarType.zig").expectSimilarType; pub const rawIntBytes = @import("./rawIntBytes.zig").rawIntBytes; -- 2.54.0