From f3e70ab389879db5b250bab29f14acb543bfd11f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Wed, 22 Jun 2022 19:25:30 +0200 Subject: Write full buffer Retry writing after a short write. --- XUtils.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'XUtils.h') diff --git a/XUtils.h b/XUtils.h index 2522a71f..bb80cb23 100644 --- a/XUtils.h +++ b/XUtils.h @@ -73,4 +73,6 @@ char* xStrndup(const char* str, size_t len) ATTR_NONNULL ATTR_MALLOC; ssize_t xReadfile(const char* pathname, void* buffer, size_t count); ssize_t xReadfileat(openat_arg_t dirfd, const char* pathname, void* buffer, size_t count); +ssize_t full_write(int fd, const void *buf, size_t count); + #endif -- cgit v1.2.3