blob: 01fd61a6c49334b6826b5c58d38a86d658d8c2bf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#include <linux/net.h>
extern int socketcall(int callno,long* args);
int __libc_connect(int a, void * b, int c) {
#ifdef __i386__
return socketcall(SYS_CONNECT, (long*)&a);
#else
unsigned long args[] = { a, (long) b, c };
return socketcall(SYS_CONNECT, args);
#endif
}
int connect(int a, void * b, int c) __attribute__((weak,alias("__libc_connect")));
|