mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-08 17:42:12 +03:00
Add support for XPG7 testing.
The header conformance testing code needed extending for XPG7. This exposed a few bugs in the headers. There are more changes to come.
This commit is contained in:
@@ -25,6 +25,10 @@ macro PTHREAD_MUTEX_INITIALIZER
|
||||
constant PTHREAD_MUTEX_RECURSIVE
|
||||
macro PTHREAD_RWLOCK_INITIALIZER
|
||||
# endif
|
||||
# if defined XOPEN2K8 || defined POSIX2008
|
||||
constant PTHREAD_MUTEX_ROBUST
|
||||
constant PTHREAD_MUTEX_STALLED
|
||||
# endif
|
||||
|
||||
type pthread_attr_t
|
||||
type pthread_barrier_t
|
||||
@@ -90,7 +94,7 @@ function int pthread_create (pthread_t*, const pthread_attr_t*, void *(*) (void*
|
||||
function int pthread_detach (pthread_t)
|
||||
function int pthread_equal (pthread_t, pthread_t)
|
||||
function void pthread_exit (void*)
|
||||
# ifndef POSIX
|
||||
# if !defined POSIX && !defined POSIX2008
|
||||
function int pthread_getconcurrency (void)
|
||||
# endif
|
||||
function int pthread_getcpuclockid (pthread_t, clockid_t*)
|
||||
@@ -135,12 +139,12 @@ function int pthread_rwlockattr_setpshared (pthread_rwlockattr_t*, int)
|
||||
function pthread_t pthread_self (void)
|
||||
function int pthread_setcancelstate (int, int*)
|
||||
function int pthread_setcanceltype (int, int*)
|
||||
# ifndef POSIX
|
||||
# if !defined POSIX && !defined POSIX2008
|
||||
function int pthread_setconcurrency (int)
|
||||
# endif
|
||||
function int pthread_setschedparam (pthread_t, int, const struct sched_param*)
|
||||
function int pthread_setspecific (pthread_key_t, const void*)
|
||||
#ifndef XOPEN2K
|
||||
#if !defined XOPEN2K && !defined XOPEN2K8 && !defined POSIX2008
|
||||
function int pthread_sigmask (int, const sigset_t*, sigset_t*)
|
||||
#endif
|
||||
function int pthread_spin_destroy (pthread_spinlock_t*)
|
||||
@@ -149,6 +153,11 @@ function int pthread_spin_lock (pthread_spinlock_t*)
|
||||
function int pthread_spin_trylock (pthread_spinlock_t*)
|
||||
function int pthread_spin_unlock (pthread_spinlock_t*)
|
||||
function void pthread_testcancel (void)
|
||||
# if defined XOPEN2K8 || defined POSIX2008
|
||||
function int pthread_mutex_consistent (pthread_mutex_t *)
|
||||
function int pthread_mutexattr_getrobust (__const pthread_mutexattr_t*, int*)
|
||||
function int pthread_mutexattr_setrobust (pthread_mutexattr_t*, int)
|
||||
# endif
|
||||
|
||||
allow-header sched.h
|
||||
allow-header time.h
|
||||
|
Reference in New Issue
Block a user