public inbox for libc-ports@sourceware.org
 help / color / mirror / Atom feed
* bits/mman.h updates for Linux 3.4
@ 2012-05-23 10:25 Joseph S. Myers
  2012-05-23 12:21 ` Chris Metcalf
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Joseph S. Myers @ 2012-05-23 10:25 UTC (permalink / raw)
  To: libc-ports

I've applied these bits/mman.h updates for ARM and MIPS in line with a 
recent libc and kernel change.  Other architecture maintainers will need 
to update their versions similarly (in the case of PA, using different 
values from the other architectures).

diff --git a/ChangeLog.arm b/ChangeLog.arm
index bb1bab7..f6eac63 100644
--- a/ChangeLog.arm
+++ b/ChangeLog.arm
@@ -1,3 +1,8 @@
+2012-05-23  Joseph Myers  <joseph@codesourcery.com>
+
+	* sysdeps/unix/sysv/linux/arm/bits/mman.h (MADV_DONTDUMP): Define.
+	(MADV_DODUMP): Likewise.
+
 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
 
 	* sysdeps/unix/sysv/linux/arm/bits/hwcap.h: New file.  Macros
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  <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/arm/bits/mman.h b/sysdeps/unix/sysv/linux/arm/bits/mman.h
index 46c7249..09b9c45 100644
--- a/sysdeps/unix/sysv/linux/arm/bits/mman.h
+++ b/sysdeps/unix/sysv/linux/arm/bits/mman.h
@@ -96,6 +96,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
 
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
 

-- 
Joseph S. Myers
joseph@codesourcery.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: bits/mman.h updates for Linux 3.4
  2012-05-23 10:25 bits/mman.h updates for Linux 3.4 Joseph S. Myers
@ 2012-05-23 12:21 ` Chris Metcalf
  2012-05-24 17:50 ` Richard Henderson
  2012-05-25  0:23 ` [PATCH] ia64: mman.h: define MADV_DO{,NT}DUMP Mike Frysinger
  2 siblings, 0 replies; 5+ messages in thread
From: Chris Metcalf @ 2012-05-23 12:21 UTC (permalink / raw)
  To: Joseph S. Myers; +Cc: libc-ports

On 5/23/2012 6:25 AM, Joseph S. Myers wrote:
> I've applied these bits/mman.h updates for ARM and MIPS in line with a 
> recent libc and kernel change.  Other architecture maintainers will need 
> to update their versions similarly

Done for tile.

-- 
Chris Metcalf, Tilera Corp.
http://www.tilera.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: bits/mman.h updates for Linux 3.4
  2012-05-23 10:25 bits/mman.h updates for Linux 3.4 Joseph S. Myers
  2012-05-23 12:21 ` Chris Metcalf
@ 2012-05-24 17:50 ` Richard Henderson
  2012-05-24 18:00   ` Richard Henderson
  2012-05-25  0:23 ` [PATCH] ia64: mman.h: define MADV_DO{,NT}DUMP Mike Frysinger
  2 siblings, 1 reply; 5+ messages in thread
From: Richard Henderson @ 2012-05-24 17:50 UTC (permalink / raw)
  To: libc-ports

[-- Attachment #1: Type: text/plain, Size: 330 bytes --]

On 05/23/2012 03:25 AM, Joseph S. Myers wrote:
> I've applied these bits/mman.h updates for ARM and MIPS in line with a
> recent libc and kernel change.  Other architecture maintainers will need
> to update their versions similarly (in the case of PA, using different
> values from the other architectures).

Done for alpha.


r~

[-- Attachment #2: z --]
[-- Type: text/plain, Size: 452 bytes --]

diff --git a/NEWS b/NEWS
index b244d29..586f40f 100644
--- a/NEWS
+++ b/NEWS
@@ -71,6 +71,10 @@ Version 2.16
   Note that glibc is not expected to work with any Linux kernel version
   before 2.6.
 
+* New header <sys/auxv.h> and function getauxval allowing easy access to
+  the AT_* key-value pairs passed from the Linux kernel.  The header also
+  defines the HWCAP_* bits associated with the AT_HWCAP key.
+
 * New locales: mag_IN
 \f
 Version 2.15

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: bits/mman.h updates for Linux 3.4
  2012-05-24 17:50 ` Richard Henderson
@ 2012-05-24 18:00   ` Richard Henderson
  0 siblings, 0 replies; 5+ messages in thread
From: Richard Henderson @ 2012-05-24 18:00 UTC (permalink / raw)
  To: libc-ports

[-- Attachment #1: Type: text/plain, Size: 9 bytes --]

Bah.

r~

[-- Attachment #2: z --]
[-- Type: text/plain, Size: 918 bytes --]

        * sysdeps/unix/sysv/linux/alpha/bits/mman.h (MADV_HUGEPAGE): New.
        (MADV_NOHUGEPAGE, MADV_DONTDUMP, MADV_DODUMP): New.


diff --git a/sysdeps/unix/sysv/linux/alpha/bits/mman.h b/sysdeps/unix/sysv/linux/alpha/bits/mman.h
index 6635bd4..419cc5c 100644
--- a/sysdeps/unix/sysv/linux/alpha/bits/mman.h
+++ b/sysdeps/unix/sysv/linux/alpha/bits/mman.h
@@ -102,6 +102,10 @@
 # define MADV_DOFORK      11 /* Do inherit across fork.  */
 # define MADV_MERGEABLE   12 /* KSM may merge identical pages.  */
 # 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 /* Exclude from the core dump.  */
+# define MADV_DODUMP      17 /* Clear MADV_DONTDUMP.  */
 # define MADV_HWPOISON   100 /* Poison a page for testing.  */
 #endif
 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH] ia64: mman.h: define MADV_DO{,NT}DUMP
  2012-05-23 10:25 bits/mman.h updates for Linux 3.4 Joseph S. Myers
  2012-05-23 12:21 ` Chris Metcalf
  2012-05-24 17:50 ` Richard Henderson
@ 2012-05-25  0:23 ` Mike Frysinger
  2 siblings, 0 replies; 5+ messages in thread
From: Mike Frysinger @ 2012-05-25  0:23 UTC (permalink / raw)
  To: libc-ports

Add new types from linux-3.4.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 ChangeLog.ia64                           |    5 +++++
 sysdeps/unix/sysv/linux/ia64/bits/mman.h |    3 +++
 2 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/ChangeLog.ia64 b/ChangeLog.ia64
index fc0befb..29c8799 100644
--- a/ChangeLog.ia64
+++ b/ChangeLog.ia64
@@ -1,3 +1,8 @@
+2012-05-24  Mike Frysinger  <vapier@gentoo.org>
+
+	* sysdeps/unix/sysv/linux/ia64/bits/mman.h (MADV_DONTDUMP): Define.
+	(MADV_DODUMP): Likewise.
+
 2012-05-23  Mike Frysinger  <vapier@gentoo.org>
 
 	* sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Add forward
diff --git a/sysdeps/unix/sysv/linux/ia64/bits/mman.h b/sysdeps/unix/sysv/linux/ia64/bits/mman.h
index 01c6b8a..59285fe 100644
--- a/sysdeps/unix/sysv/linux/ia64/bits/mman.h
+++ b/sysdeps/unix/sysv/linux/ia64/bits/mman.h
@@ -97,6 +97,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
 
-- 
1.7.8.6

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-05-25  0:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-23 10:25 bits/mman.h updates for Linux 3.4 Joseph S. Myers
2012-05-23 12:21 ` Chris Metcalf
2012-05-24 17:50 ` Richard Henderson
2012-05-24 18:00   ` Richard Henderson
2012-05-25  0:23 ` [PATCH] ia64: mman.h: define MADV_DO{,NT}DUMP Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).