[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Minios-devel] [UNIKRAFT/NEWLIB PATCH] include/fcntl.h: define posix_fadvise advice parameters



From: Stefan Teodorescu <stefanl.teodorescu@xxxxxxxxx>

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 <stefanl.teodorescu@xxxxxxxxx>
---
 include/fcntl.h | 6 ++++++
 1 file changed, 6 insertions(+)

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.
-- 
2.24.0


_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.