This is the mail archive of the
glibc-cvs@sources.redhat.com
mailing list for the glibc project.
libc ./ChangeLog sysdeps/mach/hurd/if_index.c
- To: glibc-cvs at sourceware dot cygnus dot com
- Subject: libc ./ChangeLog sysdeps/mach/hurd/if_index.c
- From: kettenis at sourceware dot cygnus dot com
- Date: 1 Jul 2001 12:06:11 -0000
CVSROOT: /cvs/glibc
Module name: libc
Changes by: kettenis@sources.redhat.com 2001-07-01 05:06:11
Modified files:
. : ChangeLog
sysdeps/mach/hurd: if_index.c
Log message:
* sysdeps/mach/hurd/if_index.c: Redone to use new interfaces in
the Hurd pfinet server, using equivalent code from the Linux
version in sysdeps/unix/sysv/linux/if_index.c. In detail:
Include <unistd.h>, <error.h>, <sys/ioctl.h>, <hurd/ioctl.h> and
<hurd/pfinet.h>. Don't include <sys/mman.h> and <hurd/fsys.h>
anymore.
(if_nametoindex): New implementation using SIOCGIFINDEX.
(if_freenameindex): Straight copy of the Linux version.
(if_nameindex): New implementation based on pfinet_siocgifconf and
SIOCGIFINDEX.
(if_indextoname): New implementation using SIOCGIFNAME.
(map_interfaces): Function removed.
From Marcus Brinkmann <marcus@gnu.org>.