mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-24 14:00:30 +00:00
htl: move pthread_attr_setschedparam into libc.
Signed-off-by: gfleury <gfleury@disroot.org>
This commit is contained in:
parent
32aa498ceb
commit
f26b272a75
@ -27,7 +27,6 @@ LCLHDRS :=
|
|||||||
libpthread-routines := \
|
libpthread-routines := \
|
||||||
pt-attr-init \
|
pt-attr-init \
|
||||||
pt-attr-setguardsize \
|
pt-attr-setguardsize \
|
||||||
pt-attr-setschedparam \
|
|
||||||
pt-barrier-destroy \
|
pt-barrier-destroy \
|
||||||
pt-barrier-init \
|
pt-barrier-init \
|
||||||
pt-barrier-wait \
|
pt-barrier-wait \
|
||||||
@ -201,6 +200,7 @@ routines := \
|
|||||||
pt-attr-getstacksize \
|
pt-attr-getstacksize \
|
||||||
pt-attr-setdetachstate \
|
pt-attr-setdetachstate \
|
||||||
pt-attr-setinheritsched \
|
pt-attr-setinheritsched \
|
||||||
|
pt-attr-setschedparam \
|
||||||
pt-attr-setschedpolicy \
|
pt-attr-setschedpolicy \
|
||||||
pt-attr-setscope \
|
pt-attr-setscope \
|
||||||
pt-attr-setstack \
|
pt-attr-setstack \
|
||||||
|
@ -23,6 +23,7 @@ libc {
|
|||||||
pthread_attr_setstackaddr;
|
pthread_attr_setstackaddr;
|
||||||
pthread_attr_setstack;
|
pthread_attr_setstack;
|
||||||
pthread_attr_setscope;
|
pthread_attr_setscope;
|
||||||
|
pthread_attr_setschedparam;
|
||||||
}
|
}
|
||||||
|
|
||||||
GLIBC_2.21 {
|
GLIBC_2.21 {
|
||||||
@ -107,7 +108,6 @@ libpthread {
|
|||||||
|
|
||||||
pthread_attr_init;
|
pthread_attr_init;
|
||||||
pthread_attr_setguardsize;
|
pthread_attr_setguardsize;
|
||||||
pthread_attr_setschedparam;
|
|
||||||
|
|
||||||
pthread_barrier_destroy; pthread_barrier_init; pthread_barrier_wait;
|
pthread_barrier_destroy; pthread_barrier_init; pthread_barrier_wait;
|
||||||
pthread_barrierattr_destroy; pthread_barrierattr_getpshared;
|
pthread_barrierattr_destroy; pthread_barrierattr_getpshared;
|
||||||
|
@ -55,10 +55,6 @@ name decl \
|
|||||||
|
|
||||||
FORWARD (pthread_attr_init, (pthread_attr_t *attr), (attr), 0)
|
FORWARD (pthread_attr_init, (pthread_attr_t *attr), (attr), 0)
|
||||||
|
|
||||||
FORWARD (pthread_attr_setschedparam,
|
|
||||||
(pthread_attr_t *attr, const struct sched_param *param),
|
|
||||||
(attr, param), 0)
|
|
||||||
|
|
||||||
FORWARD (pthread_condattr_destroy, (pthread_condattr_t *attr), (attr), 0)
|
FORWARD (pthread_condattr_destroy, (pthread_condattr_t *attr), (attr), 0)
|
||||||
FORWARD (pthread_condattr_init, (pthread_condattr_t *attr), (attr), 0)
|
FORWARD (pthread_condattr_init, (pthread_condattr_t *attr), (attr), 0)
|
||||||
|
|
||||||
|
@ -28,7 +28,6 @@
|
|||||||
#if IS_IN (libpthread)
|
#if IS_IN (libpthread)
|
||||||
static const struct pthread_functions pthread_functions = {
|
static const struct pthread_functions pthread_functions = {
|
||||||
.ptr_pthread_attr_init = __pthread_attr_init,
|
.ptr_pthread_attr_init = __pthread_attr_init,
|
||||||
.ptr_pthread_attr_setschedparam = __pthread_attr_setschedparam,
|
|
||||||
.ptr_pthread_condattr_destroy = __pthread_condattr_destroy,
|
.ptr_pthread_condattr_destroy = __pthread_condattr_destroy,
|
||||||
.ptr_pthread_condattr_init = __pthread_condattr_init,
|
.ptr_pthread_condattr_init = __pthread_condattr_init,
|
||||||
.ptr_pthread_cond_broadcast = __pthread_cond_broadcast,
|
.ptr_pthread_cond_broadcast = __pthread_cond_broadcast,
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include <sched.h>
|
#include <sched.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <shlib-compat.h>
|
||||||
#include <pt-internal.h>
|
#include <pt-internal.h>
|
||||||
|
|
||||||
int
|
int
|
||||||
@ -34,5 +34,8 @@ __pthread_attr_setschedparam (pthread_attr_t *attr,
|
|||||||
|
|
||||||
return ENOTSUP;
|
return ENOTSUP;
|
||||||
}
|
}
|
||||||
|
versioned_symbol (libc, __pthread_attr_setschedparam, pthread_attr_setschedparam, GLIBC_2_21);
|
||||||
|
|
||||||
weak_alias (__pthread_attr_setschedparam, pthread_attr_setschedparam);
|
#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_12, GLIBC_2_21)
|
||||||
|
compat_symbol (libc, __pthread_attr_setschedparam, pthread_attr_setschedparam, GLIBC_2_12);
|
||||||
|
#endif
|
||||||
|
@ -22,8 +22,6 @@
|
|||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
|
|
||||||
int __pthread_attr_init (pthread_attr_t *);
|
int __pthread_attr_init (pthread_attr_t *);
|
||||||
int __pthread_attr_setschedparam (pthread_attr_t *,
|
|
||||||
const struct sched_param *);
|
|
||||||
int __pthread_condattr_destroy (pthread_condattr_t *);
|
int __pthread_condattr_destroy (pthread_condattr_t *);
|
||||||
int __pthread_condattr_init (pthread_condattr_t *);
|
int __pthread_condattr_init (pthread_condattr_t *);
|
||||||
int __pthread_cond_broadcast (pthread_cond_t *);
|
int __pthread_cond_broadcast (pthread_cond_t *);
|
||||||
@ -62,8 +60,6 @@ int _cthreads_ftrylockfile (FILE *);
|
|||||||
struct pthread_functions
|
struct pthread_functions
|
||||||
{
|
{
|
||||||
int (*ptr_pthread_attr_init) (pthread_attr_t *);
|
int (*ptr_pthread_attr_init) (pthread_attr_t *);
|
||||||
int (*ptr_pthread_attr_setschedparam) (pthread_attr_t *,
|
|
||||||
const struct sched_param *);
|
|
||||||
int (*ptr_pthread_condattr_destroy) (pthread_condattr_t *);
|
int (*ptr_pthread_condattr_destroy) (pthread_condattr_t *);
|
||||||
int (*ptr_pthread_condattr_init) (pthread_condattr_t *);
|
int (*ptr_pthread_condattr_init) (pthread_condattr_t *);
|
||||||
int (*ptr_pthread_cond_broadcast) (pthread_cond_t *);
|
int (*ptr_pthread_cond_broadcast) (pthread_cond_t *);
|
||||||
|
@ -41,6 +41,7 @@ GLIBC_2.12 pthread_attr_getstackaddr F
|
|||||||
GLIBC_2.12 pthread_attr_getstacksize F
|
GLIBC_2.12 pthread_attr_getstacksize F
|
||||||
GLIBC_2.12 pthread_attr_setdetachstate F
|
GLIBC_2.12 pthread_attr_setdetachstate F
|
||||||
GLIBC_2.12 pthread_attr_setinheritsched F
|
GLIBC_2.12 pthread_attr_setinheritsched F
|
||||||
|
GLIBC_2.12 pthread_attr_setschedparam F
|
||||||
GLIBC_2.12 pthread_attr_setschedpolicy F
|
GLIBC_2.12 pthread_attr_setschedpolicy F
|
||||||
GLIBC_2.12 pthread_attr_setscope F
|
GLIBC_2.12 pthread_attr_setscope F
|
||||||
GLIBC_2.12 pthread_attr_setstack F
|
GLIBC_2.12 pthread_attr_setstack F
|
||||||
|
@ -24,7 +24,6 @@ GLIBC_2.12 funlockfile F
|
|||||||
GLIBC_2.12 pthread_atfork F
|
GLIBC_2.12 pthread_atfork F
|
||||||
GLIBC_2.12 pthread_attr_init F
|
GLIBC_2.12 pthread_attr_init F
|
||||||
GLIBC_2.12 pthread_attr_setguardsize F
|
GLIBC_2.12 pthread_attr_setguardsize F
|
||||||
GLIBC_2.12 pthread_attr_setschedparam F
|
|
||||||
GLIBC_2.12 pthread_barrier_destroy F
|
GLIBC_2.12 pthread_barrier_destroy F
|
||||||
GLIBC_2.12 pthread_barrier_init F
|
GLIBC_2.12 pthread_barrier_init F
|
||||||
GLIBC_2.12 pthread_barrier_wait F
|
GLIBC_2.12 pthread_barrier_wait F
|
||||||
|
@ -41,7 +41,6 @@ GLIBC_2.38 mtx_trylock F
|
|||||||
GLIBC_2.38 mtx_unlock F
|
GLIBC_2.38 mtx_unlock F
|
||||||
GLIBC_2.38 pthread_attr_init F
|
GLIBC_2.38 pthread_attr_init F
|
||||||
GLIBC_2.38 pthread_attr_setguardsize F
|
GLIBC_2.38 pthread_attr_setguardsize F
|
||||||
GLIBC_2.38 pthread_attr_setschedparam F
|
|
||||||
GLIBC_2.38 pthread_barrier_destroy F
|
GLIBC_2.38 pthread_barrier_destroy F
|
||||||
GLIBC_2.38 pthread_barrier_init F
|
GLIBC_2.38 pthread_barrier_init F
|
||||||
GLIBC_2.38 pthread_barrier_wait F
|
GLIBC_2.38 pthread_barrier_wait F
|
||||||
|
Loading…
Reference in New Issue
Block a user