summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/dietlibc/lib/msgrcv.c
blob: b4ae9cc6cc04ee4de803ae29389da437c7b653d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/msg.h>
#include <asm/ipc.h>

extern int __ipc();

int msgrcv(int msqid, void *msgp, size_t msgsz, long int msgtyp, int msgflg) {
  struct ipc_kludge tmp;
  tmp.msgp = msgp;
  tmp.msgtyp = msgtyp;
  return __ipc(MSGRCV,msqid, msgsz, msgflg, &tmp);
}