nix 0.17.0

Rust friendly bindings to *nix APIs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use nix::sys::pthread::*;

#[cfg(target_env = "musl")]
#[test]
fn test_pthread_self() {
    let tid = pthread_self();
    assert!(tid != ::std::ptr::null_mut());
}

#[cfg(not(target_env = "musl"))]
#[test]
fn test_pthread_self() {
    let tid = pthread_self();
    assert!(tid != 0);
}