[BZ #2167] * sysdeps/unix/sysv/linux/mips/bits/pthreadtypes.h (pthread_mutex_t): Follow changes for other archs. Based on patch by Jim Gifford <patches@jg555.com>.

2006-01-18  Andreas Jaeger  <aj@suse.de>

	[BZ #838]
	* sysdeps/unix/sysv/linux/mips/bits/pthreadtypes.h
	(pthread_mutex_t): Follow changes for other archs.  Based on patch
	by Jim Gifford <patches@jg555.com>.
This commit is contained in:
Andreas Jaeger 2006-01-18 08:41:47 +00:00
parent f0cf0902ea
commit 5f9f21e87c
2 changed files with 21 additions and 5 deletions

View file

@ -1,3 +1,10 @@
2006-01-18 Andreas Jaeger <aj@suse.de>
[BZ #838]
* sysdeps/unix/sysv/linux/mips/bits/pthreadtypes.h
(pthread_mutex_t): Follow changes for other archs. Based on patch
by Jim Gifford <patches@jg555.com>.
2006-01-13 Richard Henderson <rth@redhat.com> 2006-01-13 Richard Henderson <rth@redhat.com>
* sysdeps/alpha/tls.h (tcbhead_t): Rename member to __private. * sysdeps/alpha/tls.h (tcbhead_t): Rename member to __private.

View file

@ -1,5 +1,5 @@
/* Machine-specific pthread type layouts. MIPS version. /* Machine-specific pthread type layouts. MIPS version.
Copyright (C) 2005 Free Software Foundation, Inc. Copyright (C) 2005, 2006 Free Software Foundation, Inc.
This file is part of the GNU C Library. This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or The GNU C Library is free software; you can redistribute it and/or
@ -59,7 +59,7 @@ typedef union
type is deliberately not exposed. */ type is deliberately not exposed. */
typedef union typedef union
{ {
struct struct __pthread_mutex_s
{ {
int __lock; int __lock;
unsigned int __count; unsigned int __count;
@ -70,10 +70,19 @@ typedef union
/* KIND must stay at this position in the structure to maintain /* KIND must stay at this position in the structure to maintain
binary compatibility. */ binary compatibility. */
int __kind; int __kind;
#if _MIPS_SIM != _ABI64 #if _MIPS_SIM == _ABI64
unsigned int __nusers;
#endif
int __spins; int __spins;
struct __pthread_mutex_s *__next;
struct __pthread_mutex_s *__prev;
# define __PTHREAD_MUTEX_HAVE_PREV 1
#else
unsigned int __nusers;
__extension__ union
{
int __spins;
struct __pthread_mutex_s *__next;
};
#endif
} __data; } __data;
char __size[__SIZEOF_PTHREAD_MUTEX_T]; char __size[__SIZEOF_PTHREAD_MUTEX_T];
long int __align; long int __align;