[Bug 121656] [libc] [patch] telldir(3) issues

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Jul 24 20:40:35 UTC 2014


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=121656

John Baldwin <jhb at FreeBSD.org> changed:

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

--- Comment #5 from John Baldwin <jhb at 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.


More information about the freebsd-bugs mailing list