summaryrefslogtreecommitdiffstats
path: root/sys/compat
diff options
context:
space:
mode:
authorps <ps@FreeBSD.org>2001-10-10 23:06:54 +0000
committerps <ps@FreeBSD.org>2001-10-10 23:06:54 +0000
commitdb0d5cd641f1c95ac8f8c41ae9c79b92756fb2e2 (patch)
tree851a2b6bf1a0825cd12cca18ac56abe59123f449 /sys/compat
parent63fe581848b6f9a1e281df1b746662fd252d3eab (diff)
downloadFreeBSD-src-db0d5cd641f1c95ac8f8c41ae9c79b92756fb2e2.zip
FreeBSD-src-db0d5cd641f1c95ac8f8c41ae9c79b92756fb2e2.tar.gz
Make MAXTSIZ, DFLDSIZ, MAXDSIZ, DFLSSIZ, MAXSSIZ, SGROWSIZ loader
tunable. Reviewed by: peter MFC after: 2 weeks
Diffstat (limited to 'sys/compat')
-rw-r--r--sys/compat/linux/linux_misc.c2
-rw-r--r--sys/compat/svr4/imgact_svr4.c2
-rw-r--r--sys/compat/svr4/svr4_misc.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c
index 0d21eca..64b9782 100644
--- a/sys/compat/linux/linux_misc.c
+++ b/sys/compat/linux/linux_misc.c
@@ -365,7 +365,7 @@ linux_uselib(struct thread *td, struct linux_uselib_args *args)
* XXX - this is not complete. it should check current usage PLUS
* the resources needed by this library.
*/
- if (a_out->a_text > MAXTSIZ ||
+ if (a_out->a_text > maxtsiz ||
a_out->a_data + bss_size >
td->td_proc->p_rlimit[RLIMIT_DATA].rlim_cur) {
error = ENOMEM;
diff --git a/sys/compat/svr4/imgact_svr4.c b/sys/compat/svr4/imgact_svr4.c
index 6692c98..02ce42f 100644
--- a/sys/compat/svr4/imgact_svr4.c
+++ b/sys/compat/svr4/imgact_svr4.c
@@ -107,7 +107,7 @@ exec_svr4_imgact(imgp)
/*
* text/data/bss must not exceed limits
*/
- if (a_out->a_text > MAXTSIZ ||
+ if (a_out->a_text > maxtsiz ||
a_out->a_data + bss_size > imgp->proc->p_rlimit[RLIMIT_DATA].rlim_cur)
return (ENOMEM);
diff --git a/sys/compat/svr4/svr4_misc.c b/sys/compat/svr4/svr4_misc.c
index fd6c472..700be90 100644
--- a/sys/compat/svr4/svr4_misc.c
+++ b/sys/compat/svr4/svr4_misc.c
@@ -576,7 +576,7 @@ svr4_sys_mmap64(td, uap)
SCARG(&mm, addr) = SCARG(uap, addr);
SCARG(&mm, pos) = SCARG(uap, pos);
- rp = (void *) round_page((vm_offset_t)(td->td_proc->p_vmspace->vm_daddr + MAXDSIZ));
+ rp = (void *) round_page((vm_offset_t)(td->td_proc->p_vmspace->vm_daddr + maxdsiz));
if ((SCARG(&mm, flags) & MAP_FIXED) == 0 &&
SCARG(&mm, addr) != 0 && (void *)SCARG(&mm, addr) < rp)
SCARG(&mm, addr) = rp;
OpenPOWER on IntegriCloud