#[cfg(linux_android)]
fn syscall_stop(status: i32) -> bool {
// From ptrace(2), setting PTRACE_O_TRACESYSGOOD has the effect
// of delivering SIGTRAP | 0x80 as the signal number for syscall
// stops. This allows easily distinguishing syscall stops from
// genuine SIGTRAP signals.
libc::WSTOPSIG(status) == libc::SIGTRAP | 0x80
}
If I understand correctly, couldn't this function be used with #[cfg(target_os = "linux")] and not restricted to Android's Linux kernel? Apologies if I'm missing something obvious here :)
One example of this is:
If I understand correctly, couldn't this function be used with
#[cfg(target_os = "linux")]
and not restricted to Android's Linux kernel? Apologies if I'm missing something obvious here :)