blob: 8c0a5755772b70a22b7f6de9ab3db101e795ade4 (
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 getsockopt(int a, int b, int c, void *d, int e) {
#ifdef __i386__
return socketcall(SYS_GETSOCKOPT, (long*)&a);
#else
unsigned long args[] = { a, b, c, (long)d, e };
return socketcall(SYS_GETSOCKOPT, args);
#endif
}
|