From 32f3134afeb425af97ef641c8f9a09b0e2d64ce8 Mon Sep 17 00:00:00 2001 From: Dave Hylands Date: Sat, 5 Mar 2016 12:44:49 -0800 Subject: [PATCH] Add SYS_gettid --- src/unix/notbsd/linux/other/b32/arm.rs | 2 ++ src/unix/notbsd/linux/other/b32/powerpc.rs | 2 ++ src/unix/notbsd/linux/other/b32/x86.rs | 2 ++ src/unix/notbsd/linux/other/b64/aarch64.rs | 2 ++ src/unix/notbsd/linux/other/b64/powerpc64.rs | 2 ++ src/unix/notbsd/linux/other/b64/x86_64.rs | 2 ++ 6 files changed, 12 insertions(+) diff --git a/src/unix/notbsd/linux/other/b32/arm.rs b/src/unix/notbsd/linux/other/b32/arm.rs index aabe8edbe76cb..d27185448b1ca 100644 --- a/src/unix/notbsd/linux/other/b32/arm.rs +++ b/src/unix/notbsd/linux/other/b32/arm.rs @@ -18,3 +18,5 @@ pub const SO_SNDTIMEO: ::c_int = 21; pub const FIOCLEX: ::c_ulong = 0x5451; pub const FIONBIO: ::c_ulong = 0x5421; + +pub const SYS_gettid: ::c_int = 178; diff --git a/src/unix/notbsd/linux/other/b32/powerpc.rs b/src/unix/notbsd/linux/other/b32/powerpc.rs index 4ebfeda40c186..0ff7a4c642471 100644 --- a/src/unix/notbsd/linux/other/b32/powerpc.rs +++ b/src/unix/notbsd/linux/other/b32/powerpc.rs @@ -18,3 +18,5 @@ pub const SO_SNDTIMEO: ::c_int = 19; pub const FIOCLEX: ::c_ulong = 0x20006601; pub const FIONBIO: ::c_ulong = 0x8004667e; + +pub const SYS_gettid: ::c_int = 207; diff --git a/src/unix/notbsd/linux/other/b32/x86.rs b/src/unix/notbsd/linux/other/b32/x86.rs index 89c2433b2e0b0..5cc48c941be5c 100644 --- a/src/unix/notbsd/linux/other/b32/x86.rs +++ b/src/unix/notbsd/linux/other/b32/x86.rs @@ -19,6 +19,8 @@ pub const SO_SNDTIMEO: ::c_int = 21; pub const FIOCLEX: ::c_ulong = 0x5451; pub const FIONBIO: ::c_ulong = 0x5421; +pub const SYS_gettid: ::c_int = 224; + s! { pub struct mcontext_t { diff --git a/src/unix/notbsd/linux/other/b64/aarch64.rs b/src/unix/notbsd/linux/other/b64/aarch64.rs index b56cb48b5dc6d..55fd4ee64d0eb 100644 --- a/src/unix/notbsd/linux/other/b64/aarch64.rs +++ b/src/unix/notbsd/linux/other/b64/aarch64.rs @@ -26,6 +26,8 @@ pub const SO_SNDTIMEO: ::c_int = 21; pub const FIOCLEX: ::c_ulong = 0x5451; pub const FIONBIO: ::c_ulong = 0x5421; +pub const SYS_gettid: ::c_int = 178; + s! { pub struct stat { pub st_dev: ::dev_t, diff --git a/src/unix/notbsd/linux/other/b64/powerpc64.rs b/src/unix/notbsd/linux/other/b64/powerpc64.rs index 742fb579ba9b3..c860bf44eba35 100644 --- a/src/unix/notbsd/linux/other/b64/powerpc64.rs +++ b/src/unix/notbsd/linux/other/b64/powerpc64.rs @@ -26,6 +26,8 @@ pub const SO_SNDTIMEO: ::c_int = 19; pub const FIOCLEX: ::c_ulong = 0x20006601; pub const FIONBIO: ::c_ulong = 0x8004667e; +pub const SYS_gettid: ::c_int = 207; + s! { pub struct stat { pub st_dev: ::dev_t, diff --git a/src/unix/notbsd/linux/other/b64/x86_64.rs b/src/unix/notbsd/linux/other/b64/x86_64.rs index aea629a29eaf3..290d30717d544 100644 --- a/src/unix/notbsd/linux/other/b64/x86_64.rs +++ b/src/unix/notbsd/linux/other/b64/x86_64.rs @@ -33,6 +33,8 @@ pub const PTRACE_SETFPXREGS: ::c_uint = 19; pub const PTRACE_GETREGS: ::c_uint = 12; pub const PTRACE_SETREGS: ::c_uint = 13; +pub const SYS_gettid: ::c_int = 186; + s! { pub struct stat { pub st_dev: ::dev_t,