summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/dietlibc/lib/connect.c
blob: 642303ef3cbc15b03713831e92ec1d626445f9e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
#include <linuxnet.h>

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

int __libc_connect(int a, void * b, int c);
int __libc_connect(int a, void * b, int c) {
  unsigned long args[] = { a, (long) b, c };
  return socketcall(SYS_CONNECT, args);
}

int connect(int a, void * b, int c) __attribute__((weak,alias("__libc_connect")));