From: Stefan Teodorescu Date: Thu, 28 Nov 2019 14:39:10 +0000 (+0200) Subject: include/fcntl.h: define posix_fadvise advice parameters X-Git-Tag: RELEASE-0.4~11 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=a815f8aed619e3869c3d463809dbda768d550be8;p=unikraft%2Flibs%2Fnewlib.git include/fcntl.h: define posix_fadvise advice parameters Since posix_fadvise function was implemented, it needs to build with newlib too, so it needs definitions for advice parameters. Signed-off-by: Stefan Teodorescu Reviewed-by: Costin Lupu --- diff --git a/include/fcntl.h b/include/fcntl.h index 7a35052..cb271d2 100644 --- a/include/fcntl.h +++ b/include/fcntl.h @@ -27,6 +27,12 @@ #define FIONBIO 0x5421 #define FIOASYNC 0x5452 +#define POSIX_FADV_NORMAL 0 +#define POSIX_FADV_RANDOM 1 +#define POSIX_FADV_SEQUENTIAL 2 +#define POSIX_FADV_WILLNEED 3 +#define POSIX_FADV_DONTNEED 4 +#define POSIX_FADV_NOREUSE 5 /* Glibc does not provide KEEP_SIZE and PUNCH_HOLE anymore. Instead it * includes linux/falloc.h.