summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/dietlibc/lib/recvfrom.c
blob: a07afe7ad906fd79c83126e30490d35a87c2b741 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include <linux/net.h>

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

int recvfrom(int a, const void * b, size_t c, int flags, void *to, void *tolen) {
#ifdef __i386__
  return socketcall(SYS_RECVFROM, (long*)&a);
#else
  unsigned long args[] = { a, (long) b, c, flags, (long) to, (long) tolen };
  return socketcall(SYS_RECVFROM, args);
#endif
}