Skip to content

Commit be9bac9

Browse files
committed
Auto merge of #2100 - TheDoctor314:gettid, r=JohnTitor
Add gettid() for Linux Fixes #2076
2 parents ec86e5f + eabf11b commit be9bac9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/unix/linux_like/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1666,6 +1666,7 @@ extern "C" {
16661666
flags: ::c_int,
16671667
) -> ::ssize_t;
16681668
pub fn uname(buf: *mut ::utsname) -> ::c_int;
1669+
pub fn gettid() -> ::pid_t;
16691670
}
16701671

16711672
cfg_if! {

0 commit comments

Comments
 (0)