repo.or.cz
/
glibc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
x86: Check the lower byte of EAX of CPUID leaf 2 [BZ #30643]
[glibc.git]
/
nptl
/
tst-sem12.c
blob
71d02b70e95c1e4c6da57d3df94be3d6ef11467e
1
#include <time.h>
2
#include <sys/time.h>
3
4
5
#define PREPARE \
6
struct timespec ts; \
7
struct timeval tv; \
8
gettimeofday (&tv, NULL); \
9
TIMEVAL_TO_TIMESPEC (&tv, &ts); \
10
ts.tv_sec += 60;
11
12
#define SEM_WAIT(s) sem_timedwait (s, &ts)
13
14
#include
"tst-sem11.c"