From 53a4b3b85e03187cb64800312d5fc8e4cd3c9b0f Mon Sep 17 00:00:00 2001 From: apio Date: Tue, 11 Oct 2022 21:07:21 +0200 Subject: [PATCH] libc: Add new flags to open() Since we now have write support, we can add O_WRONLY and O_RDWR to fcntl.h :) --- libs/libc/include/fcntl.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/libc/include/fcntl.h b/libs/libc/include/fcntl.h index df2d77a7..dbe24b94 100644 --- a/libs/libc/include/fcntl.h +++ b/libs/libc/include/fcntl.h @@ -2,6 +2,8 @@ #define _FCNTL_H #define O_RDONLY 1 +#define O_WRONLY 2 +#define O_RDWR 3 #ifdef __cplusplus extern "C"