summaryrefslogtreecommitdiffstats
path: root/src/vcl/vcom_glibc_socket.h
diff options
context:
space:
mode:
authorDave Wallace <dwallacelf@gmail.com>2017-11-13 21:21:53 -0500
committerKeith Burns <alagalah@gmail.com>2017-11-14 03:44:25 +0000
commit227867f5d3fb1b1dacbaf2f426812417b72ef03a (patch)
tree6d7b603b196d170717d5f81e23f122ec38989fb9 /src/vcl/vcom_glibc_socket.h
parent49806fe252030a4cd993f598ff65a89590d57388 (diff)
VCL-LDPRELOAD: add sendfile/sendfile64 implementation.
Change-Id: If0c399269238912456d670432d7e953c9d91b9fb Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
Diffstat (limited to 'src/vcl/vcom_glibc_socket.h')
-rw-r--r--src/vcl/vcom_glibc_socket.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vcl/vcom_glibc_socket.h b/src/vcl/vcom_glibc_socket.h
index 969029f3e63..bf18473de85 100644
--- a/src/vcl/vcom_glibc_socket.h
+++ b/src/vcl/vcom_glibc_socket.h
@@ -153,6 +153,9 @@ getpeername (int __fd, __SOCKADDR_ARG __addr, socklen_t * __restrict __len);
__THROW. */
extern ssize_t send (int __fd, const void *__buf, size_t __n, int __flags);
+extern ssize_t sendfile (int __out_fd, int __in_fd, off_t * __offset,
+ size_t __len);
+
/* Read N bytes into BUF from socket FD.
Returns the number read or -1 for errors.