summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/dietlibc/lib/recvmsg.c
blob: d843ce9c0bd50ee5d631a7242deac8bce3252b3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <sys/socket.h>
#include <linuxnet.h>

extern int socketcall(int callno,long* args);

int __libc_recvmsg(int a, struct msghdr* msg, int flags);
int __libc_recvmsg(int a, struct msghdr* msg, int flags) {
  unsigned long args[] = { a, (long) msg, flags };
  return socketcall(SYS_RECVMSG, args);
}

int recvmsg(int a, struct msghdr *msg, int flags)
 __attribute__ ((weak,alias("__libc_recvmsg"))) ;