move timeval to sys_select
This commit is contained in:
@@ -14,11 +14,22 @@ use crate::{
|
||||
EPOLL_CLOEXEC, EPOLL_CTL_ADD, EPOLLERR, EPOLLIN, EPOLLOUT, epoll_create1, epoll_ctl,
|
||||
epoll_data, epoll_event, epoll_wait,
|
||||
},
|
||||
sys_time::timeval,
|
||||
},
|
||||
platform::{self, types::c_int},
|
||||
platform::{
|
||||
self,
|
||||
types::{c_int, suseconds_t, time_t},
|
||||
},
|
||||
};
|
||||
|
||||
/// See <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/sys_select.h.html>.
|
||||
///
|
||||
#[repr(C)]
|
||||
#[derive(Default)]
|
||||
pub struct timeval {
|
||||
pub tv_sec: time_t,
|
||||
pub tv_usec: suseconds_t,
|
||||
}
|
||||
|
||||
// fd_set is also defined in C because cbindgen is incompatible with mem::size_of booo
|
||||
|
||||
/// See <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/sys_select.h.html>.
|
||||
|
||||
Reference in New Issue
Block a user