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 18, 2022
1 parent bbf929d commit 5aec927
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/unix/linux_like/linux/gnu/b64/aarch64/mod.rs
Expand Up @@ -903,6 +903,10 @@ extern "C" {
newp: *mut ::c_void,
newlen: ::size_t,
) -> ::c_int;
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;
}

cfg_if! {
Expand Down

0 comments on commit 5aec927

Please sign in to comment.