From 0b0a17d139f386b6b2e0c2f8193d319858a59142 Mon Sep 17 00:00:00 2001 From: Dave Hylands Date: Sun, 6 Mar 2016 13:00:32 -0800 Subject: [PATCH] Fix SYS_gettid type to match first argument of syscall. --- src/unix/notbsd/android/b32.rs | 2 +- src/unix/notbsd/android/b64.rs | 2 +- src/unix/notbsd/linux/mips.rs | 2 +- src/unix/notbsd/linux/musl/b32/arm.rs | 2 +- src/unix/notbsd/linux/musl/b32/asmjs.rs | 2 +- src/unix/notbsd/linux/musl/b32/mips.rs | 2 +- src/unix/notbsd/linux/musl/b32/x86.rs | 2 +- src/unix/notbsd/linux/musl/b64/mod.rs | 2 +- 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 +- 14 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/unix/notbsd/android/b32.rs b/src/unix/notbsd/android/b32.rs index ae9b6241c5b6c..267060d422fed 100644 --- a/src/unix/notbsd/android/b32.rs +++ b/src/unix/notbsd/android/b32.rs @@ -9,4 +9,4 @@ s! { } } -pub const SYS_gettid: ::c_int = 224; +pub const SYS_gettid: ::c_long = 224; diff --git a/src/unix/notbsd/android/b64.rs b/src/unix/notbsd/android/b64.rs index 2749a6559a931..5cf4f9d0c8320 100644 --- a/src/unix/notbsd/android/b64.rs +++ b/src/unix/notbsd/android/b64.rs @@ -9,4 +9,4 @@ s! { } } -pub const SYS_gettid: ::c_int = 178; +pub const SYS_gettid: ::c_long = 178; diff --git a/src/unix/notbsd/linux/mips.rs b/src/unix/notbsd/linux/mips.rs index e2e1ca9a61d89..ac06dbf05176c 100644 --- a/src/unix/notbsd/linux/mips.rs +++ b/src/unix/notbsd/linux/mips.rs @@ -472,7 +472,7 @@ pub const RTLD_DEEPBIND: ::c_int = 0x10; pub const RTLD_GLOBAL: ::c_int = 0x4; pub const RTLD_NOLOAD: ::c_int = 0x8; -pub const SYS_gettid: ::c_int = 4222; // Valid for O32 +pub const SYS_gettid: ::c_long = 4222; // Valid for O32 extern { pub fn sysctl(name: *mut ::c_int, diff --git a/src/unix/notbsd/linux/musl/b32/arm.rs b/src/unix/notbsd/linux/musl/b32/arm.rs index 2b2f8769d0bd7..bfd8f7c5ffe6c 100644 --- a/src/unix/notbsd/linux/musl/b32/arm.rs +++ b/src/unix/notbsd/linux/musl/b32/arm.rs @@ -303,4 +303,4 @@ pub const TIOCMSET: ::c_ulong = 0x5418; pub const FIONREAD: ::c_ulong = 0x541B; pub const TIOCCONS: ::c_ulong = 0x541D; -pub const SYS_gettid: ::c_int = 224; +pub const SYS_gettid: ::c_long = 224; diff --git a/src/unix/notbsd/linux/musl/b32/asmjs.rs b/src/unix/notbsd/linux/musl/b32/asmjs.rs index 6e46b530b1838..13790ef4dfcef 100644 --- a/src/unix/notbsd/linux/musl/b32/asmjs.rs +++ b/src/unix/notbsd/linux/musl/b32/asmjs.rs @@ -303,4 +303,4 @@ pub const TIOCMSET: ::c_ulong = 0x5418; pub const FIONREAD: ::c_ulong = 0x541B; pub const TIOCCONS: ::c_ulong = 0x541D; -pub const SYS_gettid: ::c_int = 224; // Valid for arm (32-bit) and x86 (32-bit) +pub const SYS_gettid: ::c_long = 224; // Valid for arm (32-bit) and x86 (32-bit) diff --git a/src/unix/notbsd/linux/musl/b32/mips.rs b/src/unix/notbsd/linux/musl/b32/mips.rs index 890d4efb20240..1fd9280f75698 100644 --- a/src/unix/notbsd/linux/musl/b32/mips.rs +++ b/src/unix/notbsd/linux/musl/b32/mips.rs @@ -302,4 +302,4 @@ pub const TIOCMSET: ::c_ulong = 0x741D; pub const FIONREAD: ::c_ulong = 0x467F; pub const TIOCCONS: ::c_ulong = 0x80047478; -pub const SYS_gettid: ::c_int = 4222; // Valid for O32 +pub const SYS_gettid: ::c_long = 4222; // Valid for O32 diff --git a/src/unix/notbsd/linux/musl/b32/x86.rs b/src/unix/notbsd/linux/musl/b32/x86.rs index d678f1e83ef35..6a77e8191167a 100644 --- a/src/unix/notbsd/linux/musl/b32/x86.rs +++ b/src/unix/notbsd/linux/musl/b32/x86.rs @@ -304,4 +304,4 @@ pub const TIOCMSET: ::c_ulong = 0x5418; pub const FIONREAD: ::c_ulong = 0x541B; pub const TIOCCONS: ::c_ulong = 0x541D; -pub const SYS_gettid: ::c_int = 224; +pub const SYS_gettid: ::c_long = 224; diff --git a/src/unix/notbsd/linux/musl/b64/mod.rs b/src/unix/notbsd/linux/musl/b64/mod.rs index fa38e077cc3a6..c49ab6d2b1837 100644 --- a/src/unix/notbsd/linux/musl/b64/mod.rs +++ b/src/unix/notbsd/linux/musl/b64/mod.rs @@ -325,4 +325,4 @@ pub const TIOCMSET: ::c_ulong = 0x5418; pub const FIONREAD: ::c_ulong = 0x541B; pub const TIOCCONS: ::c_ulong = 0x541D; -pub const SYS_gettid: ::c_int = 186; // Valid for x86_64 +pub const SYS_gettid: ::c_long = 186; // Valid for x86_64 diff --git a/src/unix/notbsd/linux/other/b32/arm.rs b/src/unix/notbsd/linux/other/b32/arm.rs index 2383d6b919ecc..8537d52a6acc4 100644 --- a/src/unix/notbsd/linux/other/b32/arm.rs +++ b/src/unix/notbsd/linux/other/b32/arm.rs @@ -19,4 +19,4 @@ 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; +pub const SYS_gettid: ::c_long = 224; diff --git a/src/unix/notbsd/linux/other/b32/powerpc.rs b/src/unix/notbsd/linux/other/b32/powerpc.rs index 0ff7a4c642471..52c285c4e1a11 100644 --- a/src/unix/notbsd/linux/other/b32/powerpc.rs +++ b/src/unix/notbsd/linux/other/b32/powerpc.rs @@ -19,4 +19,4 @@ 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; +pub const SYS_gettid: ::c_long = 207; diff --git a/src/unix/notbsd/linux/other/b32/x86.rs b/src/unix/notbsd/linux/other/b32/x86.rs index 92fcc6be388a3..edb5aa5d17aa6 100644 --- a/src/unix/notbsd/linux/other/b32/x86.rs +++ b/src/unix/notbsd/linux/other/b32/x86.rs @@ -35,7 +35,7 @@ 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; +pub const SYS_gettid: ::c_long = 224; extern { pub fn getcontext(ucp: *mut ucontext_t) -> ::c_int; diff --git a/src/unix/notbsd/linux/other/b64/aarch64.rs b/src/unix/notbsd/linux/other/b64/aarch64.rs index f174f8763ec34..d6f8b7ce9ab25 100644 --- a/src/unix/notbsd/linux/other/b64/aarch64.rs +++ b/src/unix/notbsd/linux/other/b64/aarch64.rs @@ -76,4 +76,4 @@ 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; +pub const SYS_gettid: ::c_long = 178; diff --git a/src/unix/notbsd/linux/other/b64/powerpc64.rs b/src/unix/notbsd/linux/other/b64/powerpc64.rs index 10a2e17fa7f31..e9494ddd7df65 100644 --- a/src/unix/notbsd/linux/other/b64/powerpc64.rs +++ b/src/unix/notbsd/linux/other/b64/powerpc64.rs @@ -74,4 +74,4 @@ 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; +pub const SYS_gettid: ::c_long = 207; diff --git a/src/unix/notbsd/linux/other/b64/x86_64.rs b/src/unix/notbsd/linux/other/b64/x86_64.rs index 543bcb5b05a41..5b608e1f8dc17 100644 --- a/src/unix/notbsd/linux/other/b64/x86_64.rs +++ b/src/unix/notbsd/linux/other/b64/x86_64.rs @@ -95,7 +95,7 @@ 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; +pub const SYS_gettid: ::c_long = 186; extern { pub fn getcontext(ucp: *mut ucontext_t) -> ::c_int;