diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2025-12-24 00:55:27 -0800 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2025-12-24 00:55:27 -0800 |
| commit | 6f4e93f0dd8f23835d90a630abecf3d1ce3a23b1 (patch) | |
| tree | 1535c938bdb5895bc91a97120b5775daacd0f680 /lib/std | |
| parent | ace08ba642361d57268b1f102c371b060a1f9a2c (diff) | |
| download | zig-6f4e93f0dd8f23835d90a630abecf3d1ce3a23b1.tar.gz zig-6f4e93f0dd8f23835d90a630abecf3d1ce3a23b1.zip | |
std.Io.Threaded: wasi does not support processExecutablePath
Diffstat (limited to 'lib/std')
| -rw-r--r-- | lib/std/Io/Threaded.zig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/std/Io/Threaded.zig b/lib/std/Io/Threaded.zig index 3662359b31..38b3950683 100644 --- a/lib/std/Io/Threaded.zig +++ b/lib/std/Io/Threaded.zig @@ -7142,6 +7142,7 @@ fn posixSeekTo(current_thread: *Thread, fd: posix.fd_t, offset: u64) File.SeekEr fn processExecutableOpen(userdata: ?*anyopaque, flags: File.OpenFlags) std.process.OpenExecutableError!File { const t: *Threaded = @ptrCast(@alignCast(userdata)); switch (native_os) { + .wasi => return error.OperationUnsupported, .linux, .serenity => return dirOpenFilePosix(t, .{ .handle = posix.AT.FDCWD }, "/proc/self/exe", flags), .windows => { // If ImagePathName is a symlink, then it will contain the path of the symlink, |
