mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-25 06:20:06 +00:00
28cada0418
* htl/pt-join.c (__pthread_join): Move implementation to... (__pthread_join_common): ... new function. Add try, timed and clock support. (__pthread_join): Reimplement on top of __pthread_join_common. (__pthread_tryjoin_np, __pthread_timedjoin_np, __pthread_clockjoin_np): Implement on top of __pthread_join_common. (pthread_tryjoin_np, pthread_timedjoin_np, pthread_clockjoin_np): New aliases. * hurd/hurdlock.c (__lll_abstimed_wait, __lll_abstimed_xwait, __lll_abstimed_lock): Check for supported clock. * sysdeps/htl/pt-cond-timedwait.c (__pthread_cond_timedwait_internal): Add clockid parameter and support it. (__pthread_cond_timedwait): Pass -1 as clockid. (__pthread_cond_clockwait): New function. (pthread_cond_clockwait): New alias. * sysdeps/htl/pt-cond-wait.c (__pthread_cond_timedwait_internal): Update prototype. (__pthread_cond_wait): Pass -1 as clockid. * sysdeps/htl/pt-rwlock-timedrdlock.c (__pthread_rwlock_timedrdlock_internal): Add clockid parameter, and support id. (__pthread_rwlock_clockrdlock): New function. (pthread_rwlock_clockrdlock): New alias. * sysdeps/htl/pt-rwlock-rdlock.c (__pthread_rwlock_timedrdlock_internal): Update prototype. (__pthread_rwlock_rdlock): Pass -1 as clockid. * sysdeps/htl/pt-rwlock-timedwrlock.c (__pthread_rwlock_timedwrlock_internal): Add clockid parameter, and support id. (__pthread_rwlock_clockwrlock): New function. (pthread_rwlock_clockwrlock): New alias. * sysdeps/htl/pt-rwlock-wrlock.c (__pthread_rwlock_timedwrlock_internal): Update prototype. (__pthread_rwlock_wrlock): Pass -1 as clockid. * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c (__pthread_mutex_timedlock): Move implementation to (__pthread_mutex_clocklock): New function with additional clockid parameter and support it. (pthread_mutex_clocklock): New alias. (__pthread_mutex_timedlock): Reimplement on top of __pthread_mutex_clocklock. * sysdeps/htl/pthread.h (pthread_tryjoin_np, pthread_timedjoin_np, pthread_clockjoin_np, pthread_mutex_clocklock, pthread_cond_clockwait, pthread_rwlock_clockrdlock, pthread_rwlock_clockwrlock): New prototypes. * sysdeps/htl/pthreadP.h (__pthread_cond_clockwait): New prototype. * htl/Versions (GLIBC_2.32): Add pthread_cond_clockwait, pthread_mutex_clocklock, pthread_rwlock_clockrdlock, pthread_rwlock_clockwrlock, pthread_tryjoin_np, pthread_timedjoin_np, pthread_clockjoin_np. * sysdeps/mach/hurd/i386/libpthread.abilist (pthread_clockjoin_np, pthread_cond_clockwait, pthread_mutex_clocklock, pthread_rwlock_clockrdlock, pthread_rwlock_clockwrlock, pthread_timedjoin_np, pthread_tryjoin_np): New functions. * nptl/tst-abstime.c, nptl/tst-join10.c, nptl/tst-join11.c, nptl/tst-join12.c, nptl/tst-join13.c, nptl/tst-join14.c, nptl/tst-join2.c, nptl/tst-join3.c, nptl/tst-join8.c, nptl/tst-join9.c, nptl/tst-mutex-errorcheck.c, nptl/tst-pthread-mutexattr.c, nptl/tst-mutex11.c, nptl/tst-mutex5.c, nptl/tst-mutex7.c, nptl/tst-mutex7robus.c, nptl/tst-mutex9.c, nptl/tst-rwlock12.c, nptl/tst-rwlock14.c: Move to sysdeps/pthread. * sysdeps/pthread/tst-mutex8.c: Move back to nptl. * nptl/Makefile (tests): Move tst-mutex5, tst-mutex7, tst-mutex7robust, tst-mutex9, tst-mutex11, tst-rwlock12, tst-rwlock14, tst-join2, tst-join3, tst-join8, tst-join9 tst-join10, tst-join11, tst-join12, tst-join13, tst-join14, tst-abstime, tst-mutex-errorcheck, tst-pthread-mutexattr to ... * sysdeps/pthread/Makefile (tests): ... here.
190 lines
5.8 KiB
Plaintext
190 lines
5.8 KiB
Plaintext
libc {
|
|
GLIBC_2.21 {
|
|
pthread_attr_destroy; pthread_attr_getdetachstate;
|
|
pthread_attr_getinheritsched; pthread_attr_getschedparam;
|
|
pthread_attr_getschedpolicy; pthread_attr_getscope; pthread_attr_init;
|
|
pthread_attr_setdetachstate; pthread_attr_setinheritsched;
|
|
pthread_attr_setschedparam; pthread_attr_setschedpolicy;
|
|
pthread_attr_setscope;
|
|
pthread_condattr_destroy; pthread_condattr_init;
|
|
pthread_cond_broadcast; pthread_cond_destroy;
|
|
pthread_cond_init; pthread_cond_signal; pthread_cond_wait;
|
|
pthread_cond_timedwait;
|
|
pthread_equal;
|
|
pthread_exit; pthread_getschedparam; pthread_setschedparam;
|
|
pthread_mutex_destroy; pthread_mutex_init;
|
|
pthread_mutex_lock; pthread_mutex_trylock; pthread_mutex_unlock;
|
|
pthread_self; pthread_setcancelstate; pthread_setcanceltype;
|
|
__pthread_get_cleanup_stack;
|
|
}
|
|
GLIBC_2.22 {
|
|
__register_atfork;
|
|
}
|
|
|
|
# C11 thread symbols.
|
|
GLIBC_2.32 {
|
|
thrd_current; thrd_equal; thrd_sleep; thrd_yield;
|
|
}
|
|
|
|
GLIBC_PRIVATE {
|
|
__libc_alloca_cutoff;
|
|
__libc_pthread_init;
|
|
}
|
|
}
|
|
|
|
libpthread {
|
|
GLIBC_2.2.6 {
|
|
_IO_flockfile; _IO_ftrylockfile; _IO_funlockfile;
|
|
__errno_location; __h_errno_location;
|
|
}
|
|
GLIBC_2.12 {
|
|
__pthread_get_cleanup_stack;
|
|
|
|
__pthread_mutex_transfer_np;
|
|
|
|
_cthread_init_routine;
|
|
|
|
cthread_detach;
|
|
cthread_fork;
|
|
cthread_keycreate;
|
|
cthread_getspecific;
|
|
cthread_setspecific;
|
|
__mutex_lock_solid;
|
|
__mutex_unlock_solid;
|
|
_cthreads_flockfile;
|
|
_cthreads_ftrylockfile;
|
|
_cthreads_funlockfile;
|
|
|
|
flockfile; ftrylockfile; funlockfile;
|
|
|
|
pthread_atfork;
|
|
|
|
pthread_attr_destroy; pthread_attr_getdetachstate;
|
|
pthread_attr_getguardsize; pthread_attr_getinheritsched;
|
|
pthread_attr_getschedparam; pthread_attr_getschedpolicy;
|
|
pthread_attr_getscope; pthread_attr_getstack; pthread_attr_getstackaddr;
|
|
pthread_attr_getstacksize; pthread_attr_init; pthread_attr_setdetachstate;
|
|
pthread_attr_setguardsize; pthread_attr_setinheritsched;
|
|
pthread_attr_setschedparam; pthread_attr_setschedpolicy;
|
|
pthread_attr_setscope; pthread_attr_setstack; pthread_attr_setstackaddr;
|
|
pthread_attr_setstacksize;
|
|
|
|
pthread_barrier_destroy; pthread_barrier_init; pthread_barrier_wait;
|
|
pthread_barrierattr_destroy; pthread_barrierattr_getpshared;
|
|
pthread_barrierattr_init; pthread_barrierattr_setpshared;
|
|
|
|
pthread_cancel;
|
|
|
|
pthread_cond_broadcast; pthread_cond_destroy; pthread_cond_init;
|
|
pthread_cond_signal; pthread_cond_timedwait; pthread_cond_wait;
|
|
|
|
pthread_condattr_destroy; pthread_condattr_getclock;
|
|
pthread_condattr_getpshared; pthread_condattr_init;
|
|
pthread_condattr_setclock; pthread_condattr_setpshared;
|
|
|
|
pthread_create; pthread_detach; pthread_equal; pthread_exit;
|
|
|
|
pthread_getattr_np;
|
|
|
|
pthread_getconcurrency; pthread_getcpuclockid;
|
|
pthread_getschedparam; pthread_getspecific;
|
|
|
|
pthread_join;
|
|
|
|
pthread_key_create; pthread_key_delete;
|
|
__pthread_key_create;
|
|
|
|
pthread_kill;
|
|
__pthread_kill;
|
|
|
|
pthread_mutex_destroy; pthread_mutex_getprioceiling;
|
|
pthread_mutex_init; pthread_mutex_lock; pthread_mutex_setprioceiling;
|
|
pthread_mutex_timedlock; pthread_mutex_transfer_np;
|
|
pthread_mutex_trylock; pthread_mutex_unlock;
|
|
|
|
pthread_mutexattr_destroy; pthread_mutexattr_getprioceiling;
|
|
pthread_mutexattr_getprotocol; pthread_mutexattr_getpshared;
|
|
pthread_mutexattr_gettype; pthread_mutexattr_init;
|
|
pthread_mutexattr_setprioceiling; pthread_mutexattr_setprotocol;
|
|
pthread_mutexattr_setpshared; pthread_mutexattr_settype;
|
|
|
|
pthread_once;
|
|
|
|
pthread_rwlock_destroy; pthread_rwlock_init; pthread_rwlock_rdlock;
|
|
pthread_rwlock_timedrdlock; pthread_rwlock_timedwrlock;
|
|
pthread_rwlock_tryrdlock; pthread_rwlock_trywrlock;
|
|
pthread_rwlock_unlock; pthread_rwlock_wrlock;
|
|
|
|
pthread_rwlockattr_destroy; pthread_rwlockattr_getpshared;
|
|
pthread_rwlockattr_init; pthread_rwlockattr_setpshared;
|
|
|
|
pthread_self;
|
|
__pthread_self;
|
|
|
|
pthread_setcancelstate; pthread_setcanceltype;
|
|
pthread_setconcurrency; pthread_setschedparam;
|
|
pthread_setschedprio; pthread_setspecific;
|
|
|
|
pthread_sigmask;
|
|
pthread_testcancel;
|
|
pthread_yield;
|
|
|
|
sem_close; sem_destroy; sem_getvalue; sem_init; sem_open; sem_post;
|
|
sem_timedwait; sem_trywait; sem_unlink; sem_wait;
|
|
|
|
pthread_spin_destroy; pthread_spin_init; pthread_spin_lock;
|
|
pthread_spin_trylock; pthread_spin_unlock;
|
|
__pthread_spin_destroy; __pthread_spin_init;
|
|
__pthread_spin_lock; __pthread_spin_trylock; __pthread_spin_unlock;
|
|
_pthread_spin_lock;
|
|
}
|
|
GLIBC_2.21 {
|
|
pthread_hurd_cond_wait_np;
|
|
pthread_hurd_cond_timedwait_np;
|
|
}
|
|
|
|
# C11 thread symbols.
|
|
GLIBC_2.32 {
|
|
thrd_create; thrd_detach; thrd_exit; thrd_join;
|
|
mtx_init; mtx_lock; mtx_timedlock; mtx_trylock; mtx_unlock; mtx_destroy;
|
|
call_once;
|
|
cnd_broadcast; cnd_destroy; cnd_init; cnd_signal; cnd_timedwait; cnd_wait;
|
|
tss_create; tss_delete; tss_get; tss_set;
|
|
|
|
pthread_cond_clockwait;
|
|
|
|
pthread_mutexattr_getrobust; pthread_mutexattr_getrobust_np;
|
|
pthread_mutexattr_setrobust; pthread_mutexattr_setrobust_np;
|
|
|
|
pthread_mutex_consistent; pthread_mutex_consistent_np;
|
|
pthread_mutex_clocklock;
|
|
|
|
pthread_rwlock_clockrdlock; pthread_rwlock_clockwrlock;
|
|
|
|
pthread_tryjoin_np; pthread_timedjoin_np; pthread_clockjoin_np;
|
|
}
|
|
|
|
GLIBC_PRIVATE {
|
|
__shm_directory;
|
|
__pthread_threads;
|
|
|
|
__cthread_detach;
|
|
__cthread_fork;
|
|
__cthread_keycreate;
|
|
__cthread_getspecific;
|
|
__cthread_setspecific;
|
|
__pthread_getspecific;
|
|
__pthread_setspecific;
|
|
__pthread_getattr_np;
|
|
__pthread_attr_getstack;
|
|
__pthread_mutex_init;
|
|
__pthread_mutex_destroy;
|
|
__pthread_mutex_timedlock;
|
|
__pthread_enable_asynccancel;
|
|
__pthread_disable_asynccancel;
|
|
|
|
_pthread_mutex_lock; _pthread_mutex_trylock; _pthread_mutex_unlock;
|
|
_pthread_rwlock_destroy; _pthread_rwlock_init;
|
|
}
|
|
}
|