From b86b7dcbfb002d4de6bd6fc860386cbd951e9bd6 Mon Sep 17 00:00:00 2001 From: dc Date: Sat, 30 Oct 2021 11:58:00 +0100 Subject: sendfile fn for solarish systems --- src/unix/solarish/mod.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/unix/solarish/mod.rs b/src/unix/solarish/mod.rs index 22cc3600d3..8120d87f66 100644 --- a/src/unix/solarish/mod.rs +++ b/src/unix/solarish/mod.rs @@ -2772,6 +2772,9 @@ extern "C" { pub fn getpflags(flags: ::c_uint) -> ::c_uint; pub fn setpflags(flags: ::c_uint, value: ::c_uint) -> ::c_int; + + pub fn sendfile(out_fd: ::c_int, in_fd: ::c_int, off: *mut ::off_t, len: ::size_t) + -> ::ssize_t; } mod compat; -- cgit v1.2.1