diff options
author | Ulrich Drepper <drepper@gmail.com> | 2011-05-08 00:48:30 -0400 |
---|---|---|
committer | Ulrich Drepper <drepper@gmail.com> | 2011-05-08 00:48:30 -0400 |
commit | 28377d1bf58625172a1734b92e835591d4d23a18 (patch) | |
tree | 4a05343e1493965e45971e6f3a7d5566da23596f /include/dirent.h | |
parent | 66bdbaa4522f561d4ea90a77af243c004ecf642c (diff) | |
download | glibc-28377d1bf58625172a1734b92e835591d4d23a18.tar glibc-28377d1bf58625172a1734b92e835591d4d23a18.tar.gz glibc-28377d1bf58625172a1734b92e835591d4d23a18.tar.bz2 glibc-28377d1bf58625172a1734b92e835591d4d23a18.zip |
Optimize fdopendir a bit.
Don't call fcntl(F_SETFD) unnecessarily.
Diffstat (limited to 'include/dirent.h')
-rw-r--r-- | include/dirent.h | 3 |
1 files changed, 2 insertions, 1 deletions
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 |