]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(MADV_*): Add flags from latest Linux kernel.
authorUlrich Drepper <drepper@redhat.com>
Wed, 22 Mar 2000 18:10:19 +0000 (18:10 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 22 Mar 2000 18:10:19 +0000 (18:10 +0000)
sysdeps/unix/sysv/linux/powerpc/bits/mman.h

index d863f0955b3cd716243f2eeb701a0ee58b15791a..2d04b28d5f15815729797bb53990389a85b35349 100644 (file)
@@ -1,5 +1,5 @@
 /* Definitions for POSIX memory map interface.  Linux/PowerPC 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
 #ifdef __USE_GNU
 # define MREMAP_MAYMOVE        1
 #endif
+
+/* Advice to `madvise'.  */
+#ifdef __USE_BSD
+# define MADV_NORMAL    0      /* No further special treatment.  */
+# define MADV_RANDOM    1      /* Expect random page references.  */
+# 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.  */
+#endif