From 67135ca8e041ac922d1045fe833c8052e652e5e7 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Wed, 27 Jun 2018 10:47:09 -0400 Subject: Split read_all and write_all into separate functions --- src/lib/fdio/fdio.c | 2 +- src/lib/fdio/fdio.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/fdio') diff --git a/src/lib/fdio/fdio.c b/src/lib/fdio/fdio.c index b622074329..21577e1845 100644 --- a/src/lib/fdio/fdio.c +++ b/src/lib/fdio/fdio.c @@ -94,7 +94,7 @@ tor_ftruncate(int fd) /** Minimal version of write_all, for use by logging. */ int -write_all_to_fd(int fd, const char *buf, size_t count) +write_all_to_fd_minimal(int fd, const char *buf, size_t count) { size_t written = 0; raw_assert(count < SSIZE_MAX); diff --git a/src/lib/fdio/fdio.h b/src/lib/fdio/fdio.h index 8cc4a04658..0fb3ed1e62 100644 --- a/src/lib/fdio/fdio.h +++ b/src/lib/fdio/fdio.h @@ -12,6 +12,6 @@ off_t tor_fd_getpos(int fd); int tor_fd_setpos(int fd, off_t pos); int tor_fd_seekend(int fd); int tor_ftruncate(int fd); -int write_all_to_fd(int fd, const char *buf, size_t count); +int write_all_to_fd_minimal(int fd, const char *buf, size_t count); #endif /* !defined(TOR_FDIO_H) */ -- cgit v1.2.3-54-g00ecf