| author | |
| committer | |
| log | ea32a7d2bc395b268e7e5be4fccb3cdb91233e78 |
| tree | 5deb26ad71a2f7cd58ba558553c08958d49dccd9 |
| parent | 4dd0822a3680de84ce5e6fd2536ffc91e0aaefb1 |
2 files changed, 5 insertions(+), 2 deletions(-)
lib/std/fs.zig+1-1| ... | ... | @@ -1550,7 +1550,7 @@ pub fn walkPath(allocator: *Allocator, dir_path: []const u8) !Walker { |
| 1550 | 1550 | return walker; |
| 1551 | 1551 | } |
| 1552 | 1552 | |
| 1553 | pub const OpenSelfExeError = os.OpenError || os.windows.CreateFileError || SelfExePathError || os.FcntlError; | |
| 1553 | pub const OpenSelfExeError = os.OpenError || os.windows.CreateFileError || SelfExePathError || os.FlockError; | |
| 1554 | 1554 | |
| 1555 | 1555 | pub fn openSelfExe() OpenSelfExeError!File { |
| 1556 | 1556 | if (builtin.os.tag == .linux) { |
lib/std/os.zig+4-1| ... | ... | @@ -3295,7 +3295,10 @@ pub fn realpathZ(pathname: [*:0]const u8, out_buffer: *[MAX_PATH_BYTES]u8) RealP |
| 3295 | 3295 | return realpathW(&pathname_w, out_buffer); |
| 3296 | 3296 | } |
| 3297 | 3297 | if (builtin.os.tag == .linux and !builtin.link_libc) { |
| 3298 | const fd = try openZ(pathname, linux.O_PATH | linux.O_NONBLOCK | linux.O_CLOEXEC, 0); | |
| 3298 | const fd = openZ(pathname, linux.O_PATH | linux.O_NONBLOCK | linux.O_CLOEXEC, 0) catch |err| switch (err) { | |
| 3299 | error.FileLocksNotSupported => unreachable, | |
| 3300 | else => |e| return e, | |
| 3301 | }; | |
| 3299 | 3302 | defer close(fd); |
| 3300 | 3303 | |
| 3301 | 3304 | var procfs_buf: ["/proc/self/fd/-2147483648".len:0]u8 = undefined; |