| ... | @@ -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 }; |
| 74 | | 74 | |
| 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 | }; |