summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri.staessens@ugent.be>2018-01-18 10:22:42 +0100
committerSander Vrijders <sander.vrijders@ugent.be>2018-01-18 10:36:11 +0100
commita3ddae9d41de81a14c99f167677be88ecb70e9bd (patch)
treecbbe2c3a5c28ed60ca7d24b6d91fcfae800ad2d6 /include
parent209a263b35acc70559233df668372b220c6fa99c (diff)
downloadouroboros-a3ddae9d41de81a14c99f167677be88ecb70e9bd.tar.gz
ouroboros-a3ddae9d41de81a14c99f167677be88ecb70e9bd.zip
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 <dimitri.staessens@ugent.be> Signed-off-by: Sander Vrijders <sander.vrijders@ugent.be>
Diffstat (limited to 'include')
-rw-r--r--include/ouroboros/fccntl.h4
1 files changed, 2 insertions, 2 deletions
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)