diff options
author | Rich Felker <dalias@aerifal.cx> | 2018-09-11 12:32:46 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2018-09-12 14:34:34 -0400 |
commit | 7e399fabd3db2c528b5982803eeba2841f547695 (patch) | |
tree | 7dd5b5bf30e99dd0f622203017bc9364e8a74aab /src/network | |
parent | b6e59cd925cbe6c0f23cf46828d47e6e7edd17c9 (diff) | |
download | musl-7e399fabd3db2c528b5982803eeba2841f547695.tar.gz musl-7e399fabd3db2c528b5982803eeba2841f547695.tar.bz2 musl-7e399fabd3db2c528b5982803eeba2841f547695.tar.xz musl-7e399fabd3db2c528b5982803eeba2841f547695.zip |
apply hidden visibility to various remaining internal interfaces
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/lookup.h | 13 | ||||
-rw-r--r-- | src/network/netlink.h | 2 |
2 files changed, 8 insertions, 7 deletions
diff --git a/src/network/lookup.h b/src/network/lookup.h index 4c01b618..f1952af5 100644 --- a/src/network/lookup.h +++ b/src/network/lookup.h @@ -3,6 +3,7 @@ #include <stdint.h> #include <stddef.h> +#include <features.h> struct address { int family; @@ -30,13 +31,13 @@ struct resolvconf { #define MAXADDRS 48 #define MAXSERVS 2 -int __lookup_serv(struct service buf[static MAXSERVS], const char *name, int proto, int socktype, int flags); -int __lookup_name(struct address buf[static MAXADDRS], char canon[static 256], const char *name, int family, int flags); -int __lookup_ipliteral(struct address buf[static 1], const char *name, int family); +hidden int __lookup_serv(struct service buf[static MAXSERVS], const char *name, int proto, int socktype, int flags); +hidden int __lookup_name(struct address buf[static MAXADDRS], char canon[static 256], const char *name, int family, int flags); +hidden int __lookup_ipliteral(struct address buf[static 1], const char *name, int family); -int __get_resolv_conf(struct resolvconf *, char *, size_t); -int __res_msend_rc(int, const unsigned char *const *, const int *, unsigned char *const *, int *, int, const struct resolvconf *); +hidden int __get_resolv_conf(struct resolvconf *, char *, size_t); +hidden int __res_msend_rc(int, const unsigned char *const *, const int *, unsigned char *const *, int *, int, const struct resolvconf *); -int __dns_parse(const unsigned char *, int, int (*)(void *, int, const void *, int, const void *), void *); +hidden int __dns_parse(const unsigned char *, int, int (*)(void *, int, const void *, int, const void *), void *); #endif diff --git a/src/network/netlink.h b/src/network/netlink.h index 20700ac5..38acb178 100644 --- a/src/network/netlink.h +++ b/src/network/netlink.h @@ -91,4 +91,4 @@ struct ifaddrmsg { #define NLMSG_RTA(nlh,len) ((void*)((char*)(nlh)+sizeof(struct nlmsghdr)+NETLINK_ALIGN(len))) #define NLMSG_RTAOK(rta,nlh) RTA_OK(rta,NLMSG_DATAEND(nlh)) -int __rtnetlink_enumerate(int link_af, int addr_af, int (*cb)(void *ctx, struct nlmsghdr *h), void *ctx); +hidden int __rtnetlink_enumerate(int link_af, int addr_af, int (*cb)(void *ctx, struct nlmsghdr *h), void *ctx); |