This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


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

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


>>>>> 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

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