mmsghdr pointer is const in android I think

This commit is contained in:
David Holroyd 2019-01-27 10:06:16 +00:00
parent 8fe9d252b0
commit 4036d6cb98
3 changed files with 4 additions and 2 deletions

View File

@ -1955,6 +1955,8 @@ extern {
f: extern fn(*mut ::c_void) -> *mut ::c_void, f: extern fn(*mut ::c_void) -> *mut ::c_void,
value: *mut ::c_void) -> ::c_int; value: *mut ::c_void) -> ::c_int;
pub fn __errno() -> *mut ::c_int; pub fn __errno() -> *mut ::c_int;
pub fn sendmmsg(sockfd: ::c_int, msgvec: *const ::mmsghdr, vlen: ::c_uint,
flags: ::c_int) -> ::c_int;
} }
cfg_if! { cfg_if! {

View File

@ -2077,6 +2077,8 @@ extern {
pub fn getdomainname(name: *mut ::c_char, len: ::size_t) -> ::c_int; pub fn getdomainname(name: *mut ::c_char, len: ::size_t) -> ::c_int;
pub fn setdomainname(name: *const ::c_char, len: ::size_t) -> ::c_int; pub fn setdomainname(name: *const ::c_char, len: ::size_t) -> ::c_int;
pub fn vhangup() -> ::c_int; pub fn vhangup() -> ::c_int;
pub fn sendmmsg(sockfd: ::c_int, msgvec: *mut ::mmsghdr, vlen: ::c_uint,
flags: ::c_int) -> ::c_int;
pub fn sync(); pub fn sync();
pub fn syscall(num: ::c_long, ...) -> ::c_long; pub fn syscall(num: ::c_long, ...) -> ::c_long;
pub fn sched_getaffinity(pid: ::pid_t, pub fn sched_getaffinity(pid: ::pid_t,

View File

@ -1378,8 +1378,6 @@ extern {
flags: ::c_int) -> ::ssize_t; flags: ::c_int) -> ::ssize_t;
pub fn recvmsg(fd: ::c_int, msg: *mut ::msghdr, flags: ::c_int) pub fn recvmsg(fd: ::c_int, msg: *mut ::msghdr, flags: ::c_int)
-> ::ssize_t; -> ::ssize_t;
pub fn sendmmsg(sockfd: ::c_int, msgvec: *mut ::mmsghdr, vlen: ::c_uint,
flags: ::c_int) -> ::c_int;
pub fn recvmmsg(sockfd: ::c_int, msgvec: *mut ::mmsghdr, vlen: ::c_uint, pub fn recvmmsg(sockfd: ::c_int, msgvec: *mut ::mmsghdr, vlen: ::c_uint,
flags: ::c_int, timeout: *mut ::timespec) -> ::c_int; flags: ::c_int, timeout: *mut ::timespec) -> ::c_int;
pub fn uname(buf: *mut ::utsname) -> ::c_int; pub fn uname(buf: *mut ::utsname) -> ::c_int;