mirror of
				https://sourceware.org/git/glibc.git
				synced 2025-10-31 22:10:34 +03:00 
			
		
		
		
	This patch new build tests to check for internal fields offsets for internal pthread_rwlock_t definition. Althoug the '__data.__flags' field layout should be preserved due static initializators, the patch also adds tests for the futexes that may be used in a shared memory (although using different libc version in such scenario is not really supported). Checked with a build against all affected ABIs. Change-Id: Iccc103d557de13d17e4a3f59a0cad2f4a640c148
		
			
				
	
	
		
			16 lines
		
	
	
		
			344 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			344 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #if _MIPS_SIM == _ABI64
 | |
| # define __PTHREAD_MUTEX_KIND_OFFSET     16
 | |
| #else
 | |
| # define __PTHREAD_MUTEX_KIND_OFFSET     12
 | |
| #endif
 | |
| 
 | |
| #if _MIPS_SIM == _ABI64
 | |
| # define __PTHREAD_RWLOCK_FLAGS_OFFSET   48
 | |
| #else
 | |
| # if __BYTE_ORDER == __BIG_ENDIAN
 | |
| #  define __PTHREAD_RWLOCK_FLAGS_OFFSET  27
 | |
| # else
 | |
| #  define __PTHREAD_RWLOCK_FLAGS_OFFSET  24
 | |
| # endif
 | |
| #endif
 |