mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-14 05:11:15 +08:00
Remove unused inet_* weak references
This change requires a Newlib from 2017-06-12 or later.
This commit is contained in:
@@ -204,6 +204,7 @@ inet_aton(const char *cp, struct in_addr *addr) {
|
||||
return (1);
|
||||
}
|
||||
|
||||
#ifndef __rtems__
|
||||
/*
|
||||
* Weak aliases for applications that use certain private entry points,
|
||||
* and fail to include <arpa/inet.h>.
|
||||
@@ -212,5 +213,6 @@ inet_aton(const char *cp, struct in_addr *addr) {
|
||||
__weak_reference(__inet_addr, inet_addr);
|
||||
#undef inet_aton
|
||||
__weak_reference(__inet_aton, inet_aton);
|
||||
#endif /* __rtems__ */
|
||||
|
||||
/*! \file */
|
||||
|
@@ -61,11 +61,13 @@ inet_lnaof(struct in_addr in)
|
||||
return ((i)&IN_CLASSC_HOST);
|
||||
}
|
||||
|
||||
#ifndef __rtems__
|
||||
/*
|
||||
* Weak aliases for applications that use certain private entry points,
|
||||
* and fail to include <arpa/inet.h>.
|
||||
*/
|
||||
#undef inet_lnaof
|
||||
__weak_reference(__inet_lnaof, inet_lnaof);
|
||||
#endif /* __rtems__ */
|
||||
|
||||
/*! \file */
|
||||
|
@@ -64,11 +64,13 @@ inet_makeaddr(in_addr_t net, in_addr_t host)
|
||||
return (a);
|
||||
}
|
||||
|
||||
#ifndef __rtems__
|
||||
/*
|
||||
* Weak aliases for applications that use certain private entry points,
|
||||
* and fail to include <arpa/inet.h>.
|
||||
*/
|
||||
#undef inet_makeaddr
|
||||
__weak_reference(__inet_makeaddr, inet_makeaddr);
|
||||
#endif /* __rtems__ */
|
||||
|
||||
/*! \file */
|
||||
|
@@ -271,11 +271,13 @@ emsgsize:
|
||||
return (NULL);
|
||||
}
|
||||
|
||||
#ifndef __rtems__
|
||||
/*
|
||||
* Weak aliases for applications that use certain private entry points,
|
||||
* and fail to include <arpa/inet.h>.
|
||||
*/
|
||||
#undef inet_net_ntop
|
||||
__weak_reference(__inet_net_ntop, inet_net_ntop);
|
||||
#endif /* __rtems__ */
|
||||
|
||||
/*! \file */
|
||||
|
@@ -408,11 +408,13 @@ inet_net_pton(int af, const char *src, void *dst, size_t size) {
|
||||
}
|
||||
}
|
||||
|
||||
#ifndef __rtems__
|
||||
/*
|
||||
* Weak aliases for applications that use certain private entry points,
|
||||
* and fail to include <arpa/inet.h>.
|
||||
*/
|
||||
#undef inet_net_pton
|
||||
__weak_reference(__inet_net_pton, inet_net_pton);
|
||||
#endif /* __rtems__ */
|
||||
|
||||
/*! \file */
|
||||
|
@@ -87,11 +87,13 @@ inet_neta(in_addr_t src, char *dst, size_t size)
|
||||
return (NULL);
|
||||
}
|
||||
|
||||
#ifndef __rtems__
|
||||
/*
|
||||
* Weak aliases for applications that use certain private entry points,
|
||||
* and fail to include <arpa/inet.h>.
|
||||
*/
|
||||
#undef inet_neta
|
||||
__weak_reference(__inet_neta, inet_neta);
|
||||
#endif /* __rtems__ */
|
||||
|
||||
/*! \file */
|
||||
|
@@ -60,11 +60,13 @@ inet_netof(struct in_addr in)
|
||||
return (((i)&IN_CLASSC_NET) >> IN_CLASSC_NSHIFT);
|
||||
}
|
||||
|
||||
#ifndef __rtems__
|
||||
/*
|
||||
* Weak aliases for applications that use certain private entry points,
|
||||
* and fail to include <arpa/inet.h>.
|
||||
*/
|
||||
#undef inet_netof
|
||||
__weak_reference(__inet_netof, inet_netof);
|
||||
#endif /* __rtems__ */
|
||||
|
||||
/*! \file */
|
||||
|
@@ -102,11 +102,13 @@ again:
|
||||
return (val);
|
||||
}
|
||||
|
||||
#ifndef __rtems__
|
||||
/*
|
||||
* Weak aliases for applications that use certain private entry points,
|
||||
* and fail to include <arpa/inet.h>.
|
||||
*/
|
||||
#undef inet_network
|
||||
__weak_reference(__inet_network, inet_network);
|
||||
#endif /* __rtems__ */
|
||||
|
||||
/*! \file */
|
||||
|
@@ -69,6 +69,7 @@ inet_ntoa_r(struct in_addr in, char *buf, socklen_t size)
|
||||
return (buf);
|
||||
}
|
||||
|
||||
#ifndef __rtems__
|
||||
/*
|
||||
* Weak aliases for applications that use certain private entry points,
|
||||
* and fail to include <arpa/inet.h>.
|
||||
@@ -76,5 +77,6 @@ inet_ntoa_r(struct in_addr in, char *buf, socklen_t size)
|
||||
#undef inet_ntoa
|
||||
__weak_reference(__inet_ntoa, inet_ntoa);
|
||||
__weak_reference(__inet_ntoa_r, inet_ntoa_r);
|
||||
#endif /* __rtems__ */
|
||||
|
||||
/*! \file */
|
||||
|
@@ -196,11 +196,13 @@ inet_ntop6(const u_char *src, char *dst, socklen_t size)
|
||||
return (dst);
|
||||
}
|
||||
|
||||
#ifndef __rtems__
|
||||
/*
|
||||
* Weak aliases for applications that use certain private entry points,
|
||||
* and fail to include <arpa/inet.h>.
|
||||
*/
|
||||
#undef inet_ntop
|
||||
__weak_reference(__inet_ntop, inet_ntop);
|
||||
#endif /* __rtems__ */
|
||||
|
||||
/*! \file */
|
||||
|
@@ -216,11 +216,13 @@ inet_pton6(const char *src, u_char *dst)
|
||||
return (1);
|
||||
}
|
||||
|
||||
#ifndef __rtems__
|
||||
/*
|
||||
* Weak aliases for applications that use certain private entry points,
|
||||
* and fail to include <arpa/inet.h>.
|
||||
*/
|
||||
#undef inet_pton
|
||||
__weak_reference(__inet_pton, inet_pton);
|
||||
#endif /* __rtems__ */
|
||||
|
||||
/*! \file */
|
||||
|
Reference in New Issue
Block a user