Skip to content

Commit c19c049

Browse files
author
Jan Philipp Hafer
committed
more test fixups, phrasing
1 parent 43a613e commit c19c049

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

lib/std/child_process.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ pub const ChildProcess = struct {
339339

340340
fn waitUnwrappedPosix(self: *ChildProcess) !void {
341341
const res: os.posix.WaitPidResult = if (comptime builtin.target.isDarwin())
342-
try os.posix_spawn.waitpid(self.pid, 0)
342+
try os.posix_spawn.waitpid(self.id, 0)
343343
else
344344
os.posix.waitpid(self.id, 0);
345345
const status = res.status;

lib/std/fs/file.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ pub const File = struct {
409409
try os.posix.fchmod(self.handle, new_mode);
410410
}
411411

412-
pub const ChownError = std.os.FChownError;
412+
pub const ChownError = std.os.posix.FChownError;
413413

414414
/// Changes the owner and group of the file.
415415
/// The process must have the correct privileges in order to do this

lib/std/os/posix.zig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
//! This file contains posix abstractions and wrappers around
22
//! OS-specific APIs for conforming platforms, whether libc is or is not linked.
3-
//! APIs defined here can not have comparable semantics on Windows.
3+
//! Purpose is to have error handling for APIs, which can not have comparable
4+
//! semantics on non-posix systems like Windows.
45

56
const std = @import("std");
67
const builtin = @import("builtin");

0 commit comments

Comments
 (0)