From a212a741df38da1592386e958c52c3da460bca21 Mon Sep 17 00:00:00 2001 From: Tim Schumacher Date: Sat, 30 Apr 2022 00:58:50 +0200 Subject: [PATCH] LibC: Add all the `POSIX_FADV_*` constants --- Userland/Libraries/LibC/fcntl.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Userland/Libraries/LibC/fcntl.h b/Userland/Libraries/LibC/fcntl.h index b52679518ca..86816769455 100644 --- a/Userland/Libraries/LibC/fcntl.h +++ b/Userland/Libraries/LibC/fcntl.h @@ -11,6 +11,13 @@ __BEGIN_DECLS +#define POSIX_FADV_DONTNEED 1 +#define POSIX_FADV_NOREUSE 2 +#define POSIX_FADV_NORMAL 3 +#define POSIX_FADV_RANDOM 4 +#define POSIX_FADV_SEQUENTIAL 5 +#define POSIX_FADV_WILLNEED 6 + int creat(char const* path, mode_t); int open(char const* path, int options, ...); int openat(int dirfd, char const* path, int options, ...);