Skip to content

Commit d807b10

Browse files
committed
OpenBSD: add sendmmsg and recvmmsg support.
close #3696
1 parent 50b4720 commit d807b10

File tree

3 files changed

+15
-14
lines changed

3 files changed

+15
-14
lines changed

libc-test/semver/openbsd.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1210,6 +1210,7 @@ readlinkat
12101210
reallocarray
12111211
reboot
12121212
recvmsg
1213+
recvmmsg
12131214
regcomp
12141215
regerror
12151216
regex_t

src/unix/bsd/netbsdlike/mod.rs

+14
Original file line numberDiff line numberDiff line change
@@ -858,6 +858,20 @@ extern "C" {
858858
pub fn dirname(path: *mut ::c_char) -> *mut ::c_char;
859859
pub fn basename(path: *mut ::c_char) -> *mut ::c_char;
860860
pub fn getentropy(buf: *mut ::c_void, buflen: ::size_t) -> ::c_int;
861+
862+
pub fn sendmmsg(
863+
sockfd: ::c_int,
864+
mmsg: *mut ::mmsghdr,
865+
vlen: ::c_uint,
866+
flags: ::c_int,
867+
) -> ::c_int;
868+
pub fn recvmmsg(
869+
sockfd: ::c_int,
870+
mmsg: *mut ::mmsghdr,
871+
vlen: ::c_uint,
872+
flags: ::c_int,
873+
timeout: *mut ::timespec,
874+
) -> ::c_int;
861875
}
862876

863877
cfg_if! {

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

-14
Original file line numberDiff line numberDiff line change
@@ -2750,20 +2750,6 @@ extern "C" {
27502750

27512751
pub fn kqueue1(flags: ::c_int) -> ::c_int;
27522752

2753-
pub fn sendmmsg(
2754-
sockfd: ::c_int,
2755-
msgvec: *mut ::mmsghdr,
2756-
vlen: ::c_uint,
2757-
flags: ::c_int,
2758-
) -> ::c_int;
2759-
pub fn recvmmsg(
2760-
sockfd: ::c_int,
2761-
msgvec: *mut ::mmsghdr,
2762-
vlen: ::c_uint,
2763-
flags: ::c_int,
2764-
timeout: *mut ::timespec,
2765-
) -> ::c_int;
2766-
27672753
pub fn _lwp_self() -> lwpid_t;
27682754
pub fn memmem(
27692755
haystack: *const ::c_void,

0 commit comments

Comments
 (0)