public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] setrlimit/getrlimit
@ 1999-12-15  7:46 Thorsten Kukuk
  1999-12-15  8:04 ` Jakub Jelinek
  0 siblings, 1 reply; 2+ messages in thread
From: Thorsten Kukuk @ 1999-12-15  7:46 UTC (permalink / raw)
  To: libc-hacker

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1999-12-15  8:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-12-15  7:46 [PATCH] setrlimit/getrlimit Thorsten Kukuk
1999-12-15  8:04 ` Jakub Jelinek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).