glibc/sysdeps
Roland McGrath 7f1deee65e Added <ifaddrs.h> interface with functions `getifaddrs', `freeifaddrs'.
This implementation supports only IPv4.
	* inet/ifaddrs.h: New file.
	* sysdeps/generic/ifaddrs.c: New file.
	* sysdeps/gnu/ifaddrs.c: New file.
	* inet/test-ifaddrs.c: New file.
	* inet/Makefile (routines): Add ifaddrs.
	(headers): Add ifaddrs.h here.
	(tests): Add test-ifaddrs.
	* inet/Versions (GLIBC_2.3): New set, add getifaddrs and freeifaddrs.

	* resolv/res_hconf.c (_res_hconf_reorder_addrs): Use an explicit
	socket call to get an AF_INET socket, instead of using __opensock.
	The SIOCGIFNETMASK ioctl will work only with a PF_INET socket.

	* sysdeps/generic/ifreq.h (__ifreq): Take third argument SOCKFD,
	if not -1 use it instead of calling __opensock.
	* sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
	* sysdeps/mach/hurd/ifreq.h (__ifreq): Take new argument and ignore it.
	* resolv/res_hconf.c (_res_hconf_reorder_addrs): Pass new argument.

	* sysdeps/mach/hurd/ifreq.h: New file.
	* sysdeps/generic/ifreq.h (__if_freereq): Take second argument NUM_IFS.
	* sysdeps/unix/sysv/linux/ifreq.h (__if_freereq): Likewise.
	* resolv/res_hconf.c (_res_hconf_reorder_addrs): Update caller.
2002-07-24 22:56:44 +00:00
..
alpha * sysdeps/alpha/divrem.h: Use local label instead of global one for 2002-06-15 20:53:53 +00:00
am29k Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
arm Update. 2002-07-15 03:58:49 +00:00
cris Cris stack information. 2002-06-06 14:14:17 +00:00
generic Added <ifaddrs.h> interface with functions `getifaddrs', `freeifaddrs'. 2002-07-24 22:56:44 +00:00
gnu Added <ifaddrs.h> interface with functions `getifaddrs', `freeifaddrs'. 2002-07-24 22:56:44 +00:00
hppa Don't use multi-line string literals. 2002-06-20 06:23:14 +00:00
i386 Update. 2002-07-20 01:14:41 +00:00
i860 Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
i960 Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
ia64 Update. 2002-07-06 06:36:39 +00:00
ieee754 Update. 2002-07-11 05:55:13 +00:00
m68k Remove INTDEF. 2002-06-13 12:38:20 +00:00
m88k Put under LGPL v2.1. 2001-07-07 10:13:33 +00:00
mach Added <ifaddrs.h> interface with functions `getifaddrs', `freeifaddrs'. 2002-07-24 22:56:44 +00:00
mips Update. 2002-07-16 01:02:04 +00:00
posix Update. 2002-07-06 06:36:39 +00:00
powerpc Update. 2002-05-21 00:22:34 +00:00
pthread Update. 2002-06-29 23:35:02 +00:00
rs6000 Put under LGPL v2.1. 2001-07-07 10:13:33 +00:00
s390 Update. 2002-07-11 21:44:15 +00:00
sh Update. 2002-07-20 01:14:41 +00:00
sparc Update. 2002-05-21 02:15:01 +00:00
standalone Update. 2002-07-20 01:14:41 +00:00
tahoe update from main archive 960909 1996-09-10 02:00:15 +00:00
unix Added <ifaddrs.h> interface with functions `getifaddrs', `freeifaddrs'. 2002-07-24 22:56:44 +00:00
vax Update. 2002-07-06 06:36:39 +00:00
wordsize-32 Update. 2002-05-31 00:36:57 +00:00
wordsize-64 Update. 2002-05-09 07:51:40 +00:00
x86_64 Fix whitespace. 2002-07-23 19:36:49 +00:00
z8000 Put under LGPL v2.1. 2001-07-07 10:13:33 +00:00