File tree Expand file tree Collapse file tree 14 files changed +28
-0
lines changed Expand file tree Collapse file tree 14 files changed +28
-0
lines changed Original file line number Diff line number Diff line change 11pub type mode_t = u16 ;
22
3+ pub const SYS_gettid : :: c_int = 224 ;
4+
35s ! {
46 pub struct sigaction {
57 pub sa_sigaction: :: sighandler_t,
Original file line number Diff line number Diff line change 11pub type mode_t = u32 ;
22
3+ pub const SYS_gettid : :: c_int = 178 ;
4+
35s ! {
46 pub struct sigaction {
57 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;
472472pub const RTLD_GLOBAL : :: c_int = 0x4 ;
473473pub const RTLD_NOLOAD : :: c_int = 0x8 ;
474474
475+ pub const SYS_gettid : :: c_int = 4222 ; // Valid for O32
476+
475477extern {
476478 pub fn sysctl ( name : * mut :: c_int ,
477479 namelen : :: c_int ,
Original file line number Diff line number Diff line change @@ -220,6 +220,8 @@ pub const TIOCMSET: ::c_ulong = 0x5418;
220220pub const FIONREAD : :: c_ulong = 0x541B ;
221221pub const TIOCCONS : :: c_ulong = 0x541D ;
222222
223+ pub const SYS_gettid : :: c_int = 224 ;
224+
223225s ! {
224226 pub struct stat {
225227 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;
220220pub const FIONREAD : :: c_ulong = 0x541B ;
221221pub const TIOCCONS : :: c_ulong = 0x541D ;
222222
223+ pub const SYS_gettid : :: c_int = 224 ; // Valid for arm (32-bit) and x86 (32-bit)
224+
223225s ! {
224226 pub struct stat {
225227 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;
301301pub const TIOCMSET : :: c_ulong = 0x741D ;
302302pub const FIONREAD : :: c_ulong = 0x467F ;
303303pub 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;
220220pub const FIONREAD : :: c_ulong = 0x541B ;
221221pub const TIOCCONS : :: c_ulong = 0x541D ;
222222
223+ pub const SYS_gettid : :: c_int = 224 ;
224+
223225s ! {
224226 pub struct stat {
225227 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;
226226pub const FIONREAD : :: c_ulong = 0x541B ;
227227pub const TIOCCONS : :: c_ulong = 0x541D ;
228228
229+ pub const SYS_gettid : :: c_int = 186 ; // Valid for x86_64
230+
229231s ! {
230232 pub struct stat {
231233 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;
1818
1919pub const FIOCLEX : :: c_ulong = 0x5451 ;
2020pub 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;
1818
1919pub const FIOCLEX : :: c_ulong = 0x20006601 ;
2020pub const FIONBIO : :: c_ulong = 0x8004667e ;
21+
22+ pub const SYS_gettid : :: c_int = 207 ;
You can’t perform that action at this time.
0 commit comments