From cb39828ecd7ea5d2eac3076ad3dd1b6ef05e10d3 Mon Sep 17 00:00:00 2001 From: Daniel Mueller Date: Sun, 26 Mar 2017 17:07:34 -0700 Subject: Import subrepo libc/:libc at 05a2d197356ef253dfd985166576619ac9b6947f --- libc/src/unix/notbsd/linux/musl/b64/x86_64.rs | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 libc/src/unix/notbsd/linux/musl/b64/x86_64.rs (limited to 'libc/src/unix/notbsd/linux/musl/b64/x86_64.rs') diff --git a/libc/src/unix/notbsd/linux/musl/b64/x86_64.rs b/libc/src/unix/notbsd/linux/musl/b64/x86_64.rs new file mode 100644 index 0000000..2cfd903 --- /dev/null +++ b/libc/src/unix/notbsd/linux/musl/b64/x86_64.rs @@ -0,0 +1,20 @@ +pub type c_char = i8; + +s! { + pub struct mcontext_t { + __private: [u64; 32], + } + + pub struct ucontext_t { + pub uc_flags: ::c_ulong, + pub uc_link: *mut ucontext_t, + pub uc_stack: ::stack_t, + pub uc_mcontext: mcontext_t, + pub uc_sigmask: ::sigset_t, + __private: [u8; 512], + } +} + +pub const SYS_gettid: ::c_long = 186; + +pub const SYS_perf_event_open: ::c_long = 298; -- cgit v1.2.1