| ... | ... | @@ -1192,7 +1192,7 @@ pub fn realC(out_buffer: *[os.MAX_PATH_BYTES]u8, pathname: [*]const u8) RealErro |
| 1192 | 1192 | const fd = try os.posixOpenC(pathname, posix.O_PATH | posix.O_NONBLOCK | posix.O_CLOEXEC, 0); |
| 1193 | 1193 | defer os.close(fd); |
| 1194 | 1194 | |
| 1195 | | var buf: ["/dev/fd/-2147483648".len]u8 = undefined; |
| 1195 | var buf: ["/dev/fd/-2147483648\x00".len]u8 = undefined; |
| 1196 | 1196 | const proc_path = fmt.bufPrint(buf[0..], "/dev/fd/{}\x00", fd) catch unreachable; |
| 1197 | 1197 | |
| 1198 | 1198 | return os.readLinkC(out_buffer, proc_path.ptr); |