Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions libc-test/semver/freebsd.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2232,6 +2232,7 @@ pthread_spin_lock
pthread_spin_trylock
pthread_spin_unlock
pthread_spinlock_t
pthread_timedjoin_np
ptrace
ptrace_io_desc
ptrace_lwpinfo
Expand Down
2 changes: 2 additions & 0 deletions libc-test/semver/linux-gnu.txt
Original file line number Diff line number Diff line change
Expand Up @@ -657,6 +657,8 @@ pthread_attr_setaffinity_np
pthread_rwlockattr_getkind_np
pthread_rwlockattr_getpshared
pthread_rwlockattr_setkind_np
pthread_timedjoin_np
pthread_tryjoin_np
ptrace_peeksiginfo_args
ptrace_sud_config
ptrace_syscall_info
Expand Down
1 change: 1 addition & 0 deletions libc-test/semver/linux-musl.txt
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ prlimit
prlimit64
process_vm_readv
process_vm_writev
pthread_timedjoin_np
pututxline
pwritev2
pwritev64
Expand Down
6 changes: 6 additions & 0 deletions src/unix/bsd/freebsdlike/freebsd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4549,6 +4549,12 @@ extern "C" {
pub fn pthread_spin_trylock(lock: *mut pthread_spinlock_t) -> c_int;
pub fn pthread_spin_unlock(lock: *mut pthread_spinlock_t) -> c_int;

pub fn pthread_timedjoin_np(
thread: crate::pthread_t,
retval: *mut *mut c_void,
abstime: *const crate::timespec,
) -> c_int;

#[cfg_attr(all(target_os = "freebsd", freebsd11), link_name = "statfs@FBSD_1.0")]
pub fn statfs(path: *const c_char, buf: *mut statfs) -> c_int;
#[cfg_attr(all(target_os = "freebsd", freebsd11), link_name = "fstatfs@FBSD_1.0")]
Expand Down
10 changes: 10 additions & 0 deletions src/unix/linux_like/linux/gnu/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1115,6 +1115,16 @@ extern "C" {
val: c_int,
) -> c_int;
pub fn pthread_sigqueue(thread: crate::pthread_t, sig: c_int, value: crate::sigval) -> c_int;
pub fn pthread_tryjoin_np(thread: crate::pthread_t, retval: *mut *mut c_void) -> c_int;
#[cfg_attr(
all(target_pointer_width = "32", gnu_time_bits64),
link_name = "__pthread_timedjoin_np64"
)]
pub fn pthread_timedjoin_np(
thread: crate::pthread_t,
retval: *mut *mut c_void,
abstime: *const crate::timespec,
) -> c_int;
pub fn mallinfo() -> crate::mallinfo;
pub fn mallinfo2() -> crate::mallinfo2;
pub fn malloc_stats();
Expand Down
10 changes: 10 additions & 0 deletions src/unix/linux_like/linux/musl/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -869,6 +869,16 @@ extern "C" {
note = "musl provides `utmp` as stubs and an alternative should be preferred; see https://wiki.musl-libc.org/faq.html"
)]
pub fn utmpxname(file: *const c_char) -> c_int;
pub fn pthread_tryjoin_np(thread: crate::pthread_t, retval: *mut *mut c_void) -> c_int;
#[cfg_attr(
all(musl32_time64, target_pointer_width = "32"),
link_name = "__pthread_timedjoin_np_time64"
)]
pub fn pthread_timedjoin_np(
thread: crate::pthread_t,
retval: *mut *mut c_void,
abstime: *const crate::timespec,
) -> c_int;
}

// Alias <foo> to <foo>64 to mimic glibc's LFS64 support
Expand Down