summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/msgrcv.c
blob: 5c1e387d1439880a1a51d5b3242c86e4ea6fa7af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/msg.h>

#if __STDC__
int msgrcv(int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg)
#else
int msgrcv(msqid, msgp, msgsz, msgtyp, msgflg)
	int msqid;
	void *msgp;
	size_t msgsz;
	long msgtyp;
	int msgflg;
#endif
{
	return (msgsys(3, msqid, msgp, msgsz, msgtyp, msgflg));
}
OpenPOWER on IntegriCloud