summaryrefslogtreecommitdiffstats
path: root/include/libtf/io.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/libtf/io.h')
-rw-r--r--include/libtf/io.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/libtf/io.h b/include/libtf/io.h
index 8f5b54d..38dd541 100644
--- a/include/libtf/io.h
+++ b/include/libtf/io.h
@@ -52,8 +52,10 @@ void tf_poll_close(void);
int tf_open_fd(struct tf_fd *fd, int kfd, int flags);
int tf_open(struct tf_fd *fd, const char *pathname, int flags);
int tf_close(struct tf_fd *fd);
-int tf_read(struct tf_fd *fd, void *buf, size_t count, tf_mtime_diff_t timeout);
-int tf_write(struct tf_fd *fd, const void *buf, size_t count, tf_mtime_diff_t timeout);
+ssize_t tf_read(struct tf_fd *fd, void *buf, size_t count, tf_mtime_diff_t timeout);
+ssize_t tf_write(struct tf_fd *fd, const void *buf, size_t count, tf_mtime_diff_t timeout);
+int tf_read_fully(struct tf_fd *fd, void *buf, size_t count, tf_mtime_diff_t timeout);
+int tf_write_fully(struct tf_fd *fd, const void *buf, size_t count, tf_mtime_diff_t timeout);
int tf_socket(struct tf_fd *fd, int domain, int type, int protocol);
int tf_bind(struct tf_fd *fd, const struct tf_sockaddr *addr);