telldir()/seekdir() confusion

Jp Calderone exarkun at intarweb.us
Tue Jul 8 18:05:49 PDT 2003


On Tue, Jul 08, 2003 at 03:30:26PM -0500, Dan Nelson wrote:
>
> [snip]
> 
> I don't think there's any pstandard that says that telldir has to
> return a seekable file offset, or that consecutive calls on the same
> position must return the same value.  Think about a filesystem that
> uses hashed or btree-based directories, for example; there may not be a
> way to store the correct position in a single "long" value without
> using a cookie like FreeBSD does.
> 

  Thanks, it all makes sense now.

  Jp


More information about the freebsd-hackers mailing list