]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Mon, 3 Mar 2003 10:05:49 +0000 (10:05 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 3 Mar 2003 10:05:49 +0000 (10:05 +0000)
2003-03-03  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/unix/sysv/linux/syscalls.list: Add remap_file_pages entry.
* misc/sys/mman.h: Add prototype for remap_file_pages.
* sysdeps/generic/remap_file_pages.c: New file.

* sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_POPULATE
and MAP_NONBLOCK.
* sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
* sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise
* sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
* sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
* sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
* sysdeps/unix/sysv/linux/hppa/bits/mman.h: Likewise.
* sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
* sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.

* sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Add missing brace.

12 files changed:
ChangeLog
misc/Versions
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/i386/bits/mman.h
sysdeps/unix/sysv/linux/ia64/bits/mman.h
sysdeps/unix/sysv/linux/m68k/bits/mman.h
sysdeps/unix/sysv/linux/powerpc/bits/mman.h
sysdeps/unix/sysv/linux/s390/bits/mman.h
sysdeps/unix/sysv/linux/syscalls.list
sysdeps/unix/sysv/linux/x86_64/bits/mman.h

index 9f668f2a3518f03b8da720007bfb0e8fb9971471..1882e465d4af36771a614f9ccad3a4520c940c25 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,20 @@
+2003-03-03  Ulrich Drepper  <drepper@redhat.com>
+
+       * sysdeps/unix/sysv/linux/syscalls.list: Add remap_file_pages entry.
+       * misc/sys/mman.h: Add prototype for remap_file_pages.
+       * sysdeps/generic/remap_file_pages.c: New file.
+
+       * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_POPULATE
+       and MAP_NONBLOCK.
+       * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
+       * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise
+       * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
+       * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
+       * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
+       * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Likewise.
+       * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
+       * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
+
 2003-03-03  Roland McGrath  <roland@redhat.com>
 
        * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Revert last change.
@@ -18,8 +35,7 @@
 
 2003-03-03  Andreas Jaeger  <aj@suse.de>
 
-       * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Add missing
-       brace.
+       * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Add missing brace.
 
 2003-03-02  Roland McGrath  <roland@redhat.com>
 
index 674ac48544a4b0e2e048f90f0b1849458fbe3f7c..95310b7fb457727d40afb9bfea2d4b8902fcb974 100644 (file)
@@ -127,6 +127,9 @@ libc {
     # s*
     setxattr;
   }
+  GLIBC_2.3.3 {
+    remap_file_pages;
+  }
   GLIBC_PRIVATE {
     # functions which have an additional interface since they are
     # cancelable.
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 0778afbb540b6a190f6c64a2f21b1ec9e56ddb31..c270a16b3b9c091f4afa92fc818d1ea662ac9d6a 100644 (file)
@@ -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 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 1ff28663f2733340a81fd74640a38c89cc1fc26e..15d3e115c1f36315688ce5d7ba05ca931bba48f8 100644 (file)
@@ -1,5 +1,5 @@
 /* Definitions for POSIX memory map interface.  Linux/ia64 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   0x0100        /* Stack-like segment.  */
-# define MAP_GROWSUP     0x0200        /* Register 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_GROWSUP     0x00200       /* Register 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 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'.  */
index 72c24132cf0892f3ffae42c8b266fa67ed75e228..c07982ec74a7e790e23d6bd07328352c66dec9b2 100644 (file)
@@ -1,5 +1,5 @@
 /* Definitions for POSIX memory map interface.  Linux/PowerPC 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    0x0080          /* Lock the mapping.  */
-# define MAP_NORESERVE 0x0040          /* 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    0x00080         /* Lock the mapping.  */
+# define MAP_NORESERVE 0x00040         /* 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 35a8d184286b8427f27552f84ebeb291341d1dcf..fd52e0706dbf409ec8803f46b30a10d7c67e7c5f 100644 (file)
@@ -1,5 +1,5 @@
 /* Definitions for POSIX memory map interface.  Linux/s390 version.
-   Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc.
+   Copyright (C) 2000, 2001, 2002, 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_GROWSUP   0x0200          /* Register 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_GROWSUP   0x00200         /* Register 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 e629a6ca1d7c69321b160fc9370e6256ab291a04..60e9900cc8b1e9920cd02c0c3e5f0b40bc0647c6 100644 (file)
@@ -48,6 +48,7 @@ prctl         EXTRA   prctl           i:iiiii __prctl         prctl
 putpmsg                -       putpmsg         i:ippii putpmsg
 query_module   EXTRA   query_module    i:sipip query_module
 quotactl       EXTRA   quotactl        i:isip  quotactl
+remap_file_pages -     remap_file_pages i:piiii        __remap_file_pages remap_file_pages
 sched_getaffinity -    sched_getaffinity       i:iip   sched_getaffinity
 sched_getp     -       sched_getparam  i:ip    __sched_getparam        sched_getparam
 sched_gets     -       sched_getscheduler      i:i     __sched_getscheduler    sched_getscheduler
index 34b985fa9fb5190f50b1edb33ae53de6614f4acd..ae7319140a162b20f870fa488905e0ecd83228aa 100644 (file)
@@ -1,5 +1,5 @@
 /* Definitions for POSIX memory map interface.  Linux/x86_64 version.
-   Copyright (C) 2001 Free Software Foundation, Inc.
+   Copyright (C) 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
 
 /* 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'.  */