From a3ddae9d41de81a14c99f167677be88ecb70e9bd Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Thu, 18 Jan 2018 10:22:42 +0100 Subject: include: Improve definitions of fccntl flags Defining FLOWFNONBLOCK in terms of FLOWFRNOBLOCK and FLOWFWNOBLOCK and FLOWFDEFAULT in terms of FLOWFRDWR clarifies their meaning. Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- include/ouroboros/fccntl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/ouroboros/fccntl.h b/include/ouroboros/fccntl.h index 83e733a2..55e6a343 100644 --- a/include/ouroboros/fccntl.h +++ b/include/ouroboros/fccntl.h @@ -37,9 +37,9 @@ #define FLOWFRNOBLOCK 00001000 /* Non-blocking read */ #define FLOWFWNOBLOCK 00002000 /* Non-blocking write */ -#define FLOWFNONBLOCK 00003000 /* Non-blocking rw */ +#define FLOWFNONBLOCK (FLOWFRNOBLOCK | FLOWFWNOBLOCK) -#define FLOWFDEFAULT 00000002 /* Default, blocking, rw */ +#define FLOWFDEFAULT FLOWFRDWR #define FLOWFINVALID (FLOWFWRONLY | FLOWFRDWR) -- cgit v1.2.3