Thread (9 messages) flat view 9 messages, 4 authors, 2006-05-01

Re: sign extension for 32bit syscalls on ppc64

From: Stephen Rothwell <hidden>
Date: 2006-05-01 00:05:42

Hi Andreas,

On Sat, 29 Apr 2006 15:46:11 +0200 Andreas Schwab [off-list ref] wrote:
Stephen Rothwell [off-list ref] writes:
quoted
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@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help