From 18b8e054cf34f78f100b74b37e54673730530249 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 14 Oct 2005 21:11:09 +0000 Subject: * sysdeps/unix/opendir.c (__opendir): Pass extra argument to __alloc_dir. (__alloc_dir): Only close descriptor on error if new parameter is true. * sysdeps/unix/fdopendir.c (fdopendir): Pass extra argument to __alloc_dir. Don't close fd on error. * include/dirent.h (__alloc_dir): Adjust prototype. * include/sys/mman.h (__mremap): Add ellipsis. * malloc/memusage.c: Adjust mremap wrapper for optional additional parameter. --- include/dirent.h | 3 ++- include/sys/mman.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/dirent.h b/include/dirent.h index b040a042d3..81ad24d9dd 100644 --- a/include/dirent.h +++ b/include/dirent.h @@ -24,5 +24,6 @@ extern int __alphasort64 (const void *a, const void *b) __attribute_pure__; extern int __versionsort64 (const void *a, const void *b) __attribute_pure__; -extern DIR *__alloc_dir (int fd, struct stat64 *statp) internal_function; +extern DIR *__alloc_dir (int fd, bool close_fd, struct stat64 *statp) + internal_function; #endif diff --git a/include/sys/mman.h b/include/sys/mman.h index 14e757892e..8c07a4e2c6 100644 --- a/include/sys/mman.h +++ b/include/sys/mman.h @@ -11,5 +11,5 @@ extern int __mprotect (void *__addr, size_t __len, int __prot); /* This one is Linux specific. */ extern void *__mremap (void *__addr, size_t __old_len, - size_t __new_len, int __may_move); + size_t __new_len, int __flags, ...); #endif -- cgit 1.4.1