sign extension for 32bit syscalls on ppc64

Stephen Rothwell sfr at canb.auug.org.au
Mon May 1 10:05:18 EST 2006


Hi Andreas,

On Sat, 29 Apr 2006 15:46:11 +0200 Andreas Schwab <schwab at suse.de> wrote:
>
> Stephen Rothwell <sfr at canb.auug.org.au> writes:
> 
> > Has any testing been done on these interfaces that involves 32 bit
> > processes passing AT_FDCWD on 64 bit kernels (I realise that it will work
> > for some architectures but I suspect not ppc64).
> 
> Appears to work fine for me (tested with openat).

Try mkdirat. openat has a compat wrapper that has the dfd paramater
declared as a unsigned int and passes it to sys_openat, whose first
paramter is decalred to be int, so the sign extension gets done.

-- 
Cheers,
Stephen Rothwell                    sfr at canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20060501/c352070d/attachment.pgp>


More information about the Linuxppc-dev mailing list