msgrcv.c\ipc\src - musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/ipc/msgrcv.c
blob: ed4a448a7e5e4f2993f99649345b0850529f9563 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#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
}
generated by cgit v1.2.1 (git 2.18.0) at 2025年10月05日 05:34:21 +0000

AltStyle によって変換されたページ (->オリジナル) /