mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-13 03:22:30 +03:00
(MADV_*): Add flags from latest Linux kernel.
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/* Definitions for POSIX memory map interface. Linux/PowerPC version.
|
/* 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.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
@@ -72,3 +72,12 @@
|
|||||||
#ifdef __USE_GNU
|
#ifdef __USE_GNU
|
||||||
# define MREMAP_MAYMOVE 1
|
# define MREMAP_MAYMOVE 1
|
||||||
#endif
|
#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
|
||||||
|
Reference in New Issue
Block a user