From ec55b2167a48417126a0ea50840916b9ee49b5bb Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Wed, 23 May 2012 10:23:26 +0000 Subject: [PATCH] Define MADV_DONTDUMP and MADV_DODUMP for MIPS. --- ChangeLog.mips | 6 ++++++ sysdeps/unix/sysv/linux/mips/bits/mman.h | 3 +++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog.mips b/ChangeLog.mips index 8542552..493514b 100644 --- a/ChangeLog.mips +++ b/ChangeLog.mips @@ -1,3 +1,9 @@ +2012-05-23 Joseph Myers + + * sysdeps/unix/sysv/linux/mips/bits/mman.h (MADV_DONTDUMP): + Define. + (MADV_DODUMP): Likewise. + 2012-05-21 Joseph Myers * sysdeps/mips/bits/wordsize.h (__WORDSIZE_COMPAT32): Rename to diff --git a/sysdeps/unix/sysv/linux/mips/bits/mman.h b/sysdeps/unix/sysv/linux/mips/bits/mman.h index e9c919b..26b6502 100644 --- a/sysdeps/unix/sysv/linux/mips/bits/mman.h +++ b/sysdeps/unix/sysv/linux/mips/bits/mman.h @@ -98,6 +98,9 @@ # define MADV_UNMERGEABLE 13 /* KSM may not merge identical pages. */ # define MADV_HUGEPAGE 14 /* Worth backing with hugepages. */ # define MADV_NOHUGEPAGE 15 /* Not worth backing with hugepages. */ +# define MADV_DONTDUMP 16 /* Explicity exclude from the core dump, + overrides the coredump filter bits. */ +# define MADV_DODUMP 17 /* Clear the MADV_DONTDUMP flag. */ # define MADV_HWPOISON 100 /* Poison a page for testing. */ #endif -- 2.7.4