about summary refs log tree commit diff
path: root/nptl/tst-sem12.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/tst-sem12.c')
-rw-r--r--nptl/tst-sem12.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/nptl/tst-sem12.c b/nptl/tst-sem12.c
new file mode 100644
index 0000000000..71d02b70e9
--- /dev/null
+++ b/nptl/tst-sem12.c
@@ -0,0 +1,14 @@
+#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"