ubuntu-buildroot/output/build/glibc-2.36-81-g4f4d7a13edfd.../nptl/tst-sem12.c

15 lines
260 B
C
Raw Normal View History

2024-04-01 15:19:46 +00:00
#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"