Skip to content

Commit fc22d2c

Browse files
committed
Auto merge of #2497 - devnexen:solarish_sendfilev, r=Amanieu
solarish sendfilev fn flavor
2 parents eae7b48 + d03ea10 commit fc22d2c

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/unix/solarish/mod.rs

+13
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,13 @@ s! {
267267
pub f_fstr: [::c_char; 32]
268268
}
269269

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+
270277
pub struct sched_param {
271278
pub sched_priority: ::c_int,
272279
sched_pad: [::c_int; 8]
@@ -2775,6 +2782,12 @@ extern "C" {
27752782

27762783
pub fn sendfile(out_fd: ::c_int, in_fd: ::c_int, off: *mut ::off_t, len: ::size_t)
27772784
-> ::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;
27782791
}
27792792

27802793
mod compat;

0 commit comments

Comments
 (0)