Skip to content

Commit

Permalink
extract std.posix from std.os
Browse files Browse the repository at this point in the history
closes #5019
  • Loading branch information
andrewrk committed Mar 19, 2024
1 parent d100a8e commit 6349b33
Show file tree
Hide file tree
Showing 91 changed files with 10,356 additions and 10,423 deletions.
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,6 @@ set(ZIG_STAGE2_SOURCES
"${CMAKE_SOURCE_DIR}/lib/std/multi_array_list.zig"
"${CMAKE_SOURCE_DIR}/lib/std/os.zig"
"${CMAKE_SOURCE_DIR}/lib/std/os/linux.zig"
"${CMAKE_SOURCE_DIR}/lib/std/os/linux/errno/generic.zig"
"${CMAKE_SOURCE_DIR}/lib/std/os/linux/x86_64.zig"
"${CMAKE_SOURCE_DIR}/lib/std/os/linux.zig"
"${CMAKE_SOURCE_DIR}/lib/std/os/linux/IoUring.zig"
Expand Down
2 changes: 1 addition & 1 deletion build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -882,7 +882,7 @@ fn findConfigH(b: *std.Build, config_h_path_option: ?[]const u8) ?[]const u8 {
return path;
} else |_| {
std.log.err("Could not open provided config.h: \"{s}\"", .{path});
std.os.exit(1);
std.process.exit(1);
}
}

Expand Down
6 changes: 3 additions & 3 deletions lib/std/Random/benchmark.zig
Original file line number Diff line number Diff line change
Expand Up @@ -144,15 +144,15 @@ pub fn main() !void {
i += 1;
if (i == args.len) {
usage();
std.os.exit(1);
std.process.exit(1);
}

filter = args[i];
} else if (std.mem.eql(u8, args[i], "--count")) {
i += 1;
if (i == args.len) {
usage();
std.os.exit(1);
std.process.exit(1);
}

const c = try std.fmt.parseUnsigned(usize, args[i], 10);
Expand All @@ -170,7 +170,7 @@ pub fn main() !void {
return;
} else {
usage();
std.os.exit(1);
std.process.exit(1);
}
}

Expand Down
Loading

0 comments on commit 6349b33

Please sign in to comment.