[PATCH] setrlimit/getrlimit

Thorsten Kukuk kukuk@suse.de
Wed Dec 15 07:46:00 GMT 1999


Hi,

Here are 2 patches for the setrlimit/getrlimit problem with both current
glibc snapshots: 2.2 and 2.1.3

I have moved the u_long RLIM_INFINITY stuff into the i386 directory, so
it is Intel specific. The default is now singed long for RLIM_INFINITY.
This is correct for ALPHA. Don't know about PPC or ARM, so I let it
the old value until there is a solution how to handle this. In the
moment there is no second syscall for binary compatibility on this
platforms.

Jakub, I changed the sparc/bits/resouces.h file as you suggested,
sparc32 uses signed long, sparc64 unsigned long. Could you please
look at the patch ?
I have one problem with this: What happens if somebody compiles
his sparc64 binaries with the new header files and runs for example
linux 2.2.5 ? This kernel doesn't reject negative rlimit values.

  Thorsten

-- 
Thorsten Kukuk       http://www.suse.de/~kukuk/       kukuk@suse.de
SuSE GmbH            Schanzaeckerstr. 10            90443 Nuernberg
Linux is like a Vorlon.  It is incredibly powerful, gives terse,
cryptic answers and has a lot of things going on in the background.


More information about the Libc-hacker mailing list