Skip to content

Commit 80f1b51

Browse files
committed
openbsd lacks sendmmsg()/recvmmsg()
1 parent b8b510b commit 80f1b51

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/unix/bsd/netbsdlike/mod.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -719,10 +719,6 @@ extern {
719719
pub fn getdomainname(name: *mut ::c_char, len: ::size_t) -> ::c_int;
720720
pub fn setdomainname(name: *const ::c_char, len: ::size_t) -> ::c_int;
721721
pub fn uname(buf: *mut ::utsname) -> ::c_int;
722-
pub fn sendmmsg(sockfd: ::c_int, msgvec: *mut ::mmsghdr, vlen: ::c_uint,
723-
flags: ::c_int) -> ::c_int;
724-
pub fn recvmmsg(sockfd: ::c_int, msgvec: *mut ::mmsghdr, vlen: ::c_uint,
725-
flags: ::c_int, timeout: *mut ::timespec) -> ::c_int;
726722
}
727723

728724
cfg_if! {

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1238,6 +1238,11 @@ extern {
12381238
pub fn settimeofday(tv: *const ::timeval, tz: *const ::c_void) -> ::c_int;
12391239

12401240
pub fn dup3(src: ::c_int, dst: ::c_int, flags: ::c_int) -> ::c_int;
1241+
1242+
pub fn sendmmsg(sockfd: ::c_int, msgvec: *mut ::mmsghdr, vlen: ::c_uint,
1243+
flags: ::c_int) -> ::c_int;
1244+
pub fn recvmmsg(sockfd: ::c_int, msgvec: *mut ::mmsghdr, vlen: ::c_uint,
1245+
flags: ::c_int, timeout: *mut ::timespec) -> ::c_int;
12411246
}
12421247

12431248
#[link(name = "util")]

0 commit comments

Comments
 (0)