remove superfluous comptime keyword
parent
a6fb6dcfc9
commit
582db68a15
|
@ -6,7 +6,7 @@
|
||||||
// provide `rename` when only the `renameat` syscall exists.
|
// provide `rename` when only the `renameat` syscall exists.
|
||||||
// * Does not support POSIX thread cancellation.
|
// * Does not support POSIX thread cancellation.
|
||||||
const std = @import("../std.zig");
|
const std = @import("../std.zig");
|
||||||
const builtin = @import("builtin");
|
const builtin = std.builtin;
|
||||||
const assert = std.debug.assert;
|
const assert = std.debug.assert;
|
||||||
const maxInt = std.math.maxInt;
|
const maxInt = std.math.maxInt;
|
||||||
const elf = std.elf;
|
const elf = std.elf;
|
||||||
|
@ -42,9 +42,9 @@ pub fn getauxval(index: usize) usize {
|
||||||
// Some architectures require 64bit parameters for some syscalls to be passed in
|
// Some architectures require 64bit parameters for some syscalls to be passed in
|
||||||
// even-aligned register pair
|
// even-aligned register pair
|
||||||
const require_aligned_register_pair = //
|
const require_aligned_register_pair = //
|
||||||
comptime builtin.arch.isMIPS() or
|
std.Target.current.cpu.arch.isMIPS() or
|
||||||
comptime builtin.arch.isARM() or
|
std.Target.current.cpu.arch.isARM() or
|
||||||
comptime builtin.arch.isThumb();
|
std.Target.current.cpu.arch.isThumb();
|
||||||
|
|
||||||
/// Get the errno from a syscall return value, or 0 for no error.
|
/// Get the errno from a syscall return value, or 0 for no error.
|
||||||
pub fn getErrno(r: usize) u12 {
|
pub fn getErrno(r: usize) u12 {
|
||||||
|
|
Loading…
Reference in New Issue