From c294e3b58c72880ef56f9594bea99c2d781c2d67 Mon Sep 17 00:00:00 2001 From: David Schultz Date: Sun, 13 Jun 2004 22:19:29 +0000 Subject: [PATCH] Document RLIMIT_AS. While here, correct an insertion sort error. --- lib/libc/sys/getrlimit.2 | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/lib/libc/sys/getrlimit.2 b/lib/libc/sys/getrlimit.2 index ce0fcd003ad4..0712244da635 100644 --- a/lib/libc/sys/getrlimit.2 +++ b/lib/libc/sys/getrlimit.2 @@ -32,7 +32,7 @@ .\" @(#)getrlimit.2 8.1 (Berkeley) 6/4/93 .\" $FreeBSD$ .\" -.Dd June 4, 1993 +.Dd June 13, 2004 .Dt GETRLIMIT 2 .Os .Sh NAME @@ -61,6 +61,9 @@ The .Fa resource argument is one of the following: .Bl -tag -width RLIMIT_FSIZEAA +.It Li RLIMIT_AS +The maximum amount (in bytes) of virtual memory the process is +allowed to map. .It Li RLIMIT_CORE The largest size (in bytes) .Xr core 5 @@ -90,14 +93,14 @@ grow. This imposes a limit on the amount of physical memory to be given to a process; if memory is tight, the system will prefer to take memory from processes that are exceeding their declared resident set size. -.It Li RLIMIT_STACK -The maximum size (in bytes) of the stack segment for a process; -this defines how far a program's stack segment may be extended. -Stack extension is performed automatically by the system. .It Li RLIMIT_SBSIZE The maximum size (in bytes) of socket buffer usage for this user. This limits the amount of network memory, and hence the amount of mbufs, that this user may hold at any time. +.It Li RLIMIT_STACK +The maximum size (in bytes) of the stack segment for a process; +this defines how far a program's stack segment may be extended. +Stack extension is performed automatically by the system. .El .Pp A resource limit is specified as a soft limit and a hard limit. When a