John Baldwin 18ae4fcc47 If telldir() is called immediately after a call to seekdir(), POSIX
requires the return value of telldir() to equal the value passed to
seekdir().  The current seekdir code with SINGLEUSE enabled breaks
this case as each call to telldir() allocates a new cookie.  Instead,
remove the SINGLEUSE code and change telldir() to look for an existing
cookie for the directory's current location rather than always creating
a new cookie.

CR:		https://phabric.freebsd.org/D490
PR:		121656
Reviewed by:	jilles
MFC after:	1 week
2014-07-29 00:16:33 +00:00
..
2008-10-22 21:56:57 +00:00
2011-11-26 16:49:25 +00:00
2012-08-11 12:07:24 +00:00
2011-10-01 12:19:48 +00:00
2011-10-01 12:19:48 +00:00
2013-08-18 13:25:18 +00:00
2012-04-26 19:21:58 +00:00
2011-05-25 14:13:53 +00:00
2011-12-20 22:56:13 +00:00
2013-04-11 20:15:37 +00:00
2009-03-04 01:01:26 +00:00
2012-03-26 15:18:14 +00:00
2014-05-29 13:35:13 +00:00
2011-02-04 16:40:50 +00:00
2013-04-23 13:03:03 +00:00
2013-04-23 13:03:03 +00:00
2012-12-12 15:27:33 +00:00
2009-05-07 13:49:48 +00:00
2014-07-07 00:27:09 +00:00
2010-01-17 15:43:14 +00:00