diff options
author | Tim Schumacher <timschumi@gmx.de> | 2022-05-02 20:02:41 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-05-05 20:47:38 +0200 |
commit | 6d59d4d3d9e76e39112842ec487840828f1c9bfe (patch) | |
tree | 757b6101b696c9cd2abd0df504bd872db38d2bbf | |
parent | 94ab75d3df0c157e2d08f58b8e8a56eebdd6a3c9 (diff) | |
download | serenity-6d59d4d3d9e76e39112842ec487840828f1c9bfe.zip |
Kernel: Add the remaining POSIX `MADV_*` constants
-rw-r--r-- | Kernel/API/POSIX/sys/mman.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Kernel/API/POSIX/sys/mman.h b/Kernel/API/POSIX/sys/mman.h index e2e27c4f75..3e540decb3 100644 --- a/Kernel/API/POSIX/sys/mman.h +++ b/Kernel/API/POSIX/sys/mman.h @@ -36,15 +36,16 @@ extern "C" { #define MADV_SET_VOLATILE 0x1 #define MADV_SET_NONVOLATILE 0x2 #define MADV_DONTNEED 0x3 +#define MADV_WILLNEED 0x4 +#define MADV_SEQUENTIAL 0x5 +#define MADV_RANDOM 0x6 // https://pubs.opengroup.org/onlinepubs/9699919799/functions/posix_madvise.html #define POSIX_MADV_NORMAL MADV_NORMAL #define POSIX_MADV_DONTNEED MADV_DONTNEED - -// Unsupported posix_madvise() advise: -// POSIX_MADV_SEQUENTIAL -// POSIX_MADV_RANDOM -// POSIX_MADV_WILLNEED +#define POSIX_MADV_WILLNEED MADV_WILLNEED +#define POSIX_MADV_SEQUENTIAL MADV_SEQUENTIAL +#define POSIX_MADV_RANDOM MADV_RANDOM #define MS_SYNC 1 #define MS_ASYNC 2 |