Skip to content

Commit 2de2cb7

Browse files
TheDoctor314JohnTitor
authored andcommitted
Add gettid() for Linux and Android
Fixes #2076
1 parent ec86e5f commit 2de2cb7

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/unix/linux_like/android/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2809,6 +2809,8 @@ extern "C" {
28092809
pub fn regfree(preg: *mut ::regex_t);
28102810

28112811
pub fn android_set_abort_message(msg: *const ::c_char);
2812+
2813+
pub fn gettid() -> ::pid_t;
28122814
}
28132815

28142816
cfg_if! {

src/unix/linux_like/linux/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3594,6 +3594,8 @@ extern "C" {
35943594
outbytesleft: *mut ::size_t,
35953595
) -> ::size_t;
35963596
pub fn iconv_close(cd: iconv_t) -> ::c_int;
3597+
3598+
pub fn gettid() -> ::pid_t;
35973599
}
35983600

35993601
cfg_if! {

0 commit comments

Comments
 (0)