IO_RW
#define IO_READING(io) (((io)->flags & IO_RW) != IO_WRITE)
#define IO_WRITING(io) (((io)->flags & IO_RW) != IO_READ)
mode = io->flags & IO_RW;
if (mode == 0 || mode == IO_RW)
mode = io->flags & IO_RW;
io->flags &= ~IO_RW;
mode = io->flags & IO_RW;
io->flags &= ~IO_RW;
switch (flags & IO_RW) {
case IO_RW:
mode = io->flags & IO_RW;
io->flags &= ~IO_RW;
mode = io->flags & IO_RW;
io->flags &= ~IO_RW;
#define IO_READING(io) (((io)->flags & IO_RW) != IO_WRITE)
#define IO_WRITING(io) (((io)->flags & IO_RW) != IO_READ)
switch (flags & IO_RW) {
case IO_RW:
mode = io->flags & IO_RW;
mode = io->flags & IO_RW;