Skip to content

Commit 6f62973

Browse files
committed
openbsd lacks sendmmsg()/recvmmsg()
1 parent 8432daf commit 6f62973

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
@@ -717,10 +717,6 @@ extern {
717717
pub fn getdomainname(name: *mut ::c_char, len: ::size_t) -> ::c_int;
718718
pub fn setdomainname(name: *const ::c_char, len: ::size_t) -> ::c_int;
719719
pub fn uname(buf: *mut ::utsname) -> ::c_int;
720-
pub fn sendmmsg(sockfd: ::c_int, msgvec: *mut ::mmsghdr, vlen: ::c_uint,
721-
flags: ::c_int) -> ::c_int;
722-
pub fn recvmmsg(sockfd: ::c_int, msgvec: *mut ::mmsghdr, vlen: ::c_uint,
723-
flags: ::c_int, timeout: *mut ::timespec) -> ::c_int;
724720
}
725721

726722
cfg_if! {

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

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

12011201
pub fn dup3(src: ::c_int, dst: ::c_int, flags: ::c_int) -> ::c_int;
1202+
1203+
pub fn sendmmsg(sockfd: ::c_int, msgvec: *mut ::mmsghdr, vlen: ::c_uint,
1204+
flags: ::c_int) -> ::c_int;
1205+
pub fn recvmmsg(sockfd: ::c_int, msgvec: *mut ::mmsghdr, vlen: ::c_uint,
1206+
flags: ::c_int, timeout: *mut ::timespec) -> ::c_int;
12021207
}
12031208

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

0 commit comments

Comments
 (0)