summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2012-05-23 10:23:26 +0000
committerJoseph Myers <joseph@codesourcery.com>2012-05-23 10:23:26 +0000
commitec55b2167a48417126a0ea50840916b9ee49b5bb (patch)
tree4d314a90ba9d958f1d63a164a55fc4d01a53b10b
parent2def71058eb4df553026d6b3e4419d30a2f82c9b (diff)
downloadglibc-ec55b2167a48417126a0ea50840916b9ee49b5bb.tar.gz
Define MADV_DONTDUMP and MADV_DODUMP for MIPS.
-rw-r--r--ChangeLog.mips6
-rw-r--r--sysdeps/unix/sysv/linux/mips/bits/mman.h3
2 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog.mips b/ChangeLog.mips
index 8542552131..493514bb99 100644
--- a/ChangeLog.mips
+++ b/ChangeLog.mips
@@ -1,3 +1,9 @@
+2012-05-23 Joseph Myers <joseph@codesourcery.com>
+
+ * sysdeps/unix/sysv/linux/mips/bits/mman.h (MADV_DONTDUMP):
+ Define.
+ (MADV_DODUMP): Likewise.
+
2012-05-21 Joseph Myers <joseph@codesourcery.com>
* 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 e9c919b8cd..26b6502c4f 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