From f7de3108897117a2ad1ef2f4f428f34e5c7b6d04 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Sat, 10 Jun 2023 23:21:43 +0300 Subject: [PATCH] LibC: add missing O_EXEC and O_SEARCH --- libc/include/fcntl.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libc/include/fcntl.h b/libc/include/fcntl.h index 401f0099db..356cedb6e2 100644 --- a/libc/include/fcntl.h +++ b/libc/include/fcntl.h @@ -55,12 +55,13 @@ __BEGIN_DECLS #define O_RSYNC 0x08000 #define O_SYNC 0x10000 -#define O_ACCMODE 0x00003 - -/* bits 0-1 */ +/* bits 0-3 */ #define O_RDONLY 0x00001 #define O_WRONLY 0x00002 #define O_RDWR (O_RDONLY | O_WRONLY) +#define O_SEARCH 0x00004 +#define O_EXEC 0x00008 +#define O_ACCMODE 0x0000F /* bit 17 */ #define AT_FDCWD 0x20000