From b4e09b8894a50261171970af33e4b21a3d81e39b Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 10 Dec 2021 19:06:50 +0100 Subject: m + Add liberror_recv_require and liberror_recv_short MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- liberror-libc.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'liberror-libc.h') diff --git a/liberror-libc.h b/liberror-libc.h index 9a67245..3ca2b67 100644 --- a/liberror-libc.h +++ b/liberror-libc.h @@ -7,6 +7,9 @@ #include +#define LIBERROR_LIBC_ERRROR_SHORT_READ -1 + + int liberror_abs(int); void liberror_abs_failed(int); /* void *liberror_aligned_alloc(size_t, size_t); TODO */ @@ -31,7 +34,9 @@ void liberror_raise_failed(int); void *liberror_realloc(void *, size_t); void liberror_realloc_failed(void *, size_t); ssize_t liberror_recv(int, void *, size_t, int, const char *); +ssize_t liberror_recv_require(int, void *, size_t, int, size_t min, size_t max, const char *); void liberror_recv_failed(int, void *, size_t, int, const char *); +void liberror_recv_short(int, void *, size_t, int, size_t min, size_t max, ssize_t returned, const char *); /* void *liberror_posix_memalign(void **, size_t, size_t); TODO */ ssize_t liberror_send(int, const void *, size_t, int, const char *); void liberror_send_failed(int, const void *, size_t, int, const char *); -- cgit v1.2.3-70-g09d2