authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-01-04 21:48:37-08:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-01-04 23:45:17-08:00
log77f6e0690bcbe6cd1e780c0c953bb68d809c7eea
tree29a287c74d3a621c81e02624002abb31cd63c568
parentc1e9d87b1f8a5215968f6bb8003ea77cf4ad363b

std.Io.Threaded: only linux supports fileHardLink


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

lib/std/Io/Threaded.zig+1-2
...@@ -5154,8 +5154,7 @@ fn fileHardLink(...@@ -5154,8 +5154,7 @@ fn fileHardLink(
5154 options: File.HardLinkOptions,5154 options: File.HardLinkOptions,
5155) File.HardLinkError!void {5155) File.HardLinkError!void {
5156 _ = userdata;5156 _ = userdata;
5157 if (is_windows) return error.OperationUnsupported;5157 if (native_os != .linux) return error.OperationUnsupported;
5158 if (native_os == .wasi and !builtin.link_libc) @panic("TODO");
51595158
5160 var new_path_buffer: [posix.PATH_MAX]u8 = undefined;5159 var new_path_buffer: [posix.PATH_MAX]u8 = undefined;
5161 const new_sub_path_posix = try pathToPosix(new_sub_path, &new_path_buffer);5160 const new_sub_path_posix = try pathToPosix(new_sub_path, &new_path_buffer);