nc 0.9.7

Access system calls directly
Documentation
1
2
3
4
/// Get thread id of current thread.
pub unsafe fn _lwp_self() -> Result<lwpid_t, Errno> {
    syscall0(SYS__LWP_SELF).map(|val| val as lwpid_t)
}