diff options
author | Roland McGrath <roland@gnu.org> | 2005-12-20 21:52:56 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2005-12-20 21:52:56 +0000 |
commit | 287058ead3780c3a9ea64a2d09871f9c52db8f3b (patch) | |
tree | 51dc132e721d3fd3bff452f4c200f3613e5a612a /sysdeps/mach/hurd | |
parent | 55b6a4f263bd3b6236174cef4a39a12ac810e9fb (diff) | |
download | glibc-287058ead3780c3a9ea64a2d09871f9c52db8f3b.tar glibc-287058ead3780c3a9ea64a2d09871f9c52db8f3b.tar.gz glibc-287058ead3780c3a9ea64a2d09871f9c52db8f3b.tar.bz2 glibc-287058ead3780c3a9ea64a2d09871f9c52db8f3b.zip |
2005-12-20 Roland McGrath <roland@redhat.com>
* sysdeps/mach/hurd/ifreq.h: File removed.
(__ifreq): Function moved to ...
* sysdeps/mach/hurd/ifreq.c: ... here, new file.
Diffstat (limited to 'sysdeps/mach/hurd')
-rw-r--r-- | sysdeps/mach/hurd/ifreq.c (renamed from sysdeps/mach/hurd/ifreq.h) | 25 |
1 files changed, 2 insertions, 23 deletions
diff --git a/sysdeps/mach/hurd/ifreq.h b/sysdeps/mach/hurd/ifreq.c index 77f0b9cac0..258ea6368d 100644 --- a/sysdeps/mach/hurd/ifreq.h +++ b/sysdeps/mach/hurd/ifreq.c @@ -1,5 +1,5 @@ /* Fetch the host's network interface list. Hurd version. - Copyright (C) 2002 Free Software Foundation, Inc. + Copyright (C) 2002,2005 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -17,14 +17,7 @@ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ -#include <net/if.h> -#include <hurd.h> -#include <hurd/pfinet.h> -#include <sys/socket.h> -#include <sys/mman.h> - - -static inline void +void __ifreq (struct ifreq **ifreqs, int *num_ifs, int sockfd) { file_t server; @@ -64,17 +57,3 @@ __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) -{ - __munmap (ifreqs, num_ifs * sizeof (struct ifreq)); -} |