Skip to content

Commit 3c1eef0

Browse files
committed
Auto merge of #2608 - devnexen:obsd_splice, r=Amanieu
openbsd adding splice struct for SO_SPLICE sock opt
2 parents 4c7c337 + 372c051 commit 3c1eef0

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

libc-test/semver/openbsd.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1118,6 +1118,7 @@ siginfo_t
11181118
sigwait
11191119
sockaddr_dl
11201120
sockpeercred
1121+
splice
11211122
srand
11221123
stack_t
11231124
statfs

src/unix/bsd/netbsdlike/openbsd/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,12 @@ s! {
209209
pub sin_zero: [i8; 8],
210210
}
211211

212+
pub struct splice {
213+
pub sp_fd: ::c_int,
214+
pub sp_max: ::off_t,
215+
pub sp_idle: ::timeval,
216+
}
217+
212218
pub struct kevent {
213219
pub ident: ::uintptr_t,
214220
pub filter: ::c_short,

0 commit comments

Comments
 (0)