Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/compat/linux/arch/alpha make MAXTSIZ optional



details:   https://anonhg.NetBSD.org/src/rev/c95f366b6f38
branches:  trunk
changeset: 944670:c95f366b6f38
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Oct 06 13:38:49 2020 +0000

description:
make MAXTSIZ optional

diffstat:

 sys/compat/linux/arch/alpha/linux_osf1.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r a8419e45973c -r c95f366b6f38 sys/compat/linux/arch/alpha/linux_osf1.c
--- a/sys/compat/linux/arch/alpha/linux_osf1.c  Tue Oct 06 13:38:00 2020 +0000
+++ b/sys/compat/linux/arch/alpha/linux_osf1.c  Tue Oct 06 13:38:49 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: linux_osf1.c,v 1.3 2019/04/06 03:06:28 thorpej Exp $   */
+/*     $NetBSD: linux_osf1.c,v 1.4 2020/10/06 13:38:49 christos Exp $  */
 
 /*
  * Copyright (c) 1999 Christopher G. Demetriou.  All rights reserved.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_osf1.c,v 1.3 2019/04/06 03:06:28 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_osf1.c,v 1.4 2020/10/06 13:38:49 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -314,8 +314,10 @@
 
        if (dsize > p->p_rlimit[RLIMIT_DATA].rlim_cur)
                return (ENOMEM);
+#ifdef MAXTSIZ
        if (tsize > MAXTSIZ)
                return (ENOMEM);
+#endif
 
        /* XXXSMP unlocked */
        p->p_vmspace->vm_taddr = SCARG(uap, taddr);



Home | Main Index | Thread Index | Old Index