aboutsummaryrefslogtreecommitdiffstats
path: root/writeall.c
diff options
context:
space:
mode:
Diffstat (limited to 'writeall.c')
-rw-r--r--writeall.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/writeall.c b/writeall.c
deleted file mode 100644
index 2e3d1ad..0000000
--- a/writeall.c
+++ /dev/null
@@ -1,21 +0,0 @@
-/* See LICENSE file for copyright and license details. */
-#include "common.h"
-
-
-void
-writeall(int fd, const void *data, size_t n, const char *fname)
-{
- const char *text = data;
- ssize_t r;
-
- while (n) {
- r = write(fd, text, n);
- if (r < 0) {
- if (errno == EINTR)
- continue;
- eprintf("write %s:", fname);
- }
- n -= (size_t)r;
- text = &text[r];
- }
-}