Skip to content

Commit 88396ac

Browse files
committed
Merge pull request #209 from dhylands/SYS_gettid
Add SYS_gettid
2 parents 5f527b0 + 3e4c019 commit 88396ac

File tree

14 files changed

+28
-0
lines changed

14 files changed

+28
-0
lines changed

src/unix/notbsd/android/b32.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
pub type mode_t = u16;
22

3+
pub const SYS_gettid: ::c_int = 224;
4+
35
s! {
46
pub struct sigaction {
57
pub sa_sigaction: ::sighandler_t,

src/unix/notbsd/android/b64.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
pub type mode_t = u32;
22

3+
pub const SYS_gettid: ::c_int = 178;
4+
35
s! {
46
pub struct sigaction {
57
pub sa_flags: ::c_uint,

src/unix/notbsd/linux/mips.rs

+2
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,8 @@ pub const RTLD_DEEPBIND: ::c_int = 0x10;
472472
pub const RTLD_GLOBAL: ::c_int = 0x4;
473473
pub const RTLD_NOLOAD: ::c_int = 0x8;
474474

475+
pub const SYS_gettid: ::c_int = 4222; // Valid for O32
476+
475477
extern {
476478
pub fn sysctl(name: *mut ::c_int,
477479
namelen: ::c_int,

src/unix/notbsd/linux/musl/b32/arm.rs

+2
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,8 @@ pub const TIOCMSET: ::c_ulong = 0x5418;
220220
pub const FIONREAD: ::c_ulong = 0x541B;
221221
pub const TIOCCONS: ::c_ulong = 0x541D;
222222

223+
pub const SYS_gettid: ::c_int = 224;
224+
223225
s! {
224226
pub struct stat {
225227
pub st_dev: ::dev_t,

src/unix/notbsd/linux/musl/b32/asmjs.rs

+2
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,8 @@ pub const TIOCMSET: ::c_ulong = 0x5418;
220220
pub const FIONREAD: ::c_ulong = 0x541B;
221221
pub const TIOCCONS: ::c_ulong = 0x541D;
222222

223+
pub const SYS_gettid: ::c_int = 224; // Valid for arm (32-bit) and x86 (32-bit)
224+
223225
s! {
224226
pub struct stat {
225227
pub st_dev: ::dev_t,

src/unix/notbsd/linux/musl/b32/mips.rs

+2
Original file line numberDiff line numberDiff line change
@@ -301,3 +301,5 @@ pub const TIOCMBIC: ::c_ulong = 0x741C;
301301
pub const TIOCMSET: ::c_ulong = 0x741D;
302302
pub const FIONREAD: ::c_ulong = 0x467F;
303303
pub const TIOCCONS: ::c_ulong = 0x80047478;
304+
305+
pub const SYS_gettid: ::c_int = 4222; // Valid for O32

src/unix/notbsd/linux/musl/b32/x86.rs

+2
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,8 @@ pub const TIOCMSET: ::c_ulong = 0x5418;
220220
pub const FIONREAD: ::c_ulong = 0x541B;
221221
pub const TIOCCONS: ::c_ulong = 0x541D;
222222

223+
pub const SYS_gettid: ::c_int = 224;
224+
223225
s! {
224226
pub struct stat {
225227
pub st_dev: ::dev_t,

src/unix/notbsd/linux/musl/b64/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,8 @@ pub const TIOCMSET: ::c_ulong = 0x5418;
226226
pub const FIONREAD: ::c_ulong = 0x541B;
227227
pub const TIOCCONS: ::c_ulong = 0x541D;
228228

229+
pub const SYS_gettid: ::c_int = 186; // Valid for x86_64
230+
229231
s! {
230232
pub struct stat {
231233
pub st_dev: ::dev_t,

src/unix/notbsd/linux/other/b32/arm.rs

+2
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,5 @@ pub const SO_SNDTIMEO: ::c_int = 21;
1818

1919
pub const FIOCLEX: ::c_ulong = 0x5451;
2020
pub const FIONBIO: ::c_ulong = 0x5421;
21+
22+
pub const SYS_gettid: ::c_int = 224;

src/unix/notbsd/linux/other/b32/powerpc.rs

+2
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,5 @@ pub const SO_SNDTIMEO: ::c_int = 19;
1818

1919
pub const FIOCLEX: ::c_ulong = 0x20006601;
2020
pub const FIONBIO: ::c_ulong = 0x8004667e;
21+
22+
pub const SYS_gettid: ::c_int = 207;

src/unix/notbsd/linux/other/b32/x86.rs

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ pub const SO_SNDTIMEO: ::c_int = 21;
1919
pub const FIOCLEX: ::c_ulong = 0x5451;
2020
pub const FIONBIO: ::c_ulong = 0x5421;
2121

22+
pub const SYS_gettid: ::c_int = 224;
23+
2224
s! {
2325

2426
pub struct mcontext_t {

src/unix/notbsd/linux/other/b64/aarch64.rs

+2
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ pub const SO_SNDTIMEO: ::c_int = 21;
2626
pub const FIOCLEX: ::c_ulong = 0x5451;
2727
pub const FIONBIO: ::c_ulong = 0x5421;
2828

29+
pub const SYS_gettid: ::c_int = 178;
30+
2931
s! {
3032
pub struct stat {
3133
pub st_dev: ::dev_t,

src/unix/notbsd/linux/other/b64/powerpc64.rs

+2
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ pub const SO_SNDTIMEO: ::c_int = 19;
2626
pub const FIOCLEX: ::c_ulong = 0x20006601;
2727
pub const FIONBIO: ::c_ulong = 0x8004667e;
2828

29+
pub const SYS_gettid: ::c_int = 207;
30+
2931
s! {
3032
pub struct stat {
3133
pub st_dev: ::dev_t,

src/unix/notbsd/linux/other/b64/x86_64.rs

+2
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ pub const PTRACE_SETFPXREGS: ::c_uint = 19;
3333
pub const PTRACE_GETREGS: ::c_uint = 12;
3434
pub const PTRACE_SETREGS: ::c_uint = 13;
3535

36+
pub const SYS_gettid: ::c_int = 186;
37+
3638
s! {
3739
pub struct stat {
3840
pub st_dev: ::dev_t,

0 commit comments

Comments
 (0)