| author | |
| committer | |
| log | a3ea3bd31dc0b8c6ff98c9bc95ffcd36bd8aba82 |
| tree | 37efe2aca691541db996a25eaaee8a8a6e3565d7 |
| parent | 32f977a4b7b17b774ff09157a902d4e22adf7384 |
| signature |
It can fail arbitrarily with ENOENT if the kernel happens to not have the FD in
its name cache. That makes it useless for our purposes.
closes https://codeberg.org/ziglang/zig/issues/308432 files changed, 1 insertions(+), 2 deletions(-)
lib/std/Io/Threaded.zig+1-1| ... | ... | @@ -5209,7 +5209,7 @@ fn fileRealPathPosix(userdata: ?*anyopaque, file: File, out_buffer: []u8) File.R |
| 5209 | 5209 | |
| 5210 | 5210 | fn realPathPosix(fd: posix.fd_t, out_buffer: []u8) File.RealPathError!usize { |
| 5211 | 5211 | switch (native_os) { |
| 5212 | .netbsd, .dragonfly, .driverkit, .ios, .maccatalyst, .macos, .tvos, .visionos, .watchos => { | |
| 5212 | .dragonfly, .driverkit, .ios, .maccatalyst, .macos, .tvos, .visionos, .watchos => { | |
| 5213 | 5213 | var sufficient_buffer: [posix.PATH_MAX]u8 = undefined; |
| 5214 | 5214 | @memset(&sufficient_buffer, 0); |
| 5215 | 5215 | const syscall: Syscall = try .start(); |
lib/std/fs/test.zig-1| ... | ... | @@ -37,7 +37,6 @@ pub inline fn isRealPathSupported() bool { |
| 37 | 37 | .freebsd, |
| 38 | 38 | => true, |
| 39 | 39 | .dragonfly => builtin.os.version_range.semver.min.order(.{ .major = 6, .minor = 0, .patch = 0 }) != .lt, |
| 40 | .netbsd => builtin.os.version_range.semver.min.order(.{ .major = 10, .minor = 0, .patch = 0 }) != .lt, | |
| 41 | 40 | else => false, |
| 42 | 41 | }; |
| 43 | 42 | } |