glibc/sysdeps
Adhemerval Zanella 7df8af43ad nptl: Add struct_rwlock.h
This patch adds a new generic __pthread_rwlock_arch_t definition meant
to be used by new ports.  Its layout mimics the current usage on some
64 bits ports and it allows some ports to use the generic definition.
The arch __pthread_rwlock_arch_t definition is moved from
pthreadtypes-arch.h to another arch-specific header (struct_rwlock.h).

Also the static intialization macro for pthread_rwlock_t is set to use
an arch defined on (__PTHREAD_RWLOCK_INITIALIZER) which simplifies its
implementation.

The default pthread_rwlock_t layout differs from current ports with:

  1. Internal layout is the same for 32 bits and 64 bits.

  2. Internal flag is an unsigned short so it should not required
     additional padding to align for word boundary (if it is the case
     for the ABI).

Checked with a build on affected abis.

Change-Id: I776a6a986c23199929d28a3dcd30272db21cd1d0
2019-11-26 13:53:36 +00:00
..
aarch64 nptl: Add struct_rwlock.h 2019-11-26 13:53:36 +00:00
alpha nptl: Add struct_rwlock.h 2019-11-26 13:53:36 +00:00
arm nptl: Add struct_rwlock.h 2019-11-26 13:53:36 +00:00
csky nptl: Add struct_rwlock.h 2019-11-26 13:53:36 +00:00
generic Enable inlining issignalingf within glibc 2019-11-21 09:39:48 -06:00
gnu Add TCP_TX_DELAY from Linux 5.3 to netinet/tcp.h. 2019-09-27 13:37:36 +00:00
hppa nptl: Add struct_rwlock.h 2019-11-26 13:53:36 +00:00
htl time: Introduce function to check correctness of nanoseconds value 2019-10-27 21:49:25 +01:00
hurd Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
i386 nptl: Add tests for internal pthread_rwlock_t offsets 2019-11-26 13:53:36 +00:00
ia64 nptl: Add struct_rwlock.h 2019-11-26 13:53:36 +00:00
ieee754 ldbl-128ibm-compat: Add wide character scanning functions 2019-11-22 18:13:20 -03:00
init_array Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
m68k nptl: Add struct_rwlock.h 2019-11-26 13:53:36 +00:00
mach hurd: Suppress GCC 10 -Warray-bounds warning in init-first.c [BZ #25097] 2019-11-16 15:40:59 +01:00
microblaze nptl: Add struct_rwlock.h 2019-11-26 13:53:36 +00:00
mips nptl: Add struct_rwlock.h 2019-11-26 13:53:36 +00:00
nios2 nptl: Add struct_rwlock.h 2019-11-26 13:53:36 +00:00
nptl nptl: Add struct_rwlock.h 2019-11-26 13:53:36 +00:00
posix sysdeps/posix/getaddrinfo: Return early on invalid address family 2019-11-26 10:19:33 +01:00
powerpc nptl: Add struct_rwlock.h 2019-11-26 13:53:36 +00:00
pthread Change most internal uses of __gettimeofday to __clock_gettime. 2019-10-30 17:04:10 -03:00
riscv nptl: Add struct_rwlock.h 2019-11-26 13:53:36 +00:00
s390 nptl: Add struct_rwlock.h 2019-11-26 13:53:36 +00:00
sh nptl: Add struct_rwlock.h 2019-11-26 13:53:36 +00:00
sparc nptl: Add struct_rwlock.h 2019-11-26 13:53:36 +00:00
unix nptl: Add struct_rwlock.h 2019-11-26 13:53:36 +00:00
wordsize-32 Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
wordsize-64 Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
x86 nptl: Add struct_rwlock.h 2019-11-26 13:53:36 +00:00
x86_64 nptl: Add tests for internal pthread_rwlock_t offsets 2019-11-26 13:53:36 +00:00