Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Jul 2014 20:40:35 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 121656] [libc] [patch] telldir(3) issues
Message-ID:  <bug-121656-8-RSZVbT37bM@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-121656-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-121656-8@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=121656

John Baldwin <jhb@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jhb@FreeBSD.org

--- Comment #5 from John Baldwin <jhb@FreeBSD.org> ---
Much of this patch is not needed.  The existing dd_td list is already
per-directory instead of being a global cache table.  Also, the problem
description is not at all clear.  I think one of the root bugs is that if you
call 'seekdir() followed by telldir()', POSIX requires the return value of
telldir() to match the value passed to seekdir().  Fixing this means removing
the (I think dubious) SINGLEUSE code and fixing telldir() to look for an
existing loc structure for the current position instead of always allocating a
new one.  That should be a much smaller patch.  The only additional
complication is if the dd_loc list should instead be changed so it is easier to
locate an existing loc for the current position (i.e. either sorting the list
or using a hash table)

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-121656-8-RSZVbT37bM>