fn getauxvalImpl(index: usize) callconv(.c) usize index: usize704
705
706
707
708
709
710
711
712
713fn getauxvalImpl(index: usize) callconv(.c) usize {
@disableInstrumentation();
const auxv = elf_aux_maybe orelse return 0;
var i: usize = 0;
while (auxv[i].a_type != std.elf.AT_NULL) : (i += 1) {
if (auxv[i].a_type == index)
return auxv[i].a_un.a_val;
}
return 0;
}