diff options
Diffstat (limited to 'liberror-libc.h')
-rw-r--r-- | liberror-libc.h | 5 |
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 *); |