Skip to content

Commit eabf11b

Browse files
committed
Add gettid() for Linux
Fixes #2076
1 parent ec86e5f commit eabf11b

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)