nc 0.9.8

Access system calls directly
Documentation
1
2
3
4
5
/// Set user thread context.
pub unsafe fn setcontext(ctx: &ucontext_t) -> Result<(), Errno> {
    let ctx_ptr = core::ptr::from_ref(ctx) as usize;
    unsafe { syscall1(SYS_SETCONTEXT, ctx_ptr).map(drop) }
}