[PATCH 2/2] Properly support lseek for n32 and x32

Denys Vlasenko dvlasenk at redhat.com
Mon Apr 16 10:22:16 UTC 2012

On 04/15/2012 08:21 PM, H.J. Lu wrote:
> Hi,
> Linux kernel v3.4 adds x32 support.  Both x32 and n32 use 64bit offset
> for lseek parameter and return value.  We need u_lrval to handle it
> properly.  Also we shouldn't check HAVE_LONG_LONG_OFF_T for n32 lseek.
> This patch fixes it properly and prepares lseek for x32.

Applied with some changes:

- Define u_lrval only for arches which have it.
- Comment out other RVAL_Lfoo consstants and code.



More information about the Strace-devel mailing list