/// Get user thread context.
pub unsafe fn getcontext(ctx: &mut ucontext_t) -> Result<(), Errno> {
    let ctx_ptr = core::ptr::from_mut(ctx) as usize;
    unsafe { syscall1(SYS_GETCONTEXT, ctx_ptr).map(drop) }
}
