summaryrefslogtreecommitdiff
path: root/glnx-fdio.h
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2016-01-10 21:46:45 -0500
committerColin Walters <walters@verbum.org>2016-01-10 21:46:45 -0500
commit3c470803d08477dab9c7faada29a5f4c59dd519e (patch)
treeb47fb01da09e1228ea85e04d4f65229ed7cb1d88 /glnx-fdio.h
parent91e060699f5559c49335ce19f4b23ba70dfd6bb3 (diff)
downloadlibglnx-3c470803d08477dab9c7faada29a5f4c59dd519e.tar.gz
fdio: Export loop_write
I plan to use this in rpm-ostree. Sad how many times this gets reinvented. Should probably stick a copy in `glib-unix.h` or so.
Diffstat (limited to 'glnx-fdio.h')
-rw-r--r--glnx-fdio.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/glnx-fdio.h b/glnx-fdio.h
index a90544a..c0fd4e4 100644
--- a/glnx-fdio.h
+++ b/glnx-fdio.h
@@ -102,6 +102,9 @@ glnx_readlinkat_malloc (int dfd,
GCancellable *cancellable,
GError **error);
+int
+glnx_loop_write (int fd, const void *buf, size_t nbytes);
+
typedef enum {
GLNX_FILE_COPY_OVERWRITE,
GLNX_FILE_COPY_NOXATTRS,