Ruslan Ermilov e5fb99b712 Removed excessive _seekdir() call in closedir(). This saves one lseek()
syscall.  Before r5958, seekdir() was called for its side effect of
freeing memory allocated by opendir() for rewinddir(), but that revision
added _reclaim_telldir() that frees all memory allocated by telldir()
calls, making this call redundant.

This introduces a slight change.  If an application duplicated the descriptor
obtained through dirfd(), it can no longer rely on file position to be
reset to the start of file after a call to closedir().  It's believed to
be safe because neither POSIX, nor any other OS I've tested (NetBSD, Linux,
OS X) rewind the file offset pointer on closedir().

Reported by:	Igor Sysoev
2012-03-02 14:05:50 +00:00
..
2011-11-26 16:49:25 +00:00
2011-10-01 12:19:48 +00:00
2011-10-01 12:19:48 +00:00
2012-02-17 12:40:27 +00:00
2011-05-25 14:13:53 +00:00
2011-03-16 08:58:09 +00:00
2012-02-18 00:55:54 +00:00
2011-06-18 00:29:10 +00:00
2009-11-25 04:45:45 +00:00
2012-02-11 20:28:42 +00:00
2011-12-20 22:56:13 +00:00
2011-12-20 22:56:44 +00:00
2009-03-04 01:01:26 +00:00
2009-03-04 01:01:26 +00:00
2011-02-04 16:40:50 +00:00
2010-02-02 19:44:51 +00:00
2010-01-20 11:59:46 +00:00
2011-02-04 16:40:50 +00:00
2009-05-07 13:49:48 +00:00
2010-01-24 14:44:05 +00:00
2010-01-17 15:43:14 +00:00
2009-11-25 04:45:45 +00:00