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
rewrite core of the glob implementation for correctness & optimization
[musl.git]
/
src
/
ipc
/
semtimedop.c
blob
b0c4cf9f82a79cd8b532c19246d7b315fac91b3e
1
#define _GNU_SOURCE
2
#include <sys/sem.h>
3
#include
"syscall.h"
4
#include
"ipc.h"
5
6
int
semtimedop
(
int
id
,
struct
sembuf
*
buf
,
size_t
n
,
const struct
timespec
*
ts
)
7
{
8
#ifdef SYS_semtimedop
9
return
syscall
(
SYS_semtimedop
,
id
,
buf
,
n
,
ts
);
10
#else
11
return
syscall
(
SYS_ipc
,
IPCOP_semtimedop
,
id
,
n
,
0
,
buf
,
ts
);
12
#endif
13
}