| author | |
| committer | |
| log | c352845e888870172c88900144e243b3c1eed010 |
| tree | 2ae964f23981d347fdb1202e3d2d91905ddc8e30 |
| parent | 40118c769f146664574d8ce9af9aadcdd8c1799d |
`unexpectedErrno` comes from `std.posix`, not `std.os`.3 files changed, 3 insertions(+), 3 deletions(-)
lib/std/os/linux.zig+1-1| ... | @@ -1893,7 +1893,7 @@ pub fn sched_setaffinity(pid: pid_t, set: *const cpu_set_t) !void { | ... | @@ -1893,7 +1893,7 @@ pub fn sched_setaffinity(pid: pid_t, set: *const cpu_set_t) !void { |
| 1893 | 1893 | ||
| 1894 | switch (std.os.errno(rc)) { | 1894 | switch (std.os.errno(rc)) { |
| 1895 | .SUCCESS => return, | 1895 | .SUCCESS => return, |
| 1896 | else => |err| return std.os.unexpectedErrno(err), | 1896 | else => |err| return std.posix.unexpectedErrno(err), |
| 1897 | } | 1897 | } |
| 1898 | } | 1898 | } |
| 1899 | 1899 |
lib/std/os/linux/bpf.zig+1-1| ... | @@ -1,6 +1,6 @@ | ... | @@ -1,6 +1,6 @@ |
| 1 | const std = @import("../../std.zig"); | 1 | const std = @import("../../std.zig"); |
| 2 | const errno = linux.E.init; | 2 | const errno = linux.E.init; |
| 3 | const unexpectedErrno = std.os.unexpectedErrno; | 3 | const unexpectedErrno = std.posix.unexpectedErrno; |
| 4 | const expectEqual = std.testing.expectEqual; | 4 | const expectEqual = std.testing.expectEqual; |
| 5 | const expectError = std.testing.expectError; | 5 | const expectError = std.testing.expectError; |
| 6 | const expect = std.testing.expect; | 6 | const expect = std.testing.expect; |
lib/std/posix.zig+1-1| ... | @@ -542,7 +542,7 @@ pub fn reboot(cmd: RebootCommand) RebootError!void { | ... | @@ -542,7 +542,7 @@ pub fn reboot(cmd: RebootCommand) RebootError!void { |
| 542 | ))) { | 542 | ))) { |
| 543 | .SUCCESS => {}, | 543 | .SUCCESS => {}, |
| 544 | .PERM => return error.PermissionDenied, | 544 | .PERM => return error.PermissionDenied, |
| 545 | else => |err| return std.os.unexpectedErrno(err), | 545 | else => |err| return std.posix.unexpectedErrno(err), |
| 546 | } | 546 | } |
| 547 | switch (cmd) { | 547 | switch (cmd) { |
| 548 | .CAD_OFF => {}, | 548 | .CAD_OFF => {}, |