Skip to content

Commit 07af177

Browse files
committed
1 parent fb18f26 commit 07af177

File tree

6 files changed

+22
-0
lines changed

6 files changed

+22
-0
lines changed

libc-test/semver/freebsd.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2232,6 +2232,7 @@ pthread_spin_lock
22322232
pthread_spin_trylock
22332233
pthread_spin_unlock
22342234
pthread_spinlock_t
2235+
pthread_timedjoin_np
22352236
ptrace
22362237
ptrace_io_desc
22372238
ptrace_lwpinfo

libc-test/semver/linux-gnu.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -657,6 +657,8 @@ pthread_attr_setaffinity_np
657657
pthread_rwlockattr_getkind_np
658658
pthread_rwlockattr_getpshared
659659
pthread_rwlockattr_setkind_np
660+
pthread_timedjoin_np
661+
pthread_tryjoin_np
660662
ptrace_peeksiginfo_args
661663
ptrace_sud_config
662664
ptrace_syscall_info

libc-test/semver/linux-musl.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ prlimit
8181
prlimit64
8282
process_vm_readv
8383
process_vm_writev
84+
pthread_timedjoin_np
8485
pututxline
8586
pwritev2
8687
pwritev64

src/unix/bsd/freebsdlike/freebsd/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4549,6 +4549,12 @@ extern "C" {
45494549
pub fn pthread_spin_trylock(lock: *mut pthread_spinlock_t) -> c_int;
45504550
pub fn pthread_spin_unlock(lock: *mut pthread_spinlock_t) -> c_int;
45514551

4552+
pub fn pthread_timedjoin_np(
4553+
thread: crate::pthread_t,
4554+
retval: *mut *mut c_void,
4555+
abstime: *const crate::timespec,
4556+
) -> c_int;
4557+
45524558
#[cfg_attr(all(target_os = "freebsd", freebsd11), link_name = "statfs@FBSD_1.0")]
45534559
pub fn statfs(path: *const c_char, buf: *mut statfs) -> c_int;
45544560
#[cfg_attr(all(target_os = "freebsd", freebsd11), link_name = "fstatfs@FBSD_1.0")]

src/unix/linux_like/linux/gnu/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1115,6 +1115,12 @@ extern "C" {
11151115
val: c_int,
11161116
) -> c_int;
11171117
pub fn pthread_sigqueue(thread: crate::pthread_t, sig: c_int, value: crate::sigval) -> c_int;
1118+
pub fn pthread_tryjoin_np(thread: crate::pthread_t, retval: *mut *mut c_void) -> c_int;
1119+
pub fn pthread_timedjoin_np(
1120+
thread: crate::pthread_t,
1121+
retval: *mut *mut c_void,
1122+
abstime: *const crate::timespec,
1123+
) -> c_int;
11181124
pub fn mallinfo() -> crate::mallinfo;
11191125
pub fn mallinfo2() -> crate::mallinfo2;
11201126
pub fn malloc_stats();

src/unix/linux_like/linux/musl/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -869,6 +869,12 @@ extern "C" {
869869
note = "musl provides `utmp` as stubs and an alternative should be preferred; see https://wiki.musl-libc.org/faq.html"
870870
)]
871871
pub fn utmpxname(file: *const c_char) -> c_int;
872+
pub fn pthread_tryjoin_np(thread: crate::pthread_t, retval: *mut *mut c_void) -> c_int;
873+
pub fn pthread_timedjoin_np(
874+
thread: crate::pthread_t,
875+
retval: *mut *mut c_void,
876+
abstime: *const crate::timespec,
877+
) -> c_int;
872878
}
873879

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

0 commit comments

Comments
 (0)