Sign in
cobalt
/
cobalt
/
f9bc0139df6e6eb149345ab9b6ffcc40603fc09f
/
.
/
third_party
/
musl
/
src
/
ipc
/
semop.c
blob: 5f0c7deaf308a38723726139bebc4ad03f3576dd [
file
] [
log
] [
blame
]
#include
<sys/sem.h>
#include
"syscall.h"
#include
"ipc.h"
int
semop
(
int
id
,
struct
sembuf
*
buf
,
size_t
n
)
{
#ifndef
SYS_ipc
return
syscall
(
SYS_semop
,
id
,
buf
,
n
);
#else
return
syscall
(
SYS_ipc
,
IPCOP_semop
,
id
,
n
,
0
,
buf
);
#endif
}