mirror of
				https://sourceware.org/git/glibc.git
				synced 2025-10-31 22:10:34 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			260 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			260 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #include <time.h>
 | |
| #include <sys/time.h>
 | |
| 
 | |
| 
 | |
| #define PREPARE \
 | |
|   struct timespec ts; \
 | |
|   struct timeval tv; \
 | |
|   gettimeofday (&tv, NULL); \
 | |
|   TIMEVAL_TO_TIMESPEC (&tv, &ts); \
 | |
|   ts.tv_sec += 60;
 | |
| 
 | |
| #define SEM_WAIT(s) sem_timedwait (s, &ts)
 | |
| 
 | |
| #include "tst-sem11.c"
 |