repo.or.cz
/
musl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
syslog: revert LOG_FAC/LOG_FACMASK changes
[musl.git]
/
compat
/
time32
/
semtimedop_time32.c
blob
34ec528199aafc57f76bcfb173a6c315dc82f6df
1
#include
"time32.h"
2
#define _GNU_SOURCE
3
#include <sys/sem.h>
4
#include <time.h>
5
6
int
__semtimedop_time32
(
int
id
,
struct
sembuf
*
buf
,
size_t
n
,
const struct
timespec32
*
ts32
)
7
{
8
return
semtimedop
(
id
,
buf
,
n
, !
ts32
?
0
: (&(
struct
timespec
){
9
.
tv_sec
=
ts32
->
tv_sec
, .
tv_nsec
=
ts32
->
tv_nsec
}));
10
}