aboutsummaryrefslogtreecommitdiff
path: root/text.h
diff options
context:
space:
mode:
Diffstat (limited to 'text.h')
-rw-r--r--text.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/text.h b/text.h
index 048aef7..3249e21 100644
--- a/text.h
+++ b/text.h
@@ -413,6 +413,12 @@ ssize_t text_write_range(const Text*, const Filerange*, int fd);
* this text instance.
*/
bool text_mmaped(const Text*, const char *ptr);
+
+/**
+ * Write complete buffer to file descriptor.
+ * @return The number of bytes written or ``-1`` in case of an error.
+ */
+ssize_t write_all(int fd, const char *buf, size_t count);
/** @} */
#endif