index 9a68a5ec336bac8fbcbb96a5e84f9971a18a227d..8a766ca94c467e5f35012af11290eb2590978b35 100644 (file)
--- a/io.h
+++ b/io.h
bool io_eof(struct io *io);
int io_error(struct io *io);
char * io_strerror(struct io *io);
bool io_eof(struct io *io);
int io_error(struct io *io);
char * io_strerror(struct io *io);
-bool io_can_read(struct io *io);
+bool io_can_read(struct io *io, bool can_block);
ssize_t io_read(struct io *io, void *buf, size_t bufsize);
char * io_get(struct io *io, int c, bool can_read);
bool io_write(struct io *io, const void *buf, size_t bufsize);
ssize_t io_read(struct io *io, void *buf, size_t bufsize);
char * io_get(struct io *io, int c, bool can_read);
bool io_write(struct io *io, const void *buf, size_t bufsize);