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
fix erroneous pthread_cond_wait mutex waiter count logic due to typo
[musl.git]
/
src
/
ipc
/
msgsnd.c
blob
99bb17e94acab0e1c9afd07f452d1ca88b4dff16
1
#include <sys/msg.h>
2
#include
"syscall.h"
3
#include
"ipc.h"
4
5
int
msgsnd
(
int
q
,
const void
*
m
,
size_t
len
,
int
flag
)
6
{
7
#ifndef SYS_ipc
8
return
syscall_cp
(
SYS_msgsnd
,
q
,
m
,
len
,
flag
);
9
#else
10
return
syscall_cp
(
SYS_ipc
,
IPCOP_msgsnd
,
q
,
len
,
flag
,
m
);
11
#endif
12
}