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
..
2012-02-25 10:58:02 +00:00
2011-12-13 14:53:26 +00:00
2010-08-03 17:40:09 +00:00
2010-12-04 08:44:56 +00:00
2012-02-11 20:43:01 +00:00
2012-02-10 13:47:40 +00:00
2011-11-18 09:56:40 +00:00
2012-02-25 14:31:25 +00:00
2011-09-28 14:52:25 +00:00
2012-02-25 14:31:25 +00:00
2011-12-30 10:45:00 +00:00