We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents eae7b48 + d03ea10 commit fc22d2cCopy full SHA for fc22d2c
src/unix/solarish/mod.rs
@@ -267,6 +267,13 @@ s! {
267
pub f_fstr: [::c_char; 32]
268
}
269
270
+ pub struct sendfilevec_t {
271
+ pub sfv_fd: ::c_int,
272
+ pub sfv_flag: ::c_uint,
273
+ pub sfv_off: ::off_t,
274
+ pub sfv_len: ::size_t,
275
+ }
276
+
277
pub struct sched_param {
278
pub sched_priority: ::c_int,
279
sched_pad: [::c_int; 8]
@@ -2775,6 +2782,12 @@ extern "C" {
2775
2782
2776
2783
pub fn sendfile(out_fd: ::c_int, in_fd: ::c_int, off: *mut ::off_t, len: ::size_t)
2777
2784
-> ::ssize_t;
2785
+ pub fn sendfilev(
2786
+ fildes: ::c_int,
2787
+ vec: *const sendfilevec_t,
2788
+ sfvcnt: ::c_int,
2789
+ xferred: *mut ::size_t,
2790
+ ) -> ::ssize_t;
2778
2791
2779
2792
2780
2793
mod compat;
0 commit comments