[PATCH v2] Fix linux personality syscall wrapper
Dmitry V. Levin
ldv@altlinux.org
Thu Dec 31 19:41:00 GMT 2015
On Thu, Dec 31, 2015 at 07:06:57PM +0000, Joseph Myers wrote:
> On Wed, 30 Dec 2015, Dmitry V. Levin wrote:
>
> > - for each 32-bit architecture that use negated errno semantics,
> > add a NOERRNO personality entry to their syscalls.list file;
>
> What is your basis for counting MIPS n32 as such an architecture,
I suppose mips/mips64/n32/syscalls.list is for 64-bit MIPS kernel that
shouldn't have this issue because the value returned by sys_personality
is not negative in 64-bit kernels.
> but not counting 32-bit SPARC as one? As far as I can see. MIPS uses separate
> errno return for all ABIs, while SPARC uses negated errno.
MIPS and SPARC both use a dedicated register to signal an error condition
on return from syscall.
--
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20151231/fe42c5eb/attachment.sig>
More information about the Libc-alpha
mailing list