diff --git a/kernel/include/sortix/fcntl.h b/kernel/include/sortix/fcntl.h index 8d141a8f..64127cd1 100644 --- a/kernel/include/sortix/fcntl.h +++ b/kernel/include/sortix/fcntl.h @@ -48,6 +48,8 @@ __BEGIN_DECLS #define O_NOCTTY (1<<14) #define O_TTY_INIT (1<<15) +#define O_ACCMODE (O_READ | O_WRITE | O_EXEC | O_SEARCH) + #define FD_CLOEXEC (1<<0) #define FD_CLOFORK (1<<1) diff --git a/libc/include/fcntl.h b/libc/include/fcntl.h index 22bcfc3b..93b3eb2f 100644 --- a/libc/include/fcntl.h +++ b/libc/include/fcntl.h @@ -47,9 +47,6 @@ __BEGIN_DECLS /* Backwards compatibility with existing systems that call it O_CREAT. */ #define O_CREAT O_CREATE -/* Compatibility with Linux and other systems that have this. */ -#define O_ACCMODE (O_READ | O_WRITE | O_EXEC | O_SEARCH) - /* TODO: POSIX_FADV_* missing here */ #ifndef __pid_t_defined