]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix up pthread.h for XPG7.
authorUlrich Drepper <drepper@redhat.com>
Tue, 12 Jan 2010 20:13:04 +0000 (12:13 -0800)
committerUlrich Drepper <drepper@redhat.com>
Tue, 12 Jan 2010 20:13:04 +0000 (12:13 -0800)
ChangeLog
conform/data/time.h-data
nptl/ChangeLog
nptl/sysdeps/pthread/pthread.h

index 6e524cc2e70155fe0d8bac6abe54b2bbbed73a3e..e908e34b9d991eb00c7868613be24eb092b3e239 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2010-01-12  Ulrich Drepper  <drepper@redhat.com>
 
+       * conform/data/time.h-data: Allow sigevent tag.
+
        * posix/sched.h: Define time_t and pid_t for XPG7.
 
 2010-01-12  H.J. Lu  <hongjiu.lu@intel.com>
index c07fe1dc3b5e0ce91388353445db880f12bf3f16..e2ff298ea749c78fb6182f25a3c57c249996c20a 100644 (file)
@@ -97,3 +97,4 @@ allow tv_*
 allow CLOCK_*
 allow TIMER_*
 allow *_t
+allow sigevent
index afa7790ddef2c51dd1b4775c213e6cd1e2edafd5..aa28d8231dcc197023742a571c499aa6914927d9 100644 (file)
@@ -1,3 +1,7 @@
+2010-01-12  Ulrich Drepper  <drepper@redhat.com>
+
+       * sysdeps/pthread/pthread.h: Cleanup.  Fix up for XPG7.
+
 2010-01-08  Ulrich Drepper  <drepper@redhat.com>
 
        * sysdeps/pthread/pthread.h: Fix pthread_mutex_consistent declaration.
index 8a946ffc3abc693ac90936f89c3a8f03a3021291..b84fd5c7a4c81f135e5d2301e25dbdd6aa35529f 100644 (file)
@@ -25,8 +25,6 @@
 #include <sched.h>
 #include <time.h>
 
-#define __need_sigset_t
-#include <signal.h>
 #include <bits/pthreadtypes.h>
 #include <bits/setjmp.h>
 #include <bits/wordsize.h>
@@ -49,7 +47,7 @@ enum
   PTHREAD_MUTEX_RECURSIVE_NP,
   PTHREAD_MUTEX_ERRORCHECK_NP,
   PTHREAD_MUTEX_ADAPTIVE_NP
-#ifdef __USE_UNIX98
+#if defined __USE_UNIX98 || defined __USE_XOPEN2K8
   ,
   PTHREAD_MUTEX_NORMAL = PTHREAD_MUTEX_TIMED_NP,
   PTHREAD_MUTEX_RECURSIVE = PTHREAD_MUTEX_RECURSIVE_NP,
@@ -748,7 +746,6 @@ extern int pthread_mutex_unlock (pthread_mutex_t *__mutex)
      __THROW __nonnull ((1));
 
 
-#ifdef __USE_UNIX98
 /* Get the priority ceiling of MUTEX.  */
 extern int pthread_mutex_getprioceiling (__const pthread_mutex_t *
                                         __restrict __mutex,
@@ -761,7 +758,6 @@ extern int pthread_mutex_setprioceiling (pthread_mutex_t *__restrict __mutex,
                                         int __prioceiling,
                                         int *__restrict __old_ceiling)
      __THROW __nonnull ((1, 3));
-#endif
 
 
 #ifdef __USE_XOPEN2K8
@@ -797,7 +793,7 @@ extern int pthread_mutexattr_setpshared (pthread_mutexattr_t *__attr,
                                         int __pshared)
      __THROW __nonnull ((1));
 
-#ifdef __USE_UNIX98
+#if defined __USE_UNIX98 || defined __USE_XOPEN2K8
 /* Return in *KIND the mutex kind attribute in *ATTR.  */
 extern int pthread_mutexattr_gettype (__const pthread_mutexattr_t *__restrict
                                      __attr, int *__restrict __kind)
@@ -808,6 +804,7 @@ extern int pthread_mutexattr_gettype (__const pthread_mutexattr_t *__restrict
    PTHREAD_MUTEX_DEFAULT).  */
 extern int pthread_mutexattr_settype (pthread_mutexattr_t *__attr, int __kind)
      __THROW __nonnull ((1));
+#endif
 
 /* Return in *PROTOCOL the mutex protocol attribute in *ATTR.  */
 extern int pthread_mutexattr_getprotocol (__const pthread_mutexattr_t *
@@ -831,7 +828,6 @@ extern int pthread_mutexattr_getprioceiling (__const pthread_mutexattr_t *
 extern int pthread_mutexattr_setprioceiling (pthread_mutexattr_t *__attr,
                                             int __prioceiling)
      __THROW __nonnull ((1));
-#endif
 
 #ifdef __USE_XOPEN2K
 /* Get the robustness flag of the mutex attribute ATTR.  */