4 * Common header file for socketcall stubs
7 #define __IN_SYS_COMMON
10 #include <sys/types.h>
11 #include <sys/syscall.h>
14 #include <sys/socket.h>
15 #include <linux/net.h>
18 * Some architectures have socketcall(), some have real syscalls,
19 * and some have both, but the syscall version is always preferred.
20 * Look for __NR_<call> to probe for the existence of a syscall.
23 #ifdef __NR_socketcall
24 static inline _syscall2(int,socketcall,int,call,unsigned long *,args);