diff options
Diffstat (limited to 'c_src/tools-util.h')
-rw-r--r-- | c_src/tools-util.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/c_src/tools-util.h b/c_src/tools-util.h index b8104002..988e2d62 100644 --- a/c_src/tools-util.h +++ b/c_src/tools-util.h @@ -28,8 +28,13 @@ void die(const char *, ...) __attribute__ ((format (printf, 1, 2))) noreturn; char *mprintf(const char *, ...) __attribute__ ((format (printf, 1, 2))); -void xpread(int, void *, size_t, off_t); + +void __xpread(int, void *, size_t, off_t, const char *, unsigned); +#define xpread(_fd, _buf, _count, _offset) \ + __xpread(_fd, _buf, _count, _offset, __FILE__, __LINE__) + void xpwrite(int, const void *, size_t, off_t, const char *); + struct stat xfstatat(int, const char *, int); struct stat xfstat(int); struct stat xstat(const char *); |