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

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

int __libc_send(int a, const void * b, size_t c, int flags);
int __libc_send(int a, const void * b, size_t c, int flags) {
  unsigned long args[] = { a, (long) b, c, flags };
  return socketcall(SYS_SEND, args);
}

int send(int a, const void * b, size_t c, int flags)
  __attribute__ ((weak, alias("__libc_send")));