summaryrefslogtreecommitdiff
path: root/nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2005-12-27 15:42:55 +0000
committerJakub Jelinek <jakub@redhat.com>2005-12-27 15:42:55 +0000
commitef35bd89ffe1e107616b49a276a93e208344f93d (patch)
treeea20dd9bdb4a1a0289a1241fbb9a2771b5b3b89a /nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
parent64cd3e83c9993f3c1a3c24ea3030a22ccf35e12d (diff)
iMerge some more.
Diffstat (limited to 'nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h')
-rw-r--r--nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h17
1 files changed, 13 insertions, 4 deletions
diff --git a/nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h b/nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
index 3c5a289445..0f4691025e 100644
--- a/nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
+++ b/nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
@@ -1,5 +1,5 @@
/* Machine-specific pthread type layouts. SPARC version.
- Copyright (C) 2003, 2004 Free Software Foundation, Inc.
+ Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Jakub Jelinek <jakub@redhat.com>, 2003.
@@ -60,7 +60,7 @@ typedef union
/* Data structures for mutex handling. The structure of the attribute
type is deliberately not exposed. */
-typedef union
+typedef union __pthread_mutex_u
{
struct
{
@@ -73,10 +73,19 @@ typedef union
/* KIND must stay at this position in the structure to maintain
binary compatibility. */
int __kind;
-#if __WORDSIZE != 64
+#if __WORDSIZE == 64
+ int __spins;
+ union __pthread_mutex_u *__next;
+ union __pthread_mutex_u *__prev;
+# define __PTHREAD_MUTEX_HAVE_PREV 1
+#else
unsigned int __nusers;
+ union
+ {
+ int __spins;
+ union __pthread_mutex_u *__next;
+ };
#endif
- int __spins;
} __data;
char __size[__SIZEOF_PTHREAD_MUTEX_T];
long int __align;