0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034
0035
0036
0037
0038
0039
0040
0041
0042
0043
0044
0045
0046
0047
0048
0049 #ifndef _UAPI_LIBC_COMPAT_H
0050 #define _UAPI_LIBC_COMPAT_H
0051
0052
0053 #if defined(__GLIBC__)
0054
0055
0056 #if defined(_NET_IF_H) && defined(__USE_MISC)
0057
0058
0059
0060
0061 #define __UAPI_DEF_IF_IFCONF 0
0062 #define __UAPI_DEF_IF_IFMAP 0
0063 #define __UAPI_DEF_IF_IFNAMSIZ 0
0064 #define __UAPI_DEF_IF_IFREQ 0
0065
0066 #define __UAPI_DEF_IF_NET_DEVICE_FLAGS 0
0067
0068 #ifndef __UAPI_DEF_IF_NET_DEVICE_FLAGS_LOWER_UP_DORMANT_ECHO
0069 #define __UAPI_DEF_IF_NET_DEVICE_FLAGS_LOWER_UP_DORMANT_ECHO 1
0070 #endif
0071
0072 #else
0073
0074
0075
0076
0077
0078 #define __UAPI_DEF_IF_IFCONF 1
0079 #define __UAPI_DEF_IF_IFMAP 1
0080 #define __UAPI_DEF_IF_IFNAMSIZ 1
0081 #define __UAPI_DEF_IF_IFREQ 1
0082
0083 #define __UAPI_DEF_IF_NET_DEVICE_FLAGS 1
0084
0085 #define __UAPI_DEF_IF_NET_DEVICE_FLAGS_LOWER_UP_DORMANT_ECHO 1
0086
0087 #endif
0088
0089
0090 #if defined(_NETINET_IN_H)
0091
0092
0093
0094 #define __UAPI_DEF_IN_ADDR 0
0095 #define __UAPI_DEF_IN_IPPROTO 0
0096 #define __UAPI_DEF_IN_PKTINFO 0
0097 #define __UAPI_DEF_IP_MREQ 0
0098 #define __UAPI_DEF_SOCKADDR_IN 0
0099 #define __UAPI_DEF_IN_CLASS 0
0100
0101 #define __UAPI_DEF_IN6_ADDR 0
0102
0103
0104
0105
0106 #if defined(__USE_MISC) || defined (__USE_GNU)
0107 #define __UAPI_DEF_IN6_ADDR_ALT 0
0108 #else
0109 #define __UAPI_DEF_IN6_ADDR_ALT 1
0110 #endif
0111 #define __UAPI_DEF_SOCKADDR_IN6 0
0112 #define __UAPI_DEF_IPV6_MREQ 0
0113 #define __UAPI_DEF_IPPROTO_V6 0
0114 #define __UAPI_DEF_IPV6_OPTIONS 0
0115 #define __UAPI_DEF_IN6_PKTINFO 0
0116 #define __UAPI_DEF_IP6_MTUINFO 0
0117
0118 #else
0119
0120
0121
0122
0123 #define __UAPI_DEF_IN_ADDR 1
0124 #define __UAPI_DEF_IN_IPPROTO 1
0125 #define __UAPI_DEF_IN_PKTINFO 1
0126 #define __UAPI_DEF_IP_MREQ 1
0127 #define __UAPI_DEF_SOCKADDR_IN 1
0128 #define __UAPI_DEF_IN_CLASS 1
0129
0130 #define __UAPI_DEF_IN6_ADDR 1
0131
0132
0133 #define __UAPI_DEF_IN6_ADDR_ALT 1
0134 #define __UAPI_DEF_SOCKADDR_IN6 1
0135 #define __UAPI_DEF_IPV6_MREQ 1
0136 #define __UAPI_DEF_IPPROTO_V6 1
0137 #define __UAPI_DEF_IPV6_OPTIONS 1
0138 #define __UAPI_DEF_IN6_PKTINFO 1
0139 #define __UAPI_DEF_IP6_MTUINFO 1
0140
0141 #endif
0142
0143
0144 #if defined(__NETIPX_IPX_H)
0145
0146 #define __UAPI_DEF_SOCKADDR_IPX 0
0147 #define __UAPI_DEF_IPX_ROUTE_DEFINITION 0
0148 #define __UAPI_DEF_IPX_INTERFACE_DEFINITION 0
0149 #define __UAPI_DEF_IPX_CONFIG_DATA 0
0150 #define __UAPI_DEF_IPX_ROUTE_DEF 0
0151
0152 #else
0153
0154 #define __UAPI_DEF_SOCKADDR_IPX 1
0155 #define __UAPI_DEF_IPX_ROUTE_DEFINITION 1
0156 #define __UAPI_DEF_IPX_INTERFACE_DEFINITION 1
0157 #define __UAPI_DEF_IPX_CONFIG_DATA 1
0158 #define __UAPI_DEF_IPX_ROUTE_DEF 1
0159
0160 #endif
0161
0162
0163 #if defined(_SYS_XATTR_H)
0164 #define __UAPI_DEF_XATTR 0
0165 #else
0166 #define __UAPI_DEF_XATTR 1
0167 #endif
0168
0169
0170
0171
0172
0173 #else
0174
0175
0176 #ifndef __UAPI_DEF_IF_IFCONF
0177 #define __UAPI_DEF_IF_IFCONF 1
0178 #endif
0179 #ifndef __UAPI_DEF_IF_IFMAP
0180 #define __UAPI_DEF_IF_IFMAP 1
0181 #endif
0182 #ifndef __UAPI_DEF_IF_IFNAMSIZ
0183 #define __UAPI_DEF_IF_IFNAMSIZ 1
0184 #endif
0185 #ifndef __UAPI_DEF_IF_IFREQ
0186 #define __UAPI_DEF_IF_IFREQ 1
0187 #endif
0188
0189 #ifndef __UAPI_DEF_IF_NET_DEVICE_FLAGS
0190 #define __UAPI_DEF_IF_NET_DEVICE_FLAGS 1
0191 #endif
0192
0193 #ifndef __UAPI_DEF_IF_NET_DEVICE_FLAGS_LOWER_UP_DORMANT_ECHO
0194 #define __UAPI_DEF_IF_NET_DEVICE_FLAGS_LOWER_UP_DORMANT_ECHO 1
0195 #endif
0196
0197
0198 #ifndef __UAPI_DEF_IN_ADDR
0199 #define __UAPI_DEF_IN_ADDR 1
0200 #endif
0201 #ifndef __UAPI_DEF_IN_IPPROTO
0202 #define __UAPI_DEF_IN_IPPROTO 1
0203 #endif
0204 #ifndef __UAPI_DEF_IN_PKTINFO
0205 #define __UAPI_DEF_IN_PKTINFO 1
0206 #endif
0207 #ifndef __UAPI_DEF_IP_MREQ
0208 #define __UAPI_DEF_IP_MREQ 1
0209 #endif
0210 #ifndef __UAPI_DEF_SOCKADDR_IN
0211 #define __UAPI_DEF_SOCKADDR_IN 1
0212 #endif
0213 #ifndef __UAPI_DEF_IN_CLASS
0214 #define __UAPI_DEF_IN_CLASS 1
0215 #endif
0216
0217
0218 #ifndef __UAPI_DEF_IN6_ADDR
0219 #define __UAPI_DEF_IN6_ADDR 1
0220 #endif
0221 #ifndef __UAPI_DEF_IN6_ADDR_ALT
0222 #define __UAPI_DEF_IN6_ADDR_ALT 1
0223 #endif
0224 #ifndef __UAPI_DEF_SOCKADDR_IN6
0225 #define __UAPI_DEF_SOCKADDR_IN6 1
0226 #endif
0227 #ifndef __UAPI_DEF_IPV6_MREQ
0228 #define __UAPI_DEF_IPV6_MREQ 1
0229 #endif
0230 #ifndef __UAPI_DEF_IPPROTO_V6
0231 #define __UAPI_DEF_IPPROTO_V6 1
0232 #endif
0233 #ifndef __UAPI_DEF_IPV6_OPTIONS
0234 #define __UAPI_DEF_IPV6_OPTIONS 1
0235 #endif
0236 #ifndef __UAPI_DEF_IN6_PKTINFO
0237 #define __UAPI_DEF_IN6_PKTINFO 1
0238 #endif
0239 #ifndef __UAPI_DEF_IP6_MTUINFO
0240 #define __UAPI_DEF_IP6_MTUINFO 1
0241 #endif
0242
0243
0244 #ifndef __UAPI_DEF_SOCKADDR_IPX
0245 #define __UAPI_DEF_SOCKADDR_IPX 1
0246 #endif
0247 #ifndef __UAPI_DEF_IPX_ROUTE_DEFINITION
0248 #define __UAPI_DEF_IPX_ROUTE_DEFINITION 1
0249 #endif
0250 #ifndef __UAPI_DEF_IPX_INTERFACE_DEFINITION
0251 #define __UAPI_DEF_IPX_INTERFACE_DEFINITION 1
0252 #endif
0253 #ifndef __UAPI_DEF_IPX_CONFIG_DATA
0254 #define __UAPI_DEF_IPX_CONFIG_DATA 1
0255 #endif
0256 #ifndef __UAPI_DEF_IPX_ROUTE_DEF
0257 #define __UAPI_DEF_IPX_ROUTE_DEF 1
0258 #endif
0259
0260
0261 #ifndef __UAPI_DEF_XATTR
0262 #define __UAPI_DEF_XATTR 1
0263 #endif
0264
0265 #endif
0266
0267 #endif