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_GENERIC_SOCKET_H
2022851890Sopenharmony_ci#define __ASM_GENERIC_SOCKET_H
2122851890Sopenharmony_ci#include <linux/posix_types.h>
2222851890Sopenharmony_ci#include <asm/sockios.h>
2322851890Sopenharmony_ci#define SOL_SOCKET 1
2422851890Sopenharmony_ci#define SO_DEBUG 1
2522851890Sopenharmony_ci#define SO_REUSEADDR 2
2622851890Sopenharmony_ci#define SO_TYPE 3
2722851890Sopenharmony_ci#define SO_ERROR 4
2822851890Sopenharmony_ci#define SO_DONTROUTE 5
2922851890Sopenharmony_ci#define SO_BROADCAST 6
3022851890Sopenharmony_ci#define SO_SNDBUF 7
3122851890Sopenharmony_ci#define SO_RCVBUF 8
3222851890Sopenharmony_ci#define SO_SNDBUFFORCE 32
3322851890Sopenharmony_ci#define SO_RCVBUFFORCE 33
3422851890Sopenharmony_ci#define SO_KEEPALIVE 9
3522851890Sopenharmony_ci#define SO_OOBINLINE 10
3622851890Sopenharmony_ci#define SO_NO_CHECK 11
3722851890Sopenharmony_ci#define SO_PRIORITY 12
3822851890Sopenharmony_ci#define SO_LINGER 13
3922851890Sopenharmony_ci#define SO_BSDCOMPAT 14
4022851890Sopenharmony_ci#define SO_REUSEPORT 15
4122851890Sopenharmony_ci#ifndef SO_PASSCRED
4222851890Sopenharmony_ci#define SO_PASSCRED 16
4322851890Sopenharmony_ci#define SO_PEERCRED 17
4422851890Sopenharmony_ci#define SO_RCVLOWAT 18
4522851890Sopenharmony_ci#define SO_SNDLOWAT 19
4622851890Sopenharmony_ci#define SO_RCVTIMEO_OLD 20
4722851890Sopenharmony_ci#define SO_SNDTIMEO_OLD 21
4822851890Sopenharmony_ci#endif
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_ACCEPTCONN 30
5822851890Sopenharmony_ci#define SO_PEERSEC 31
5922851890Sopenharmony_ci#define SO_PASSSEC 34
6022851890Sopenharmony_ci#define SO_MARK 36
6122851890Sopenharmony_ci#define SO_PROTOCOL 38
6222851890Sopenharmony_ci#define SO_DOMAIN 39
6322851890Sopenharmony_ci#define SO_RXQ_OVFL 40
6422851890Sopenharmony_ci#define SO_WIFI_STATUS 41
6522851890Sopenharmony_ci#define SCM_WIFI_STATUS SO_WIFI_STATUS
6622851890Sopenharmony_ci#define SO_PEEK_OFF 42
6722851890Sopenharmony_ci#define SO_NOFCS 43
6822851890Sopenharmony_ci#define SO_LOCK_FILTER 44
6922851890Sopenharmony_ci#define SO_SELECT_ERR_QUEUE 45
7022851890Sopenharmony_ci#define SO_BUSY_POLL 46
7122851890Sopenharmony_ci#define SO_MAX_PACING_RATE 47
7222851890Sopenharmony_ci#define SO_BPF_EXTENSIONS 48
7322851890Sopenharmony_ci#define SO_INCOMING_CPU 49
7422851890Sopenharmony_ci#define SO_ATTACH_BPF 50
7522851890Sopenharmony_ci#define SO_DETACH_BPF SO_DETACH_FILTER
7622851890Sopenharmony_ci#define SO_ATTACH_REUSEPORT_CBPF 51
7722851890Sopenharmony_ci#define SO_ATTACH_REUSEPORT_EBPF 52
7822851890Sopenharmony_ci#define SO_CNX_ADVICE 53
7922851890Sopenharmony_ci#define SCM_TIMESTAMPING_OPT_STATS 54
8022851890Sopenharmony_ci#define SO_MEMINFO 55
8122851890Sopenharmony_ci#define SO_INCOMING_NAPI_ID 56
8222851890Sopenharmony_ci#define SO_COOKIE 57
8322851890Sopenharmony_ci#define SCM_TIMESTAMPING_PKTINFO 58
8422851890Sopenharmony_ci#define SO_PEERGROUPS 59
8522851890Sopenharmony_ci#define SO_ZEROCOPY 60
8622851890Sopenharmony_ci#define SO_TXTIME 61
8722851890Sopenharmony_ci#define SCM_TXTIME SO_TXTIME
8822851890Sopenharmony_ci#define SO_BINDTOIFINDEX 62
8922851890Sopenharmony_ci#define SO_TIMESTAMP_OLD 29
9022851890Sopenharmony_ci#define SO_TIMESTAMPNS_OLD 35
9122851890Sopenharmony_ci#define SO_TIMESTAMPING_OLD 37
9222851890Sopenharmony_ci#define SO_TIMESTAMP_NEW 63
9322851890Sopenharmony_ci#define SO_TIMESTAMPNS_NEW 64
9422851890Sopenharmony_ci#define SO_TIMESTAMPING_NEW 65
9522851890Sopenharmony_ci#define SO_RCVTIMEO_NEW 66
9622851890Sopenharmony_ci#define SO_SNDTIMEO_NEW 67
9722851890Sopenharmony_ci#define SO_DETACH_REUSEPORT_BPF 68
9822851890Sopenharmony_ci#if __BITS_PER_LONG == 64 || defined(__x86_64__) && defined(__ILP32__)
9922851890Sopenharmony_ci#define SO_TIMESTAMP SO_TIMESTAMP_OLD
10022851890Sopenharmony_ci#define SO_TIMESTAMPNS SO_TIMESTAMPNS_OLD
10122851890Sopenharmony_ci#define SO_TIMESTAMPING SO_TIMESTAMPING_OLD
10222851890Sopenharmony_ci#define SO_RCVTIMEO SO_RCVTIMEO_OLD
10322851890Sopenharmony_ci#define SO_SNDTIMEO SO_SNDTIMEO_OLD
10422851890Sopenharmony_ci#else
10522851890Sopenharmony_ci#define SO_TIMESTAMP (sizeof(time_t) == sizeof(__kernel_long_t) ? SO_TIMESTAMP_OLD : SO_TIMESTAMP_NEW)
10622851890Sopenharmony_ci#define SO_TIMESTAMPNS (sizeof(time_t) == sizeof(__kernel_long_t) ? SO_TIMESTAMPNS_OLD : SO_TIMESTAMPNS_NEW)
10722851890Sopenharmony_ci#define SO_TIMESTAMPING (sizeof(time_t) == sizeof(__kernel_long_t) ? SO_TIMESTAMPING_OLD : SO_TIMESTAMPING_NEW)
10822851890Sopenharmony_ci#define SO_RCVTIMEO (sizeof(time_t) == sizeof(__kernel_long_t) ? SO_RCVTIMEO_OLD : SO_RCVTIMEO_NEW)
10922851890Sopenharmony_ci#define SO_SNDTIMEO (sizeof(time_t) == sizeof(__kernel_long_t) ? SO_SNDTIMEO_OLD : SO_SNDTIMEO_NEW)
11022851890Sopenharmony_ci#endif
11122851890Sopenharmony_ci#define SCM_TIMESTAMP SO_TIMESTAMP
11222851890Sopenharmony_ci#define SCM_TIMESTAMPNS SO_TIMESTAMPNS
11322851890Sopenharmony_ci#define SCM_TIMESTAMPING SO_TIMESTAMPING
11422851890Sopenharmony_ci#endif
115