]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Fri, 14 Apr 2000 05:59:03 +0000 (05:59 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 14 Apr 2000 05:59:03 +0000 (05:59 +0000)
2000-04-13  Ulrich Drepper  <drepper@redhat.com>

* misc/Versions [libc] (GLIBC_2.2): Add posix_madvice.
* misc/sys/mman.h (posix_madvise): Add prototype.
* sysdeps/generic/madvise.c (madvise): Renamed to __madvise.  Make
old name and posix_madvise weak aliases.
* sysdeps/unix/sysv/linux/syscalls.list: Likewise.
* sysdeps/generic/bits/mman.h: Add POSIX_MADV_* constants.
* sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
* sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
* sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
* sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
* sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.

ChangeLog
bits/mman.h
misc/sys/mman.h
sysdeps/generic/bits/mman.h
sysdeps/generic/madvise.c
sysdeps/unix/sysv/linux/alpha/bits/mman.h
sysdeps/unix/sysv/linux/arm/bits/mman.h
sysdeps/unix/sysv/linux/i386/bits/mman.h
sysdeps/unix/sysv/linux/powerpc/bits/mman.h
sysdeps/unix/sysv/linux/sparc/bits/mman.h
sysdeps/unix/sysv/linux/syscalls.list

index 5c29457274b23b6fc7a04b973df2d81311bc51cd..9ffbe6305aa501a6df3b91c8c795f6557ea366b2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,17 @@
+2000-04-13  Ulrich Drepper  <drepper@redhat.com>
+
+       * misc/Versions [libc] (GLIBC_2.2): Add posix_madvice.
+       * misc/sys/mman.h (posix_madvise): Add prototype.
+       * sysdeps/generic/madvise.c (madvise): Renamed to __madvise.  Make
+       old name and posix_madvise weak aliases.
+       * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
+       * sysdeps/generic/bits/mman.h: Add POSIX_MADV_* constants.
+       * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
+       * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
+       * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
+       * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
+       * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
+
 2000-04-13  Andreas Jaeger  <aj@suse.de>
 
        * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Handle symbol
@@ -21,7 +35,7 @@
        * sysdeps/mips/setjmp.S: Likewise.
 
        * sysdeps/unix/sysv/linux/mips/pipe.S: New file.
-       
+
 2000-04-13  Ulrich Drepper  <drepper@redhat.com>
 
        * posix/globtest.sh: Work around inconsistency with expanding ~/
index 99e3bcd1e870c56fa0de6268515b70bb9b3ed74c..57d42546d323e925d9a6498e1940ef777c6ef9f1 100644 (file)
@@ -1,5 +1,5 @@
 /* Definitions for BSD-style memory management.
-   Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
+   Copyright (C) 1994-1998, 2000 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
@@ -21,8 +21,9 @@
    (such as GNU) where these facilities are not system services but can be
    emulated in the C library, these are the definitions we emulate.  */
 
-#ifndef        _BITS_MMAN_H
-#define        _BITS_MMAN_H    1
+#ifndef _SYS_MMAN_H
+# error "Never use <bits/mman.h> directly; include <sys/mman.h> instead."
+#endif
 
 /* Protections are chosen from these bits, OR'd together.  The
    implementation does not necessarily support PROT_EXEC or PROT_WRITE
 # define MADV_DONTNEED  4      /* Don't need these pages.  */
 #endif
 
-#endif /* bits/mman.h */
+/* The POSIX people had to invent similar names for the same things.  */
+#ifdef __USE_XOPEN2K
+# define POSIX_MADV_NORMAL     0 /* No further special treatment.  */
+# define POSIX_MADV_RANDOM     1 /* Expect random page references.  */
+# define POSIX_MADV_SEQUENTIAL 2 /* Expect sequential page references.  */
+# define POSIX_MADV_WILLNEED   3 /* Will need these pages.  */
+# define POSIX_MADV_DONTNEED   4 /* Don't need these pages.  */
+#endif
index b86ba5e083165bccbdff5972aaf89ed0d6a2a599..848ee4cdfbb0a7472ecb803b7ca1f23ab28e78f3 100644 (file)
@@ -91,6 +91,10 @@ extern int msync (void *__addr, size_t __len, int __flags) __THROW;
    for the region starting at ADDR and extending LEN bytes.  */
 extern int madvise (void *__addr, size_t __len, int __advice) __THROW;
 #endif
+#ifdef __USE_XOPEN2K
+/* This is the POSIX name for this function.  */
+extern int posix_madvise (void *__addr, size_t __len, int __advice) __THROW;
+#endif
 
 /* Guarantee all whole pages mapped by the range [ADDR,ADDR+LEN) to
    be memory resident.  */
index 99e3bcd1e870c56fa0de6268515b70bb9b3ed74c..57d42546d323e925d9a6498e1940ef777c6ef9f1 100644 (file)
@@ -1,5 +1,5 @@
 /* Definitions for BSD-style memory management.
-   Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
+   Copyright (C) 1994-1998, 2000 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
@@ -21,8 +21,9 @@
    (such as GNU) where these facilities are not system services but can be
    emulated in the C library, these are the definitions we emulate.  */
 
-#ifndef        _BITS_MMAN_H
-#define        _BITS_MMAN_H    1
+#ifndef _SYS_MMAN_H
+# error "Never use <bits/mman.h> directly; include <sys/mman.h> instead."
+#endif
 
 /* Protections are chosen from these bits, OR'd together.  The
    implementation does not necessarily support PROT_EXEC or PROT_WRITE
 # define MADV_DONTNEED  4      /* Don't need these pages.  */
 #endif
 
-#endif /* bits/mman.h */
+/* The POSIX people had to invent similar names for the same things.  */
+#ifdef __USE_XOPEN2K
+# define POSIX_MADV_NORMAL     0 /* No further special treatment.  */
+# define POSIX_MADV_RANDOM     1 /* Expect random page references.  */
+# define POSIX_MADV_SEQUENTIAL 2 /* Expect sequential page references.  */
+# define POSIX_MADV_WILLNEED   3 /* Will need these pages.  */
+# define POSIX_MADV_DONTNEED   4 /* Don't need these pages.  */
+#endif
index 5431bda111507b17e887c34c30c068d10d4fcb58..d6c2322d25f661176e9fbfc9d2ff792cb17330fa 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1994, 1995, 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1994, 1995, 1996, 1997, 2000 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
    for the region starting at ADDR and extending LEN bytes.  */
 
 int
-madvise (__ptr_t addr, size_t len, int advice)
+__madvise (__ptr_t addr, size_t len, int advice)
 {
   __set_errno (ENOSYS);
   return -1;
 }
-
+weak_alias (__madvice, madvice)
+weak_alias (__madvice, posix_madvise)
 stub_warning (madvise)
 #include <stub-tag.h>
index a7ada102d21f8a0f4f87e30c8431ebb38465d759..31e39a8af5c42fc34f94a2ee001de036d45f9a9a 100644 (file)
@@ -1,5 +1,5 @@
 /* Definitions for POSIX memory map interface.  Linux/Alpha version.
-   Copyright (C) 1997, 1998 Free Software Foundation, Inc.
+   Copyright (C) 1997, 1998, 2000 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
 # define MADV_DONTNEED   6     /* Don't need these pages.  */
 #endif
 
+/* The POSIX people had to invent similar names for the same things.  */
+#ifdef __USE_XOPEN2K
+# define POSIX_MADV_NORMAL     0 /* No further special treatment.  */
+# define POSIX_MADV_RANDOM     1 /* Expect random page references.  */
+# define POSIX_MADV_SEQUENTIAL 2 /* Expect sequential page references.  */
+# define POSIX_MADV_WILLNEED   3 /* Will need these pages.  */
+# define POSIX_MADV_DONTNEED   6 /* Don't need these pages.  */
+#endif
+
 /* Not used by Linux, but here to make sure we don't clash with
    OSF/1 defines.  */
 #if 0 && defined(__USE_BSD)
index 37a1959f05e35081e4ee5de380dafe51764785cc..fbb58c89dd12f8b5dd139e279bf16a09e7ade55c 100644 (file)
@@ -1,5 +1,5 @@
 /* Definitions for POSIX memory map interface.  Linux/ARM version.
-   Copyright (C) 1997 Free Software Foundation, Inc.
+   Copyright (C) 1997, 2000 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
 # define MADV_WILLNEED  3      /* Will need these pages.  */
 # define MADV_DONTNEED  4      /* Don't need these pages.  */
 #endif
+
+/* The POSIX people had to invent similar names for the same things.  */
+#ifdef __USE_XOPEN2K
+# define POSIX_MADV_NORMAL     0 /* No further special treatment.  */
+# define POSIX_MADV_RANDOM     1 /* Expect random page references.  */
+# define POSIX_MADV_SEQUENTIAL 2 /* Expect sequential page references.  */
+# define POSIX_MADV_WILLNEED   3 /* Will need these pages.  */
+# define POSIX_MADV_DONTNEED   4 /* Don't need these pages.  */
+#endif
index 7c33f798964c64807a0a86ce8de535041e39c106..b2b80ae3a3d84a3e91bb05bc7215d897606f5422 100644 (file)
@@ -1,5 +1,5 @@
 /* Definitions for POSIX memory map interface.  Linux/i386 version.
-   Copyright (C) 1997 Free Software Foundation, Inc.
+   Copyright (C) 1997, 2000 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
 # define MADV_WILLNEED  3      /* Will need these pages.  */
 # define MADV_DONTNEED  4      /* Don't need these pages.  */
 #endif
+
+/* The POSIX people had to invent similar names for the same things.  */
+#ifdef __USE_XOPEN2K
+# define POSIX_MADV_NORMAL     0 /* No further special treatment.  */
+# define POSIX_MADV_RANDOM     1 /* Expect random page references.  */
+# define POSIX_MADV_SEQUENTIAL 2 /* Expect sequential page references.  */
+# define POSIX_MADV_WILLNEED   3 /* Will need these pages.  */
+# define POSIX_MADV_DONTNEED   4 /* Don't need these pages.  */
+#endif
index 2d04b28d5f15815729797bb53990389a85b35349..0808b7da37e4e6c050388ef320ae9198f3149337 100644 (file)
 # define MADV_WILLNEED  3      /* Will need these pages.  */
 # define MADV_DONTNEED  4      /* Don't need these pages.  */
 #endif
+
+/* The POSIX people had to invent similar names for the same things.  */
+#ifdef __USE_XOPEN2K
+# define POSIX_MADV_NORMAL     0 /* No further special treatment.  */
+# define POSIX_MADV_RANDOM     1 /* Expect random page references.  */
+# define POSIX_MADV_SEQUENTIAL 2 /* Expect sequential page references.  */
+# define POSIX_MADV_WILLNEED   3 /* Will need these pages.  */
+# define POSIX_MADV_DONTNEED   4 /* Don't need these pages.  */
+#endif
index ffe1e527d2e4928e12c24bf1f76c9834086220a7..03fcb11e7446f8b439666da9c6df89844d58d7cd 100644 (file)
@@ -1,5 +1,5 @@
 /* Definitions for POSIX memory map interface.  Linux/SPARC version.
-   Copyright (C) 1997, 1999 Free Software Foundation, Inc.
+   Copyright (C) 1997, 1999, 2000 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
 # define MADV_WILLNEED  3      /* Will need these pages.  */
 # define MADV_DONTNEED  4      /* Don't need these pages.  */
 #endif
+
+/* The POSIX people had to invent similar names for the same things.  */
+#ifdef __USE_XOPEN2K
+# define POSIX_MADV_NORMAL     0 /* No further special treatment.  */
+# define POSIX_MADV_RANDOM     1 /* Expect random page references.  */
+# define POSIX_MADV_SEQUENTIAL 2 /* Expect sequential page references.  */
+# define POSIX_MADV_WILLNEED   3 /* Will need these pages.  */
+# define POSIX_MADV_DONTNEED   4 /* Don't need these pages.  */
+#endif
index 4ce48d44a2d84d6e42350d84061782895f4ffbe8..e9430e4e8a2fcafc30ba3891a16dd536589e70ab 100644 (file)
@@ -24,7 +24,7 @@ ioperm                -       ioperm          3       ioperm
 iopl           -       iopl            1       iopl
 klogctl                EXTRA   syslog          3       klogctl
 lchown         -       lchown          3       __lchown        lchown
-madvise                -       madvise         3       madvise
+madvise                -       madvise         3       __madvise       madvise posix_madvise
 mincore                -       mincore         3       mincore
 mlock          EXTRA   mlock           2       __mlock mlock
 mlockall       EXTRA   mlockall        1       __mlockall      mlockall