From 28377d1bf58625172a1734b92e835591d4d23a18 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 8 May 2011 00:48:30 -0400 Subject: Optimize fdopendir a bit. Don't call fcntl(F_SETFD) unnecessarily. --- include/dirent.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/dirent.h b/include/dirent.h index 3f6c4b9ae5..4db63a626c 100644 --- a/include/dirent.h +++ b/include/dirent.h @@ -28,7 +28,8 @@ extern int __alphasort64 (const struct dirent64 **a, const struct dirent64 **b) extern int __versionsort64 (const struct dirent64 **a, const struct dirent64 **b) __attribute_pure__; -extern DIR *__alloc_dir (int fd, bool close_fd, const struct stat64 *statp) +extern DIR *__alloc_dir (int fd, bool close_fd, int flags, + const struct stat64 *statp) internal_function; #endif -- cgit 1.4.1