mirror of
https://sourceware.org/git/glibc.git
synced 2025-09-01 05:02:03 +03:00
2006-01-08 Jakub Jelinek <jakub@redhat.com>
* sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h (pthread_mutex_t): Don't give the union a name because it changes the mangled name. Instead name the struct for __data. * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h (pthread_mutex_t): Likewise. * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h (pthread_mutex_t): Likewise.
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/* Machine-specific pthread type layouts. Alpha version.
|
/* Machine-specific pthread type layouts. Alpha version.
|
||||||
Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
|
Copyright (C) 2003, 2004, 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
|
||||||
@@ -45,9 +45,9 @@ typedef union
|
|||||||
|
|
||||||
/* Data structures for mutex handling. The structure of the attribute
|
/* Data structures for mutex handling. The structure of the attribute
|
||||||
type is deliberately not exposed. */
|
type is deliberately not exposed. */
|
||||||
typedef union __pthread_mutex_u
|
typedef union
|
||||||
{
|
{
|
||||||
struct
|
struct __pthread_mutex_s
|
||||||
{
|
{
|
||||||
int __lock;
|
int __lock;
|
||||||
unsigned int __count;
|
unsigned int __count;
|
||||||
@@ -57,8 +57,8 @@ typedef union __pthread_mutex_u
|
|||||||
binary compatibility. */
|
binary compatibility. */
|
||||||
int __kind;
|
int __kind;
|
||||||
int __spins;
|
int __spins;
|
||||||
union __pthread_mutex_u *__next;
|
struct __pthread_mutex_s *__next;
|
||||||
union __pthread_mutex_u *__prev;
|
struct __pthread_mutex_s *__prev;
|
||||||
#define __PTHREAD_MUTEX_HAVE_PREV 1
|
#define __PTHREAD_MUTEX_HAVE_PREV 1
|
||||||
} __data;
|
} __data;
|
||||||
char __size[__SIZEOF_PTHREAD_MUTEX_T];
|
char __size[__SIZEOF_PTHREAD_MUTEX_T];
|
||||||
|
@@ -46,9 +46,9 @@ typedef union
|
|||||||
|
|
||||||
/* Data structures for mutex handling. The structure of the attribute
|
/* Data structures for mutex handling. The structure of the attribute
|
||||||
type is not exposed on purpose. */
|
type is not exposed on purpose. */
|
||||||
typedef union __pthread_mutex_u
|
typedef union
|
||||||
{
|
{
|
||||||
struct
|
struct __pthread_mutex_s
|
||||||
{
|
{
|
||||||
int __lock;
|
int __lock;
|
||||||
unsigned int __count;
|
unsigned int __count;
|
||||||
@@ -60,7 +60,7 @@ typedef union __pthread_mutex_u
|
|||||||
__extension__ union
|
__extension__ union
|
||||||
{
|
{
|
||||||
int __spins;
|
int __spins;
|
||||||
union __pthread_mutex_u *__next;
|
struct __pthread_mutex_s *__next;
|
||||||
};
|
};
|
||||||
} __data;
|
} __data;
|
||||||
char __size[__SIZEOF_PTHREAD_MUTEX_T];
|
char __size[__SIZEOF_PTHREAD_MUTEX_T];
|
||||||
|
@@ -60,9 +60,9 @@ typedef union
|
|||||||
|
|
||||||
/* Data structures for mutex handling. The structure of the attribute
|
/* Data structures for mutex handling. The structure of the attribute
|
||||||
type is deliberately not exposed. */
|
type is deliberately not exposed. */
|
||||||
typedef union __pthread_mutex_u
|
typedef union
|
||||||
{
|
{
|
||||||
struct
|
struct __pthread_mutex_s
|
||||||
{
|
{
|
||||||
int __lock;
|
int __lock;
|
||||||
unsigned int __count;
|
unsigned int __count;
|
||||||
@@ -75,15 +75,15 @@ typedef union __pthread_mutex_u
|
|||||||
int __kind;
|
int __kind;
|
||||||
#if __WORDSIZE == 64
|
#if __WORDSIZE == 64
|
||||||
int __spins;
|
int __spins;
|
||||||
union __pthread_mutex_u *__next;
|
struct __pthread_mutex_s *__next;
|
||||||
union __pthread_mutex_u *__prev;
|
struct __pthread_mutex_s *__prev;
|
||||||
# define __PTHREAD_MUTEX_HAVE_PREV 1
|
# define __PTHREAD_MUTEX_HAVE_PREV 1
|
||||||
#else
|
#else
|
||||||
unsigned int __nusers;
|
unsigned int __nusers;
|
||||||
__extension__ union
|
__extension__ union
|
||||||
{
|
{
|
||||||
int __spins;
|
int __spins;
|
||||||
union __pthread_mutex_u *__next;
|
struct __pthread_mutex_s *__next;
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
} __data;
|
} __data;
|
||||||
|
Reference in New Issue
Block a user