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 _ASM_SOCKET_H 2022851890Sopenharmony_ci#define _ASM_SOCKET_H 2122851890Sopenharmony_ci#include <linux/posix_types.h> 2222851890Sopenharmony_ci#include <asm/sockios.h> 2322851890Sopenharmony_ci#define SOL_SOCKET 0xffff 2422851890Sopenharmony_ci#define SO_DEBUG 0x0001 2522851890Sopenharmony_ci#define SO_REUSEADDR 0x0004 2622851890Sopenharmony_ci#define SO_KEEPALIVE 0x0008 2722851890Sopenharmony_ci#define SO_DONTROUTE 0x0010 2822851890Sopenharmony_ci#define SO_BROADCAST 0x0020 2922851890Sopenharmony_ci#define SO_LINGER 0x0080 3022851890Sopenharmony_ci#define SO_OOBINLINE 0x0100 3122851890Sopenharmony_ci#define SO_REUSEPORT 0x0200 3222851890Sopenharmony_ci#define SO_TYPE 0x1008 3322851890Sopenharmony_ci#define SO_STYLE SO_TYPE 3422851890Sopenharmony_ci#define SO_ERROR 0x1007 3522851890Sopenharmony_ci#define SO_SNDBUF 0x1001 3622851890Sopenharmony_ci#define SO_RCVBUF 0x1002 3722851890Sopenharmony_ci#define SO_SNDLOWAT 0x1003 3822851890Sopenharmony_ci#define SO_RCVLOWAT 0x1004 3922851890Sopenharmony_ci#define SO_SNDTIMEO_OLD 0x1005 4022851890Sopenharmony_ci#define SO_RCVTIMEO_OLD 0x1006 4122851890Sopenharmony_ci#define SO_ACCEPTCONN 0x1009 4222851890Sopenharmony_ci#define SO_PROTOCOL 0x1028 4322851890Sopenharmony_ci#define SO_DOMAIN 0x1029 4422851890Sopenharmony_ci#define SO_NO_CHECK 11 4522851890Sopenharmony_ci#define SO_PRIORITY 12 4622851890Sopenharmony_ci#define SO_BSDCOMPAT 14 4722851890Sopenharmony_ci#define SO_PASSCRED 17 4822851890Sopenharmony_ci#define SO_PEERCRED 18 4922851890Sopenharmony_ci#define SO_SECURITY_AUTHENTICATION 22 5022851890Sopenharmony_ci#define SO_SECURITY_ENCRYPTION_TRANSPORT 23 5122851890Sopenharmony_ci#define SO_SECURITY_ENCRYPTION_NETWORK 24 5222851890Sopenharmony_ci#define SO_BINDTODEVICE 25 5322851890Sopenharmony_ci#define SO_ATTACH_FILTER 26 5422851890Sopenharmony_ci#define SO_DETACH_FILTER 27 5522851890Sopenharmony_ci#define SO_GET_FILTER SO_ATTACH_FILTER 5622851890Sopenharmony_ci#define SO_PEERNAME 28 5722851890Sopenharmony_ci#define SO_PEERSEC 30 5822851890Sopenharmony_ci#define SO_SNDBUFFORCE 31 5922851890Sopenharmony_ci#define SO_RCVBUFFORCE 33 6022851890Sopenharmony_ci#define SO_PASSSEC 34 6122851890Sopenharmony_ci#define SO_MARK 36 6222851890Sopenharmony_ci#define SO_RXQ_OVFL 40 6322851890Sopenharmony_ci#define SO_WIFI_STATUS 41 6422851890Sopenharmony_ci#define SCM_WIFI_STATUS SO_WIFI_STATUS 6522851890Sopenharmony_ci#define SO_PEEK_OFF 42 6622851890Sopenharmony_ci#define SO_NOFCS 43 6722851890Sopenharmony_ci#define SO_LOCK_FILTER 44 6822851890Sopenharmony_ci#define SO_SELECT_ERR_QUEUE 45 6922851890Sopenharmony_ci#define SO_BUSY_POLL 46 7022851890Sopenharmony_ci#define SO_MAX_PACING_RATE 47 7122851890Sopenharmony_ci#define SO_BPF_EXTENSIONS 48 7222851890Sopenharmony_ci#define SO_INCOMING_CPU 49 7322851890Sopenharmony_ci#define SO_ATTACH_BPF 50 7422851890Sopenharmony_ci#define SO_DETACH_BPF SO_DETACH_FILTER 7522851890Sopenharmony_ci#define SO_ATTACH_REUSEPORT_CBPF 51 7622851890Sopenharmony_ci#define SO_ATTACH_REUSEPORT_EBPF 52 7722851890Sopenharmony_ci#define SO_CNX_ADVICE 53 7822851890Sopenharmony_ci#define SCM_TIMESTAMPING_OPT_STATS 54 7922851890Sopenharmony_ci#define SO_MEMINFO 55 8022851890Sopenharmony_ci#define SO_INCOMING_NAPI_ID 56 8122851890Sopenharmony_ci#define SO_COOKIE 57 8222851890Sopenharmony_ci#define SCM_TIMESTAMPING_PKTINFO 58 8322851890Sopenharmony_ci#define SO_PEERGROUPS 59 8422851890Sopenharmony_ci#define SO_ZEROCOPY 60 8522851890Sopenharmony_ci#define SO_TXTIME 61 8622851890Sopenharmony_ci#define SCM_TXTIME SO_TXTIME 8722851890Sopenharmony_ci#define SO_BINDTOIFINDEX 62 8822851890Sopenharmony_ci#define SO_TIMESTAMP_OLD 29 8922851890Sopenharmony_ci#define SO_TIMESTAMPNS_OLD 35 9022851890Sopenharmony_ci#define SO_TIMESTAMPING_OLD 37 9122851890Sopenharmony_ci#define SO_TIMESTAMP_NEW 63 9222851890Sopenharmony_ci#define SO_TIMESTAMPNS_NEW 64 9322851890Sopenharmony_ci#define SO_TIMESTAMPING_NEW 65 9422851890Sopenharmony_ci#define SO_RCVTIMEO_NEW 66 9522851890Sopenharmony_ci#define SO_SNDTIMEO_NEW 67 9622851890Sopenharmony_ci#define SO_DETACH_REUSEPORT_BPF 68 9722851890Sopenharmony_ci#if __BITS_PER_LONG == 64 9822851890Sopenharmony_ci#define SO_TIMESTAMP SO_TIMESTAMP_OLD 9922851890Sopenharmony_ci#define SO_TIMESTAMPNS SO_TIMESTAMPNS_OLD 10022851890Sopenharmony_ci#define SO_TIMESTAMPING SO_TIMESTAMPING_OLD 10122851890Sopenharmony_ci#define SO_RCVTIMEO SO_RCVTIMEO_OLD 10222851890Sopenharmony_ci#define SO_SNDTIMEO SO_SNDTIMEO_OLD 10322851890Sopenharmony_ci#else 10422851890Sopenharmony_ci#define SO_TIMESTAMP (sizeof(time_t) == sizeof(__kernel_long_t) ? SO_TIMESTAMP_OLD : SO_TIMESTAMP_NEW) 10522851890Sopenharmony_ci#define SO_TIMESTAMPNS (sizeof(time_t) == sizeof(__kernel_long_t) ? SO_TIMESTAMPNS_OLD : SO_TIMESTAMPNS_NEW) 10622851890Sopenharmony_ci#define SO_TIMESTAMPING (sizeof(time_t) == sizeof(__kernel_long_t) ? SO_TIMESTAMPING_OLD : SO_TIMESTAMPING_NEW) 10722851890Sopenharmony_ci#define SO_RCVTIMEO (sizeof(time_t) == sizeof(__kernel_long_t) ? SO_RCVTIMEO_OLD : SO_RCVTIMEO_NEW) 10822851890Sopenharmony_ci#define SO_SNDTIMEO (sizeof(time_t) == sizeof(__kernel_long_t) ? SO_SNDTIMEO_OLD : SO_SNDTIMEO_NEW) 10922851890Sopenharmony_ci#endif 11022851890Sopenharmony_ci#define SCM_TIMESTAMP SO_TIMESTAMP 11122851890Sopenharmony_ci#define SCM_TIMESTAMPNS SO_TIMESTAMPNS 11222851890Sopenharmony_ci#define SCM_TIMESTAMPING SO_TIMESTAMPING 11322851890Sopenharmony_ci#endif 114