• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * This file is auto-generated. Modifications will be lost.
3  *
4  * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5  * for more information.
6  */
7 #ifndef _UAPI_LINUX_NET_H
8 #define _UAPI_LINUX_NET_H
9 #include <linux/socket.h>
10 #include <asm/socket.h>
11 #define NPROTO AF_MAX
12 #define SYS_SOCKET 1
13 #define SYS_BIND 2
14 #define SYS_CONNECT 3
15 #define SYS_LISTEN 4
16 #define SYS_ACCEPT 5
17 #define SYS_GETSOCKNAME 6
18 #define SYS_GETPEERNAME 7
19 #define SYS_SOCKETPAIR 8
20 #define SYS_SEND 9
21 #define SYS_RECV 10
22 #define SYS_SENDTO 11
23 #define SYS_RECVFROM 12
24 #define SYS_SHUTDOWN 13
25 #define SYS_SETSOCKOPT 14
26 #define SYS_GETSOCKOPT 15
27 #define SYS_SENDMSG 16
28 #define SYS_RECVMSG 17
29 #define SYS_ACCEPT4 18
30 #define SYS_RECVMMSG 19
31 #define SYS_SENDMMSG 20
32 typedef enum {
33   SS_FREE = 0,
34   SS_UNCONNECTED,
35   SS_CONNECTING,
36   SS_CONNECTED,
37   SS_DISCONNECTING
38 } socket_state;
39 #define __SO_ACCEPTCON (1 << 16)
40 #endif
41