chiark / gitweb /
[PATCH] added vsyslog support to klibc.
[elogind.git] / klibc / klibc / socketcommon.h
1 /*
2  * socketcommon.h
3  *
4  * Common header file for socketcall stubs
5  */
6
7 #define __IN_SYS_COMMON
8 #include <errno.h>
9 #include <signal.h>
10 #include <sys/types.h>
11 #include <sys/syscall.h>
12 #include <sys/stat.h>
13 #include <sys/time.h>
14 #include <sys/socket.h>
15 #include <linux/net.h>
16
17 /*
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.
21  */
22
23 #ifdef __NR_socketcall
24 static inline _syscall2(int,socketcall,int,call,unsigned long *,args);
25 #endif