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