File tree 14 files changed +28
-0
lines changed
14 files changed +28
-0
lines changed Original file line number Diff line number Diff line change 1
1
pub type mode_t = u16 ;
2
2
3
+ pub const SYS_gettid : :: c_int = 224 ;
4
+
3
5
s ! {
4
6
pub struct sigaction {
5
7
pub sa_sigaction: :: sighandler_t,
Original file line number Diff line number Diff line change 1
1
pub type mode_t = u32 ;
2
2
3
+ pub const SYS_gettid : :: c_int = 178 ;
4
+
3
5
s ! {
4
6
pub struct sigaction {
5
7
pub sa_flags: :: c_uint,
Original file line number Diff line number Diff line change @@ -472,6 +472,8 @@ pub const RTLD_DEEPBIND: ::c_int = 0x10;
472
472
pub const RTLD_GLOBAL : :: c_int = 0x4 ;
473
473
pub const RTLD_NOLOAD : :: c_int = 0x8 ;
474
474
475
+ pub const SYS_gettid : :: c_int = 4222 ; // Valid for O32
476
+
475
477
extern {
476
478
pub fn sysctl ( name : * mut :: c_int ,
477
479
namelen : :: c_int ,
Original file line number Diff line number Diff line change @@ -220,6 +220,8 @@ pub const TIOCMSET: ::c_ulong = 0x5418;
220
220
pub const FIONREAD : :: c_ulong = 0x541B ;
221
221
pub const TIOCCONS : :: c_ulong = 0x541D ;
222
222
223
+ pub const SYS_gettid : :: c_int = 224 ;
224
+
223
225
s ! {
224
226
pub struct stat {
225
227
pub st_dev: :: dev_t,
Original file line number Diff line number Diff line change @@ -220,6 +220,8 @@ pub const TIOCMSET: ::c_ulong = 0x5418;
220
220
pub const FIONREAD : :: c_ulong = 0x541B ;
221
221
pub const TIOCCONS : :: c_ulong = 0x541D ;
222
222
223
+ pub const SYS_gettid : :: c_int = 224 ; // Valid for arm (32-bit) and x86 (32-bit)
224
+
223
225
s ! {
224
226
pub struct stat {
225
227
pub st_dev: :: dev_t,
Original file line number Diff line number Diff line change @@ -301,3 +301,5 @@ pub const TIOCMBIC: ::c_ulong = 0x741C;
301
301
pub const TIOCMSET : :: c_ulong = 0x741D ;
302
302
pub const FIONREAD : :: c_ulong = 0x467F ;
303
303
pub const TIOCCONS : :: c_ulong = 0x80047478 ;
304
+
305
+ pub const SYS_gettid : :: c_int = 4222 ; // Valid for O32
Original file line number Diff line number Diff line change @@ -220,6 +220,8 @@ pub const TIOCMSET: ::c_ulong = 0x5418;
220
220
pub const FIONREAD : :: c_ulong = 0x541B ;
221
221
pub const TIOCCONS : :: c_ulong = 0x541D ;
222
222
223
+ pub const SYS_gettid : :: c_int = 224 ;
224
+
223
225
s ! {
224
226
pub struct stat {
225
227
pub st_dev: :: dev_t,
Original file line number Diff line number Diff line change @@ -226,6 +226,8 @@ pub const TIOCMSET: ::c_ulong = 0x5418;
226
226
pub const FIONREAD : :: c_ulong = 0x541B ;
227
227
pub const TIOCCONS : :: c_ulong = 0x541D ;
228
228
229
+ pub const SYS_gettid : :: c_int = 186 ; // Valid for x86_64
230
+
229
231
s ! {
230
232
pub struct stat {
231
233
pub st_dev: :: dev_t,
Original file line number Diff line number Diff line change @@ -18,3 +18,5 @@ pub const SO_SNDTIMEO: ::c_int = 21;
18
18
19
19
pub const FIOCLEX : :: c_ulong = 0x5451 ;
20
20
pub const FIONBIO : :: c_ulong = 0x5421 ;
21
+
22
+ pub const SYS_gettid : :: c_int = 224 ;
Original file line number Diff line number Diff line change @@ -18,3 +18,5 @@ pub const SO_SNDTIMEO: ::c_int = 19;
18
18
19
19
pub const FIOCLEX : :: c_ulong = 0x20006601 ;
20
20
pub const FIONBIO : :: c_ulong = 0x8004667e ;
21
+
22
+ pub const SYS_gettid : :: c_int = 207 ;
Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ pub const SO_SNDTIMEO: ::c_int = 21;
19
19
pub const FIOCLEX : :: c_ulong = 0x5451 ;
20
20
pub const FIONBIO : :: c_ulong = 0x5421 ;
21
21
22
+ pub const SYS_gettid : :: c_int = 224 ;
23
+
22
24
s ! {
23
25
24
26
pub struct mcontext_t {
Original file line number Diff line number Diff line change @@ -26,6 +26,8 @@ pub const SO_SNDTIMEO: ::c_int = 21;
26
26
pub const FIOCLEX : :: c_ulong = 0x5451 ;
27
27
pub const FIONBIO : :: c_ulong = 0x5421 ;
28
28
29
+ pub const SYS_gettid : :: c_int = 178 ;
30
+
29
31
s ! {
30
32
pub struct stat {
31
33
pub st_dev: :: dev_t,
Original file line number Diff line number Diff line change @@ -26,6 +26,8 @@ pub const SO_SNDTIMEO: ::c_int = 19;
26
26
pub const FIOCLEX : :: c_ulong = 0x20006601 ;
27
27
pub const FIONBIO : :: c_ulong = 0x8004667e ;
28
28
29
+ pub const SYS_gettid : :: c_int = 207 ;
30
+
29
31
s ! {
30
32
pub struct stat {
31
33
pub st_dev: :: dev_t,
Original file line number Diff line number Diff line change @@ -33,6 +33,8 @@ pub const PTRACE_SETFPXREGS: ::c_uint = 19;
33
33
pub const PTRACE_GETREGS : :: c_uint = 12 ;
34
34
pub const PTRACE_SETREGS : :: c_uint = 13 ;
35
35
36
+ pub const SYS_gettid : :: c_int = 186 ;
37
+
36
38
s ! {
37
39
pub struct stat {
38
40
pub st_dev: :: dev_t,
You can’t perform that action at this time.
0 commit comments