blob: 0b5ba60c16252a8a46c08d0f709374395c144966 [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
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 */
Christopher Ferris38062f92014-07-09 15:33:25 -07007#ifndef _UAPI_LIBC_COMPAT_H
8#define _UAPI_LIBC_COMPAT_H
9#ifdef __GLIBC__
Christopher Ferris106b3a82016-08-24 12:15:38 -070010#if defined(_NET_IF_H) && defined(__USE_MISC)
Christopher Ferris82ef6a12016-05-19 16:36:40 -070011#define __UAPI_DEF_IF_IFCONF 0
12#define __UAPI_DEF_IF_IFMAP 0
13#define __UAPI_DEF_IF_IFNAMSIZ 0
14#define __UAPI_DEF_IF_IFREQ 0
Christopher Ferris82ef6a12016-05-19 16:36:40 -070015#define __UAPI_DEF_IF_NET_DEVICE_FLAGS 0
16#ifndef __UAPI_DEF_IF_NET_DEVICE_FLAGS_LOWER_UP_DORMANT_ECHO
17#define __UAPI_DEF_IF_NET_DEVICE_FLAGS_LOWER_UP_DORMANT_ECHO 1
18#endif
Christopher Ferris82ef6a12016-05-19 16:36:40 -070019#else
20#define __UAPI_DEF_IF_IFCONF 1
21#define __UAPI_DEF_IF_IFMAP 1
22#define __UAPI_DEF_IF_IFNAMSIZ 1
Christopher Ferris82ef6a12016-05-19 16:36:40 -070023#define __UAPI_DEF_IF_IFREQ 1
24#define __UAPI_DEF_IF_NET_DEVICE_FLAGS 1
25#define __UAPI_DEF_IF_NET_DEVICE_FLAGS_LOWER_UP_DORMANT_ECHO 1
26#endif
Christopher Ferris82ef6a12016-05-19 16:36:40 -070027#ifdef _NETINET_IN_H
Christopher Ferris05d08e92016-02-04 13:16:38 -080028#define __UAPI_DEF_IN_ADDR 0
29#define __UAPI_DEF_IN_IPPROTO 0
30#define __UAPI_DEF_IN_PKTINFO 0
Christopher Ferris82ef6a12016-05-19 16:36:40 -070031#define __UAPI_DEF_IP_MREQ 0
Christopher Ferris05d08e92016-02-04 13:16:38 -080032#define __UAPI_DEF_SOCKADDR_IN 0
33#define __UAPI_DEF_IN_CLASS 0
Christopher Ferris38062f92014-07-09 15:33:25 -070034#define __UAPI_DEF_IN6_ADDR 0
Christopher Ferris82ef6a12016-05-19 16:36:40 -070035#if defined(__USE_MISC) || defined(__USE_GNU)
Christopher Ferris38062f92014-07-09 15:33:25 -070036#define __UAPI_DEF_IN6_ADDR_ALT 0
37#else
Christopher Ferris38062f92014-07-09 15:33:25 -070038#define __UAPI_DEF_IN6_ADDR_ALT 1
Christopher Ferris82ef6a12016-05-19 16:36:40 -070039#endif
Christopher Ferris38062f92014-07-09 15:33:25 -070040#define __UAPI_DEF_SOCKADDR_IN6 0
41#define __UAPI_DEF_IPV6_MREQ 0
Christopher Ferris38062f92014-07-09 15:33:25 -070042#define __UAPI_DEF_IPPROTO_V6 0
Christopher Ferris82ef6a12016-05-19 16:36:40 -070043#define __UAPI_DEF_IPV6_OPTIONS 0
Christopher Ferris05d08e92016-02-04 13:16:38 -080044#define __UAPI_DEF_IN6_PKTINFO 0
45#define __UAPI_DEF_IP6_MTUINFO 0
46#else
Christopher Ferris82ef6a12016-05-19 16:36:40 -070047#define __UAPI_DEF_IN_ADDR 1
Christopher Ferris05d08e92016-02-04 13:16:38 -080048#define __UAPI_DEF_IN_IPPROTO 1
49#define __UAPI_DEF_IN_PKTINFO 1
50#define __UAPI_DEF_IP_MREQ 1
Christopher Ferris82ef6a12016-05-19 16:36:40 -070051#define __UAPI_DEF_SOCKADDR_IN 1
Christopher Ferris05d08e92016-02-04 13:16:38 -080052#define __UAPI_DEF_IN_CLASS 1
53#define __UAPI_DEF_IN6_ADDR 1
Christopher Ferrise01d32f2015-03-31 14:57:48 -070054#define __UAPI_DEF_IN6_ADDR_ALT 1
Christopher Ferris82ef6a12016-05-19 16:36:40 -070055#define __UAPI_DEF_SOCKADDR_IN6 1
Christopher Ferris38062f92014-07-09 15:33:25 -070056#define __UAPI_DEF_IPV6_MREQ 1
57#define __UAPI_DEF_IPPROTO_V6 1
Christopher Ferrise01d32f2015-03-31 14:57:48 -070058#define __UAPI_DEF_IPV6_OPTIONS 1
Christopher Ferris82ef6a12016-05-19 16:36:40 -070059#define __UAPI_DEF_IN6_PKTINFO 1
Christopher Ferris05d08e92016-02-04 13:16:38 -080060#define __UAPI_DEF_IP6_MTUINFO 1
Christopher Ferrise01d32f2015-03-31 14:57:48 -070061#endif
Christopher Ferris49f525c2016-12-12 14:55:36 -080062#ifdef _SYS_XATTR_H
Christopher Ferris82ef6a12016-05-19 16:36:40 -070063#define __UAPI_DEF_XATTR 0
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070064#else
65#define __UAPI_DEF_XATTR 1
Christopher Ferris49f525c2016-12-12 14:55:36 -080066#endif
Christopher Ferris82ef6a12016-05-19 16:36:40 -070067#else
Christopher Ferris934ec942018-01-31 15:29:16 -080068#ifndef __UAPI_DEF_IF_IFCONF
Christopher Ferris82ef6a12016-05-19 16:36:40 -070069#define __UAPI_DEF_IF_IFCONF 1
Christopher Ferris934ec942018-01-31 15:29:16 -080070#endif
71#ifndef __UAPI_DEF_IF_IFMAP
Christopher Ferris82ef6a12016-05-19 16:36:40 -070072#define __UAPI_DEF_IF_IFMAP 1
Christopher Ferris934ec942018-01-31 15:29:16 -080073#endif
74#ifndef __UAPI_DEF_IF_IFNAMSIZ
Christopher Ferris49f525c2016-12-12 14:55:36 -080075#define __UAPI_DEF_IF_IFNAMSIZ 1
Christopher Ferris934ec942018-01-31 15:29:16 -080076#endif
77#ifndef __UAPI_DEF_IF_IFREQ
Christopher Ferris82ef6a12016-05-19 16:36:40 -070078#define __UAPI_DEF_IF_IFREQ 1
Christopher Ferris934ec942018-01-31 15:29:16 -080079#endif
80#ifndef __UAPI_DEF_IF_NET_DEVICE_FLAGS
Christopher Ferris82ef6a12016-05-19 16:36:40 -070081#define __UAPI_DEF_IF_NET_DEVICE_FLAGS 1
Christopher Ferris934ec942018-01-31 15:29:16 -080082#endif
83#ifndef __UAPI_DEF_IF_NET_DEVICE_FLAGS_LOWER_UP_DORMANT_ECHO
Christopher Ferris82ef6a12016-05-19 16:36:40 -070084#define __UAPI_DEF_IF_NET_DEVICE_FLAGS_LOWER_UP_DORMANT_ECHO 1
Christopher Ferris934ec942018-01-31 15:29:16 -080085#endif
86#ifndef __UAPI_DEF_IN_ADDR
Christopher Ferris49f525c2016-12-12 14:55:36 -080087#define __UAPI_DEF_IN_ADDR 1
Christopher Ferris934ec942018-01-31 15:29:16 -080088#endif
89#ifndef __UAPI_DEF_IN_IPPROTO
Christopher Ferris05d08e92016-02-04 13:16:38 -080090#define __UAPI_DEF_IN_IPPROTO 1
Christopher Ferris934ec942018-01-31 15:29:16 -080091#endif
92#ifndef __UAPI_DEF_IN_PKTINFO
Christopher Ferris05d08e92016-02-04 13:16:38 -080093#define __UAPI_DEF_IN_PKTINFO 1
Christopher Ferris934ec942018-01-31 15:29:16 -080094#endif
95#ifndef __UAPI_DEF_IP_MREQ
Christopher Ferris05d08e92016-02-04 13:16:38 -080096#define __UAPI_DEF_IP_MREQ 1
Christopher Ferris934ec942018-01-31 15:29:16 -080097#endif
98#ifndef __UAPI_DEF_SOCKADDR_IN
Christopher Ferris49f525c2016-12-12 14:55:36 -080099#define __UAPI_DEF_SOCKADDR_IN 1
Christopher Ferris934ec942018-01-31 15:29:16 -0800100#endif
101#ifndef __UAPI_DEF_IN_CLASS
Christopher Ferris05d08e92016-02-04 13:16:38 -0800102#define __UAPI_DEF_IN_CLASS 1
Christopher Ferris934ec942018-01-31 15:29:16 -0800103#endif
104#ifndef __UAPI_DEF_IN6_ADDR
Christopher Ferris38062f92014-07-09 15:33:25 -0700105#define __UAPI_DEF_IN6_ADDR 1
Christopher Ferris934ec942018-01-31 15:29:16 -0800106#endif
107#ifndef __UAPI_DEF_IN6_ADDR_ALT
Christopher Ferris38062f92014-07-09 15:33:25 -0700108#define __UAPI_DEF_IN6_ADDR_ALT 1
Christopher Ferris934ec942018-01-31 15:29:16 -0800109#endif
110#ifndef __UAPI_DEF_SOCKADDR_IN6
Christopher Ferris49f525c2016-12-12 14:55:36 -0800111#define __UAPI_DEF_SOCKADDR_IN6 1
Christopher Ferris934ec942018-01-31 15:29:16 -0800112#endif
113#ifndef __UAPI_DEF_IPV6_MREQ
Christopher Ferris38062f92014-07-09 15:33:25 -0700114#define __UAPI_DEF_IPV6_MREQ 1
Christopher Ferris934ec942018-01-31 15:29:16 -0800115#endif
116#ifndef __UAPI_DEF_IPPROTO_V6
Christopher Ferrise01d32f2015-03-31 14:57:48 -0700117#define __UAPI_DEF_IPPROTO_V6 1
Christopher Ferris934ec942018-01-31 15:29:16 -0800118#endif
119#ifndef __UAPI_DEF_IPV6_OPTIONS
Christopher Ferrise01d32f2015-03-31 14:57:48 -0700120#define __UAPI_DEF_IPV6_OPTIONS 1
Christopher Ferris934ec942018-01-31 15:29:16 -0800121#endif
122#ifndef __UAPI_DEF_IN6_PKTINFO
Christopher Ferris05d08e92016-02-04 13:16:38 -0800123#define __UAPI_DEF_IN6_PKTINFO 1
Christopher Ferris934ec942018-01-31 15:29:16 -0800124#endif
125#ifndef __UAPI_DEF_IP6_MTUINFO
Christopher Ferris05d08e92016-02-04 13:16:38 -0800126#define __UAPI_DEF_IP6_MTUINFO 1
Christopher Ferris934ec942018-01-31 15:29:16 -0800127#endif
Christopher Ferris934ec942018-01-31 15:29:16 -0800128#ifndef __UAPI_DEF_XATTR
Christopher Ferris49f525c2016-12-12 14:55:36 -0800129#define __UAPI_DEF_XATTR 1
Christopher Ferris49f525c2016-12-12 14:55:36 -0800130#endif
131#endif
Christopher Ferris934ec942018-01-31 15:29:16 -0800132#endif