aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgfleury <gfleury@disroot.org>2024-11-18 13:21:39 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2024-11-19 01:37:35 +0100
commit330c1fad5b909399a245e96f3e1db5fbaa6ea413 (patch)
treee3ebe8d13f05968d6a101ea58a2e1f102c932e2f
parent1428ae39e8d72d04d8c7d88186d6137bbe5a04d1 (diff)
downloadglibc-330c1fad5b909399a245e96f3e1db5fbaa6ea413.zip
glibc-330c1fad5b909399a245e96f3e1db5fbaa6ea413.tar.gz
glibc-330c1fad5b909399a245e96f3e1db5fbaa6ea413.tar.bz2
htl: move pthread_attr_getstack into libc.
Signed-off-by: gfleury <gfleury@disroot.org>
-rw-r--r--htl/Makefile2
-rw-r--r--htl/Versions5
-rw-r--r--sysdeps/htl/pt-attr-getstack.c8
-rw-r--r--sysdeps/htl/pthreadP.h1
-rw-r--r--sysdeps/mach/hurd/i386/libc.abilist2
-rw-r--r--sysdeps/mach/hurd/i386/libpthread.abilist1
-rw-r--r--sysdeps/mach/hurd/x86_64/libc.abilist2
-rw-r--r--sysdeps/mach/hurd/x86_64/libpthread.abilist1
8 files changed, 16 insertions, 6 deletions
diff --git a/htl/Makefile b/htl/Makefile
index 1340c1b..d9faf50 100644
--- a/htl/Makefile
+++ b/htl/Makefile
@@ -25,7 +25,6 @@ SYSDEPS := lockfile
LCLHDRS :=
libpthread-routines := \
- pt-attr-getstack \
pt-attr-init \
pt-attr-setguardsize \
pt-attr-setschedparam \
@@ -201,6 +200,7 @@ routines := \
pt-attr-getschedparam \
pt-attr-getschedpolicy \
pt-attr-getscope \
+ pt-attr-getstack \
pt-attr-getstackaddr \
pt-attr-getstacksize \
pt-attr-setdetachstate \
diff --git a/htl/Versions b/htl/Versions
index f72569c..05b7765 100644
--- a/htl/Versions
+++ b/htl/Versions
@@ -18,6 +18,7 @@ libc {
pthread_attr_getscope;
pthread_attr_getstacksize;
pthread_attr_getstackaddr;
+ pthread_attr_getstack;
}
GLIBC_2.21 {
@@ -51,6 +52,7 @@ libc {
pthread_attr_getguardsize;
pthread_attr_getstacksize;
pthread_attr_getstackaddr;
+ pthread_attr_getstack;
}
@@ -64,6 +66,7 @@ libc {
__pthread_default_attr;
__pthread_attr_getstacksize;
__pthread_attr_getstackaddr;
+ __pthread_attr_getstack;
}
}
@@ -92,7 +95,6 @@ libpthread {
pthread_atfork;
- pthread_attr_getstack;
pthread_attr_init;
pthread_attr_setguardsize;
pthread_attr_setschedparam;
@@ -211,7 +213,6 @@ libpthread {
__pthread_getspecific;
__pthread_setspecific;
__pthread_getattr_np;
- __pthread_attr_getstack;
__pthread_mutex_init;
__pthread_mutex_destroy;
__pthread_mutex_timedlock;
diff --git a/sysdeps/htl/pt-attr-getstack.c b/sysdeps/htl/pt-attr-getstack.c
index 42ab5fd..1a4baa3 100644
--- a/sysdeps/htl/pt-attr-getstack.c
+++ b/sysdeps/htl/pt-attr-getstack.c
@@ -18,6 +18,7 @@
#include <pthread.h>
#include <pt-internal.h>
+#include <shlib-compat.h>
#include <pthreadP.h>
int
@@ -28,4 +29,9 @@ __pthread_attr_getstack (const pthread_attr_t *attr,
__pthread_attr_getstacksize (attr, stacksize);
return 0;
}
-weak_alias (__pthread_attr_getstack, pthread_attr_getstack)
+libc_hidden_def (__pthread_attr_getstack)
+versioned_symbol (libpthread, __pthread_attr_getstack, pthread_attr_getstack, GLIBC_2_41);
+
+#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_12, GLIBC_2_41)
+compat_symbol (libpthread, __pthread_attr_getstack, pthread_attr_getstack, GLIBC_2_12);
+#endif
diff --git a/sysdeps/htl/pthreadP.h b/sysdeps/htl/pthreadP.h
index a397112..6cdafe7 100644
--- a/sysdeps/htl/pthreadP.h
+++ b/sysdeps/htl/pthreadP.h
@@ -92,6 +92,7 @@ int __pthread_attr_setstacksize (pthread_attr_t *__attr, size_t __stacksize);
int __pthread_attr_setstack (pthread_attr_t *__attr, void *__stackaddr,
size_t __stacksize);
int __pthread_attr_getstack (const pthread_attr_t *, void **, size_t *);
+libc_hidden_proto (__pthread_attr_getstack)
void __pthread_testcancel (void);
#define __pthread_raise_internal(__sig) raise (__sig)
diff --git a/sysdeps/mach/hurd/i386/libc.abilist b/sysdeps/mach/hurd/i386/libc.abilist
index d93a0f4..5ecf2a0 100644
--- a/sysdeps/mach/hurd/i386/libc.abilist
+++ b/sysdeps/mach/hurd/i386/libc.abilist
@@ -36,6 +36,7 @@ GLIBC_2.12 pthread_attr_getinheritsched F
GLIBC_2.12 pthread_attr_getschedparam F
GLIBC_2.12 pthread_attr_getschedpolicy F
GLIBC_2.12 pthread_attr_getscope F
+GLIBC_2.12 pthread_attr_getstack F
GLIBC_2.12 pthread_attr_getstackaddr F
GLIBC_2.12 pthread_attr_getstacksize F
GLIBC_2.12 pthread_attr_setdetachstate F
@@ -2488,6 +2489,7 @@ GLIBC_2.4 renameat F
GLIBC_2.4 symlinkat F
GLIBC_2.4 unlinkat F
GLIBC_2.41 pthread_attr_getguardsize F
+GLIBC_2.41 pthread_attr_getstack F
GLIBC_2.41 pthread_attr_getstackaddr F
GLIBC_2.41 pthread_attr_getstacksize F
GLIBC_2.5 __readlinkat_chk F
diff --git a/sysdeps/mach/hurd/i386/libpthread.abilist b/sysdeps/mach/hurd/i386/libpthread.abilist
index fed1626..2f50e32 100644
--- a/sysdeps/mach/hurd/i386/libpthread.abilist
+++ b/sysdeps/mach/hurd/i386/libpthread.abilist
@@ -22,7 +22,6 @@ GLIBC_2.12 flockfile F
GLIBC_2.12 ftrylockfile F
GLIBC_2.12 funlockfile F
GLIBC_2.12 pthread_atfork F
-GLIBC_2.12 pthread_attr_getstack F
GLIBC_2.12 pthread_attr_init F
GLIBC_2.12 pthread_attr_setguardsize F
GLIBC_2.12 pthread_attr_setschedparam F
diff --git a/sysdeps/mach/hurd/x86_64/libc.abilist b/sysdeps/mach/hurd/x86_64/libc.abilist
index 242c40e..3e829c3 100644
--- a/sysdeps/mach/hurd/x86_64/libc.abilist
+++ b/sysdeps/mach/hurd/x86_64/libc.abilist
@@ -1518,6 +1518,7 @@ GLIBC_2.38 pthread_attr_getinheritsched F
GLIBC_2.38 pthread_attr_getschedparam F
GLIBC_2.38 pthread_attr_getschedpolicy F
GLIBC_2.38 pthread_attr_getscope F
+GLIBC_2.38 pthread_attr_getstack F
GLIBC_2.38 pthread_attr_getstackaddr F
GLIBC_2.38 pthread_attr_getstacksize F
GLIBC_2.38 pthread_attr_init F
@@ -2188,6 +2189,7 @@ GLIBC_2.39 stdc_trailing_zeros_ul F
GLIBC_2.39 stdc_trailing_zeros_ull F
GLIBC_2.39 stdc_trailing_zeros_us F
GLIBC_2.41 pthread_attr_getguardsize F
+GLIBC_2.41 pthread_attr_getstack F
GLIBC_2.41 pthread_attr_getstackaddr F
GLIBC_2.41 pthread_attr_getstacksize F
HURD_CTHREADS_0.3 __cthread_getspecific F
diff --git a/sysdeps/mach/hurd/x86_64/libpthread.abilist b/sysdeps/mach/hurd/x86_64/libpthread.abilist
index a1f74eb..e3c04ab 100644
--- a/sysdeps/mach/hurd/x86_64/libpthread.abilist
+++ b/sysdeps/mach/hurd/x86_64/libpthread.abilist
@@ -39,7 +39,6 @@ GLIBC_2.38 mtx_lock F
GLIBC_2.38 mtx_timedlock F
GLIBC_2.38 mtx_trylock F
GLIBC_2.38 mtx_unlock F
-GLIBC_2.38 pthread_attr_getstack F
GLIBC_2.38 pthread_attr_init F
GLIBC_2.38 pthread_attr_setguardsize F
GLIBC_2.38 pthread_attr_setschedparam F