diff options
| author | Mikhail Romanko <me@blankhex.com> | 2024-06-08 12:06:56 +0300 |
|---|---|---|
| committer | Mikhail Romanko <me@blankhex.com> | 2024-06-08 12:06:56 +0300 |
| commit | fd39ee8692f88580b4f9f130ad0a831fb9163024 (patch) | |
| tree | bc4da2190c91b5bd408a88392ed2e792a1173a24 /include/bh/io.h | |
| parent | 79874622a28c081abe155dc01860ddba746abd3b (diff) | |
| download | bhlib-old-fd39ee8692f88580b4f9f130ad0a831fb9163024.tar.gz | |
Add comments and documentation, rework open mode logic
Diffstat (limited to 'include/bh/io.h')
| -rw-r--r-- | include/bh/io.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/bh/io.h b/include/bh/io.h index b5510f3..cee0834 100644 --- a/include/bh/io.h +++ b/include/bh/io.h @@ -6,15 +6,15 @@ #define BH_IO_ERROR 0x0001 #define BH_IO_EOF 0x0002 +#define BH_IO_NONE 0x0000 #define BH_IO_READ 0x0001 #define BH_IO_WRITE 0x0002 #define BH_IO_READ_WRITE (BH_IO_READ | BH_IO_WRITE) -#define BH_IO_OPEN 0x0000 -#define BH_IO_CREATE 0x0100 -#define BH_IO_APPEND 0x0200 -#define BH_IO_TRUNCATE 0x0300 -#define BH_IO_MASK 0xFF00 +#define BH_IO_APPEND 0x0010 +#define BH_IO_TRUNCATE 0x0020 +#define BH_IO_CREATE 0x0040 +#define BH_IO_OPEN 0x0080 #define BH_IO_SET 0x0000 #define BH_IO_CURRENT 0x0001 |
