telldir()/seekdir() confusion

2003-07-08 Thread Jp Calderone
I'm trying to work out some inconsistent behavior in my app across platforms. On FreeBSD, seekdir() doesn't seem to behave as I expect it to. Here's a short program that demonstrates my confusion: #include #include #include int main() { DIR* dirp; off_t pos; struct dirent* ent;

Re: telldir()/seekdir() confusion

2003-07-08 Thread Jp Calderone
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