mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-24 02:03:35 +08:00
f516442913
2004-06-30 Ulrich Drepper <drepper@redhat.com> * include/net/if.h: Handle if_nameindex and if_freenameindex with libc_proto_hidden. * sysdeps/unix/sysv/linux/netlinkaccess.h: New file. * sysdeps/unix/sysv/linux/ifaddrs.c: Export netlink handling functions. * sysdeps/unix/sysv/linux/if_index.c (if_nameindex): Implement using netlink if possible. Fall back on ioctl method if necessary. * include/unistd.h: Declare __truncate. * sysdeps/generic/truncate.c: Also define __truncate. * sysdeps/mach/hurd/truncate.c: Likewise. * sysdeps/unix/common/syscalls.list: Likewise. * sysdeps/unix/sysv/linux/truncate64.c: Use __truncate, not truncate.
11 lines
194 B
C
11 lines
194 B
C
#ifndef _NET_IF_H
|
|
|
|
# include_next <net/if.h>
|
|
|
|
libc_hidden_proto (if_nametoindex)
|
|
libc_hidden_proto (if_indextoname)
|
|
libc_hidden_proto (if_nameindex)
|
|
libc_hidden_proto (if_freenameindex)
|
|
|
|
#endif
|