From 8a351f8497a99aa8a0e5386001805c8a0bfe0076 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Sun, 3 Sep 2017 04:06:51 +0200 Subject: [PATCH] getrlimit.2: Note that RLIMIT_AS and RLIMIT_DATA are rounded down to system page size Signed-off-by: Michael Kerrisk --- man2/getrlimit.2 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/man2/getrlimit.2 b/man2/getrlimit.2 index c6b6e4b08..ec9dfcb92 100644 --- a/man2/getrlimit.2 +++ b/man2/getrlimit.2 @@ -126,7 +126,8 @@ argument must be one of: .TP .B RLIMIT_AS This is the maximum size of the process's virtual memory -(address space) in bytes. +(address space). +The limit is specified in bytes, and is rounded down to the system page size. .\" since 2.0.27 / 2.1.12 This limit affects calls to .BR brk (2), @@ -176,9 +177,10 @@ perform an orderly termination upon first receipt of .BR SIGXCPU .) .TP .B RLIMIT_DATA -This is the maximum size (in bytes) +This is the maximum size of the process's data segment (initialized data, uninitialized data, and heap). +The limit is specified in bytes, and is rounded down to the system page size. This limit affects calls to .BR brk (2) and