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/87613e9356a3
branches: trunk
changeset: 940216:87613e9356a3
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 e402de2c7b31 -r 87613e9356a3 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