Bug #1328 ยป rlimit.diff
lib/libc/sys/getrlimit.2 | ||
---|---|---|
.Fa resource
|
||
parameter is one of the following:
|
||
.Bl -tag -width RLIMIT_FSIZEAA
|
||
.It Li RLIMIT_AS
|
||
The maximum size (in bytes) of a process' total available memory.
|
||
If this limit is exceeded, the
|
||
.Xr malloc 3
|
||
and
|
||
.Xr mmap 2 functions will fail and errno set to
|
||
.Dv ENOMEM .
|
||
Moreover, the automatic stack growth will fail as well.
|
||
.It Li RLIMIT_CORE
|
||
The largest size (in bytes)
|
||
.Xr core 5
|
sys/sys/resource.h | ||
---|---|---|
#define RLIMIT_NOFILE 8 /* number of open files */
|
||
#define RLIMIT_SBSIZE 9 /* maximum size of all socket buffers */
|
||
#define RLIMIT_VMEM 10 /* virtual process size (inclusive of mmap) */
|
||
#define RLIMIT_AS RLIMIT_VMEM /* standard name for address space size */
|
||
#define RLIMIT_POSIXLOCKS 11 /* maximum number of POSIX locks per user */
|
||
#define RLIM_NLIMITS 12 /* number of resource limits */
|