child_process + Build: rename exec to run + all related code

Justification: exec, execv etc are unix concepts and portable version
should be called differently.

Do no touch non-Zig code. Adjust error names as well, if associated.
Closes #5853.
This commit is contained in:
Jan Philipp Hafer
2023-10-19 22:36:11 +02:00
committed by Andrew Kelley
parent d8c067966f
commit fd2239bde9
14 changed files with 57 additions and 59 deletions

View File

@@ -257,7 +257,7 @@ pub fn main() !void {
"arch/arm64/include/uapi/asm/unistd.h",
};
const child_result = try std.ChildProcess.exec(.{
const child_result = try std.ChildProcess.run(.{
.allocator = allocator,
.argv = &child_args,
.cwd = linux_path,
@@ -318,7 +318,7 @@ pub fn main() !void {
"arch/riscv/include/uapi/asm/unistd.h",
};
const child_result = try std.ChildProcess.exec(.{
const child_result = try std.ChildProcess.run(.{
.allocator = allocator,
.argv = &child_args,
.cwd = linux_path,