aboutsummaryrefslogtreecommitdiff
path: root/vendor/libghostty-vt/pkg/highway/src/detect/linux.zig
blob: 951cf3e6b950ff0c23d9674405dd0500ae027097 (plain)
1
2
3
4
5
6
7
8
9
10
/// Reads from the ELF auxiliary vector (set by the kernel at process
/// start). Does not call into libc.
pub inline fn getauxval(key: usize) usize {
    return @import("std").os.linux.getauxval(key);
}

/// Direct syscall wrapper for prctl(2).
pub inline fn prctl(option: i32, a2: usize, a3: usize, a4: usize, a5: usize) usize {
    return @import("std").os.linux.prctl(option, a2, a3, a4, a5);
}