Commit 4c7f5e38 authored by Niels Möller's avatar Niels Möller
Browse files

(read_raw, finish_io_exception, make_io_exception):

#if:ed out.

Rev: src/io.c:1.215.2.8
parent 45f72299
...@@ -928,6 +928,7 @@ write_raw(int fd, uint32_t length, const uint8_t *data) ...@@ -928,6 +928,7 @@ write_raw(int fd, uint32_t length, const uint8_t *data)
return 1; return 1;
} }
#if 0
/* For fd:s in blocking mode. */ /* For fd:s in blocking mode. */
const struct exception * const struct exception *
read_raw(int fd, uint32_t length, uint8_t *data) read_raw(int fd, uint32_t length, uint8_t *data)
...@@ -959,6 +960,7 @@ read_raw(int fd, uint32_t length, uint8_t *data) ...@@ -959,6 +960,7 @@ read_raw(int fd, uint32_t length, uint8_t *data)
} }
return NULL; return NULL;
} }
#endif
struct lsh_string * struct lsh_string *
io_read_file_raw(int fd, uint32_t guess) io_read_file_raw(int fd, uint32_t guess)
...@@ -2376,7 +2378,6 @@ make_exc_finish_read_handler(struct lsh_fd *fd, ...@@ -2376,7 +2378,6 @@ make_exc_finish_read_handler(struct lsh_fd *fd,
const struct exception finish_read_exception = const struct exception finish_read_exception =
STATIC_EXCEPTION(EXC_FINISH_READ, "Stop reading"); STATIC_EXCEPTION(EXC_FINISH_READ, "Stop reading");
#endif
const struct exception finish_io_exception = const struct exception finish_io_exception =
STATIC_EXCEPTION(EXC_FINISH_IO, "Stop i/o"); STATIC_EXCEPTION(EXC_FINISH_IO, "Stop i/o");
...@@ -2400,6 +2401,7 @@ make_io_exception(uint32_t type, struct lsh_fd *fd, int error, const char *msg) ...@@ -2400,6 +2401,7 @@ make_io_exception(uint32_t type, struct lsh_fd *fd, int error, const char *msg)
return &self->super; return &self->super;
} }
#endif
/* Creates a one-way socket connection. Returns 1 on success, 0 on /* Creates a one-way socket connection. Returns 1 on success, 0 on
* failure. fds[0] is for reading, fds[1] for writing (like for the * failure. fds[0] is for reading, fds[1] for writing (like for the
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment