diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2017-10-01 17:35:26 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2017-10-01 17:35:46 -0700 |
commit | b4744101f36021bf2dde713682abbd0cc6935168 (patch) | |
tree | baacd3b9b8867513e3611b8b0ada122e0bdbe741 /sysdeps/mach | |
parent | 43b7dfd1b6cfd1b603e96270dc6a0b1758f81a13 (diff) | |
download | glibc-b4744101f36021bf2dde713682abbd0cc6935168.tar.gz glibc-b4744101f36021bf2dde713682abbd0cc6935168.tar.xz glibc-b4744101f36021bf2dde713682abbd0cc6935168.zip |
Hide internal __ifreq function [BZ #18822]
Hide internal __ifreq function to allow direct access within libc.so and libc.a without using GOT nor PLT. [BZ #18822] * include/ifreq.h: New file. * sysdeps/generic/ifreq.h (__if_nextreq): Removed. (__ifreq): Likewise. * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed. (__ifreq): Likewise.
Diffstat (limited to 'sysdeps/mach')
-rw-r--r-- | sysdeps/mach/hurd/ifreq.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/sysdeps/mach/hurd/ifreq.h b/sysdeps/mach/hurd/ifreq.h index eceeb7a2c3..3dd17f773d 100644 --- a/sysdeps/mach/hurd/ifreq.h +++ b/sysdeps/mach/hurd/ifreq.h @@ -24,18 +24,6 @@ #include <sys/ioctl.h> #include <sys/mman.h> -static inline struct ifreq * -__if_nextreq (struct ifreq *ifr) -{ -#ifdef _HAVE_SA_LEN - if (ifr->ifr_addr.sa_len > sizeof ifr->ifr_addr) - return (struct ifreq *) ((char *) &ifr->ifr_addr + ifr->ifr_addr.sa_len); -#endif - return ifr + 1; -} - -extern void __ifreq (struct ifreq **ifreqs, int *num_ifs, int sockfd); - static inline void __if_freereq (struct ifreq *ifreqs, int num_ifs) |