projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
add __sigsetjmp ABI-compat alias for sigsetjmp
[oweals/musl.git]
/
src
/
ipc
/
msgrcv.c
1
#include <sys/msg.h>
2
#include "syscall.h"
3
#include "ipc.h"
4
#include "libc.h"
5
6
ssize_t msgrcv(int q, void *m, size_t len, long type, int flag)
7
{
8
#ifdef SYS_msgrcv
9
return syscall_cp(SYS_msgrcv, q, m, len, type, flag);
10
#else
11
return syscall_cp(SYS_ipc, IPCOP_msgrcv, q, len, flag, ((long[]){ (long)m, type }));
12
#endif
13
}