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 /sysdeps/unix/fdopendir.c | |
parent | 66bdbaa4522f561d4ea90a77af243c004ecf642c (diff) | |
download | glibc-28377d1bf58625172a1734b92e835591d4d23a18.zip glibc-28377d1bf58625172a1734b92e835591d4d23a18.tar.gz glibc-28377d1bf58625172a1734b92e835591d4d23a18.tar.bz2 |
Optimize fdopendir a bit.
Don't call fcntl(F_SETFD) unnecessarily.
Diffstat (limited to 'sysdeps/unix/fdopendir.c')
-rw-r--r-- | sysdeps/unix/fdopendir.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/unix/fdopendir.c b/sysdeps/unix/fdopendir.c index 565ce1e..9c5969d 100644 --- a/sysdeps/unix/fdopendir.c +++ b/sysdeps/unix/fdopendir.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2005, 2006 Free Software Foundation, Inc. +/* Copyright (C) 2005, 2006, 2011 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 @@ -47,6 +47,6 @@ __fdopendir (int fd) return NULL; } - return __alloc_dir (fd, false, &statbuf); + return __alloc_dir (fd, false, flags, &statbuf); } weak_alias (__fdopendir, fdopendir) |