summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDimitri Staessens <[email protected]>2017-10-30 13:01:25 +0100
committerSander Vrijders <[email protected]>2017-10-30 13:54:02 +0100
commit81cc401a4ef05a6bc5bcbda5ad27f8a60706aa02 (patch)
tree8f3e48b2b37d79d737afc83c403eaaa86e14b59e /include
parentf9cf89d54f0d1661fd78f778d0bdb4812f3bd460 (diff)
downloadouroboros-81cc401a4ef05a6bc5bcbda5ad27f8a60706aa02.tar.gz
ouroboros-81cc401a4ef05a6bc5bcbda5ad27f8a60706aa02.zip
dev: Split nonblocking read and write
The FLOWFNONBLOCK flag now has two subflags FLOWFRNOBLOCK and FLOWFWNOBLOCK which allows setting the behavior of read and write independently. The default behavior is unchanged (blocking read and write). Signed-off-by: Dimitri Staessens <[email protected]> Signed-off-by: Sander Vrijders <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/ouroboros/fccntl.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/ouroboros/fccntl.h b/include/ouroboros/fccntl.h
index 3bd09e65..afaff8fa 100644
--- a/include/ouroboros/fccntl.h
+++ b/include/ouroboros/fccntl.h
@@ -35,7 +35,10 @@
#define FLOWFDOWN 00000004 /* Flow is down */
-#define FLOWFNONBLOCK 00004000 /* Non-blocking flow */
+#define FLOWFRNOBLOCK 00001000 /* Non-blocking read */
+#define FLOWFWNOBLOCK 00002000 /* Non-blocking write */
+#define FLOWFNONBLOCK 00003000 /* Non-blocking rw */
+
#define FLOWFDEFAULT 00000002 /* Default, blocking, rw */
#define FLOWFINVALID (FLOWFWRONLY | FLOWFRDWR)