Back to index

glibc  2.9
tst-sem12.c
Go to the documentation of this file.
00001 #include <time.h>
00002 #include <sys/time.h>
00003 
00004 
00005 #define PREPARE \
00006   struct timespec ts; \
00007   struct timeval tv; \
00008   gettimeofday (&tv, NULL); \
00009   TIMEVAL_TO_TIMESPEC (&tv, &ts); \
00010   ts.tv_sec += 60;
00011 
00012 #define SEM_WAIT(s) sem_timedwait (s, &ts)
00013 
00014 #include "tst-sem11.c"