The `*_OK` flags are defined in `fcntl.h` in both musl and nolibc. Add
them here in newlib to prevent any eventual conflicts that may appear.
Signed-off-by: Stefan Jumarea <stefanjumarea02@gmail.com>
Reviewed-by: Eduard Vintilă <eduard.vintila47@gmail.com>
Approved-by: Eduard Vintilă <eduard.vintila47@gmail.com>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Closes: #32
#include <uk/config.h>
+#define F_OK 0
+#define R_OK 4
+#define W_OK 2
+#define X_OK 1
+
#if (defined CONFIG_ARCH_X86_64)
#define O_NOFOLLOW 0400000
#define O_DIRECTORY 0200000