|
1 | 1 | //! Android-specific definitions for linux-like values |
2 | 2 |
|
3 | 3 | use crate::prelude::*; |
| 4 | +use crate::{cmsghdr, msghdr}; |
4 | 5 |
|
5 | 6 | cfg_if! { |
6 | 7 | if #[cfg(doc)] { |
|
74 | 75 | __val: [c_int; 2], |
75 | 76 | } |
76 | 77 |
|
77 | | - pub struct msghdr { |
78 | | - pub msg_name: *mut c_void, |
79 | | - pub msg_namelen: crate::socklen_t, |
80 | | - pub msg_iov: *mut crate::iovec, |
81 | | - pub msg_iovlen: size_t, |
82 | | - pub msg_control: *mut c_void, |
83 | | - pub msg_controllen: size_t, |
84 | | - pub msg_flags: c_int, |
85 | | - } |
86 | | - |
87 | | - pub struct cmsghdr { |
88 | | - pub cmsg_len: size_t, |
89 | | - pub cmsg_level: c_int, |
90 | | - pub cmsg_type: c_int, |
91 | | - } |
92 | | - |
93 | 78 | pub struct termios { |
94 | 79 | pub c_iflag: crate::tcflag_t, |
95 | 80 | pub c_oflag: crate::tcflag_t, |
@@ -203,12 +188,6 @@ s! { |
203 | 188 | pub it_value: crate::timespec, |
204 | 189 | } |
205 | 190 |
|
206 | | - pub struct ucred { |
207 | | - pub pid: crate::pid_t, |
208 | | - pub uid: crate::uid_t, |
209 | | - pub gid: crate::gid_t, |
210 | | - } |
211 | | - |
212 | 191 | pub struct genlmsghdr { |
213 | 192 | pub cmd: u8, |
214 | 193 | pub version: u8, |
@@ -3467,14 +3446,6 @@ extern "C" { |
3467 | 3446 | pub fn madvise(addr: *mut c_void, len: size_t, advice: c_int) -> c_int; |
3468 | 3447 | pub fn msync(addr: *mut c_void, len: size_t, flags: c_int) -> c_int; |
3469 | 3448 | pub fn mprotect(addr: *mut c_void, len: size_t, prot: c_int) -> c_int; |
3470 | | - pub fn recvfrom( |
3471 | | - socket: c_int, |
3472 | | - buf: *mut c_void, |
3473 | | - len: size_t, |
3474 | | - flags: c_int, |
3475 | | - addr: *mut crate::sockaddr, |
3476 | | - addrlen: *mut crate::socklen_t, |
3477 | | - ) -> ssize_t; |
3478 | 3449 | pub fn getnameinfo( |
3479 | 3450 | sa: *const crate::sockaddr, |
3480 | 3451 | salen: crate::socklen_t, |
@@ -3787,19 +3758,6 @@ extern "C" { |
3787 | 3758 | ) -> c_int; |
3788 | 3759 | pub fn __errno() -> *mut c_int; |
3789 | 3760 | pub fn inotify_rm_watch(fd: c_int, wd: u32) -> c_int; |
3790 | | - pub fn sendmmsg( |
3791 | | - sockfd: c_int, |
3792 | | - msgvec: *const crate::mmsghdr, |
3793 | | - vlen: c_uint, |
3794 | | - flags: c_int, |
3795 | | - ) -> c_int; |
3796 | | - pub fn recvmmsg( |
3797 | | - sockfd: c_int, |
3798 | | - msgvec: *mut crate::mmsghdr, |
3799 | | - vlen: c_uint, |
3800 | | - flags: c_int, |
3801 | | - timeout: *const crate::timespec, |
3802 | | - ) -> c_int; |
3803 | 3761 | pub fn inotify_init() -> c_int; |
3804 | 3762 | pub fn inotify_init1(flags: c_int) -> c_int; |
3805 | 3763 | pub fn inotify_add_watch(fd: c_int, path: *const c_char, mask: u32) -> c_int; |
|
0 commit comments