Skip to content

Commit a4237c0

Browse files
devnexentgross35
authored andcommitted
1 parent d4c9bb8 commit a4237c0

6 files changed

Lines changed: 30 additions & 0 deletions

File tree

libc-test/semver/freebsd.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2241,6 +2241,7 @@ pthread_spin_lock
22412241
pthread_spin_trylock
22422242
pthread_spin_unlock
22432243
pthread_spinlock_t
2244+
pthread_timedjoin_np
22442245
ptrace
22452246
ptrace_io_desc
22462247
ptrace_lwpinfo

libc-test/semver/linux-gnu.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -660,6 +660,8 @@ pthread_attr_setaffinity_np
660660
pthread_rwlockattr_getkind_np
661661
pthread_rwlockattr_getpshared
662662
pthread_rwlockattr_setkind_np
663+
pthread_timedjoin_np
664+
pthread_tryjoin_np
663665
ptrace_peeksiginfo_args
664666
ptrace_sud_config
665667
ptrace_syscall_info

libc-test/semver/linux-musl.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ prlimit
8282
prlimit64
8383
process_vm_readv
8484
process_vm_writev
85+
pthread_timedjoin_np
8586
pututxline
8687
pwritev2
8788
pwritev64

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

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

4647+
pub fn pthread_timedjoin_np(
4648+
thread: crate::pthread_t,
4649+
retval: *mut *mut c_void,
4650+
abstime: *const crate::timespec,
4651+
) -> c_int;
4652+
46474653
#[cfg_attr(all(target_os = "freebsd", freebsd11), link_name = "statfs@FBSD_1.0")]
46484654
pub fn statfs(path: *const c_char, buf: *mut statfs) -> c_int;
46494655
#[cfg_attr(all(target_os = "freebsd", freebsd11), link_name = "fstatfs@FBSD_1.0")]

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1120,6 +1120,16 @@ extern "C" {
11201120
val: c_int,
11211121
) -> c_int;
11221122
pub fn pthread_sigqueue(thread: crate::pthread_t, sig: c_int, value: crate::sigval) -> c_int;
1123+
pub fn pthread_tryjoin_np(thread: crate::pthread_t, retval: *mut *mut c_void) -> c_int;
1124+
#[cfg_attr(
1125+
all(target_pointer_width = "32", gnu_time_bits64),
1126+
link_name = "__pthread_timedjoin_np64"
1127+
)]
1128+
pub fn pthread_timedjoin_np(
1129+
thread: crate::pthread_t,
1130+
retval: *mut *mut c_void,
1131+
abstime: *const crate::timespec,
1132+
) -> c_int;
11231133
pub fn mallinfo() -> crate::mallinfo;
11241134
pub fn mallinfo2() -> crate::mallinfo2;
11251135
pub fn malloc_stats();

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -869,6 +869,16 @@ 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+
#[cfg_attr(
874+
all(musl32_time64, target_pointer_width = "32"),
875+
link_name = "__pthread_timedjoin_np_time64"
876+
)]
877+
pub fn pthread_timedjoin_np(
878+
thread: crate::pthread_t,
879+
retval: *mut *mut c_void,
880+
abstime: *const crate::timespec,
881+
) -> c_int;
872882
}
873883

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

0 commit comments

Comments
 (0)