summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-01-04 00:10:11 +0000
committerbors <bors@rust-lang.org>2022-01-04 00:10:11 +0000
commit3c1eef02f08db2b923a30423ceaeefb7baef531a (patch)
treea604c9fd48fb03e7393628c1c1d4cc5fd219cf30
parent4c7c33760c7c0aac5006af172004ca443c7d4311 (diff)
parent372c0510296e408dab1a4e8fb9121dda3eb55c18 (diff)
downloadrust-libc-3c1eef02f08db2b923a30423ceaeefb7baef531a.tar.gz
Auto merge of #2608 - devnexen:obsd_splice, r=Amanieu
openbsd adding splice struct for SO_SPLICE sock opt
-rw-r--r--libc-test/semver/openbsd.txt1
-rw-r--r--src/unix/bsd/netbsdlike/openbsd/mod.rs6
2 files changed, 7 insertions, 0 deletions
diff --git a/libc-test/semver/openbsd.txt b/libc-test/semver/openbsd.txt
index 5287d18ffb..49704b62b4 100644
--- a/libc-test/semver/openbsd.txt
+++ b/libc-test/semver/openbsd.txt
@@ -1118,6 +1118,7 @@ siginfo_t
sigwait
sockaddr_dl
sockpeercred
+splice
srand
stack_t
statfs
diff --git a/src/unix/bsd/netbsdlike/openbsd/mod.rs b/src/unix/bsd/netbsdlike/openbsd/mod.rs
index d3bee5b7d5..e69c086c52 100644
--- a/src/unix/bsd/netbsdlike/openbsd/mod.rs
+++ b/src/unix/bsd/netbsdlike/openbsd/mod.rs
@@ -209,6 +209,12 @@ s! {
pub sin_zero: [i8; 8],
}
+ pub struct splice {
+ pub sp_fd: ::c_int,
+ pub sp_max: ::off_t,
+ pub sp_idle: ::timeval,
+ }
+
pub struct kevent {
pub ident: ::uintptr_t,
pub filter: ::c_short,