Mail Archives: djgpp-workers/1999/02/04/14:17:50
>
>
> On Thu, 4 Feb 1999, Martin Stromberg wrote:
>
> > lseek(x, -1, SEEK_CUR) returns -1 if the file pointer is at zero or at
> > 2^31.
>
> This can be solved also, but is probably messy. So if EDX is the answer
> (in which case Ralf Brown should probably be informed about it), then
> that's the way to go.
Oops! I didn't check closely enough. I didn't lseek() far enough. dx
can hold up to 65535, and I lseek()ed only so dx went up to ~45000.
edx&0xffff0000 is _not_ changed by the call.
Sorry for the confusion.
So can you tell me what your solution to know if we are beyond the
beginnig of the file is?
Right,
MartinS
- Raw text -