diff options
| author | Austin Foxley <austinf@cetoncorp.com> | 2010-02-16 12:27:18 -0800 | 
|---|---|---|
| committer | Austin Foxley <austinf@cetoncorp.com> | 2010-02-16 12:27:18 -0800 | 
| commit | a032a6587011cbdac8c2f7e11f15dc4e592bbb55 (patch) | |
| tree | b8d8dfc6abf0168e098223c2134a3e4bd7640942 /libpthread/nptl/sysdeps/unix/sysv/linux/mips/bits | |
| parent | 70f1d42b13a741f603472f405299e5d2938aa728 (diff) | |
| download | uClibc-alpine-a032a6587011cbdac8c2f7e11f15dc4e592bbb55.tar.bz2 uClibc-alpine-a032a6587011cbdac8c2f7e11f15dc4e592bbb55.tar.xz | |
mass sync with glibc nptl
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
Diffstat (limited to 'libpthread/nptl/sysdeps/unix/sysv/linux/mips/bits')
| -rw-r--r-- | libpthread/nptl/sysdeps/unix/sysv/linux/mips/bits/pthreadtypes.h | 26 | ||||
| -rw-r--r-- | libpthread/nptl/sysdeps/unix/sysv/linux/mips/bits/semaphore.h | 5 | 
2 files changed, 21 insertions, 10 deletions
| diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/mips/bits/pthreadtypes.h b/libpthread/nptl/sysdeps/unix/sysv/linux/mips/bits/pthreadtypes.h index f112b8a39..166a6c6ae 100644 --- a/libpthread/nptl/sysdeps/unix/sysv/linux/mips/bits/pthreadtypes.h +++ b/libpthread/nptl/sysdeps/unix/sysv/linux/mips/bits/pthreadtypes.h @@ -1,5 +1,5 @@  /* 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.     The GNU C Library is free software; you can redistribute it and/or @@ -20,7 +20,7 @@  #ifndef _BITS_PTHREADTYPES_H  #define _BITS_PTHREADTYPES_H	1 -#include <sgidefs.h> +#include <endian.h>  #if _MIPS_SIM == _ABI64  # define __SIZEOF_PTHREAD_ATTR_T 56 @@ -56,6 +56,7 @@ typedef union    long int __align;  } pthread_attr_t; +  #if _MIPS_SIM == _ABI64  typedef struct __pthread_internal_list  { @@ -69,6 +70,7 @@ typedef struct __pthread_internal_slist  } __pthread_slist_t;  #endif +  /* Data structures for mutex handling.  The structure of the attribute     type is deliberately not exposed.  */  typedef union @@ -87,7 +89,7 @@ typedef union  #if _MIPS_SIM == _ABI64      int __spins;      __pthread_list_t __list; -# define __PTHREAD_MUTEX_HAVE_PREV      1 +# define __PTHREAD_MUTEX_HAVE_PREV	1  #else      unsigned int __nusers;      __extension__ union @@ -157,9 +159,9 @@ typedef union      unsigned int __nr_readers_queued;      unsigned int __nr_writers_queued;      int __writer; -    int __pad1; +    int __shared; +    unsigned long int __pad1;      unsigned long int __pad2; -    unsigned long int __pad3;      /* FLAGS must stay at this position in the structure to maintain         binary compatibility.  */      unsigned int __flags; @@ -173,9 +175,21 @@ typedef union      unsigned int __writer_wakeup;      unsigned int __nr_readers_queued;      unsigned int __nr_writers_queued; +#if __BYTE_ORDER == __BIG_ENDIAN +    unsigned char __pad1; +    unsigned char __pad2; +    unsigned char __shared;      /* FLAGS must stay at this position in the structure to maintain         binary compatibility.  */ -    unsigned int __flags; +    unsigned char __flags; +#else +    /* FLAGS must stay at this position in the structure to maintain +       binary compatibility.  */ +    unsigned char __flags; +    unsigned char __shared; +    unsigned char __pad1; +    unsigned char __pad2; +#endif      int __writer;    } __data;  # endif diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/mips/bits/semaphore.h b/libpthread/nptl/sysdeps/unix/sysv/linux/mips/bits/semaphore.h index c4440f9e9..af43a6048 100644 --- a/libpthread/nptl/sysdeps/unix/sysv/linux/mips/bits/semaphore.h +++ b/libpthread/nptl/sysdeps/unix/sysv/linux/mips/bits/semaphore.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2002, 2005 Free Software Foundation, Inc. +/* Copyright (C) 2002, 2005, 2007 Free Software Foundation, Inc.     This file is part of the GNU C Library.     The GNU C Library is free software; you can redistribute it and/or @@ -29,9 +29,6 @@  /* Value returned if `sem_open' failed.  */  #define SEM_FAILED      ((sem_t *) 0) -/* Maximum value the semaphore can have.  */ -#define SEM_VALUE_MAX   (2147483647) -  typedef union  { | 
