Skip to content

Commit b5ac75b

Browse files
committed
extract std.posix from std.os
closes #5019
1 parent d100a8e commit b5ac75b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+10372
-10437
lines changed

CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,6 @@ set(ZIG_STAGE2_SOURCES
286286
"${CMAKE_SOURCE_DIR}/lib/std/multi_array_list.zig"
287287
"${CMAKE_SOURCE_DIR}/lib/std/os.zig"
288288
"${CMAKE_SOURCE_DIR}/lib/std/os/linux.zig"
289-
"${CMAKE_SOURCE_DIR}/lib/std/os/linux/errno/generic.zig"
290289
"${CMAKE_SOURCE_DIR}/lib/std/os/linux/x86_64.zig"
291290
"${CMAKE_SOURCE_DIR}/lib/std/os/linux.zig"
292291
"${CMAKE_SOURCE_DIR}/lib/std/os/linux/IoUring.zig"

build.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -882,7 +882,7 @@ fn findConfigH(b: *std.Build, config_h_path_option: ?[]const u8) ?[]const u8 {
882882
return path;
883883
} else |_| {
884884
std.log.err("Could not open provided config.h: \"{s}\"", .{path});
885-
std.os.exit(1);
885+
std.process.exit(1);
886886
}
887887
}
888888

lib/compiler/objcopy.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1285,7 +1285,7 @@ const ElfFileHelper = struct {
12851285
for (consolidated.items) |cmd| {
12861286
switch (cmd) {
12871287
.write_data => |data| {
1288-
var iovec = [_]std.os.iovec_const{.{ .iov_base = data.data.ptr, .iov_len = data.data.len }};
1288+
var iovec = [_]std.posix.iovec_const{.{ .iov_base = data.data.ptr, .iov_len = data.data.len }};
12891289
try out_file.pwritevAll(&iovec, data.out_offset);
12901290
},
12911291
.copy_range => |range| {

lib/std/Random/benchmark.zig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,15 +144,15 @@ pub fn main() !void {
144144
i += 1;
145145
if (i == args.len) {
146146
usage();
147-
std.os.exit(1);
147+
std.process.exit(1);
148148
}
149149

150150
filter = args[i];
151151
} else if (std.mem.eql(u8, args[i], "--count")) {
152152
i += 1;
153153
if (i == args.len) {
154154
usage();
155-
std.os.exit(1);
155+
std.process.exit(1);
156156
}
157157

158158
const c = try std.fmt.parseUnsigned(usize, args[i], 10);
@@ -170,7 +170,7 @@ pub fn main() !void {
170170
return;
171171
} else {
172172
usage();
173-
std.os.exit(1);
173+
std.process.exit(1);
174174
}
175175
}
176176

0 commit comments

Comments
 (0)