hurd: Fix `getifaddrs' and `freeifaddrs' symbol exposition
[glibc.git] / include / ifaddrs.h
blob416118f1b38cb580b2d45966d5e29d531f4c81d5
1 #ifndef _IFADDRS_H
2 #include <inet/ifaddrs.h>
4 # ifndef _ISOMAC
6 #include <stdbool.h>
7 #include <stdint.h>
9 libc_hidden_proto (getifaddrs)
10 libc_hidden_proto (freeifaddrs)
12 extern int __getifaddrs (struct ifaddrs **__ifap);
13 libc_hidden_proto (__getifaddrs)
14 extern void __freeifaddrs (struct ifaddrs *__ifa);
15 libc_hidden_proto (__freeifaddrs)
17 struct in6addrinfo
19 enum {
20 in6ai_deprecated = 1,
21 in6ai_homeaddress = 2
22 } flags:8;
23 uint8_t prefixlen;
24 uint16_t :16;
25 uint32_t index;
26 uint32_t addr[4];
29 extern void __check_pf (bool *seen_ipv4, bool *seen_ipv6,
30 struct in6addrinfo **in6ai, size_t *in6ailen)
31 attribute_hidden;
32 extern void __free_in6ai (struct in6addrinfo *in6ai) attribute_hidden;
33 extern void __check_native (uint32_t a1_index, int *a1_native,
34 uint32_t a2_index, int *a2_native)
35 attribute_hidden;
37 #if IS_IN (nscd)
38 extern uint32_t __bump_nl_timestamp (void) attribute_hidden;
39 #endif
41 # endif /* !_ISOMAC */
42 #endif /* ifaddrs.h */