sign extension for 32bit syscalls on ppc64

Stephen Rothwell sfr at canb.auug.org.au
Sat Apr 29 11:30:59 EST 2006


On Sat, 29 Apr 2006 09:32:17 +1000 Paul Mackerras <paulus at samba.org> wrote:
>
> However, it's debatable whether file descriptor arguments really need
> to be sign-extended.  Although they are typed as int, negative values
> are not generally valid (although there are one or two cases where
> they are), and an fd value of 4294967295 will generate an EBADF error
> just as well as -1 will.

They do need to be sign extended for the new *at syscalls where you can pass
a sepecial value AT_FDCWD (-10) to represent the current directory ...

-- 
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/20060429/b595cedb/attachment.pgp>


More information about the Linuxppc-dev mailing list