1 /**************************************************************************** 2 **************************************************************************** 3 *** 4 *** This header was automatically generated from a Linux kernel header 5 *** of the same name, to make information necessary for userspace to 6 *** call into the kernel available to libc. It contains only constants, 7 *** structures, and macros generated from the original header, and thus, 8 *** contains no copyrightable information. 9 *** 10 *** To edit the content of this header, modify the corresponding 11 *** source file (e.g. under external/kernel-headers/original/) then 12 *** run bionic/libc/kernel/tools/update_all.py 13 *** 14 *** Any manual change here will be lost the next time this script will 15 *** be run. You've been warned! 16 *** 17 **************************************************************************** 18 ****************************************************************************/ 19 #ifndef _UAPI_LINUX_NET_H 20 #define _UAPI_LINUX_NET_H 21 #include <linux/socket.h> 22 #include <asm/socket.h> 23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 24 #define NPROTO AF_MAX 25 #define SYS_SOCKET 1 26 #define SYS_BIND 2 27 #define SYS_CONNECT 3 28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 29 #define SYS_LISTEN 4 30 #define SYS_ACCEPT 5 31 #define SYS_GETSOCKNAME 6 32 #define SYS_GETPEERNAME 7 33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 34 #define SYS_SOCKETPAIR 8 35 #define SYS_SEND 9 36 #define SYS_RECV 10 37 #define SYS_SENDTO 11 38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 39 #define SYS_RECVFROM 12 40 #define SYS_SHUTDOWN 13 41 #define SYS_SETSOCKOPT 14 42 #define SYS_GETSOCKOPT 15 43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 44 #define SYS_SENDMSG 16 45 #define SYS_RECVMSG 17 46 #define SYS_ACCEPT4 18 47 #define SYS_RECVMMSG 19 48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 49 #define SYS_SENDMMSG 20 50 typedef enum { 51 SS_FREE = 0, 52 SS_UNCONNECTED, 53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 54 SS_CONNECTING, 55 SS_CONNECTED, 56 SS_DISCONNECTING 57 } socket_state; 58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 59 #define __SO_ACCEPTCON (1 << 16) 60 #endif 61