rlimit.diff

Anonymous, 05/26/2009 07:27 AM

Download (1.13 KB)

View differences:

lib/libc/sys/getrlimit.2
62 62
.Fa resource
63 63
parameter is one of the following:
64 64
.Bl -tag -width RLIMIT_FSIZEAA
65
.It Li RLIMIT_AS
66
The maximum size (in bytes) of a process' total available memory.
67
If this limit is exceeded, the
68
.Xr malloc 3
69
and
70
.Xr mmap 2 functions will fail and errno set to
71
.Dv ENOMEM .
72
Moreover, the automatic stack growth will fail as well.
65 73
.It Li RLIMIT_CORE
66 74
The largest size (in bytes)
67 75
.Xr core 5
sys/sys/resource.h
95 95
#define	RLIMIT_NOFILE	8		/* number of open files */
96 96
#define	RLIMIT_SBSIZE	9		/* maximum size of all socket buffers */
97 97
#define	RLIMIT_VMEM	10		/* virtual process size (inclusive of mmap) */
98
#define	RLIMIT_AS       RLIMIT_VMEM     /* standard name for address space size */
98 99
#define	RLIMIT_POSIXLOCKS 11		/* maximum number of POSIX locks per user */
99 100

  
100 101
#define	RLIM_NLIMITS	12		/* number of resource limits */