posix_setrlimit

Set system resource limits

&reftitle.description; `bool` `posix_setrlimit` `int` `resource` `int` `soft_limit` `int` `hard_limit`

`posix_setrlimit` sets the soft and hard limits for a given system resource.

&posix.rlimits;
&reftitle.parameters;

`resource`

- The resource limit constant corresponding to the limit that is being set.

`soft_limit`

- The soft limit, in whatever unit the resource limit requires, or `POSIX_RLIMIT_INFINITY`.

`hard_limit`

- The hard limit, in whatever unit the resource limit requires, or `POSIX_RLIMIT_INFINITY`.

&reftitle.returnvalues;

&return.success;

&reftitle.seealso;

- man page SETRLIMIT(2)
- `posix_getrlimit`