Skip to content

Commit

Permalink
Add sys/ucontext.h signatures for linux aarch64 glibc
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Nov 20, 2022
1 parent bbf929d commit fd32da6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/unix/linux_like/linux/gnu/b64/aarch64/align.rs
Expand Up @@ -49,3 +49,10 @@ s! {
pub cgroup: ::c_ulonglong,
}
}

extern "C" {
pub fn getcontext(ucp: *mut ucontext_t) -> ::c_int;
pub fn setcontext(ucp: *const ucontext_t) -> ::c_int;
pub fn makecontext(ucp: *mut ucontext_t, func: extern "C" fn(), argc: ::c_int, ...);
pub fn swapcontext(uocp: *mut ucontext_t, ucp: *const ucontext_t) -> ::c_int;
}

0 comments on commit fd32da6

Please sign in to comment.