| ... | @@ -6,7 +6,7 @@ | ... | @@ -6,7 +6,7 @@ |
| 6 | // provide `rename` when only the `renameat` syscall exists. | 6 | // provide `rename` when only the `renameat` syscall exists. |
| 7 | // * Does not support POSIX thread cancellation. | 7 | // * Does not support POSIX thread cancellation. |
| 8 | const std = @import("../std.zig"); | 8 | const std = @import("../std.zig"); |
| 9 | const builtin = @import("builtin"); | 9 | const builtin = std.builtin; |
| 10 | const assert = std.debug.assert; | 10 | const assert = std.debug.assert; |
| 11 | const maxInt = std.math.maxInt; | 11 | const maxInt = std.math.maxInt; |
| 12 | const elf = std.elf; | 12 | const elf = std.elf; |
| ... | @@ -42,9 +42,9 @@ pub fn getauxval(index: usize) usize { | ... | @@ -42,9 +42,9 @@ pub fn getauxval(index: usize) usize { |
| 42 | // Some architectures require 64bit parameters for some syscalls to be passed in | 42 | // Some architectures require 64bit parameters for some syscalls to be passed in |
| 43 | // even-aligned register pair | 43 | // even-aligned register pair |
| 44 | const require_aligned_register_pair = // | 44 | const require_aligned_register_pair = // |
| 45 | comptime builtin.arch.isMIPS() or | 45 | std.Target.current.cpu.arch.isMIPS() or |
| 46 | comptime builtin.arch.isARM() or | 46 | std.Target.current.cpu.arch.isARM() or |
| 47 | comptime builtin.arch.isThumb(); | 47 | std.Target.current.cpu.arch.isThumb(); |
| 48 | | 48 | |
| 49 | /// Get the errno from a syscall return value, or 0 for no error. | 49 | /// Get the errno from a syscall return value, or 0 for no error. |
| 50 | pub fn getErrno(r: usize) u12 { | 50 | pub fn getErrno(r: usize) u12 { |