[gambit-list] Re: file-seek in Gambit.

Johannes Groedem johs+n at ifi.uio.no
Sun Sep 18 12:01:17 EDT 2005


* Johannes Groedem <johs+n at ifi.uio.no>:

> The position is set correctly (confirmed by reading a character at
> that position), and the value returned when the position is set is
> [...]

I'm quite sure this has nothing to do with it, but as I went digging,
I found that you're using ints (and ___stream_index, which is an int)
to store return values from lseek, and as the offset value to lseek.
These should both be off_t, which on my platform is 8 bytes, and which
is usually 4 bytes on 32-bit platforms.

-- 
Johannes Groedem <OpenPGP: 5055654C>




More information about the Gambit-list mailing list