[lug] Linux syscall 19 lseek() produces unexpected output

Carl Hamlin carl at eceria.com
Mon Oct 29 10:11:02 MDT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ted Logan wrote:
> Do you want:
> 
>        mov     edx, 2          ;       edx - SEEK_END
> 
> instead of:
> 
>        sub     edx, 2          ;       edx - SEEK_END
> 
> That is, assigning edx = SEEK_END, rather than subtracting 2 from
> whatever value edx held before?

Thanks. Good catch - I was trying to use 140 instead of 19 for a bit
there to see if it gave me any better results and forgot to change that
back to mov.

Same results, though.


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHJgYQhnZ133XoNC8RAkanAJ0fcxSC5WSpYLXxpIpcn9OycY502QCeMutM
ILMLSEBuFii7llxWCALxxu0=
=669y
-----END PGP SIGNATURE-----



More information about the LUG mailing list