Skip to content

Commit a38aa53

Browse files
authored
Merge pull request #19 from rust-lang/master
sync with rust-lang/libc master
2 parents fbf7d5e + ff63cb5 commit a38aa53

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/unix/bsd/freebsdlike/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1323,6 +1323,7 @@ extern "C" {
13231323
attr: *mut pthread_condattr_t,
13241324
pshared: ::c_int,
13251325
) -> ::c_int;
1326+
pub fn pthread_main_np() -> ::c_int;
13261327
pub fn pthread_mutex_timedlock(
13271328
lock: *mut pthread_mutex_t,
13281329
abstime: *const ::timespec,

src/unix/bsd/netbsdlike/netbsd/mod.rs

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ pub type idtype_t = ::c_int;
88
pub type mqd_t = ::c_int;
99
type __pthread_spin_t = __cpu_simple_lock_nv_t;
1010
pub type vm_size_t = ::uintptr_t;
11+
pub type lwpid_t = ::c_uint;
1112

1213
impl siginfo_t {
1314
pub unsafe fn si_value(&self) -> ::sigval {
@@ -1714,6 +1715,8 @@ extern "C" {
17141715
flags: ::c_int,
17151716
timeout: *mut ::timespec,
17161717
) -> ::c_int;
1718+
1719+
pub fn _lwp_self() -> lwpid_t;
17171720
}
17181721

17191722
#[link(name = "util")]

0 commit comments

Comments
 (0)