aboutsummaryrefslogtreecommitdiffstats
path: root/liberror-libc.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-12-10 19:06:50 +0100
committerMattias Andrée <maandree@kth.se>2021-12-10 19:06:50 +0100
commitb4e09b8894a50261171970af33e4b21a3d81e39b (patch)
tree18a58d11ec8b4bb56634054235effb4267e90e88 /liberror-libc.h
parentAdd some functions and add functions with _failed suffix (diff)
downloadliberror-libc-b4e09b8894a50261171970af33e4b21a3d81e39b.tar.gz
liberror-libc-b4e09b8894a50261171970af33e4b21a3d81e39b.tar.bz2
liberror-libc-b4e09b8894a50261171970af33e4b21a3d81e39b.tar.xz
m + Add liberror_recv_require and liberror_recv_short
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'liberror-libc.h')
-rw-r--r--liberror-libc.h5
1 files changed, 5 insertions, 0 deletions
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 <unistd.h>
+#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 *);