Skip to content

Commit fd32da6

Browse files
committed
Add sys/ucontext.h signatures for linux aarch64 glibc
1 parent bbf929d commit fd32da6

File tree

1 file changed

+7
-0
lines changed
  • src/unix/linux_like/linux/gnu/b64/aarch64

1 file changed

+7
-0
lines changed

src/unix/linux_like/linux/gnu/b64/aarch64/align.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,10 @@ s! {
4949
pub cgroup: ::c_ulonglong,
5050
}
5151
}
52+
53+
extern "C" {
54+
pub fn getcontext(ucp: *mut ucontext_t) -> ::c_int;
55+
pub fn setcontext(ucp: *const ucontext_t) -> ::c_int;
56+
pub fn makecontext(ucp: *mut ucontext_t, func: extern "C" fn(), argc: ::c_int, ...);
57+
pub fn swapcontext(uocp: *mut ucontext_t, ucp: *const ucontext_t) -> ::c_int;
58+
}

0 commit comments

Comments
 (0)