svn commit: trunk/uClibc/libc/sysdeps/linux: arm/bits cris/bits hppa/bits i386/bits m etc...

vapier at uclibc.org vapier at uclibc.org
Fri Apr 21 01:33:28 UTC 2006


Author: vapier
Date: 2006-04-20 18:33:25 -0700 (Thu, 20 Apr 2006)
New Revision: 14935

Log:
sync with glibc

Modified:
   trunk/uClibc/libc/sysdeps/linux/arm/bits/mman.h
   trunk/uClibc/libc/sysdeps/linux/cris/bits/mman.h
   trunk/uClibc/libc/sysdeps/linux/hppa/bits/mman.h
   trunk/uClibc/libc/sysdeps/linux/i386/bits/mman.h
   trunk/uClibc/libc/sysdeps/linux/m68k/bits/mman.h
   trunk/uClibc/libc/sysdeps/linux/mips/bits/mman.h
   trunk/uClibc/libc/sysdeps/linux/sh/bits/mman.h
   trunk/uClibc/libc/sysdeps/linux/sparc/bits/mman.h
   trunk/uClibc/libc/sysdeps/linux/x86_64/bits/mman.h


Changeset:
Modified: trunk/uClibc/libc/sysdeps/linux/arm/bits/mman.h
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/arm/bits/mman.h	2006-04-21 01:26:44 UTC (rev 14934)
+++ trunk/uClibc/libc/sysdeps/linux/arm/bits/mman.h	2006-04-21 01:33:25 UTC (rev 14935)
@@ -1,5 +1,5 @@
 /* Definitions for POSIX memory map interface.  Linux/ARM version.
-   Copyright (C) 1997, 2000 Free Software Foundation, Inc.
+   Copyright (C) 1997, 2000, 2003, 2005 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
@@ -34,6 +34,10 @@
 #define PROT_WRITE	0x2		/* Page can be written.  */
 #define PROT_EXEC	0x4		/* Page can be executed.  */
 #define PROT_NONE	0x0		/* Page can not be accessed.  */
+#define PROT_GROWSDOWN	0x01000000	/* Extend change to start of
+					   growsdown vma (mprotect only).  */
+#define PROT_GROWSUP	0x02000000	/* Extend change to start of
+					   growsup vma (mprotect only).  */
 
 /* Sharing types (must choose one and only one of these).  */
 #define MAP_SHARED	0x01		/* Share changes.  */
@@ -52,11 +56,13 @@
 
 /* These are Linux-specific.  */
 #ifdef __USE_MISC
-# define MAP_GROWSDOWN	0x0100		/* Stack-like segment.  */
-# define MAP_DENYWRITE	0x0800		/* ETXTBSY */
-# define MAP_EXECUTABLE	0x1000		/* Mark it as an executable.  */
-# define MAP_LOCKED	0x2000		/* Lock the mapping.  */
-# define MAP_NORESERVE	0x4000		/* Don't check for reservations.  */
+# define MAP_GROWSDOWN	0x00100		/* Stack-like segment.  */
+# define MAP_DENYWRITE	0x00800		/* ETXTBSY */
+# define MAP_EXECUTABLE	0x01000		/* Mark it as an executable.  */
+# define MAP_LOCKED	0x02000		/* Lock the mapping.  */
+# define MAP_NORESERVE	0x04000		/* Don't check for reservations.  */
+# define MAP_POPULATE	0x08000		/* Populate (prefault) pagetables.  */
+# define MAP_NONBLOCK	0x10000		/* Do not block on IO.  */
 #endif
 
 /* Flags to `msync'.  */

Modified: trunk/uClibc/libc/sysdeps/linux/cris/bits/mman.h
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/cris/bits/mman.h	2006-04-21 01:26:44 UTC (rev 14934)
+++ trunk/uClibc/libc/sysdeps/linux/cris/bits/mman.h	2006-04-21 01:33:25 UTC (rev 14935)
@@ -1,5 +1,5 @@
-/* Definitions for POSIX memory map interface.  Linux/cris version.
-   Copyright (C) 1997, 2000 Free Software Foundation, Inc.
+/* Definitions for POSIX memory map interface.  Linux/CRIS version.
+   Copyright (C) 1997, 2000, 2001, 2003 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
@@ -34,6 +34,10 @@
 #define PROT_WRITE	0x2		/* Page can be written.  */
 #define PROT_EXEC	0x4		/* Page can be executed.  */
 #define PROT_NONE	0x0		/* Page can not be accessed.  */
+#define PROT_GROWSDOWN	0x01000000	/* Extend change to start of
+					   growsdown vma (mprotect only).  */
+#define PROT_GROWSUP	0x02000000	/* Extend change to start of
+					   growsup vma (mprotect only).  */
 
 /* Sharing types (must choose one and only one of these).  */
 #define MAP_SHARED	0x01		/* Share changes.  */

Modified: trunk/uClibc/libc/sysdeps/linux/hppa/bits/mman.h
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/hppa/bits/mman.h	2006-04-21 01:26:44 UTC (rev 14934)
+++ trunk/uClibc/libc/sysdeps/linux/hppa/bits/mman.h	2006-04-21 01:33:25 UTC (rev 14935)
@@ -82,3 +82,5 @@
 # define MREMAP_MAYMOVE 1
 # define MREMAP_FIXED	2
 #endif
+
+

Modified: trunk/uClibc/libc/sysdeps/linux/i386/bits/mman.h
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/i386/bits/mman.h	2006-04-21 01:26:44 UTC (rev 14934)
+++ trunk/uClibc/libc/sysdeps/linux/i386/bits/mman.h	2006-04-21 01:33:25 UTC (rev 14935)
@@ -1,5 +1,5 @@
 /* Definitions for POSIX memory map interface.  Linux/i386 version.
-   Copyright (C) 1997, 2000 Free Software Foundation, Inc.
+   Copyright (C) 1997, 2000, 2003, 2005, 2006 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
@@ -34,6 +34,10 @@
 #define PROT_WRITE	0x2		/* Page can be written.  */
 #define PROT_EXEC	0x4		/* Page can be executed.  */
 #define PROT_NONE	0x0		/* Page can not be accessed.  */
+#define PROT_GROWSDOWN	0x01000000	/* Extend change to start of
+					   growsdown vma (mprotect only).  */
+#define PROT_GROWSUP	0x02000000	/* Extend change to start of
+					   growsup vma (mprotect only).  */
 
 /* Sharing types (must choose one and only one of these).  */
 #define MAP_SHARED	0x01		/* Share changes.  */
@@ -52,11 +56,13 @@
 
 /* These are Linux-specific.  */
 #ifdef __USE_MISC
-# define MAP_GROWSDOWN	0x0100		/* Stack-like segment.  */
-# define MAP_DENYWRITE	0x0800		/* ETXTBSY */
-# define MAP_EXECUTABLE	0x1000		/* Mark it as an executable.  */
-# define MAP_LOCKED	0x2000		/* Lock the mapping.  */
-# define MAP_NORESERVE	0x4000		/* Don't check for reservations.  */
+# define MAP_GROWSDOWN	0x00100		/* Stack-like segment.  */
+# define MAP_DENYWRITE	0x00800		/* ETXTBSY */
+# define MAP_EXECUTABLE	0x01000		/* Mark it as an executable.  */
+# define MAP_LOCKED	0x02000		/* Lock the mapping.  */
+# define MAP_NORESERVE	0x04000		/* Don't check for reservations.  */
+# define MAP_POPULATE	0x08000		/* Populate (prefault) pagetables.  */
+# define MAP_NONBLOCK	0x10000		/* Do not block on IO.  */
 #endif
 
 /* Flags to `msync'.  */
@@ -82,6 +88,9 @@
 # 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	 5	/* Remove these pages and resources.  */
+# define MADV_DONTFORK	 10	/* Do not inherit across fork.  */
+# define MADV_DOFORK	 11	/* Do inherit across fork.  */
 #endif
 
 /* The POSIX people had to invent similar names for the same things.  */

Modified: trunk/uClibc/libc/sysdeps/linux/m68k/bits/mman.h
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/m68k/bits/mman.h	2006-04-21 01:26:44 UTC (rev 14934)
+++ trunk/uClibc/libc/sysdeps/linux/m68k/bits/mman.h	2006-04-21 01:33:25 UTC (rev 14935)
@@ -88,6 +88,8 @@
 # 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_DONTFORK	 10	/* Do not inherit across fork.  */
+# define MADV_DOFORK	 11	/* Do inherit across fork.  */
 #endif
 
 /* The POSIX people had to invent similar names for the same things.  */

Modified: trunk/uClibc/libc/sysdeps/linux/mips/bits/mman.h
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/mips/bits/mman.h	2006-04-21 01:26:44 UTC (rev 14934)
+++ trunk/uClibc/libc/sysdeps/linux/mips/bits/mman.h	2006-04-21 01:33:25 UTC (rev 14935)
@@ -1,5 +1,6 @@
 /* Definitions for POSIX memory map interface.  Linux/MIPS version.
-   Copyright (C) 1997, 2000 Free Software Foundation, Inc.
+   Copyright (C) 1997, 2000, 2003, 2004, 2005, 2006
+   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
@@ -34,6 +35,10 @@
 #define PROT_WRITE	0x2		/* Page can be written.  */
 #define PROT_EXEC	0x4		/* Page can be executed.  */
 #define PROT_NONE	0x0		/* Page can not be accessed.  */
+#define PROT_GROWSDOWN	0x01000000	/* Extend change to start of
+					   growsdown vma (mprotect only).  */
+#define PROT_GROWSUP	0x02000000	/* Extend change to start of
+					   growsup vma (mprotect only).  */
 
 /* Sharing types (must choose one and only one of these).  */
 #define MAP_SHARED	0x01		/* Share changes.  */
@@ -59,6 +64,8 @@
 # define MAP_DENYWRITE	0x2000		/* ETXTBSY */
 # define MAP_EXECUTABLE	0x4000		/* mark it as an executable */
 # define MAP_LOCKED	0x8000		/* pages are locked */
+# define MAP_POPULATE   0x10000         /* populate (prefault) pagetables */
+# define MAP_NONBLOCK   0x20000         /* do not block on IO */
 #endif
 
 /* Flags to `msync'.  */
@@ -78,6 +85,7 @@
 #define MADV_SEQUENTIAL	2		/* read-ahead aggressively */
 #define MADV_WILLNEED	3		/* pre-fault pages */
 #define MADV_DONTNEED	4		/* discard these pages */
+#define MADV_REMOVE	5		/* remove these pages & resources */
 #endif
 
 /* Flags for `mremap'.  */

Modified: trunk/uClibc/libc/sysdeps/linux/sh/bits/mman.h
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/sh/bits/mman.h	2006-04-21 01:26:44 UTC (rev 14934)
+++ trunk/uClibc/libc/sysdeps/linux/sh/bits/mman.h	2006-04-21 01:33:25 UTC (rev 14935)
@@ -1,5 +1,5 @@
 /* Definitions for POSIX memory map interface.  Linux/SH version.
-   Copyright (C) 1997, 1999, 2000 Free Software Foundation, Inc.
+   Copyright (C) 1997,1999,2000,2003,2005,2006 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
@@ -34,6 +34,10 @@
 #define PROT_WRITE	0x2		/* Page can be written.  */
 #define PROT_EXEC	0x4		/* Page can be executed.  */
 #define PROT_NONE	0x0		/* Page can not be accessed.  */
+#define PROT_GROWSDOWN	0x01000000	/* Extend change to start of
+					   growsdown vma (mprotect only).  */
+#define PROT_GROWSUP	0x02000000	/* Extend change to start of
+					   growsup vma (mprotect only).  */
 
 /* Sharing types (must choose one and only one of these).  */
 #define MAP_SHARED	0x01		/* Share changes.  */
@@ -57,6 +61,8 @@
 # define MAP_EXECUTABLE	0x1000		/* Mark it as an executable.  */
 # define MAP_LOCKED	0x2000		/* Lock the mapping.  */
 # define MAP_NORESERVE	0x4000		/* Don't check for reservations.  */
+# define MAP_POPULATE	0x8000		/* Populate (prefault) pagetables.  */
+# define MAP_NONBLOCK	0x10000		/* Do not block on IO.  */
 #endif
 
 /* Flags to `msync'.  */
@@ -82,6 +88,9 @@
 # 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	 5	/* Remove these pages and resources.  */
+# define MADV_DONTFORK	 10	/* Do not inherit across fork.  */
+# define MADV_DOFORK	 11	/* Do inherit across fork.  */
 #endif
 
 /* The POSIX people had to invent similar names for the same things.  */

Modified: trunk/uClibc/libc/sysdeps/linux/sparc/bits/mman.h
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/sparc/bits/mman.h	2006-04-21 01:26:44 UTC (rev 14934)
+++ trunk/uClibc/libc/sysdeps/linux/sparc/bits/mman.h	2006-04-21 01:33:25 UTC (rev 14935)
@@ -1,5 +1,5 @@
 /* Definitions for POSIX memory map interface.  Linux/SPARC version.
-   Copyright (C) 1997, 1999, 2000, 2003, 2005 Free Software Foundation, Inc.
+   Copyright (C) 1997,1999,2000,2003,2005,2006 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
@@ -90,6 +90,10 @@
 # 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	 6	/* Remove these pages and resources.  */
+# define MADV_DONTFORK	 10	/* Do not inherit across fork.  */
+# define MADV_DOFORK	 11	/* Do inherit across fork.  */
 #endif
 
 /* The POSIX people had to invent similar names for the same things.  */

Modified: trunk/uClibc/libc/sysdeps/linux/x86_64/bits/mman.h
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/x86_64/bits/mman.h	2006-04-21 01:26:44 UTC (rev 14934)
+++ trunk/uClibc/libc/sysdeps/linux/x86_64/bits/mman.h	2006-04-21 01:33:25 UTC (rev 14935)
@@ -90,6 +90,8 @@
 # define MADV_WILLNEED	 3	/* Will need these pages.  */
 # define MADV_DONTNEED	 4	/* Don't need these pages.  */
 # define MADV_REMOVE	 5	/* Remove these pages and resources.  */
+# define MADV_DONTFORK	 10	/* Do not inherit across fork.  */
+# define MADV_DOFORK	 11	/* Do inherit across fork.  */
 #endif
 
 /* The POSIX people had to invent similar names for the same things.  */




More information about the uClibc-cvs mailing list