« Return to Thread: [PATCH] hppa: add missing prlimit64 symbol

Re: [PATCH] hppa: add missing prlimit64 symbol

by Mike Frysinger :: Rate this Message:

| View in Thread

On Thursday 12 April 2012 19:07:24 Roland McGrath wrote:
> > All other arches have this in their syscall list.  Looks like hppa
> > is missing it though and breaks one or two apps that try to call it.
>
> If it's really "all", then why isn't it in linux/syscalls.list instead?

i'm not familiar with how stacking works and the syscalls.list, but the 64bit
arches need to do something different from the 32bit arches.  on 64bit,
prlimit64 is just an alias to prlimit.  for 32bit arches, they need to declare
the list themselves.

sysdeps/unix/sysv/linux/wordsize-64/syscalls.list lists it unconditionally
(for the alias), and from there, it seems that all the 32bit arches add it to
their arch-specific list.

sysdeps/unix/sysv/linux/sh/syscalls.list:prlimit64    EXTRA   prlimit64       i:iipp  prlimit64
sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list:prlimit64     EXTRA   prlimit64       i:iipp  prlimit64
sysdeps/unix/sysv/linux/i386/syscalls.list:prlimit64  EXTRA   prlimit64       i:iipp  prlimit64
sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list:prlimit64 EXTRA   prlimit64       i:iipp  prlimit64
sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list:prlimit64  EXTRA   prlimit64       i:iipp  prlimit64
ports/sysdeps/unix/sysv/linux/arm/syscalls.list:prlimit64     EXTRA   prlimit64       i:iipp  prlimit64
ports/sysdeps/unix/sysv/linux/mips/mips32/syscalls.list:prlimit64     EXTRA   prlimit64       i:iipp  prlimit64
ports/sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list:prlimit64 EXTRA   prlimit64       i:iipp  prlimit64
ports/sysdeps/unix/sysv/linux/m68k/syscalls.list:prlimit64    EXTRA   prlimit64       i:iipp  prlimit64

hppa is the only one here i can see missing.  and probably the new
"generic/wordsize-32/" ...
-mike


signature.asc (853 bytes) Download Attachment

 « Return to Thread: [PATCH] hppa: add missing prlimit64 symbol