From 83b3393ebbb6fe5671181da76fdbc7e5474ce395 Mon Sep 17 00:00:00 2001 From: joboet Date: Thu, 18 Jul 2024 14:21:12 +0200 Subject: [PATCH] add `pthread_equal` --- libc-test/semver/unix.txt | 1 + src/unix/mod.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/libc-test/semver/unix.txt b/libc-test/semver/unix.txt index 5e84434b46bf4..03248dfec58c7 100644 --- a/libc-test/semver/unix.txt +++ b/libc-test/semver/unix.txt @@ -687,6 +687,7 @@ pthread_condattr_init pthread_condattr_t pthread_create pthread_detach +pthread_equal pthread_exit pthread_getspecific pthread_join diff --git a/src/unix/mod.rs b/src/unix/mod.rs index b67b5a93e3541..487a15dde90c5 100644 --- a/src/unix/mod.rs +++ b/src/unix/mod.rs @@ -1030,6 +1030,7 @@ extern "C" { pub fn times(buf: *mut ::tms) -> ::clock_t; pub fn pthread_self() -> ::pthread_t; + pub fn pthread_equal(t1: ::pthread_t, t2: ::pthread_t) -> ::c_int; #[cfg_attr( all(target_os = "macos", target_arch = "x86"), link_name = "pthread_join$UNIX2003"