diff options
author | Roland McGrath <roland@gnu.org> | 2002-08-27 02:10:01 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2002-08-27 02:10:01 +0000 |
commit | 20acbc25428bb7c9a78de37236285a09108da313 (patch) | |
tree | 5a9d6f3918a16fcc41bf8925e55fc32dc71b2836 /sysdeps/mach/hurd/ifreq.h | |
parent | d387cc3fffa54bd0649f439e792b42b38e469c48 (diff) | |
download | glibc-20acbc25428bb7c9a78de37236285a09108da313.tar glibc-20acbc25428bb7c9a78de37236285a09108da313.tar.gz glibc-20acbc25428bb7c9a78de37236285a09108da313.tar.bz2 glibc-20acbc25428bb7c9a78de37236285a09108da313.zip |
* time/sys/time.h [__USE_BSD] (lutimes, futimes): Declare them.
* manual/filesys.texi (File Times): Document lutimes and futimes.
* misc/Makefile (routines): Add them.
* misc/Versions (libc: GLIBC_2.3): Likewise.
* sysdeps/generic/lutimes.c: New file.
* sysdeps/generic/futimes.c: New file.
* sysdeps/mach/hurd/lutimes.c: New file.
* sysdeps/mach/hurd/futimes.c: New file.
* manual/filesys.texi (File Times): Add explicit note about null
pointer argument to utimes.
2002-08-26 Roland McGrath <roland@frob.com>
* sysdeps/mach/hurd/ifreq.h (__if_freereq): Add missing semicolon.
(__ifreq): Add a cast. Remove an unused variable.
* hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add
_HURD_THREADVAR_LOCALE.
Diffstat (limited to 'sysdeps/mach/hurd/ifreq.h')
-rw-r--r-- | sysdeps/mach/hurd/ifreq.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sysdeps/mach/hurd/ifreq.h b/sysdeps/mach/hurd/ifreq.h index 737dee9285..f2143d8c70 100644 --- a/sysdeps/mach/hurd/ifreq.h +++ b/sysdeps/mach/hurd/ifreq.h @@ -27,7 +27,6 @@ static inline void __ifreq (struct ifreq **ifreqs, int *num_ifs, int sockfd) { - struct ifconf ifc; file_t server; server = _hurd_socket_server (PF_INET, 0); @@ -49,7 +48,7 @@ __ifreq (struct ifreq **ifreqs, int *num_ifs, int sockfd) server = _hurd_socket_server (PF_INET, 1); if (server == MACH_PORT_NULL) goto out; - err = __pfinet_siocgifconf (server, -1, ifreqs, &len); + err = __pfinet_siocgifconf (server, -1, (data_t *) ifreqs, &len); } if (err) goto out; @@ -70,5 +69,5 @@ __ifreq (struct ifreq **ifreqs, int *num_ifs, int sockfd) static inline void __if_freereq (struct ifreq *ifreqs, int num_ifs) { - munmap (ifreqs, num_ifs * sizeof (struct ifreq)) + __munmap (ifreqs, num_ifs * sizeof (struct ifreq)); } |