From b650c9a8f0639bd89bef487191b2ab3163017230 Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Mon, 28 May 2012 22:52:11 +0200 Subject: [PATCH] Added a O_ACCMODE flag for GNU compatibility. --- sortix/include/sortix/fcntl.h | 1 + 1 file changed, 1 insertion(+) diff --git a/sortix/include/sortix/fcntl.h b/sortix/include/sortix/fcntl.h index 3e7ffb64..c43791c5 100644 --- a/sortix/include/sortix/fcntl.h +++ b/sortix/include/sortix/fcntl.h @@ -32,6 +32,7 @@ __BEGIN_DECLS #define O_RDONLY 1 #define O_WRONLY 2 #define O_RDWR 3 +#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR) #define O_EXEC 4 #define O_SEARCH 5 #define O_LOWERFLAGS 0x7