authorgravatar for michael.dusan@gmail.comMichael Dusan <michael.dusan@gmail.com> 2026-01-04 12:52:44-05:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-01-05 11:28:57+01:00
log31a6e83a7cf178156d9408a9e7061853ea2410ec
tree9ef1b3716fa2fd9a8c43e2caa8cd77ea1666c64f
parent29b9e24df7a2b07e36a4851102ba114f35a05290

openbsd: fix Io.Threaded bitrot


1 files changed, 3 insertions(+), 3 deletions(-)

lib/std/Io/Threaded.zig+3-3
...@@ -73,7 +73,7 @@ pub const Argv0 = switch (native_os) {...@@ -73,7 +73,7 @@ pub const Argv0 = switch (native_os) {
73 pub const empty: Argv0 = .{ .value = null };73 pub const empty: Argv0 = .{ .value = null };
7474
75 pub fn init(args: process.Args) Argv0 {75 pub fn init(args: process.Args) Argv0 {
76 return .{ .value = args.value[0] };76 return .{ .value = args.vector[0] };
77 }77 }
78 },78 },
79 else => struct {79 else => struct {
...@@ -1181,7 +1181,7 @@ pub const InitOptions = struct {...@@ -1181,7 +1181,7 @@ pub const InitOptions = struct {
1181 concurrent_limit: Io.Limit = .unlimited,1181 concurrent_limit: Io.Limit = .unlimited,
1182 /// Affects the following operations:1182 /// Affects the following operations:
1183 /// * `processExecutablePath` on OpenBSD and Haiku.1183 /// * `processExecutablePath` on OpenBSD and Haiku.
1184 argv0: Argv0 = .{},1184 argv0: Argv0 = .empty,
1185 /// Affects the following operations:1185 /// Affects the following operations:
1186 /// * `fileIsTty`1186 /// * `fileIsTty`
1187 /// * `processExecutablePath` on OpenBSD and Haiku (observes "PATH").1187 /// * `processExecutablePath` on OpenBSD and Haiku (observes "PATH").
...@@ -1251,7 +1251,7 @@ pub const init_single_threaded: Threaded = .{...@@ -1251,7 +1251,7 @@ pub const init_single_threaded: Threaded = .{
1251 .old_sig_io = undefined,1251 .old_sig_io = undefined,
1252 .old_sig_pipe = undefined,1252 .old_sig_pipe = undefined,
1253 .have_signal_handler = false,1253 .have_signal_handler = false,
1254 .argv0 = .{},1254 .argv0 = .empty,
1255 .environ = .{},1255 .environ = .{},
1256 .worker_threads = .init(null),1256 .worker_threads = .init(null),
1257};1257};