This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v2] Fix linux personality syscall wrapper


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

Attachment: pgpbvezcxlQRG.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]