Skip to content

Commit dfca7d2

Browse files
committed
epoll: get rid of separate ready_list
1 parent 667796b commit dfca7d2

File tree

5 files changed

+134
-152
lines changed

5 files changed

+134
-152
lines changed

src/shims/unix/fd.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use rustc_abi::Size;
99

1010
use crate::shims::files::FileDescription;
1111
use crate::shims::sig::check_min_vararg_count;
12-
use crate::shims::unix::linux_like::epoll::EpollReadyEvents;
12+
use crate::shims::unix::linux_like::epoll::EpollEvents;
1313
use crate::shims::unix::*;
1414
use crate::*;
1515

@@ -61,8 +61,8 @@ pub trait UnixFileDescription: FileDescription {
6161
throw_unsup_format!("cannot flock {}", self.name());
6262
}
6363

64-
/// Check the readiness of file description.
65-
fn get_epoll_ready_events<'tcx>(&self) -> InterpResult<'tcx, EpollReadyEvents> {
64+
/// Return which epoll events are currently active.
65+
fn epoll_active_events<'tcx>(&self) -> InterpResult<'tcx, EpollEvents> {
6666
throw_unsup_format!("{}: epoll does not support this file description", self.name());
6767
}
6868
}

0 commit comments

Comments
 (0)