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

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

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