| ... | @@ -7142,6 +7142,7 @@ fn posixSeekTo(current_thread: *Thread, fd: posix.fd_t, offset: u64) File.SeekEr | ... | @@ -7142,6 +7142,7 @@ fn posixSeekTo(current_thread: *Thread, fd: posix.fd_t, offset: u64) File.SeekEr |
| 7142 | fn processExecutableOpen(userdata: ?*anyopaque, flags: File.OpenFlags) std.process.OpenExecutableError!File { | 7142 | fn processExecutableOpen(userdata: ?*anyopaque, flags: File.OpenFlags) std.process.OpenExecutableError!File { |
| 7143 | const t: *Threaded = @ptrCast(@alignCast(userdata)); | 7143 | const t: *Threaded = @ptrCast(@alignCast(userdata)); |
| 7144 | switch (native_os) { | 7144 | switch (native_os) { |
| | 7145 | .wasi => return error.OperationUnsupported, |
| 7145 | .linux, .serenity => return dirOpenFilePosix(t, .{ .handle = posix.AT.FDCWD }, "/proc/self/exe", flags), | 7146 | .linux, .serenity => return dirOpenFilePosix(t, .{ .handle = posix.AT.FDCWD }, "/proc/self/exe", flags), |
| 7146 | .windows => { | 7147 | .windows => { |
| 7147 | // If ImagePathName is a symlink, then it will contain the path of the symlink, | 7148 | // If ImagePathName is a symlink, then it will contain the path of the symlink, |