Merge pull request #19 from rust-lang/master

sync with rust-lang/libc master
This commit is contained in:
Baoshan 2019-09-28 19:26:32 -07:00 committed by GitHub
commit a38aa537bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -1323,6 +1323,7 @@ extern "C" {
attr: *mut pthread_condattr_t,
pshared: ::c_int,
) -> ::c_int;
pub fn pthread_main_np() -> ::c_int;
pub fn pthread_mutex_timedlock(
lock: *mut pthread_mutex_t,
abstime: *const ::timespec,

View File

@ -8,6 +8,7 @@ pub type idtype_t = ::c_int;
pub type mqd_t = ::c_int;
type __pthread_spin_t = __cpu_simple_lock_nv_t;
pub type vm_size_t = ::uintptr_t;
pub type lwpid_t = ::c_uint;
impl siginfo_t {
pub unsafe fn si_value(&self) -> ::sigval {
@ -1714,6 +1715,8 @@ extern "C" {
flags: ::c_int,
timeout: *mut ::timespec,
) -> ::c_int;
pub fn _lwp_self() -> lwpid_t;
}
#[link(name = "util")]