Re: [PATCH 2.6.13-rc7 2/2] New Syscall: set rlimits of any process (reworked)

Alan Cox
2005-08-26T15:06:24Z

On Gwe, 2005-08-26 at 05:39 +0200, Wieland Gmeiner wrote:
> This is the second of two patches, it implements the setprlimit()
> syscall.
>
> Implementation: This patch provides a new syscall setprlimit() for
> writing a given process resource limits for i386. Its implementation
> follows closely the setrlimit syscall. It is given a pid as an

While looking at this have you considered 64bit rlimits on a 32bit box.
If a new API is going to be added it would be a good time to fix the
fact that some limits should be 64bit nowdays and have

setrlimit() existing legacy/standards API
setprlimit64() with size fixed and ability to specify process

Any thoughts on this ?