From: gfleury <gfleury@disroot.org>
To: libc-alpha@sourceware.org
Cc: gfleury <gfleury@disroot.org>
Subject: [PATCH 4/7] htl: move pthread_condattr_getpshared into libc.
Date: Tue, 26 Nov 2024 22:53:26 +0200 [thread overview]
Message-ID: <20241126205329.2215295-5-gfleury@disroot.org> (raw)
In-Reply-To: <20241126205329.2215295-1-gfleury@disroot.org>
Signed-off-by: gfleury <gfleury@disroot.org>
---
htl/Makefile | 2 +-
htl/Versions | 4 +++-
sysdeps/htl/pt-condattr-getpshared.c | 8 +++++++-
sysdeps/mach/hurd/i386/libc.abilist | 2 ++
sysdeps/mach/hurd/i386/libpthread.abilist | 1 -
sysdeps/mach/hurd/x86_64/libc.abilist | 2 ++
sysdeps/mach/hurd/x86_64/libpthread.abilist | 1 -
7 files changed, 15 insertions(+), 5 deletions(-)
diff --git a/htl/Makefile b/htl/Makefile
index ef01902c..60a28e0c 100644
--- a/htl/Makefile
+++ b/htl/Makefile
@@ -93,7 +93,6 @@ libpthread-routines := \
pt-rwlock-timedwrlock \
pt-rwlock-unlock \
pt-condattr-init \
- pt-condattr-getpshared \
pt-condattr-setclock \
pt-condattr-setpshared \
pt-cond-destroy \
@@ -206,6 +205,7 @@ routines := \
pt-cond \
pt-condattr-destroy \
pt-condattr-getclock \
+ pt-condattr-getpshared \
pt-getschedparam \
pt-nthreads \
pt-pthread_self \
diff --git a/htl/Versions b/htl/Versions
index 887703ef..33106014 100644
--- a/htl/Versions
+++ b/htl/Versions
@@ -28,6 +28,7 @@ libc {
pthread_attr_init;
pthread_condattr_getclock;
pthread_condattr_destroy;
+ pthread_condattr_getpshared;
}
GLIBC_2.21 {
@@ -67,6 +68,7 @@ libc {
pthread_attr_setstack;
pthread_attr_setguardsize;
pthread_condattr_getclock;
+ pthread_condattr_getpshared;
}
@@ -123,7 +125,7 @@ libpthread {
pthread_cond_broadcast; pthread_cond_destroy; pthread_cond_init;
pthread_cond_signal; pthread_cond_timedwait; pthread_cond_wait;
- pthread_condattr_getpshared; pthread_condattr_init;
+ pthread_condattr_init;
pthread_condattr_setclock; pthread_condattr_setpshared;
pthread_create; pthread_detach; pthread_exit;
diff --git a/sysdeps/htl/pt-condattr-getpshared.c b/sysdeps/htl/pt-condattr-getpshared.c
index 7aea9e6e..90e9c488 100644
--- a/sysdeps/htl/pt-condattr-getpshared.c
+++ b/sysdeps/htl/pt-condattr-getpshared.c
@@ -17,11 +17,17 @@
<https://www.gnu.org/licenses/>. */
#include <pthread.h>
+#include <shlib-compat.h>
#include <pt-internal.h>
int
-pthread_condattr_getpshared (const pthread_condattr_t *attr, int *pshared)
+__pthread_condattr_getpshared (const pthread_condattr_t *attr, int *pshared)
{
*pshared = attr->__pshared;
return 0;
}
+versioned_symbol (libpthread, __pthread_condattr_getpshared, pthread_condattr_getpshared, GLIBC_2_41);
+
+#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_12, GLIBC_2_41)
+compat_symbol (libpthread, __pthread_condattr_getpshared, pthread_condattr_getpshared, GLIBC_2_12);
+#endif
diff --git a/sysdeps/mach/hurd/i386/libc.abilist b/sysdeps/mach/hurd/i386/libc.abilist
index 72c09131..de6db602 100644
--- a/sysdeps/mach/hurd/i386/libc.abilist
+++ b/sysdeps/mach/hurd/i386/libc.abilist
@@ -51,6 +51,7 @@ GLIBC_2.12 pthread_attr_setstackaddr F
GLIBC_2.12 pthread_attr_setstacksize F
GLIBC_2.12 pthread_condattr_destroy F
GLIBC_2.12 pthread_condattr_getclock F
+GLIBC_2.12 pthread_condattr_getpshared F
GLIBC_2.12 pthread_equal F
GLIBC_2.12 pthread_getschedparam F
GLIBC_2.12 pthread_self F
@@ -2506,6 +2507,7 @@ GLIBC_2.41 pthread_attr_setstack F
GLIBC_2.41 pthread_attr_setstackaddr F
GLIBC_2.41 pthread_attr_setstacksize F
GLIBC_2.41 pthread_condattr_getclock F
+GLIBC_2.41 pthread_condattr_getpshared F
GLIBC_2.5 __readlinkat_chk F
GLIBC_2.5 inet6_opt_append F
GLIBC_2.5 inet6_opt_find F
diff --git a/sysdeps/mach/hurd/i386/libpthread.abilist b/sysdeps/mach/hurd/i386/libpthread.abilist
index 819e74ab..6a1e221e 100644
--- a/sysdeps/mach/hurd/i386/libpthread.abilist
+++ b/sysdeps/mach/hurd/i386/libpthread.abilist
@@ -36,7 +36,6 @@ GLIBC_2.12 pthread_cond_init F
GLIBC_2.12 pthread_cond_signal F
GLIBC_2.12 pthread_cond_timedwait F
GLIBC_2.12 pthread_cond_wait F
-GLIBC_2.12 pthread_condattr_getpshared F
GLIBC_2.12 pthread_condattr_init F
GLIBC_2.12 pthread_condattr_setclock F
GLIBC_2.12 pthread_condattr_setpshared F
diff --git a/sysdeps/mach/hurd/x86_64/libc.abilist b/sysdeps/mach/hurd/x86_64/libc.abilist
index c070d6c4..9a549053 100644
--- a/sysdeps/mach/hurd/x86_64/libc.abilist
+++ b/sysdeps/mach/hurd/x86_64/libc.abilist
@@ -1539,6 +1539,7 @@ GLIBC_2.38 pthread_cond_timedwait F
GLIBC_2.38 pthread_cond_wait F
GLIBC_2.38 pthread_condattr_destroy F
GLIBC_2.38 pthread_condattr_getclock F
+GLIBC_2.38 pthread_condattr_getpshared F
GLIBC_2.38 pthread_condattr_init F
GLIBC_2.38 pthread_equal F
GLIBC_2.38 pthread_exit F
@@ -2202,6 +2203,7 @@ GLIBC_2.41 pthread_attr_setstack F
GLIBC_2.41 pthread_attr_setstackaddr F
GLIBC_2.41 pthread_attr_setstacksize F
GLIBC_2.41 pthread_condattr_getclock F
+GLIBC_2.41 pthread_condattr_getpshared F
HURD_CTHREADS_0.3 __cthread_getspecific F
HURD_CTHREADS_0.3 __cthread_keycreate F
HURD_CTHREADS_0.3 __cthread_setspecific F
diff --git a/sysdeps/mach/hurd/x86_64/libpthread.abilist b/sysdeps/mach/hurd/x86_64/libpthread.abilist
index 6397cd5f..ae4480ca 100644
--- a/sysdeps/mach/hurd/x86_64/libpthread.abilist
+++ b/sysdeps/mach/hurd/x86_64/libpthread.abilist
@@ -55,7 +55,6 @@ GLIBC_2.38 pthread_cond_init F
GLIBC_2.38 pthread_cond_signal F
GLIBC_2.38 pthread_cond_timedwait F
GLIBC_2.38 pthread_cond_wait F
-GLIBC_2.38 pthread_condattr_getpshared F
GLIBC_2.38 pthread_condattr_init F
GLIBC_2.38 pthread_condattr_setclock F
GLIBC_2.38 pthread_condattr_setpshared F
--
2.39.5
next prev parent reply other threads:[~2024-11-26 20:57 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-26 20:53 [PATCH 0/7] htl: move pthread_condattr_* " gfleury
2024-11-26 20:53 ` [PATCH 1/7] htl: move pthread_condattr_destroy " gfleury
2024-11-26 20:53 ` [PATCH 2/7] htl: move __pthread_default_condattr " gfleury
2024-11-26 20:53 ` [PATCH 3/7] htl: move pthread_condattr_getclock " gfleury
2024-11-26 20:53 ` gfleury [this message]
2024-11-26 20:53 ` [PATCH 5/7] htl: move pthread_condattr_init " gfleury
2024-11-26 20:53 ` [PATCH 6/7] htl: move pthread_condattr_setclock " gfleury
2024-11-26 20:53 ` [PATCH 7/7] htl: move pthread_condattr_setpshared " gfleury
2024-11-26 21:11 ` [PATCH 0/7] htl: move pthread_condattr_* " Florian Weimer
2024-12-09 1:26 ` Samuel Thibault
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241126205329.2215295-5-gfleury@disroot.org \
--to=gfleury@disroot.org \
--cc=libc-alpha@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).