aboutsummaryrefslogtreecommitdiff
path: root/fixincludes/tests/base/pthread.h
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2006-09-27 04:25:34 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2006-09-27 04:25:34 +0000
commit2b655a0a4fd99d2221a05f5cb96740e78e4efdeb (patch)
tree42a64537c4a224b5d30ca4f1b8fd71c927c48937 /fixincludes/tests/base/pthread.h
parent66c975fe00d4b8ba935509358a02aee9d5038627 (diff)
downloadgcc-2b655a0a4fd99d2221a05f5cb96740e78e4efdeb.zip
gcc-2b655a0a4fd99d2221a05f5cb96740e78e4efdeb.tar.gz
gcc-2b655a0a4fd99d2221a05f5cb96740e78e4efdeb.tar.bz2
inclhack.def (solaris_mutex_init_2): Remove test for PTHREAD_RWLOCK_INITIALIZER.
* inclhack.def (solaris_mutex_init_2): Remove test for PTHREAD_RWLOCK_INITIALIZER. (solaris_rwlock_init_1): New. * tests/base/pthread.h: Update. * inclhack.def (solaris_once_init_1): New. * tests/base/pthread.h: Adjust for new fix. * fixincl.x: Regenerate. From-SVN: r117244
Diffstat (limited to 'fixincludes/tests/base/pthread.h')
-rw-r--r--fixincludes/tests/base/pthread.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/fixincludes/tests/base/pthread.h b/fixincludes/tests/base/pthread.h
index 9998f66..8b7f97b 100644
--- a/fixincludes/tests/base/pthread.h
+++ b/fixincludes/tests/base/pthread.h
@@ -94,10 +94,25 @@ extern int __sigsetjmp (struct __jmp_buf_tag *__env, int __savemask);
#else
#define PTHREAD_COND_INITIALIZER {{{0}, 0}, {0}} /* DEFAULTCV */
#endif
-#define PTHREAD_RWLOCK_INITIALIZER {0, 0, 0, {0, 0, 0}, {0, 0}, {0, 0}}
#endif /* SOLARIS_MUTEX_INIT_2_CHECK */
+#if defined( SOLARIS_RWLOCK_INIT_1_CHECK )
+#ident "@(#)pthread.h 1.26 98/04/12 SMI"
+#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)
+#define PTHREAD_RWLOCK_INITIALIZER {0, 0, 0, {0, 0, 0}, {0, 0}, {0, 0}}
+#else
+#define PTHREAD_RWLOCK_INITIALIZER {0, 0, 0, {{0}, {0}, {0}}, {{0}, {0}}, {{0}, {0}}}
+#endif
+#endif /* SOLARIS_RWLOCK_INIT_1_CHECK */
+
+
+#if defined( SOLARIS_ONCE_INIT_1_CHECK )
+#pragma ident "@(#)pthread.h 1.37 04/09/28 SMI"
+#define PTHREAD_ONCE_INIT {{0, 0, 0, PTHREAD_ONCE_NOTDONE}}
+#endif /* SOLARIS_ONCE_INIT_1_CHECK */
+
+
#if defined( THREAD_KEYWORD_CHECK )
extern int pthread_create (pthread_t *__restrict __thr,
extern int pthread_kill (pthread_t __thr, int __signo);