summaryrefslogtreecommitdiffstats
path: root/sys/compat/svr4/svr4_resource.c
diff options
context:
space:
mode:
authordillon <dillon@FreeBSD.org>2002-08-30 18:09:46 +0000
committerdillon <dillon@FreeBSD.org>2002-08-30 18:09:46 +0000
commit85479bded200a1b62985abab079cf75a21e9da96 (patch)
tree56c20790c1678608fb11f1c12698ce4d4ad23672 /sys/compat/svr4/svr4_resource.c
parent52a0704905111dec0d39b6fc3ad76bf6791f1fe3 (diff)
downloadFreeBSD-src-85479bded200a1b62985abab079cf75a21e9da96.zip
FreeBSD-src-85479bded200a1b62985abab079cf75a21e9da96.tar.gz
Implement data, text, and vmem limit checking in the elf loader and svr4
compat code. Clean up accounting for multiple segments. Part 1/2. Submitted by: Andrey Alekseyev <uitm@zenon.net> (with some modifications) MFC after: 3 days
Diffstat (limited to 'sys/compat/svr4/svr4_resource.c')
-rw-r--r--sys/compat/svr4/svr4_resource.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/svr4/svr4_resource.c b/sys/compat/svr4/svr4_resource.c
index 289e6fa..2d7a0ea 100644
--- a/sys/compat/svr4/svr4_resource.c
+++ b/sys/compat/svr4/svr4_resource.c
@@ -108,7 +108,7 @@ svr4_to_native_rl(rl)
case SVR4_RLIMIT_NOFILE:
return RLIMIT_NOFILE;
case SVR4_RLIMIT_VMEM:
- return RLIMIT_RSS;
+ return RLIMIT_VMEM;
default:
return -1;
}
OpenPOWER on IntegriCloud