mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-06 20:58:33 +01:00
htl: move pthread_mutexattr_setprotocol into libc.
Message-ID: <20241231134909.1166440-5-gfleury@disroot.org>
This commit is contained in:
parent
15686aa188
commit
3cd1cf5fe0
8 changed files with 21 additions and 6 deletions
|
@ -58,7 +58,6 @@ libpthread-routines := \
|
|||
pt-mutexattr-getpshared \
|
||||
pt-mutexattr-gettype \
|
||||
pt-mutexattr-setprioceiling \
|
||||
pt-mutexattr-setprotocol \
|
||||
pt-mutexattr-setpshared \
|
||||
pt-mutexattr-settype \
|
||||
pt-mutexattr-getrobust \
|
||||
|
@ -201,6 +200,7 @@ routines := \
|
|||
pt-mutexattr-destroy \
|
||||
pt-mutexattr-getprotocol \
|
||||
pt-mutexattr-init \
|
||||
pt-mutexattr-setprotocol \
|
||||
pt-nthreads \
|
||||
pt-pthread_self \
|
||||
pt-self pt-equal \
|
||||
|
|
|
@ -41,6 +41,7 @@ libc {
|
|||
pthread_mutexattr_destroy;
|
||||
pthread_mutexattr_getprotocol;
|
||||
pthread_mutexattr_init;
|
||||
pthread_mutexattr_setprotocol;
|
||||
pthread_sigmask;
|
||||
}
|
||||
|
||||
|
@ -87,6 +88,7 @@ libc {
|
|||
pthread_condattr_setclock;
|
||||
pthread_condattr_setpshared;
|
||||
pthread_mutexattr_getprotocol;
|
||||
pthread_mutexattr_setprotocol;
|
||||
pthread_sigmask;
|
||||
}
|
||||
|
||||
|
@ -183,7 +185,7 @@ libpthread {
|
|||
pthread_mutexattr_getprioceiling;
|
||||
pthread_mutexattr_getpshared;
|
||||
pthread_mutexattr_gettype;
|
||||
pthread_mutexattr_setprioceiling; pthread_mutexattr_setprotocol;
|
||||
pthread_mutexattr_setprioceiling;
|
||||
pthread_mutexattr_setpshared; pthread_mutexattr_settype;
|
||||
|
||||
pthread_once;
|
||||
|
|
|
@ -43,6 +43,10 @@ extern int __pthread_mutexattr_settype (pthread_mutexattr_t *attr, int kind);
|
|||
extern int __pthread_mutexattr_getprotocol(const pthread_mutexattr_t *__restrict __attr,
|
||||
int *__restrict __protocol);
|
||||
libc_hidden_proto (__pthread_mutexattr_getprotocol)
|
||||
extern int __pthread_mutexattr_setprotocol(pthread_mutexattr_t *__attr,
|
||||
int __protocol);
|
||||
libc_hidden_proto (__pthread_mutexattr_setprotocol)
|
||||
|
||||
extern int __pthread_cond_init (pthread_cond_t *cond,
|
||||
const pthread_condattr_t *cond_attr);
|
||||
libc_hidden_proto (__pthread_cond_init)
|
||||
|
|
|
@ -16,15 +16,16 @@
|
|||
License along with the GNU C Library; if not, see
|
||||
<https://www.gnu.org/licenses/>. */
|
||||
|
||||
#include <pthread.h>
|
||||
#include <pthreadP.h>
|
||||
#include <stdlib.h>
|
||||
#include <assert.h>
|
||||
#include <pt-internal.h>
|
||||
#include "pt-mutex.h"
|
||||
#include <hurdlock.h>
|
||||
#include <shlib-compat.h>
|
||||
|
||||
int
|
||||
pthread_mutexattr_setprotocol (pthread_mutexattr_t *attrp, int proto)
|
||||
__pthread_mutexattr_setprotocol (pthread_mutexattr_t *attrp, int proto)
|
||||
{
|
||||
(void) attrp;
|
||||
return (proto == PTHREAD_PRIO_NONE
|
||||
|
@ -32,3 +33,9 @@ pthread_mutexattr_setprotocol (pthread_mutexattr_t *attrp, int proto)
|
|||
: (proto != PTHREAD_PRIO_INHERIT
|
||||
&& proto != PTHREAD_PRIO_PROTECT) ? EINVAL : ENOTSUP);
|
||||
}
|
||||
libc_hidden_def (__pthread_mutexattr_setprotocol)
|
||||
versioned_symbol (libc, __pthread_mutexattr_setprotocol, pthread_mutexattr_setprotocol, GLIBC_2_41);
|
||||
|
||||
#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_12, GLIBC_2_41)
|
||||
compat_symbol (libpthread, __pthread_mutexattr_setprotocol,pthread_mutexattr_setprotocol, GLIBC_2_12);
|
||||
#endif
|
||||
|
|
|
@ -66,6 +66,7 @@ GLIBC_2.12 pthread_getschedparam F
|
|||
GLIBC_2.12 pthread_mutexattr_destroy F
|
||||
GLIBC_2.12 pthread_mutexattr_getprotocol F
|
||||
GLIBC_2.12 pthread_mutexattr_init F
|
||||
GLIBC_2.12 pthread_mutexattr_setprotocol F
|
||||
GLIBC_2.12 pthread_self F
|
||||
GLIBC_2.12 pthread_setschedparam F
|
||||
GLIBC_2.12 pthread_sigmask F
|
||||
|
@ -2525,6 +2526,7 @@ GLIBC_2.41 pthread_condattr_getpshared F
|
|||
GLIBC_2.41 pthread_condattr_setclock F
|
||||
GLIBC_2.41 pthread_condattr_setpshared F
|
||||
GLIBC_2.41 pthread_mutexattr_getprotocol F
|
||||
GLIBC_2.41 pthread_mutexattr_setprotocol F
|
||||
GLIBC_2.41 pthread_sigmask F
|
||||
GLIBC_2.5 __readlinkat_chk F
|
||||
GLIBC_2.5 inet6_opt_append F
|
||||
|
|
|
@ -54,7 +54,6 @@ GLIBC_2.12 pthread_mutexattr_getprioceiling F
|
|||
GLIBC_2.12 pthread_mutexattr_getpshared F
|
||||
GLIBC_2.12 pthread_mutexattr_gettype F
|
||||
GLIBC_2.12 pthread_mutexattr_setprioceiling F
|
||||
GLIBC_2.12 pthread_mutexattr_setprotocol F
|
||||
GLIBC_2.12 pthread_mutexattr_setpshared F
|
||||
GLIBC_2.12 pthread_mutexattr_settype F
|
||||
GLIBC_2.12 pthread_once F
|
||||
|
|
|
@ -1554,6 +1554,7 @@ GLIBC_2.38 pthread_mutex_unlock F
|
|||
GLIBC_2.38 pthread_mutexattr_destroy F
|
||||
GLIBC_2.38 pthread_mutexattr_getprotocol F
|
||||
GLIBC_2.38 pthread_mutexattr_init F
|
||||
GLIBC_2.38 pthread_mutexattr_setprotocol F
|
||||
GLIBC_2.38 pthread_self F
|
||||
GLIBC_2.38 pthread_setcancelstate F
|
||||
GLIBC_2.38 pthread_setcanceltype F
|
||||
|
@ -2214,6 +2215,7 @@ GLIBC_2.41 pthread_condattr_getpshared F
|
|||
GLIBC_2.41 pthread_condattr_setclock F
|
||||
GLIBC_2.41 pthread_condattr_setpshared F
|
||||
GLIBC_2.41 pthread_mutexattr_getprotocol F
|
||||
GLIBC_2.41 pthread_mutexattr_setprotocol F
|
||||
GLIBC_2.41 pthread_sigmask F
|
||||
HURD_CTHREADS_0.3 __cthread_getspecific F
|
||||
HURD_CTHREADS_0.3 __cthread_keycreate F
|
||||
|
|
|
@ -79,7 +79,6 @@ GLIBC_2.38 pthread_mutexattr_getrobust F
|
|||
GLIBC_2.38 pthread_mutexattr_getrobust_np F
|
||||
GLIBC_2.38 pthread_mutexattr_gettype F
|
||||
GLIBC_2.38 pthread_mutexattr_setprioceiling F
|
||||
GLIBC_2.38 pthread_mutexattr_setprotocol F
|
||||
GLIBC_2.38 pthread_mutexattr_setpshared F
|
||||
GLIBC_2.38 pthread_mutexattr_setrobust F
|
||||
GLIBC_2.38 pthread_mutexattr_setrobust_np F
|
||||
|
|
Loading…
Add table
Reference in a new issue