]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Add missing Linux MADV_* definitions.
authorUlrich Drepper <drepper@redhat.com>
Tue, 17 Nov 2009 14:43:39 +0000 (06:43 -0800)
committerUlrich Drepper <drepper@redhat.com>
Tue, 17 Nov 2009 14:43:39 +0000 (06:43 -0800)
ChangeLog
sysdeps/unix/sysv/linux/i386/bits/mman.h
sysdeps/unix/sysv/linux/ia64/bits/mman.h
sysdeps/unix/sysv/linux/powerpc/bits/mman.h
sysdeps/unix/sysv/linux/s390/bits/mman.h
sysdeps/unix/sysv/linux/sh/bits/mman.h
sysdeps/unix/sysv/linux/sparc/bits/mman.h
sysdeps/unix/sysv/linux/x86_64/bits/mman.h

index c3918b74c1461035eff094823669cf90fbf66e6e..26153bdab3f153e08259ca9f3df72698bb6f0f78 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2009-11-17  Ulrich Drepper  <drepper@redhat.com>
+
+       [BZ #10972]
+       * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Add new MADV_*
+       constants from recent kernels.
+       * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
+       * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
+       * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
+       * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
+       * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
+       * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
+
 2009-11-09  H.J. Lu  <hongjiu.lu@intel.com>
 
        [BZ #10162]
@@ -10,7 +22,7 @@
        (fallocate): Return ENOSYS if __NR_fallocate is not defined.
        * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
 
-2009-11-06  Mike Frsyinger  <vapier@gentoo.org>
+2009-11-06  Mike Frysinger  <vapier@gentoo.org>
 
        * posix/bug-regex29.c: Include stdio.h.
 
index 2b90c8d7d5306d41df053937dbbdba241358e7e0..22aa401e021457019f118ac8656bdbafad985320 100644 (file)
@@ -1,5 +1,5 @@
 /* Definitions for POSIX memory map interface.  Linux/i386 version.
-   Copyright (C) 1997, 2000, 2003, 2005, 2006 Free Software Foundation, Inc.
+   Copyright (C) 1997,2000,2003,2005,2006,2009 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
 
 /* Advice to `madvise'.  */
 #ifdef __USE_BSD
-# define MADV_NORMAL    0      /* No further special treatment.  */
-# define MADV_RANDOM    1      /* Expect random page references.  */
-# define MADV_SEQUENTIAL 2     /* Expect sequential page references.  */
-# define MADV_WILLNEED  3      /* Will need these pages.  */
-# define MADV_DONTNEED  4      /* Don't need these pages.  */
-# define MADV_REMOVE    9      /* Remove these pages and resources.  */
-# define MADV_DONTFORK  10     /* Do not inherit across fork.  */
-# define MADV_DOFORK    11     /* Do inherit across fork.  */
+# define MADV_NORMAL     0     /* No further special treatment.  */
+# define MADV_RANDOM     1     /* Expect random page references.  */
+# define MADV_SEQUENTIAL  2    /* Expect sequential page references.  */
+# define MADV_WILLNEED   3     /* Will need these pages.  */
+# define MADV_DONTNEED   4     /* Don't need these pages.  */
+# define MADV_REMOVE     9     /* Remove these pages and resources.  */
+# define MADV_DONTFORK   10    /* Do not inherit across fork.  */
+# 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_HWPOISON   100   /* Poison a page for testing.  */
 #endif
 
 /* The POSIX people had to invent similar names for the same things.  */
index a27a30fc0c399ba508bc0f5702778f5c25baa75d..1b278c79eeaf7dc55a89a9cf43f08cfa0dbcc157 100644 (file)
@@ -1,5 +1,6 @@
 /* Definitions for POSIX memory map interface.  Linux/ia64 version.
-   Copyright (C) 1997,1998,2000,2003,2005,2006 Free Software Foundation, Inc.
+   Copyright (C) 1997,1998,2000,2003,2005,2006,2009
+   Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
 
 /* Advice to `madvise'.  */
 #ifdef __USE_BSD
-# define MADV_NORMAL    0      /* No further special treatment.  */
-# define MADV_RANDOM    1      /* Expect random page references.  */
-# define MADV_SEQUENTIAL 2     /* Expect sequential page references.  */
-# define MADV_WILLNEED  3      /* Will need these pages.  */
-# define MADV_DONTNEED  4      /* Don't need these pages.  */
-# define MADV_REMOVE    9      /* Remove these pages and resources.  */
-# define MADV_DONTFORK  10     /* Do not inherit across fork.  */
-# define MADV_DOFORK    11     /* Do inherit across fork.  */
+# define MADV_NORMAL     0     /* No further special treatment.  */
+# define MADV_RANDOM     1     /* Expect random page references.  */
+# define MADV_SEQUENTIAL  2    /* Expect sequential page references.  */
+# define MADV_WILLNEED   3     /* Will need these pages.  */
+# define MADV_DONTNEED   4     /* Don't need these pages.  */
+# define MADV_REMOVE     9     /* Remove these pages and resources.  */
+# define MADV_DONTFORK   10    /* Do not inherit across fork.  */
+# 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_HWPOISON   100   /* Poison a page for testing.  */
 #endif
 
 /* The POSIX people had to invent similar names for the same things.  */
index d5729a1f1c3701074abfac666c33f24bac9e1f74..e6580f82202c2c81490713439aa679db9c134fd1 100644 (file)
@@ -1,5 +1,6 @@
 /* Definitions for POSIX memory map interface.  Linux/PowerPC version.
-   Copyright (C) 1997,2000,2003,2005,2006,2008 Free Software Foundation, Inc.
+   Copyright (C) 1997,2000,2003,2005,2006,2008,2009
+   Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
 
 /* Advice to `madvise'.  */
 #ifdef __USE_BSD
-# define MADV_NORMAL    0      /* No further special treatment.  */
-# define MADV_RANDOM    1      /* Expect random page references.  */
-# define MADV_SEQUENTIAL 2     /* Expect sequential page references.  */
-# define MADV_WILLNEED  3      /* Will need these pages.  */
-# define MADV_DONTNEED  4      /* Don't need these pages.  */
-# define MADV_REMOVE    9      /* Remove these pages and resources.  */
-# define MADV_DONTFORK  10     /* Do not inherit across fork.  */
-# define MADV_DOFORK    11     /* Do inherit across fork.  */
+# define MADV_NORMAL     0     /* No further special treatment.  */
+# define MADV_RANDOM     1     /* Expect random page references.  */
+# define MADV_SEQUENTIAL  2    /* Expect sequential page references.  */
+# define MADV_WILLNEED   3     /* Will need these pages.  */
+# define MADV_DONTNEED   4     /* Don't need these pages.  */
+# define MADV_REMOVE     9     /* Remove these pages and resources.  */
+# define MADV_DONTFORK   10    /* Do not inherit across fork.  */
+# 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_HWPOISON   100   /* Poison a page for testing.  */
 #endif
 
 /* The POSIX people had to invent similar names for the same things.  */
index d25531c282ca5743557eb5dd539aab9bd94a877e..daeafd48ff724f4311492569a34a8585ed924cba 100644 (file)
@@ -1,5 +1,5 @@
 /* Definitions for POSIX memory map interface.  Linux/s390 version.
-   Copyright (C) 2000,2001,2002,2003,2005,2006 Free Software Foundation, Inc.
+   Copyright (C) 2000-2003,2005,2006,2009 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
 
 /* Advice to `madvise'.  */
 #ifdef __USE_BSD
-# define MADV_NORMAL    0      /* No further special treatment.  */
-# define MADV_RANDOM    1      /* Expect random page references.  */
-# define MADV_SEQUENTIAL 2     /* Expect sequential page references.  */
-# define MADV_WILLNEED  3      /* Will need these pages.  */
-# define MADV_DONTNEED  4      /* Don't need these pages.  */
-# define MADV_REMOVE    9      /* Remove these pages and resources.  */
-# define MADV_DONTFORK  10     /* Do not inherit across fork.  */
-# define MADV_DOFORK    11     /* Do inherit across fork.  */
+# define MADV_NORMAL     0     /* No further special treatment.  */
+# define MADV_RANDOM     1     /* Expect random page references.  */
+# define MADV_SEQUENTIAL  2    /* Expect sequential page references.  */
+# define MADV_WILLNEED   3     /* Will need these pages.  */
+# define MADV_DONTNEED   4     /* Don't need these pages.  */
+# define MADV_REMOVE     9     /* Remove these pages and resources.  */
+# define MADV_DONTFORK   10    /* Do not inherit across fork.  */
+# 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_HWPOISON   100   /* Poison a page for testing.  */
 #endif
 
 /* The POSIX people had to invent similar names for the same things.  */
index 7a6b572a4ee2b7154009378e750a52d281bb34f6..aee00112559a91b248d3a9d958de0015c9dee148 100644 (file)
@@ -1,5 +1,6 @@
 /* Definitions for POSIX memory map interface.  Linux/SH version.
-   Copyright (C) 1997,1999,2000,2003,2005,2006 Free Software Foundation, Inc.
+   Copyright (C) 1997,1999,2000,2003,2005,2006,2009
+   Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
 
 /* Advice to `madvise'.  */
 #ifdef __USE_BSD
-# define MADV_NORMAL    0      /* No further special treatment.  */
-# define MADV_RANDOM    1      /* Expect random page references.  */
-# define MADV_SEQUENTIAL 2     /* Expect sequential page references.  */
-# define MADV_WILLNEED  3      /* Will need these pages.  */
-# define MADV_DONTNEED  4      /* Don't need these pages.  */
-# define MADV_REMOVE    9      /* Remove these pages and resources.  */
-# define MADV_DONTFORK  10     /* Do not inherit across fork.  */
-# define MADV_DOFORK    11     /* Do inherit across fork.  */
+# define MADV_NORMAL     0     /* No further special treatment.  */
+# define MADV_RANDOM     1     /* Expect random page references.  */
+# define MADV_SEQUENTIAL  2    /* Expect sequential page references.  */
+# define MADV_WILLNEED   3     /* Will need these pages.  */
+# define MADV_DONTNEED   4     /* Don't need these pages.  */
+# define MADV_REMOVE     9     /* Remove these pages and resources.  */
+# define MADV_DONTFORK   10    /* Do not inherit across fork.  */
+# 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_HWPOISON   100   /* Poison a page for testing.  */
 #endif
 
 /* The POSIX people had to invent similar names for the same things.  */
index be2b7eb280ba8abd1b905263d8cd2aa9805e87ca..71a3aa6a30a10fbd58eb68419bcb42ba762e09bc 100644 (file)
@@ -1,5 +1,6 @@
 /* Definitions for POSIX memory map interface.  Linux/SPARC version.
-   Copyright (C) 1997,1999,2000,2003,2005,2006 Free Software Foundation, Inc.
+   Copyright (C) 1997,1999,2000,2003,2005,2006,2009
+   Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
 
 /* Advice to `madvise'.  */
 #ifdef __USE_BSD
-# define MADV_NORMAL    0      /* No further special treatment.  */
-# define MADV_RANDOM    1      /* Expect random page references.  */
-# define MADV_SEQUENTIAL 2     /* Expect sequential page references.  */
-# define MADV_WILLNEED  3      /* Will need these pages.  */
-# define MADV_DONTNEED  4      /* Don't need these pages.  */
-# define MADV_FREE      5      /* Content can be freed (Solaris).  */
-# define MADV_REMOVE    9      /* Remove these pages and resources.  */
-# define MADV_DONTFORK  10     /* Do not inherit across fork.  */
-# define MADV_DOFORK    11     /* Do inherit across fork.  */
+# define MADV_NORMAL     0     /* No further special treatment.  */
+# define MADV_RANDOM     1     /* Expect random page references.  */
+# define MADV_SEQUENTIAL  2    /* Expect sequential page references.  */
+# define MADV_WILLNEED   3     /* Will need these pages.  */
+# define MADV_DONTNEED   4     /* Don't need these pages.  */
+# define MADV_FREE       5     /* Content can be freed (Solaris).  */
+# define MADV_REMOVE     9     /* Remove these pages and resources.  */
+# define MADV_DONTFORK   10    /* Do not inherit across fork.  */
+# 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_HWPOISON   100   /* Poison a page for testing.  */
 #endif
 
 /* The POSIX people had to invent similar names for the same things.  */
index 7810682536157852d3d0e9b15d6a2cdcb8177583..3dcbf9c3178052132c0722694cab6f1cdb4fa716 100644 (file)
@@ -1,5 +1,5 @@
 /* Definitions for POSIX memory map interface.  Linux/x86_64 version.
-   Copyright (C) 2001, 2003, 2005, 2006 Free Software Foundation, Inc.
+   Copyright (C) 2001, 2003, 2005, 2006, 2009 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
 
 /* Advice to `madvise'.  */
 #ifdef __USE_BSD
-# define MADV_NORMAL    0      /* No further special treatment.  */
-# define MADV_RANDOM    1      /* Expect random page references.  */
-# define MADV_SEQUENTIAL 2     /* Expect sequential page references.  */
-# define MADV_WILLNEED  3      /* Will need these pages.  */
-# define MADV_DONTNEED  4      /* Don't need these pages.  */
-# define MADV_REMOVE    9      /* Remove these pages and resources.  */
-# define MADV_DONTFORK  10     /* Do not inherit across fork.  */
-# define MADV_DOFORK    11     /* Do inherit across fork.  */
+# define MADV_NORMAL     0     /* No further special treatment.  */
+# define MADV_RANDOM     1     /* Expect random page references.  */
+# define MADV_SEQUENTIAL  2    /* Expect sequential page references.  */
+# define MADV_WILLNEED   3     /* Will need these pages.  */
+# define MADV_DONTNEED   4     /* Don't need these pages.  */
+# define MADV_REMOVE     9     /* Remove these pages and resources.  */
+# define MADV_DONTFORK   10    /* Do not inherit across fork.  */
+# 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_HWPOISON   100   /* Poison a page for testing.  */
 #endif
 
 /* The POSIX people had to invent similar names for the same things.  */