setrlimit(2)
DESCRIPTION
Changes a supported native resource limit from input. Astia supports RLIMIT_NOFILE and RLIMIT_AS.
SYNOPSIS
long setrlimit(int resource, const astia_rlimit *input);
RETURN VALUE
- Returns zero, or a negative errno.
ERRORS
-EFAULT- Input is null or not readable userspace memory.
-EINVAL- Resource or the requested limit is invalid.
-EPERM- The requested hard-limit change is not permitted.
-ESRCH- There is no current process.
NOTES
A process may lower its limits but cannot raise a hard limit.