Gitiles
Code Review
Sign In
192.168.1.100
/
T106_DC
/
0c0b93f77032e6c79185e933b95c6f45d62eca3f
/
.
/
ap
/
libc
/
glibc
/
glibc-2.23
/
nptl
/
tst-sem12.c
blob: 71d02b70e95c1e4c6da57d3df94be3d6ef11467e [
file
] [
log
] [
blame
]
#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"