rustix 0.33.7

Safe Rust bindings to POSIX/Unix/Linux/Winsock2-like syscalls
Documentation
1
2
3
4
5
6
7
use rustix::thread;

#[cfg(any(target_os = "android", target_os = "linux"))]
#[test]
fn test_gettid() {
    assert_eq!(thread::gettid(), thread::gettid());
}