diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2023-02-10 15:27:06 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2023-02-10 15:27:06 +0100 |
commit | 7501bff8432444b7ae8e7f3d9289c0d61f3f0b64 (patch) | |
tree | bd53603f464c3747e897a8996158a0fef7b41bc3 /include/libHX/io.h | |
parent | 0f124df68d87c9073f76efeff1a901a69b1f3e13 (diff) | |
parent | 9e9336185f86bd97ff22f54e4d561c2cccccecf5 (diff) |
Merge branch 'release/debian/4.10-1'debian/4.10-1
Diffstat (limited to 'include/libHX/io.h')
-rw-r--r-- | include/libHX/io.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/libHX/io.h b/include/libHX/io.h index c86af72..7e0c7d3 100644 --- a/include/libHX/io.h +++ b/include/libHX/io.h @@ -1,6 +1,7 @@ #ifndef _LIBHX_IO_H #define _LIBHX_IO_H 1 +#include <stdio.h> #include <sys/types.h> #ifdef __cplusplus @@ -35,9 +36,16 @@ extern int HX_mkdir(const char *, unsigned int); extern int HX_readlink(hxmc_t **, const char *); extern int HX_realpath(hxmc_t **, const char *, unsigned int); extern int HX_rrmdir(const char *); +extern ssize_t HX_sendfile(int dst, int src, size_t count); +extern char *HX_slurp_fd(int fd, size_t *outsize); +extern char *HX_slurp_file(const char *file, size_t *outsize); extern ssize_t HXio_fullread(int, void *, size_t); extern ssize_t HXio_fullwrite(int, const void *, size_t); +#ifndef HX_HEXDUMP_DECLARATION +#define HX_HEXDUMP_DECLARATION 1 +extern void HX_hexdump(FILE *, const void *, unsigned int); +#endif #ifdef __cplusplus } /* extern "C" */ |