about summary refs log tree commit diff
path: root/sysdeps/mach/hurd
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-09-20 20:34:06 +0000
committerRoland McGrath <roland@gnu.org>2002-09-20 20:34:06 +0000
commit9db6ee8d2fa48ade4451c0de80980b7f242c0f17 (patch)
tree2054d18cc95669fa2d6686cb9565a07407d26a84 /sysdeps/mach/hurd
parentdab9837091a70e6ed6ea0d6474e0508ea6fccde5 (diff)
downloadglibc-9db6ee8d2fa48ade4451c0de80980b7f242c0f17.tar.gz
glibc-9db6ee8d2fa48ade4451c0de80980b7f242c0f17.tar.xz
glibc-9db6ee8d2fa48ade4451c0de80980b7f242c0f17.zip
* sysdeps/generic/ifreq.h (__if_nextreq): New function.
	* sysdeps/unix/sysv/linux/ifreq.h (__if_nextreq): New function.
	* sysdeps/mach/hurd/ifreq.h (__if_nextreq): New function.
	* sysdeps/gnu/ifaddrs.c (getifaddrs): Use __if_nextreq
	for iterating through the list of interfaces.
	* resolv/res_hconf.c (_res_hconf_reorder_addrs): Likewise.

	* sysdeps/unix/grantpt.c (pts_name): Set errno when __ptsname_r fails.
	Reported by Bruno Haible <bruno@clisp.org>.
Diffstat (limited to 'sysdeps/mach/hurd')
-rw-r--r--sysdeps/mach/hurd/ifreq.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sysdeps/mach/hurd/ifreq.h b/sysdeps/mach/hurd/ifreq.h
index f2143d8c70..77f0b9cac0 100644
--- a/sysdeps/mach/hurd/ifreq.h
+++ b/sysdeps/mach/hurd/ifreq.h
@@ -66,6 +66,13 @@ __ifreq (struct ifreq **ifreqs, int *num_ifs, int sockfd)
 }
 
 
+static inline struct ifreq *
+__if_nextreq (struct ifreq *ifr)
+{
+  return ifr + 1;
+}
+
+
 static inline void
 __if_freereq (struct ifreq *ifreqs, int num_ifs)
 {