From 80e6ddab5b6b834f2d6fa7f2078e697ea58cdbf9 Mon Sep 17 00:00:00 2001 From: deraadt Date: Sun, 11 Feb 2018 04:09:19 +0000 Subject: [PATCH] Add MAP_STACK flag. Currently masked by mmap() --- sys/sys/mman.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/sys/mman.h b/sys/sys/mman.h index 1e7884cc2ee..e4d96a1690a 100644 --- a/sys/sys/mman.h +++ b/sys/sys/mman.h @@ -1,4 +1,4 @@ -/* $OpenBSD: mman.h,v 1.29 2016/06/01 04:53:54 guenther Exp $ */ +/* $OpenBSD: mman.h,v 1.30 2018/02/11 04:09:19 deraadt Exp $ */ /* $NetBSD: mman.h,v 1.11 1995/03/26 20:24:23 jtc Exp $ */ /*- @@ -59,8 +59,9 @@ #define MAP_ANON 0x1000 /* allocated from memory, swap space */ #define MAP_ANONYMOUS MAP_ANON /* alternate POSIX spelling */ #define __MAP_NOFAULT 0x2000 +#define MAP_STACK 0x4000 -#define MAP_FLAGMASK 0x3ff7 +#define MAP_FLAGMASK 0x7ff7 #ifndef _KERNEL /* -- 2.20.1