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 b5ac75b
Show file tree
Hide file tree
Showing 95 changed files with 10,372 additions and 10,437 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
2 changes: 1 addition & 1 deletion lib/compiler/objcopy.zig
Original file line number Diff line number Diff line change
Expand Up @@ -1285,7 +1285,7 @@ const ElfFileHelper = struct {
for (consolidated.items) |cmd| {
switch (cmd) {
.write_data => |data| {
var iovec = [_]std.os.iovec_const{.{ .iov_base = data.data.ptr, .iov_len = data.data.len }};
var iovec = [_]std.posix.iovec_const{.{ .iov_base = data.data.ptr, .iov_len = data.data.len }};
try out_file.pwritevAll(&iovec, data.out_offset);
},
.copy_range => |range| {
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 b5ac75b

Please sign in to comment.