From e882756311c7b06e59fcc8e582f03852b7dcfd30 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Thu, 17 Feb 2011 17:16:20 -0500 Subject: reorganize pthread data structures and move the definitions to alltypes.h this allows sys/types.h to provide the pthread types, as required by POSIX. this design also facilitates forcing ABI-compatible sizes in the arch-specific alltypes.h, while eliminating the need for developers changing the internals of the pthread types to poke around with arch-specific headers they may not be able to test. --- include/sys/types.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'include/sys') diff --git a/include/sys/types.h b/include/sys/types.h index 8be19e6b..7a126b07 100644 --- a/include/sys/types.h +++ b/include/sys/types.h @@ -42,6 +42,20 @@ extern "C" { #define __NEED_suseconds_t #define __NEED_blksize_t +#define __NEED_pthread_t +#define __NEED_pthread_attr_t +#define __NEED_pthread_mutexattr_t +#define __NEED_pthread_condattr_t +#define __NEED_pthread_rwlockattr_t +#define __NEED_pthread_barrierattr_t +#define __NEED_pthread_mutex_t +#define __NEED_pthread_cond_t +#define __NEED_pthread_rwlock_t +#define __NEED_pthread_barrier_t +#define __NEED_pthread_spinlock_t +#define __NEED_pthread_key_t +#define __NEED_pthread_once_t + #include #ifdef _GNU_SOURCE -- cgit v1.2.1