[PATCH] Re: 32bit uids on Alpha, MIPS, PPC and Sparc64

Andreas Jaeger aj@suse.de
Tue Feb 1 08:50:00 GMT 2000


>>>>> Jakub Jelinek writes:

Jakub> On Tue, Feb 01, 2000 at 02:34:53PM +0100, Andreas Jaeger wrote:
>> 
>> AFAIK the Linux ports for Alpha, MIPS, PPC and Sparc64 always had
>> 32bit uids and therefore don't need any compatibility stuff.
>> 
>> The following five files in sysdeps/unix/sysv/linux use __ASSUME_32BITUIDS:
>> 
>> getresgid.c, getresuid.c, msgctl.c, semctl.c, shmctl.c
>> 
>> Looking at the code from e.g. getresuid.c, I don't think this will
>> work with Alpha etc.  Jakub, does it work for you on Ultrasparc with
>> headers from 2.3.39+ kernels and --enable-kernel=2.3.40?  I would be
>> surprised ;-)

Jakub> It does work on sparc64:
Jakub> [jj@tucnak src]# grep getres[ug]id /usr/src/libc/sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
Jakub> getresuid       -       getresuid       3       getresuid
Jakub> getresgid       -       getresgid       3       getresgid
I overlooked this (looked only at MIPS which was broken) :-(

[...]
>> 
>> What's the best way to handle this?

Jakub> Patch attached.
Thanks!  It's a pleasure to work with you.:-)

The patch looks fine to me.
Andreas
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.rhein-neckar.de


More information about the Libc-hacker mailing list