Add missing Linux MADV_* definitions.

This commit is contained in:
Ulrich Drepper 2009-11-17 06:43:39 -08:00
parent 65a1148bdd
commit 2866eeb1b7
8 changed files with 102 additions and 65 deletions

View File

@ -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> 2009-11-09 H.J. Lu <hongjiu.lu@intel.com>
[BZ #10162] [BZ #10162]
@ -10,7 +22,7 @@
(fallocate): Return ENOSYS if __NR_fallocate is not defined. (fallocate): Return ENOSYS if __NR_fallocate is not defined.
* sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise. * 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. * posix/bug-regex29.c: Include stdio.h.

View File

@ -1,5 +1,5 @@
/* Definitions for POSIX memory map interface. Linux/i386 version. /* 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. This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or The GNU C Library is free software; you can redistribute it and/or
@ -92,6 +92,9 @@
# define MADV_REMOVE 9 /* Remove these pages and resources. */ # define MADV_REMOVE 9 /* Remove these pages and resources. */
# define MADV_DONTFORK 10 /* Do not inherit across fork. */ # define MADV_DONTFORK 10 /* Do not inherit across fork. */
# define MADV_DOFORK 11 /* Do 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 #endif
/* The POSIX people had to invent similar names for the same things. */ /* The POSIX people had to invent similar names for the same things. */

View File

@ -1,5 +1,6 @@
/* Definitions for POSIX memory map interface. Linux/ia64 version. /* 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. This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or The GNU C Library is free software; you can redistribute it and/or
@ -92,6 +93,9 @@
# define MADV_REMOVE 9 /* Remove these pages and resources. */ # define MADV_REMOVE 9 /* Remove these pages and resources. */
# define MADV_DONTFORK 10 /* Do not inherit across fork. */ # define MADV_DONTFORK 10 /* Do not inherit across fork. */
# define MADV_DOFORK 11 /* Do 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 #endif
/* The POSIX people had to invent similar names for the same things. */ /* The POSIX people had to invent similar names for the same things. */

View File

@ -1,5 +1,6 @@
/* Definitions for POSIX memory map interface. Linux/PowerPC version. /* 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. This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or The GNU C Library is free software; you can redistribute it and/or
@ -93,6 +94,9 @@
# define MADV_REMOVE 9 /* Remove these pages and resources. */ # define MADV_REMOVE 9 /* Remove these pages and resources. */
# define MADV_DONTFORK 10 /* Do not inherit across fork. */ # define MADV_DONTFORK 10 /* Do not inherit across fork. */
# define MADV_DOFORK 11 /* Do 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 #endif
/* The POSIX people had to invent similar names for the same things. */ /* The POSIX people had to invent similar names for the same things. */

View File

@ -1,5 +1,5 @@
/* Definitions for POSIX memory map interface. Linux/s390 version. /* 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. This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or The GNU C Library is free software; you can redistribute it and/or
@ -92,6 +92,9 @@
# define MADV_REMOVE 9 /* Remove these pages and resources. */ # define MADV_REMOVE 9 /* Remove these pages and resources. */
# define MADV_DONTFORK 10 /* Do not inherit across fork. */ # define MADV_DONTFORK 10 /* Do not inherit across fork. */
# define MADV_DOFORK 11 /* Do 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 #endif
/* The POSIX people had to invent similar names for the same things. */ /* The POSIX people had to invent similar names for the same things. */

View File

@ -1,5 +1,6 @@
/* Definitions for POSIX memory map interface. Linux/SH version. /* 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. This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or The GNU C Library is free software; you can redistribute it and/or
@ -91,6 +92,9 @@
# define MADV_REMOVE 9 /* Remove these pages and resources. */ # define MADV_REMOVE 9 /* Remove these pages and resources. */
# define MADV_DONTFORK 10 /* Do not inherit across fork. */ # define MADV_DONTFORK 10 /* Do not inherit across fork. */
# define MADV_DOFORK 11 /* Do 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 #endif
/* The POSIX people had to invent similar names for the same things. */ /* The POSIX people had to invent similar names for the same things. */

View File

@ -1,5 +1,6 @@
/* Definitions for POSIX memory map interface. Linux/SPARC version. /* 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. This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or The GNU C Library is free software; you can redistribute it and/or
@ -94,6 +95,9 @@
# define MADV_REMOVE 9 /* Remove these pages and resources. */ # define MADV_REMOVE 9 /* Remove these pages and resources. */
# define MADV_DONTFORK 10 /* Do not inherit across fork. */ # define MADV_DONTFORK 10 /* Do not inherit across fork. */
# define MADV_DOFORK 11 /* Do 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 #endif
/* The POSIX people had to invent similar names for the same things. */ /* The POSIX people had to invent similar names for the same things. */

View File

@ -1,5 +1,5 @@
/* Definitions for POSIX memory map interface. Linux/x86_64 version. /* 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. This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or The GNU C Library is free software; you can redistribute it and/or
@ -93,6 +93,9 @@
# define MADV_REMOVE 9 /* Remove these pages and resources. */ # define MADV_REMOVE 9 /* Remove these pages and resources. */
# define MADV_DONTFORK 10 /* Do not inherit across fork. */ # define MADV_DONTFORK 10 /* Do not inherit across fork. */
# define MADV_DOFORK 11 /* Do 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 #endif
/* The POSIX people had to invent similar names for the same things. */ /* The POSIX people had to invent similar names for the same things. */