From 564f99b3aed8e91805145261b0d4c3578b6cb00e Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Sat, 15 Feb 2014 14:04:07 +0100 Subject: [PATCH] Move O_ACCMODE into kernel headers. --- kernel/include/sortix/fcntl.h | 2 ++ libc/include/fcntl.h | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) 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