From 051b1e60c1e80994388521ae37d7035babbd12b6 Mon Sep 17 00:00:00 2001 From: cel Date: Mon, 10 Jul 2017 13:28:28 -1000 Subject: Init --- io.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 io.h (limited to 'io.h') diff --git a/io.h b/io.h new file mode 100644 index 0000000..cee8dda --- /dev/null +++ b/io.h @@ -0,0 +1,9 @@ +#pragma once + +#include + +int read_all(int fd, unsigned char *buf, size_t count); +int read_some(int fd, unsigned char *buf, size_t *lenp); +int write_all(int fd, unsigned const char *buf, size_t count); +ssize_t read_file(char *buf, size_t len, const char *fmt, ...); +int tcp_connect(const char *host, const char *port, char const **err); -- cgit v1.2.3