diff options
author | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2017-07-10 13:28:28 -1000 |
---|---|---|
committer | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2017-07-10 13:29:40 -1000 |
commit | 051b1e60c1e80994388521ae37d7035babbd12b6 (patch) | |
tree | b2e7b3dc1a68e51b15c72b92947dc39b5c6ded9d /io.h |
Init
Diffstat (limited to 'io.h')
-rw-r--r-- | io.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -0,0 +1,9 @@ +#pragma once + +#include <stdio.h> + +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); |