mirror of https://git.musl-libc.org/git/musl
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
318 B
13 lines
318 B
#include <sys/msg.h>
|
|
#include "syscall.h"
|
|
#include "ipc.h"
|
|
#include "libc.h"
|
|
|
|
ssize_t msgrcv(int q, void *m, size_t len, long type, int flag)
|
|
{
|
|
#ifdef SYS_msgrcv
|
|
return syscall_cp(SYS_msgrcv, q, m, len, type, flag);
|
|
#else
|
|
return syscall_cp(SYS_ipc, IPCOP_msgrcv, q, len, flag, ((long[]){ (long)m, type }));
|
|
#endif
|
|
}
|
|
|