|
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, |
@@ -3501,14 +3480,6 @@ extern "C" { |
3501 | 3480 | pub fn madvise(addr: *mut c_void, len: size_t, advice: c_int) -> c_int; |
3502 | 3481 | pub fn msync(addr: *mut c_void, len: size_t, flags: c_int) -> c_int; |
3503 | 3482 | pub fn mprotect(addr: *mut c_void, len: size_t, prot: c_int) -> c_int; |
3504 | | - pub fn recvfrom( |
3505 | | - socket: c_int, |
3506 | | - buf: *mut c_void, |
3507 | | - len: size_t, |
3508 | | - flags: c_int, |
3509 | | - addr: *mut crate::sockaddr, |
3510 | | - addrlen: *mut crate::socklen_t, |
3511 | | - ) -> ssize_t; |
3512 | 3483 | pub fn getnameinfo( |
3513 | 3484 | sa: *const crate::sockaddr, |
3514 | 3485 | salen: crate::socklen_t, |
@@ -3821,19 +3792,6 @@ extern "C" { |
3821 | 3792 | ) -> c_int; |
3822 | 3793 | pub fn __errno() -> *mut c_int; |
3823 | 3794 | pub fn inotify_rm_watch(fd: c_int, wd: u32) -> c_int; |
3824 | | - pub fn sendmmsg( |
3825 | | - sockfd: c_int, |
3826 | | - msgvec: *const crate::mmsghdr, |
3827 | | - vlen: c_uint, |
3828 | | - flags: c_int, |
3829 | | - ) -> c_int; |
3830 | | - pub fn recvmmsg( |
3831 | | - sockfd: c_int, |
3832 | | - msgvec: *mut crate::mmsghdr, |
3833 | | - vlen: c_uint, |
3834 | | - flags: c_int, |
3835 | | - timeout: *const crate::timespec, |
3836 | | - ) -> c_int; |
3837 | 3795 | pub fn inotify_init() -> c_int; |
3838 | 3796 | pub fn inotify_init1(flags: c_int) -> c_int; |
3839 | 3797 | pub fn inotify_add_watch(fd: c_int, path: *const c_char, mask: u32) -> c_int; |
|
0 commit comments