rlimits: redo do_setrlimit to more generic do_prlimit
authorJiri Slaby <jslaby@suse.cz>
Wed, 24 Mar 2010 15:11:29 +0000 (16:11 +0100)
committerJiri Slaby <jirislaby@gmail.com>
Fri, 16 Jul 2010 07:48:48 +0000 (09:48 +0200)
It now allows also reading of limits. I.e. all read and writes will
later use this function.

It takes two parameters, new and old limits which can be both NULL.
If new is non-NULL, the value in it is set to rlimits.
If old is non-NULL, current rlimits are stored there.
If both are non-NULL, old are stored prior to setting the new ones,
atomically.
(Similar to sigaction.)

Signed-off-by: Jiri Slaby <jslaby@suse.cz>

No differences found