122851890Sopenharmony_ci/**************************************************************************** 222851890Sopenharmony_ci **************************************************************************** 322851890Sopenharmony_ci *** 422851890Sopenharmony_ci *** This header was automatically generated from a Linux kernel header 522851890Sopenharmony_ci *** of the same name, to make information necessary for userspace to 622851890Sopenharmony_ci *** call into the kernel available to libc. It contains only constants, 722851890Sopenharmony_ci *** structures, and macros generated from the original header, and thus, 822851890Sopenharmony_ci *** contains no copyrightable information. 922851890Sopenharmony_ci *** 1022851890Sopenharmony_ci *** To edit the content of this header, modify the corresponding 1122851890Sopenharmony_ci *** source file (e.g. under external/kernel-headers/original/) then 1222851890Sopenharmony_ci *** run bionic/libc/kernel/tools/update_all.py 1322851890Sopenharmony_ci *** 1422851890Sopenharmony_ci *** Any manual change here will be lost the next time this script will 1522851890Sopenharmony_ci *** be run. You've been warned! 1622851890Sopenharmony_ci *** 1722851890Sopenharmony_ci **************************************************************************** 1822851890Sopenharmony_ci ****************************************************************************/ 1922851890Sopenharmony_ci#ifndef _UAPI_LINUX_NET_H 2022851890Sopenharmony_ci#define _UAPI_LINUX_NET_H 2122851890Sopenharmony_ci#include <linux/socket.h> 2222851890Sopenharmony_ci#include <asm/socket.h> 2322851890Sopenharmony_ci#define NPROTO AF_MAX 2422851890Sopenharmony_ci#define SYS_SOCKET 1 2522851890Sopenharmony_ci#define SYS_BIND 2 2622851890Sopenharmony_ci#define SYS_CONNECT 3 2722851890Sopenharmony_ci#define SYS_LISTEN 4 2822851890Sopenharmony_ci#define SYS_ACCEPT 5 2922851890Sopenharmony_ci#define SYS_GETSOCKNAME 6 3022851890Sopenharmony_ci#define SYS_GETPEERNAME 7 3122851890Sopenharmony_ci#define SYS_SOCKETPAIR 8 3222851890Sopenharmony_ci#define SYS_SEND 9 3322851890Sopenharmony_ci#define SYS_RECV 10 3422851890Sopenharmony_ci#define SYS_SENDTO 11 3522851890Sopenharmony_ci#define SYS_RECVFROM 12 3622851890Sopenharmony_ci#define SYS_SHUTDOWN 13 3722851890Sopenharmony_ci#define SYS_SETSOCKOPT 14 3822851890Sopenharmony_ci#define SYS_GETSOCKOPT 15 3922851890Sopenharmony_ci#define SYS_SENDMSG 16 4022851890Sopenharmony_ci#define SYS_RECVMSG 17 4122851890Sopenharmony_ci#define SYS_ACCEPT4 18 4222851890Sopenharmony_ci#define SYS_RECVMMSG 19 4322851890Sopenharmony_ci#define SYS_SENDMMSG 20 4422851890Sopenharmony_citypedef enum { 4522851890Sopenharmony_ci SS_FREE = 0, 4622851890Sopenharmony_ci SS_UNCONNECTED, 4722851890Sopenharmony_ci SS_CONNECTING, 4822851890Sopenharmony_ci SS_CONNECTED, 4922851890Sopenharmony_ci SS_DISCONNECTING 5022851890Sopenharmony_ci} socket_state; 5122851890Sopenharmony_ci#define __SO_ACCEPTCON (1 << 16) 5222851890Sopenharmony_ci#endif 53