blob: 6c81e317d4b101b9733e9f9d9eb64e8feeba685b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#include <linuxnet.h>
#include <sys/socket.h>
extern int socketcall(int callno,long* args);
int __libc_getsockname(int a, void * b, int c);
int __libc_getsockname(int a, void * b, int c) {
unsigned long args[] = { a, (long) b, c };
return socketcall(SYS_GETSOCKNAME, args);
}
int getsockname(int a, struct sockaddr* b, socklen_t* c) __attribute__((weak,alias("__libc_getsockname")));
|