diff options
author | Dimitri Staessens <dimitri.staessens@ugent.be> | 2017-10-30 13:01:25 +0100 |
---|---|---|
committer | Sander Vrijders <sander.vrijders@ugent.be> | 2017-10-30 13:54:02 +0100 |
commit | 81cc401a4ef05a6bc5bcbda5ad27f8a60706aa02 (patch) | |
tree | 8f3e48b2b37d79d737afc83c403eaaa86e14b59e /include | |
parent | f9cf89d54f0d1661fd78f778d0bdb4812f3bd460 (diff) | |
download | ouroboros-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 <dimitri.staessens@ugent.be>
Signed-off-by: Sander Vrijders <sander.vrijders@ugent.be>
Diffstat (limited to 'include')
-rw-r--r-- | include/ouroboros/fccntl.h | 5 |
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) |