• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * This header was generated from the Linux kernel headers by update_headers.py,
3  * to provide necessary information from kernel to userspace, such as constants,
4  * structures, and macros, and thus, contains no copyrightable information.
5  */
6 #ifndef _UAPI_LINUX_NET_H
7 #define _UAPI_LINUX_NET_H
8 #include <linux/socket.h>
9 #include <asm/socket.h>
10 #define NPROTO		AF_MAX
11 #define SYS_SOCKET	1
12 #define SYS_BIND	2
13 #define SYS_CONNECT	3
14 #define SYS_LISTEN	4
15 #define SYS_ACCEPT	5
16 #define SYS_GETSOCKNAME	6
17 #define SYS_GETPEERNAME	7
18 #define SYS_SOCKETPAIR	8
19 #define SYS_SEND	9
20 #define SYS_RECV	10
21 #define SYS_SENDTO	11
22 #define SYS_RECVFROM	12
23 #define SYS_SHUTDOWN	13
24 #define SYS_SETSOCKOPT	14
25 #define SYS_GETSOCKOPT	15
26 #define SYS_SENDMSG	16
27 #define SYS_RECVMSG	17
28 #define SYS_ACCEPT4	18
29 #define SYS_RECVMMSG	19
30 #define SYS_SENDMMSG	20
31 typedef enum {
32 	SS_FREE = 0,
33 	SS_UNCONNECTED,
34 	SS_CONNECTING,
35 	SS_CONNECTED,
36 	SS_DISCONNECTING
37 } socket_state;
38 #define __SO_ACCEPTCON	(1 << 16)
39 #endif
40