1
0
mirror of https://github.com/rcore-os/rCore.git synced 2024-11-22 16:16:16 +04:00

implement sys_pselect6, same as sys_select

This commit is contained in:
Runji Wang 2019-11-02 00:56:48 +08:00
parent 1ee6796346
commit 242cbfa76c
2 changed files with 20 additions and 0 deletions

View File

@ -147,6 +147,18 @@ impl Syscall<'_> {
})
}
pub fn sys_pselect6(
&mut self,
nfds: usize,
read: *mut u32,
write: *mut u32,
err: *mut u32,
timeout: *const TimeVal,
_sigset: *const u32,
) -> SysResult {
self.sys_select(nfds, read, write, err, timeout)
}
pub fn sys_select(
&mut self,
nfds: usize,

View File

@ -154,6 +154,14 @@ impl Syscall<'_> {
),
// io multiplexing
SYS_PSELECT6 => self.sys_pselect6(
args[0],
args[1] as *mut u32,
args[2] as *mut u32,
args[3] as *mut u32,
args[4] as *const TimeVal,
args[5] as *const u32,
),
SYS_PPOLL => {
self.sys_ppoll(args[0] as *mut PollFd, args[1], args[2] as *const TimeSpec)
} // ignore sigmask