]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Define MAP_POPULATE and MAP_NONBLOCK.
authorUlrich Drepper <drepper@redhat.com>
Mon, 3 Mar 2003 09:58:55 +0000 (09:58 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 3 Mar 2003 09:58:55 +0000 (09:58 +0000)
sysdeps/unix/sysv/linux/alpha/bits/mman.h
sysdeps/unix/sysv/linux/arm/bits/mman.h
sysdeps/unix/sysv/linux/hppa/bits/mman.h
sysdeps/unix/sysv/linux/m68k/bits/mman.h

index 77b595a0e5a21174d2e8951169cb9208d53b38ae..918043917bba4379697721326c5ea8c27cac8114 100644 (file)
@@ -1,5 +1,5 @@
 /* Definitions for POSIX memory map interface.  Linux/Alpha version.
-   Copyright (C) 1997, 1998, 2000 Free Software Foundation, Inc.
+   Copyright (C) 1997, 1998, 2000, 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
 
 /* These are Linux-specific.  */
 #ifdef __USE_MISC
-# define MAP_GROWSDOWN   0x1000        /* Stack-like segment.  */
-# define MAP_DENYWRITE   0x2000        /* ETXTBSY */
-# define MAP_EXECUTABLE          0x4000        /* Mark it as an executable.  */
-# define MAP_LOCKED      0x8000        /* Lock the mapping.  */
+# define MAP_GROWSDOWN   0x01000       /* Stack-like segment.  */
+# define MAP_DENYWRITE   0x02000       /* ETXTBSY */
+# define MAP_EXECUTABLE          0x04000       /* Mark it as an executable.  */
+# define MAP_LOCKED      0x08000       /* Lock the mapping.  */
 # define MAP_NORESERVE   0x10000       /* Don't check for reservations.  */
+# define MAP_POPULATE    0x20000       /* Populate (prefault) pagetables.  */
+# define MAP_NONBLOCK    0x40000       /* Do not block on IO.  */
 #endif
 
 /* Flags to `msync'.  */
index 715e0f04c9a6a7070250da6603056830046875ae..c6d475b4de0e04da0f54d0cf8355ebf7391acde5 100644 (file)
@@ -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 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
 
 /* 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'.  */
index 78c0171fae9700abef6e9e7df2b5e8871e867ab6..40db9f9b90a2ea3eca7b6525db459c4593651aa3 100644 (file)
@@ -1,4 +1,21 @@
-/* Definitions for POSIX memory map interface.  Insert rest of disclaimer here */
+/* Definitions for POSIX memory map interface.  Linux/HPPA version.
+   Copyright (C) 1997, 1998, 2000, 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
+   modify it under the terms of the GNU Lesser General Public
+   License as published by the Free Software Foundation; either
+   version 2.1 of the License, or (at your option) any later version.
+
+   The GNU C Library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Lesser General Public License for more details.
+
+   You should have received a copy of the GNU Lesser General Public
+   License along with the GNU C Library; if not, write to the Free
+   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+   02111-1307 USA.  */
 
 #ifndef _SYS_MMAN_H
 # error "Never use <bits/mman.h> directly; include <sys/mman.h> instead."
@@ -22,6 +39,8 @@
 #define MAP_LOCKED     0x2000          /* pages are locked */
 #define MAP_NORESERVE  0x4000          /* don't check for reservations */
 #define MAP_GROWSDOWN  0x8000          /* stack-like segment */
+#define MAP_POPULATE   0x10000         /* populate (prefault) pagetables */
+#define MAP_NONBLOCK   0x20000         /* do not block on IO */
 
 #define MS_SYNC                1               /* synchronous memory sync */
 #define MS_ASYNC       2               /* sync memory asynchronously */
@@ -58,4 +77,3 @@
 #ifdef __USE_GNU
 # define MREMAP_MAYMOVE 1
 #endif
-
index 5c49fc89870a82847cda3cfdb2367070b1871d9b..350ea95bf946eeada2672cd8fbcf4d2c88175adb 100644 (file)
 
 /* 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'.  */